diff --git a/protos/google/cloud/dialogflow/cx/v3beta1/agent.proto b/protos/google/cloud/dialogflow/cx/v3/agent.proto similarity index 86% rename from protos/google/cloud/dialogflow/cx/v3beta1/agent.proto rename to protos/google/cloud/dialogflow/cx/v3/agent.proto index 473475d6..9cc1ac66 100644 --- a/protos/google/cloud/dialogflow/cx/v3beta1/agent.proto +++ b/protos/google/cloud/dialogflow/cx/v3/agent.proto @@ -14,26 +14,26 @@ syntax = "proto3"; -package google.cloud.dialogflow.cx.v3beta1; +package google.cloud.dialogflow.cx.v3; import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; -import "google/cloud/dialogflow/cx/v3beta1/flow.proto"; +import "google/cloud/dialogflow/cx/v3/flow.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; option cc_enable_arenas = true; -option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/cx/v3beta1;cx"; +option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3"; +option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/cx/v3;cx"; option java_multiple_files = true; option java_outer_classname = "AgentProto"; -option java_package = "com.google.cloud.dialogflow.cx.v3beta1"; +option java_package = "com.google.cloud.dialogflow.cx.v3"; option objc_class_prefix = "DF"; -// Service for managing [Agents][google.cloud.dialogflow.cx.v3beta1.Agent]. +// Service for managing [Agents][google.cloud.dialogflow.cx.v3.Agent]. service Agents { option (google.api.default_host) = "dialogflow.googleapis.com"; option (google.api.oauth_scopes) = @@ -43,7 +43,7 @@ service Agents { // Returns the list of all agents in the specified location. rpc ListAgents(ListAgentsRequest) returns (ListAgentsResponse) { option (google.api.http) = { - get: "/v3beta1/{parent=projects/*/locations/*}/agents" + get: "/v3/{parent=projects/*/locations/*}/agents" }; option (google.api.method_signature) = "parent"; } @@ -51,7 +51,7 @@ service Agents { // Retrieves the specified agent. rpc GetAgent(GetAgentRequest) returns (Agent) { option (google.api.http) = { - get: "/v3beta1/{name=projects/*/locations/*/agents/*}" + get: "/v3/{name=projects/*/locations/*/agents/*}" }; option (google.api.method_signature) = "name"; } @@ -59,7 +59,7 @@ service Agents { // Creates an agent in the specified location. rpc CreateAgent(CreateAgentRequest) returns (Agent) { option (google.api.http) = { - post: "/v3beta1/{parent=projects/*/locations/*}/agents" + post: "/v3/{parent=projects/*/locations/*}/agents" body: "agent" }; option (google.api.method_signature) = "parent,agent"; @@ -68,7 +68,7 @@ service Agents { // Updates the specified agent. rpc UpdateAgent(UpdateAgentRequest) returns (Agent) { option (google.api.http) = { - patch: "/v3beta1/{agent.name=projects/*/locations/*/agents/*}" + patch: "/v3/{agent.name=projects/*/locations/*/agents/*}" body: "agent" }; option (google.api.method_signature) = "agent,update_mask"; @@ -77,7 +77,7 @@ service Agents { // Deletes the specified agent. rpc DeleteAgent(DeleteAgentRequest) returns (google.protobuf.Empty) { option (google.api.http) = { - delete: "/v3beta1/{name=projects/*/locations/*/agents/*}" + delete: "/v3/{name=projects/*/locations/*/agents/*}" }; option (google.api.method_signature) = "name"; } @@ -85,7 +85,7 @@ service Agents { // Exports the specified agent to a binary file. rpc ExportAgent(ExportAgentRequest) returns (google.longrunning.Operation) { option (google.api.http) = { - post: "/v3beta1/{name=projects/*/locations/*/agents/*}:export" + post: "/v3/{name=projects/*/locations/*/agents/*}:export" body: "*" }; option (google.longrunning.operation_info) = { @@ -100,7 +100,7 @@ service Agents { // in agent (e.g. intents, entity types, flows) will be removed. rpc RestoreAgent(RestoreAgentRequest) returns (google.longrunning.Operation) { option (google.api.http) = { - post: "/v3beta1/{name=projects/*/locations/*/agents/*}:restore" + post: "/v3/{name=projects/*/locations/*/agents/*}:restore" body: "*" }; option (google.longrunning.operation_info) = { @@ -121,9 +121,9 @@ message SpeechToTextSettings { // in your app, product, or service to determine user intent and respond to the // user in a natural way. // -// After you create an agent, you can add [Intents][google.cloud.dialogflow.cx.v3beta1.Intent], -// [Entity Types][google.cloud.dialogflow.cx.v3beta1.EntityType], [Flows][google.cloud.dialogflow.cx.v3beta1.Flow], [Fulfillments][google.cloud.dialogflow.cx.v3beta1.Fulfillment], -// [Webhooks][google.cloud.dialogflow.cx.v3beta1.Webhook], and so on to manage the conversation flows.. +// After you create an agent, you can add [Intents][google.cloud.dialogflow.cx.v3.Intent], +// [Entity Types][google.cloud.dialogflow.cx.v3.EntityType], [Flows][google.cloud.dialogflow.cx.v3.Flow], [Fulfillments][google.cloud.dialogflow.cx.v3.Fulfillment], +// [Webhooks][google.cloud.dialogflow.cx.v3.Webhook], and so on to manage the conversation flows.. message Agent { option (google.api.resource) = { type: "dialogflow.googleapis.com/Agent" @@ -131,7 +131,7 @@ message Agent { }; // The unique identifier of the agent. - // Required for the [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3beta1.Agents.UpdateAgent] method. [Agents.CreateAgent][google.cloud.dialogflow.cx.v3beta1.Agents.CreateAgent] + // Required for the [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent] method. [Agents.CreateAgent][google.cloud.dialogflow.cx.v3.Agents.CreateAgent] // populates the name automatically. // Format: `projects//locations//agents/`. string name = 1; @@ -143,7 +143,7 @@ message Agent { // See [Language // Support](https://cloud.google.com/dialogflow/docs/reference/language) // for a list of the currently supported language codes. - // This field cannot be set by the [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3beta1.Agents.UpdateAgent] method. + // This field cannot be set by the [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent] method. string default_language_code = 3 [(google.api.field_behavior) = IMMUTABLE]; // Required. The time zone of the agent from the [time zone @@ -184,7 +184,7 @@ message Agent { bool enable_spell_correction = 20; } -// The request message for [Agents.ListAgents][google.cloud.dialogflow.cx.v3beta1.Agents.ListAgents]. +// The request message for [Agents.ListAgents][google.cloud.dialogflow.cx.v3.Agents.ListAgents]. message ListAgentsRequest { // Required. The location to list all agents for. // Format: `projects//locations/`. @@ -203,7 +203,7 @@ message ListAgentsRequest { string page_token = 3; } -// The response message for [Agents.ListAgents][google.cloud.dialogflow.cx.v3beta1.Agents.ListAgents]. +// The response message for [Agents.ListAgents][google.cloud.dialogflow.cx.v3.Agents.ListAgents]. message ListAgentsResponse { // The list of agents. There will be a maximum number of items returned based // on the page_size field in the request. @@ -214,7 +214,7 @@ message ListAgentsResponse { string next_page_token = 2; } -// The request message for [Agents.GetAgent][google.cloud.dialogflow.cx.v3beta1.Agents.GetAgent]. +// The request message for [Agents.GetAgent][google.cloud.dialogflow.cx.v3.Agents.GetAgent]. message GetAgentRequest { // Required. The name of the agent. // Format: `projects//locations//agents/`. @@ -226,7 +226,7 @@ message GetAgentRequest { ]; } -// The request message for [Agents.CreateAgent][google.cloud.dialogflow.cx.v3beta1.Agents.CreateAgent]. +// The request message for [Agents.CreateAgent][google.cloud.dialogflow.cx.v3.Agents.CreateAgent]. message CreateAgentRequest { // Required. The location to create a agent for. // Format: `projects//locations/`. @@ -241,7 +241,7 @@ message CreateAgentRequest { Agent agent = 2 [(google.api.field_behavior) = REQUIRED]; } -// The request message for [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3beta1.Agents.UpdateAgent]. +// The request message for [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent]. message UpdateAgentRequest { // Required. The agent to update. Agent agent = 1 [(google.api.field_behavior) = REQUIRED]; @@ -251,7 +251,7 @@ message UpdateAgentRequest { google.protobuf.FieldMask update_mask = 2; } -// The request message for [Agents.DeleteAgent][google.cloud.dialogflow.cx.v3beta1.Agents.DeleteAgent]. +// The request message for [Agents.DeleteAgent][google.cloud.dialogflow.cx.v3.Agents.DeleteAgent]. message DeleteAgentRequest { // Required. The name of the agent to delete. // Format: `projects//locations//agents/`. @@ -263,7 +263,7 @@ message DeleteAgentRequest { ]; } -// The request message for [Agents.ExportAgent][google.cloud.dialogflow.cx.v3beta1.Agents.ExportAgent]. +// The request message for [Agents.ExportAgent][google.cloud.dialogflow.cx.v3.Agents.ExportAgent]. message ExportAgentRequest { // Required. The name of the agent to export. // Format: `projects//locations//agents/`. @@ -281,12 +281,12 @@ message ExportAgentRequest { string agent_uri = 2 [(google.api.field_behavior) = OPTIONAL]; } -// The response message for [Agents.ExportAgent][google.cloud.dialogflow.cx.v3beta1.Agents.ExportAgent]. +// The response message for [Agents.ExportAgent][google.cloud.dialogflow.cx.v3.Agents.ExportAgent]. message ExportAgentResponse { // The exported agent. oneof agent { // The URI to a file containing the exported agent. This field is populated - // only if `agent_uri` is specified in [ExportAgentRequest][google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest]. + // only if `agent_uri` is specified in [ExportAgentRequest][google.cloud.dialogflow.cx.v3.ExportAgentRequest]. string agent_uri = 1; // Uncompressed raw byte content for agent. @@ -294,7 +294,7 @@ message ExportAgentResponse { } } -// The request message for [Agents.RestoreAgent][google.cloud.dialogflow.cx.v3beta1.Agents.RestoreAgent]. +// The request message for [Agents.RestoreAgent][google.cloud.dialogflow.cx.v3.Agents.RestoreAgent]. message RestoreAgentRequest { // Required. The name of the agent to restore into. // Format: `projects//locations//agents/`. diff --git a/protos/google/cloud/dialogflow/cx/v3beta1/audio_config.proto b/protos/google/cloud/dialogflow/cx/v3/audio_config.proto similarity index 93% rename from protos/google/cloud/dialogflow/cx/v3beta1/audio_config.proto rename to protos/google/cloud/dialogflow/cx/v3/audio_config.proto index e28a50da..d80b94f2 100644 --- a/protos/google/cloud/dialogflow/cx/v3beta1/audio_config.proto +++ b/protos/google/cloud/dialogflow/cx/v3/audio_config.proto @@ -14,7 +14,7 @@ syntax = "proto3"; -package google.cloud.dialogflow.cx.v3beta1; +package google.cloud.dialogflow.cx.v3; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; @@ -22,11 +22,11 @@ import "google/protobuf/duration.proto"; import "google/api/annotations.proto"; option cc_enable_arenas = true; -option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/cx/v3beta1;cx"; +option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3"; +option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/cx/v3;cx"; option java_multiple_files = true; option java_outer_classname = "AudioConfigProto"; -option java_package = "com.google.cloud.dialogflow.cx.v3beta1"; +option java_package = "com.google.cloud.dialogflow.cx.v3"; option objc_class_prefix = "DF"; // Information for a word recognized by the speech recognizer. @@ -115,8 +115,8 @@ message InputAudioConfig { // more details. int32 sample_rate_hertz = 2; - // Optional. If `true`, Dialogflow returns [SpeechWordInfo][google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo] in - // [StreamingRecognitionResult][google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult] with information about the recognized speech + // Optional. If `true`, Dialogflow returns [SpeechWordInfo][google.cloud.dialogflow.cx.v3.SpeechWordInfo] in + // [StreamingRecognitionResult][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult] with information about the recognized speech // words, e.g. start and end time offsets. If false or unspecified, Speech // doesn't return any word-level information. bool enable_word_info = 13; @@ -142,7 +142,7 @@ message InputAudioConfig { // for more details. string model = 7; - // Optional. Which variant of the [Speech model][google.cloud.dialogflow.cx.v3beta1.InputAudioConfig.model] to use. + // Optional. Which variant of the [Speech model][google.cloud.dialogflow.cx.v3.InputAudioConfig.model] to use. SpeechModelVariant model_variant = 10; // Optional. If `false` (default), recognition does not cease until the @@ -156,7 +156,7 @@ message InputAudioConfig { bool single_utterance = 8; } -// Variant of the specified [Speech model][google.cloud.dialogflow.cx.v3beta1.InputAudioConfig.model] to use. +// Variant of the specified [Speech model][google.cloud.dialogflow.cx.v3.InputAudioConfig.model] to use. // // See the [Cloud Speech // documentation](https://cloud.google.com/speech-to-text/docs/enhanced-models) @@ -185,7 +185,7 @@ enum SpeechModelVariant { // Use an enhanced model variant: // // * If an enhanced variant does not exist for the given - // [model][google.cloud.dialogflow.cx.v3beta1.InputAudioConfig.model] and request language, Dialogflow falls + // [model][google.cloud.dialogflow.cx.v3.InputAudioConfig.model] and request language, Dialogflow falls // back to the standard variant. // // The [Cloud Speech @@ -203,12 +203,12 @@ enum SpeechModelVariant { message VoiceSelectionParams { // Optional. The name of the voice. If not set, the service will choose a // voice based on the other parameters such as language_code and - // [ssml_gender][google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams.ssml_gender]. + // [ssml_gender][google.cloud.dialogflow.cx.v3.VoiceSelectionParams.ssml_gender]. string name = 1; // Optional. The preferred gender of the voice. If not set, the service will // choose a voice based on the other parameters such as language_code and - // [name][google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams.name]. Note that this is only a preference, not requirement. If a + // [name][google.cloud.dialogflow.cx.v3.VoiceSelectionParams.name]. Note that this is only a preference, not requirement. If a // voice of the appropriate gender is not available, the synthesizer should // substitute a voice with a different gender rather than failing the request. SsmlVoiceGender ssml_gender = 2; diff --git a/protos/google/cloud/dialogflow/cx/v3beta1/entity_type.proto b/protos/google/cloud/dialogflow/cx/v3/entity_type.proto similarity index 91% rename from protos/google/cloud/dialogflow/cx/v3beta1/entity_type.proto rename to protos/google/cloud/dialogflow/cx/v3/entity_type.proto index 8c5571a1..38526fab 100644 --- a/protos/google/cloud/dialogflow/cx/v3beta1/entity_type.proto +++ b/protos/google/cloud/dialogflow/cx/v3/entity_type.proto @@ -14,7 +14,7 @@ syntax = "proto3"; -package google.cloud.dialogflow.cx.v3beta1; +package google.cloud.dialogflow.cx.v3; import "google/api/annotations.proto"; import "google/api/client.proto"; @@ -24,14 +24,14 @@ import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; option cc_enable_arenas = true; -option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/cx/v3beta1;cx"; +option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3"; +option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/cx/v3;cx"; option java_multiple_files = true; option java_outer_classname = "EntityTypeProto"; -option java_package = "com.google.cloud.dialogflow.cx.v3beta1"; +option java_package = "com.google.cloud.dialogflow.cx.v3"; option objc_class_prefix = "DF"; -// Service for managing [EntityTypes][google.cloud.dialogflow.cx.v3beta1.EntityType]. +// Service for managing [EntityTypes][google.cloud.dialogflow.cx.v3.EntityType]. service EntityTypes { option (google.api.default_host) = "dialogflow.googleapis.com"; option (google.api.oauth_scopes) = @@ -41,7 +41,7 @@ service EntityTypes { // Returns the list of all entity types in the specified agent. rpc ListEntityTypes(ListEntityTypesRequest) returns (ListEntityTypesResponse) { option (google.api.http) = { - get: "/v3beta1/{parent=projects/*/locations/*/agents/*}/entityTypes" + get: "/v3/{parent=projects/*/locations/*/agents/*}/entityTypes" }; option (google.api.method_signature) = "parent"; } @@ -49,7 +49,7 @@ service EntityTypes { // Retrieves the specified entity type. rpc GetEntityType(GetEntityTypeRequest) returns (EntityType) { option (google.api.http) = { - get: "/v3beta1/{name=projects/*/locations/*/agents/*/entityTypes/*}" + get: "/v3/{name=projects/*/locations/*/agents/*/entityTypes/*}" }; option (google.api.method_signature) = "name"; } @@ -57,7 +57,7 @@ service EntityTypes { // Creates an entity type in the specified agent. rpc CreateEntityType(CreateEntityTypeRequest) returns (EntityType) { option (google.api.http) = { - post: "/v3beta1/{parent=projects/*/locations/*/agents/*}/entityTypes" + post: "/v3/{parent=projects/*/locations/*/agents/*}/entityTypes" body: "entity_type" }; option (google.api.method_signature) = "parent,entity_type"; @@ -66,7 +66,7 @@ service EntityTypes { // Updates the specified entity type. rpc UpdateEntityType(UpdateEntityTypeRequest) returns (EntityType) { option (google.api.http) = { - patch: "/v3beta1/{entity_type.name=projects/*/locations/*/agents/*/entityTypes/*}" + patch: "/v3/{entity_type.name=projects/*/locations/*/agents/*/entityTypes/*}" body: "entity_type" }; option (google.api.method_signature) = "entity_type,update_mask"; @@ -75,7 +75,7 @@ service EntityTypes { // Deletes the specified entity type. rpc DeleteEntityType(DeleteEntityTypeRequest) returns (google.protobuf.Empty) { option (google.api.http) = { - delete: "/v3beta1/{name=projects/*/locations/*/agents/*/entityTypes/*}" + delete: "/v3/{name=projects/*/locations/*/agents/*/entityTypes/*}" }; option (google.api.method_signature) = "name"; } @@ -104,7 +104,7 @@ service EntityTypes { // // * **User** - entities that are built for an individual user such as // favorites, preferences, playlists, and so on. A user entity is -// represented by the [SessionEntityType][google.cloud.dialogflow.cx.v3beta1.SessionEntityType] type. +// represented by the [SessionEntityType][google.cloud.dialogflow.cx.v3.SessionEntityType] type. // // For more information about entity types, see the [Dialogflow // documentation](https://cloud.google.com/dialogflow/docs/entities-overview). @@ -179,7 +179,7 @@ message EntityType { } // The unique identifier of the entity type. - // Required for [EntityTypes.UpdateEntityType][google.cloud.dialogflow.cx.v3beta1.EntityTypes.UpdateEntityType]. + // Required for [EntityTypes.UpdateEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.UpdateEntityType]. // Format: `projects//locations//agents//entityTypes/`. string name = 1; @@ -207,7 +207,7 @@ message EntityType { bool enable_fuzzy_extraction = 7; } -// The request message for [EntityTypes.ListEntityTypes][google.cloud.dialogflow.cx.v3beta1.EntityTypes.ListEntityTypes]. +// The request message for [EntityTypes.ListEntityTypes][google.cloud.dialogflow.cx.v3.EntityTypes.ListEntityTypes]. message ListEntityTypesRequest { // Required. The agent to list all entity types for. // Format: `projects//locations//agents/`. @@ -240,7 +240,7 @@ message ListEntityTypesRequest { string page_token = 4; } -// The response message for [EntityTypes.ListEntityTypes][google.cloud.dialogflow.cx.v3beta1.EntityTypes.ListEntityTypes]. +// The response message for [EntityTypes.ListEntityTypes][google.cloud.dialogflow.cx.v3.EntityTypes.ListEntityTypes]. message ListEntityTypesResponse { // The list of entity types. There will be a maximum number of items returned // based on the page_size field in the request. @@ -251,7 +251,7 @@ message ListEntityTypesResponse { string next_page_token = 2; } -// The request message for [EntityTypes.GetEntityType][google.cloud.dialogflow.cx.v3beta1.EntityTypes.GetEntityType]. +// The request message for [EntityTypes.GetEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.GetEntityType]. message GetEntityTypeRequest { // Required. The name of the entity type. // Format: `projects//locations//agents//locations//agents/`. @@ -306,7 +306,7 @@ message CreateEntityTypeRequest { string language_code = 3; } -// The request message for [EntityTypes.UpdateEntityType][google.cloud.dialogflow.cx.v3beta1.EntityTypes.UpdateEntityType]. +// The request message for [EntityTypes.UpdateEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.UpdateEntityType]. message UpdateEntityTypeRequest { // Required. The entity type to update. EntityType entity_type = 1 [(google.api.field_behavior) = REQUIRED]; @@ -328,7 +328,7 @@ message UpdateEntityTypeRequest { google.protobuf.FieldMask update_mask = 3; } -// The request message for [EntityTypes.DeleteEntityType][google.cloud.dialogflow.cx.v3beta1.EntityTypes.DeleteEntityType]. +// The request message for [EntityTypes.DeleteEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.DeleteEntityType]. message DeleteEntityTypeRequest { // Required. The name of the entity type to delete. // Format: `projects//locations//agents//locations//agents/`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, @@ -167,7 +167,7 @@ message ListEnvironmentsRequest { string page_token = 3; } -// The response message for [Environments.ListEnvironments][google.cloud.dialogflow.cx.v3beta1.Environments.ListEnvironments]. +// The response message for [Environments.ListEnvironments][google.cloud.dialogflow.cx.v3.Environments.ListEnvironments]. message ListEnvironmentsResponse { // The list of environments. There will be a maximum number of items // returned based on the page_size field in the request. The list may in some @@ -180,9 +180,9 @@ message ListEnvironmentsResponse { string next_page_token = 2; } -// The request message for [Environments.GetEnvironment][google.cloud.dialogflow.cx.v3beta1.Environments.GetEnvironment]. +// The request message for [Environments.GetEnvironment][google.cloud.dialogflow.cx.v3.Environments.GetEnvironment]. message GetEnvironmentRequest { - // Required. The name of the [Environment][google.cloud.dialogflow.cx.v3beta1.Environment]. + // Required. The name of the [Environment][google.cloud.dialogflow.cx.v3.Environment]. // Format: `projects//locations//agents//environments/`. string name = 1 [ @@ -193,9 +193,9 @@ message GetEnvironmentRequest { ]; } -// The request message for [Environments.CreateEnvironment][google.cloud.dialogflow.cx.v3beta1.Environments.CreateEnvironment]. +// The request message for [Environments.CreateEnvironment][google.cloud.dialogflow.cx.v3.Environments.CreateEnvironment]. message CreateEnvironmentRequest { - // Required. The [Agent][google.cloud.dialogflow.cx.v3beta1.Agent] to create an [Environment][google.cloud.dialogflow.cx.v3beta1.Environment] for. + // Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to create an [Environment][google.cloud.dialogflow.cx.v3.Environment] for. // Format: `projects//locations//agents/`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, @@ -208,7 +208,7 @@ message CreateEnvironmentRequest { Environment environment = 2 [(google.api.field_behavior) = REQUIRED]; } -// The request message for [Environments.UpdateEnvironment][google.cloud.dialogflow.cx.v3beta1.Environments.UpdateEnvironment]. +// The request message for [Environments.UpdateEnvironment][google.cloud.dialogflow.cx.v3.Environments.UpdateEnvironment]. message UpdateEnvironmentRequest { // Required. The environment to update. Environment environment = 1 [(google.api.field_behavior) = REQUIRED]; @@ -217,9 +217,9 @@ message UpdateEnvironmentRequest { google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; } -// The request message for [Environments.DeleteEnvironment][google.cloud.dialogflow.cx.v3beta1.Environments.DeleteEnvironment]. +// The request message for [Environments.DeleteEnvironment][google.cloud.dialogflow.cx.v3.Environments.DeleteEnvironment]. message DeleteEnvironmentRequest { - // Required. The name of the [Environment][google.cloud.dialogflow.cx.v3beta1.Environment] to delete. + // Required. The name of the [Environment][google.cloud.dialogflow.cx.v3.Environment] to delete. // Format: `projects//locations//agents//environments/`. string name = 1 [ @@ -230,7 +230,7 @@ message DeleteEnvironmentRequest { ]; } -// The request message for [Environments.LookupEnvironmentHistory][google.cloud.dialogflow.cx.v3beta1.Environments.LookupEnvironmentHistory]. +// The request message for [Environments.LookupEnvironmentHistory][google.cloud.dialogflow.cx.v3.Environments.LookupEnvironmentHistory]. message LookupEnvironmentHistoryRequest { // Required. Resource name of the environment to look up the history for. // Format: `projects//locations//agents//locations//agents/`. @@ -236,7 +236,7 @@ message CreateFlowRequest { string language_code = 3; } -// The request message for [Flows.DeleteFlow][google.cloud.dialogflow.cx.v3beta1.Flows.DeleteFlow]. +// The request message for [Flows.DeleteFlow][google.cloud.dialogflow.cx.v3.Flows.DeleteFlow]. message DeleteFlowRequest { // Required. The name of the flow to delete. // Format: `projects//locations//agents//locations//agents/`. @@ -293,7 +293,7 @@ message ListFlowsRequest { string language_code = 4; } -// The response message for [Flows.ListFlows][google.cloud.dialogflow.cx.v3beta1.Flows.ListFlows]. +// The response message for [Flows.ListFlows][google.cloud.dialogflow.cx.v3.Flows.ListFlows]. message ListFlowsResponse { // The list of flows. There will be a maximum number of items returned based // on the page_size field in the request. @@ -304,7 +304,7 @@ message ListFlowsResponse { string next_page_token = 2; } -// The response message for [Flows.GetFlow][google.cloud.dialogflow.cx.v3beta1.Flows.GetFlow]. +// The response message for [Flows.GetFlow][google.cloud.dialogflow.cx.v3.Flows.GetFlow]. message GetFlowRequest { // Required. The name of the flow to get. // Format: `projects//locations//agents//locations//agents//locations//agents//intents/`. @@ -202,12 +202,12 @@ message Intent { // start with a letter. Keys and values can be no longer than 63 characters // and no more than 128 bytes. // - // Prefix "sys-" is reserved for Dialogflow defined labels. Currently allowed + // Prefix "sys." is reserved for Dialogflow defined labels. Currently allowed // Dialogflow defined labels include: - // * sys-head - // * sys-contextual - // The above labels do not require value. "sys-head" means the intent is a - // head intent. "sys-contextual" means the intent is a contextual intent. + // * sys.head + // * sys.contextual + // The above labels do not require value. "sys.head" means the intent is a + // head intent. "sys.contextual" means the intent is a contextual intent. map labels = 7 [(google.api.field_behavior) = OPTIONAL]; // Optional. Human readable description for better understanding an intent like its @@ -215,7 +215,7 @@ message Intent { string description = 8 [(google.api.field_behavior) = OPTIONAL]; } -// The request message for [Intents.ListIntents][google.cloud.dialogflow.cx.v3beta1.Intents.ListIntents]. +// The request message for [Intents.ListIntents][google.cloud.dialogflow.cx.v3.Intents.ListIntents]. message ListIntentsRequest { // Required. The agent to list all intents for. // Format: `projects//locations//agents/`. @@ -249,7 +249,7 @@ message ListIntentsRequest { string page_token = 4; } -// The response message for [Intents.ListIntents][google.cloud.dialogflow.cx.v3beta1.Intents.ListIntents]. +// The response message for [Intents.ListIntents][google.cloud.dialogflow.cx.v3.Intents.ListIntents]. message ListIntentsResponse { // The list of intents. There will be a maximum number of items returned based // on the page_size field in the request. @@ -260,7 +260,7 @@ message ListIntentsResponse { string next_page_token = 2; } -// The request message for [Intents.GetIntent][google.cloud.dialogflow.cx.v3beta1.Intents.GetIntent]. +// The request message for [Intents.GetIntent][google.cloud.dialogflow.cx.v3.Intents.GetIntent]. message GetIntentRequest { // Required. The name of the intent. // Format: `projects//locations//agents//locations//agents/`. @@ -311,7 +311,7 @@ message CreateIntentRequest { string language_code = 3; } -// The request message for [Intents.UpdateIntent][google.cloud.dialogflow.cx.v3beta1.Intents.UpdateIntent]. +// The request message for [Intents.UpdateIntent][google.cloud.dialogflow.cx.v3.Intents.UpdateIntent]. message UpdateIntentRequest { // Required. The intent to update. Intent intent = 1 [(google.api.field_behavior) = REQUIRED]; @@ -332,7 +332,7 @@ message UpdateIntentRequest { google.protobuf.FieldMask update_mask = 3; } -// The request message for [Intents.DeleteIntent][google.cloud.dialogflow.cx.v3beta1.Intents.DeleteIntent]. +// The request message for [Intents.DeleteIntent][google.cloud.dialogflow.cx.v3.Intents.DeleteIntent]. message DeleteIntentRequest { // Required. The name of the intent to delete. // Format: `projects//locations//agents//locations//agents//flows//pages/`. @@ -122,7 +122,7 @@ message Page { // relevant to the page. Form form = 4; - // Ordered list of [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup] associated + // Ordered list of [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] associated // with the page. Transition route groups must be unique within a page. // // * If multiple transition routes within a page scope refer to the same @@ -147,7 +147,7 @@ message Page { // // * TransitionRoutes defined in the page with intent specified. // * TransitionRoutes defined in the - // [transition route groups][google.cloud.dialogflow.cx.v3beta1.Page.transition_route_groups]. + // [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups]. // * TransitionRoutes defined in flow with intent specified. // * TransitionRoutes defined in the page with only condition specified. repeated TransitionRoute transition_routes = 9; @@ -160,8 +160,8 @@ message Page { // A form is a data model that groups related parameters that can be collected // from the user. The process in which the agent prompts the user and collects // parameter values from the user is called form filling. A form can be added to -// a [page][google.cloud.dialogflow.cx.v3beta1.Page]. When form filling is done, the filled parameters will be -// written to the [session][google.cloud.dialogflow.cx.v3beta1.SessionInfo.parameters]. +// a [page][google.cloud.dialogflow.cx.v3.Page]. When form filling is done, the filled parameters will be +// written to the [session][google.cloud.dialogflow.cx.v3.SessionInfo.parameters]. message Form { // Represents a form parameter. message Parameter { @@ -248,16 +248,16 @@ message Form { repeated Parameter parameters = 1; } -// An event handler specifies an [event][google.cloud.dialogflow.cx.v3beta1.EventHandler.event] that can be handled +// An event handler specifies an [event][google.cloud.dialogflow.cx.v3.EventHandler.event] that can be handled // during a session. When the specified event happens, the following actions are // taken in order: // // * If there is a -// [`trigger_fulfillment`][google.cloud.dialogflow.cx.v3beta1.EventHandler.trigger_fulfillment] associated with +// [`trigger_fulfillment`][google.cloud.dialogflow.cx.v3.EventHandler.trigger_fulfillment] associated with // the event, it will be called. -// * If there is a [`target_page`][google.cloud.dialogflow.cx.v3beta1.EventHandler.target_page] associated +// * If there is a [`target_page`][google.cloud.dialogflow.cx.v3.EventHandler.target_page] associated // with the event, the session will transition into the specified page. -// * If there is a [`target_flow`][google.cloud.dialogflow.cx.v3beta1.EventHandler.target_flow] associated +// * If there is a [`target_flow`][google.cloud.dialogflow.cx.v3.EventHandler.target_flow] associated // with the event, the session will transition into the specified flow. message EventHandler { // Output only. The unique identifier of this event handler. @@ -273,7 +273,7 @@ message EventHandler { Fulfillment trigger_fulfillment = 5; // The target to transition to, either a page in the same host flow (the flow - // that owns this [TransitionRoute][google.cloud.dialogflow.cx.v3beta1.TransitionRoute]), or another flow in the same agent. + // that owns this [TransitionRoute][google.cloud.dialogflow.cx.v3.TransitionRoute]), or another flow in the same agent. oneof target { // The target page to transition to. // Format: `projects//locations//agents//locations//agents//intents/`. // Indicates that the transition can only happen when the given intent is @@ -318,8 +318,8 @@ message TransitionRoute { type: "dialogflow.googleapis.com/Intent" }]; - // The condition to evaluate against [form parameters][google.cloud.dialogflow.cx.v3beta1.Form.parameters] or - // [session parameters][google.cloud.dialogflow.cx.v3beta1.SessionInfo.parameters]. + // The condition to evaluate against [form parameters][google.cloud.dialogflow.cx.v3.Form.parameters] or + // [session parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters]. // // See the [conditions // reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition). @@ -334,7 +334,7 @@ message TransitionRoute { Fulfillment trigger_fulfillment = 3; // The target to transition to, either a page in the same host flow (the flow - // that owns this [TransitionRoute][google.cloud.dialogflow.cx.v3beta1.TransitionRoute]), or another flow in the same agent. + // that owns this [TransitionRoute][google.cloud.dialogflow.cx.v3.TransitionRoute]), or another flow in the same agent. oneof target { // The target page to transition to. // Format: `projects//locations//agents//locations//agents//locations//agents//locations//agents//locations//agents//locations//securitySettings/`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/SecuritySettings" + } + ]; +} + +// The request message for [SecuritySettingsService.UpdateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.UpdateSecuritySettings]. +message UpdateSecuritySettingsRequest { + // Required. [SecuritySettings] object that contains values for each of the + // fields to update. + SecuritySettings security_settings = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The mask to control which fields get updated. If the mask is not present, + // all fields will be updated. + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// The request message for [SecuritySettings.ListSecuritySettings][]. +message ListSecuritySettingsRequest { + // Required. The location to list all security settings for. + // Format: `projects//locations/`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/SecuritySettings" + } + ]; + + // The maximum number of items to return in a single page. By default 20 and + // at most 100. + int32 page_size = 2; + + // The next_page_token value returned from a previous list request. + string page_token = 3; +} + +// The response message for [SecuritySettings.ListSecuritySettings][]. +message ListSecuritySettingsResponse { + // The list of security settings. + repeated SecuritySettings security_settings = 1; + + // Token to retrieve the next page of results, or empty if there are no more + // results in the list. + string next_page_token = 2; +} + +// The request message for [SecuritySettings.CreateSecuritySettings][]. +message CreateSecuritySettingsRequest { + // Required. The location to create an [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings] for. + // Format: `projects//locations/`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/SecuritySettings" + } + ]; + + // Required. The security settings to create. + SecuritySettings security_settings = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// The request message for [SecuritySettings.DeleteSecuritySettings][]. +message DeleteSecuritySettingsRequest { + // Required. The name of the [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings] to delete. + // Format: `projects//locations//securitySettings/`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/SecuritySettings" + } + ]; +} + +// Represents the settings related to security issues, such as data redaction +// and data retention. It may take hours for updates on the settings to +// propagate to all the related components and take effect. +message SecuritySettings { + option (google.api.resource) = { + type: "dialogflow.googleapis.com/SecuritySettings" + pattern: "projects/{project}/locations/{location}/securitySettings/{security_settings}" + }; + + // Defines how we redact data. + enum RedactionStrategy { + // Do not redact. + REDACTION_STRATEGY_UNSPECIFIED = 0; + + // Call redaction service to clean up the data to be persisted. + REDACT_WITH_SERVICE = 1; + } + + // Defines what types of data to redact. + enum RedactionScope { + // Don't redact any kind of data. + REDACTION_SCOPE_UNSPECIFIED = 0; + + // On data to be written to disk or similar devices that are capable of + // holding data even if power is disconnected. This includes data that are + // temporarily saved on disk. + REDACT_DISK_STORAGE = 2; + } + + // Type of data we purge after retention settings triggers purge. + enum PurgeDataType { + // Unspecified. Do not use. + PURGE_DATA_TYPE_UNSPECIFIED = 0; + + // Dialogflow history. This does not include Stackdriver log, which is + // owned by the user not Dialogflow. + DIALOGFLOW_HISTORY = 1; + } + + // Required. Resource name of the settings. + // Format: `projects//locations//securitySettings/`. + string name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The human-readable name of the security settings, unique within the + // location. + string display_name = 2 [(google.api.field_behavior) = REQUIRED]; + + // Strategy that defines how we do redaction. + RedactionStrategy redaction_strategy = 3; + + // Defines on what data we apply redaction. Note that we don't + // redact data to which we don't have access, e.g., Stackdriver logs. + RedactionScope redaction_scope = 4; + + // DLP inspect template name. Use this template to define inspect base + // settings. + // + // If empty, we use the default DLP inspect config. + // + // The template name will have one of the following formats: + // `projects/PROJECT_ID/inspectTemplates/TEMPLATE_ID` OR + // `organizations/ORGANIZATION_ID/inspectTemplates/TEMPLATE_ID` + string inspect_template = 9; + + // Specifies how data is retained. Note that even if the data is + // purged due to retention policy, we may still hold it in backup storage for + // a few days without allowing direct readings. + oneof data_retention { + // Retains the data for the specified number of days. + // User must Set a value lower than Dialogflow's default 30d TTL. Setting a + // value higher than that has no effect. + // A missing value or setting to 0 also means we use Dialogflow's default + // TTL. + int32 retention_window_days = 6; + } + + // List of types of data to remove when retention settings triggers purge. + repeated PurgeDataType purge_data_types = 8; +} diff --git a/protos/google/cloud/dialogflow/cx/v3beta1/session.proto b/protos/google/cloud/dialogflow/cx/v3/session.proto similarity index 84% rename from protos/google/cloud/dialogflow/cx/v3beta1/session.proto rename to protos/google/cloud/dialogflow/cx/v3/session.proto index 9b94a19d..f2e8968b 100644 --- a/protos/google/cloud/dialogflow/cx/v3beta1/session.proto +++ b/protos/google/cloud/dialogflow/cx/v3/session.proto @@ -14,17 +14,17 @@ syntax = "proto3"; -package google.cloud.dialogflow.cx.v3beta1; +package google.cloud.dialogflow.cx.v3; import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; -import "google/cloud/dialogflow/cx/v3beta1/audio_config.proto"; -import "google/cloud/dialogflow/cx/v3beta1/flow.proto"; -import "google/cloud/dialogflow/cx/v3beta1/intent.proto"; -import "google/cloud/dialogflow/cx/v3beta1/page.proto"; -import "google/cloud/dialogflow/cx/v3beta1/response_message.proto"; -import "google/cloud/dialogflow/cx/v3beta1/session_entity_type.proto"; +import "google/cloud/dialogflow/cx/v3/audio_config.proto"; +import "google/cloud/dialogflow/cx/v3/flow.proto"; +import "google/cloud/dialogflow/cx/v3/intent.proto"; +import "google/cloud/dialogflow/cx/v3/page.proto"; +import "google/cloud/dialogflow/cx/v3/response_message.proto"; +import "google/cloud/dialogflow/cx/v3/session_entity_type.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/struct.proto"; import "google/rpc/status.proto"; @@ -32,11 +32,11 @@ import "google/type/latlng.proto"; import "google/api/client.proto"; option cc_enable_arenas = true; -option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/cx/v3beta1;cx"; +option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3"; +option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/cx/v3;cx"; option java_multiple_files = true; option java_outer_classname = "SessionProto"; -option java_package = "com.google.cloud.dialogflow.cx.v3beta1"; +option java_package = "com.google.cloud.dialogflow.cx.v3"; option objc_class_prefix = "DF"; option (google.api.resource_definition) = { type: "dialogflow.googleapis.com/Session" @@ -45,7 +45,7 @@ option (google.api.resource_definition) = { }; // A session represents an interaction with a user. You retrieve user input -// and pass it to the [DetectIntent][google.cloud.dialogflow.cx.v3beta1.Sessions.DetectIntent] method to determine +// and pass it to the [DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent] method to determine // user intent and respond. service Sessions { option (google.api.default_host) = "dialogflow.googleapis.com"; @@ -59,10 +59,10 @@ service Sessions { // queries. rpc DetectIntent(DetectIntentRequest) returns (DetectIntentResponse) { option (google.api.http) = { - post: "/v3beta1/{session=projects/*/locations/*/agents/*/sessions/*}:detectIntent" + post: "/v3/{session=projects/*/locations/*/agents/*/sessions/*}:detectIntent" body: "*" additional_bindings { - post: "/v3beta1/{session=projects/*/locations/*/agents/*/environments/*/sessions/*}:detectIntent" + post: "/v3/{session=projects/*/locations/*/agents/*/environments/*/sessions/*}:detectIntent" body: "*" } }; @@ -78,24 +78,24 @@ service Sessions { // status. rpc MatchIntent(MatchIntentRequest) returns (MatchIntentResponse) { option (google.api.http) = { - post: "/v3beta1/{session=projects/*/locations/*/agents/*/sessions/*}:matchIntent" + post: "/v3/{session=projects/*/locations/*/agents/*/sessions/*}:matchIntent" body: "*" additional_bindings { - post: "/v3beta1/{session=projects/*/locations/*/agents/*/environments/*/sessions/*}:matchIntent" + post: "/v3/{session=projects/*/locations/*/agents/*/environments/*/sessions/*}:matchIntent" body: "*" } }; } - // Fulfills a matched intent returned by [MatchIntent][google.cloud.dialogflow.cx.v3beta1.Sessions.MatchIntent]. - // Must be called after [MatchIntent][google.cloud.dialogflow.cx.v3beta1.Sessions.MatchIntent], with input from - // [MatchIntentResponse][google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse]. Otherwise, the behavior is undefined. + // Fulfills a matched intent returned by [MatchIntent][google.cloud.dialogflow.cx.v3.Sessions.MatchIntent]. + // Must be called after [MatchIntent][google.cloud.dialogflow.cx.v3.Sessions.MatchIntent], with input from + // [MatchIntentResponse][google.cloud.dialogflow.cx.v3.MatchIntentResponse]. Otherwise, the behavior is undefined. rpc FulfillIntent(FulfillIntentRequest) returns (FulfillIntentResponse) { option (google.api.http) = { - post: "/v3beta1/{match_intent_request.session=projects/*/locations/*/agents/*/sessions/*}:fulfillIntent" + post: "/v3/{match_intent_request.session=projects/*/locations/*/agents/*/sessions/*}:fulfillIntent" body: "*" additional_bindings { - post: "/v3beta1/{match_intent_request.session=projects/*/locations/*/agents/*/environments/*/sessions/*}:fulfillIntent" + post: "/v3/{match_intent_request.session=projects/*/locations/*/agents/*/environments/*/sessions/*}:fulfillIntent" body: "*" } }; @@ -145,7 +145,7 @@ message DetectIntentResponse { // The audio data bytes encoded as specified in the request. // Note: The output audio is generated based on the values of default platform // text responses found in the - // [`query_result.response_messages`][google.cloud.dialogflow.cx.v3beta1.QueryResult.response_messages] field. If + // [`query_result.response_messages`][google.cloud.dialogflow.cx.v3.QueryResult.response_messages] field. If // multiple default text responses exist, they will be concatenated when // generating audio. If no default platform text responses exist, the // generated audio content will be empty. @@ -160,24 +160,24 @@ message DetectIntentResponse { } // The top-level message sent by the client to the -// [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3beta1.Sessions.StreamingDetectIntent] method. +// [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent] method. // // Multiple request messages should be sent in order: // // 1. The first message must contain -// [session][google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest.session], -// [query_input][google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest.query_input] plus optionally -// [query_params][google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest.query_params]. If the client +// [session][google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.session], +// [query_input][google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.query_input] plus optionally +// [query_params][google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.query_params]. If the client // wants to receive an audio response, it should also contain -// [output_audio_config][google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest.output_audio_config]. +// [output_audio_config][google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.output_audio_config]. // -// 2. If [query_input][google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest.query_input] was set to -// [query_input.audio.config][google.cloud.dialogflow.cx.v3beta1.AudioInput.config], all subsequent messages -// must contain [query_input.audio.audio][google.cloud.dialogflow.cx.v3beta1.AudioInput.audio] to continue with +// 2. If [query_input][google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.query_input] was set to +// [query_input.audio.config][google.cloud.dialogflow.cx.v3.AudioInput.config], all subsequent messages +// must contain [query_input.audio.audio][google.cloud.dialogflow.cx.v3.AudioInput.audio] to continue with // Speech recognition. // If you decide to rather detect an intent from text // input after you already started Speech recognition, please send a message -// with [query_input.text][google.cloud.dialogflow.cx.v3beta1.QueryInput.text]. +// with [query_input.text][google.cloud.dialogflow.cx.v3.QueryInput.text]. // // However, note that: // @@ -284,7 +284,7 @@ message StreamingRecognitionResult { // additional results). The client should stop sending additional audio // data, half-close the gRPC connection, and wait for any additional results // until the server closes the gRPC connection. This message is only sent if - // [`single_utterance`][google.cloud.dialogflow.cx.v3beta1.InputAudioConfig.single_utterance] was set to + // [`single_utterance`][google.cloud.dialogflow.cx.v3.InputAudioConfig.single_utterance] was set to // `true`, and is not used otherwise. END_OF_SINGLE_UTTERANCE = 2; } @@ -321,7 +321,7 @@ message StreamingRecognitionResult { float stability = 6; // Word-specific information for the words recognized by Speech in - // [transcript][google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and + // [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and // [InputAudioConfig.enable_word_info] is set. repeated SpeechWordInfo speech_word_info = 7; @@ -416,19 +416,19 @@ message QueryInput { message QueryResult { // The original conversational query. oneof query { - // If [natural language text][google.cloud.dialogflow.cx.v3beta1.TextInput] was provided as input, this field + // 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 = 1; - // If an [intent][google.cloud.dialogflow.cx.v3beta1.IntentInput] was provided as input, this field will + // If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will // contain a copy of the intent identifier. string trigger_intent = 11; - // If [natural language speech audio][google.cloud.dialogflow.cx.v3beta1.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 trascript for the audio. string transcript = 12; - // If an [event][google.cloud.dialogflow.cx.v3beta1.EventInput] was provided as input, this field will contain + // 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; } @@ -439,7 +439,7 @@ message QueryResult { // for a list of the currently supported language codes. string language_code = 2; - // The collected [session parameters][google.cloud.dialogflow.cx.v3beta1.SessionInfo.parameters]. + // The collected [session parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters]. // // Depending on your protocol or client library language, this is a // map, associative array, symbol table, dictionary, or JSON object @@ -464,19 +464,19 @@ message QueryResult { // The list of webhook call status in the order of call sequence. repeated google.rpc.Status webhook_statuses = 13; - // The list of webhook payload in [WebhookResponse.payload][google.cloud.dialogflow.cx.v3beta1.WebhookResponse.payload], in + // The list of webhook payload in [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload], in // the order of call sequence. If some webhook call fails or doesn't return // any payload, an empty `Struct` would be used instead. repeated google.protobuf.Struct webhook_payloads = 6; - // The current [Page][google.cloud.dialogflow.cx.v3beta1.Page]. Some, not all fields are filled in this message, + // The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all fields are filled in this message, // including but not limited to `name` and `display_name`. Page current_page = 7; - // The [Intent][google.cloud.dialogflow.cx.v3beta1.Intent] that matched the conversational query. Some, not all fields + // The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the conversational query. Some, not all fields // are filled in this message, including but not limited to: `name` and // `display_name`. - // This field is deprecated, please use [QueryResult.match][google.cloud.dialogflow.cx.v3beta1.QueryResult.match] instead. + // This field is deprecated, please use [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match] instead. Intent intent = 8 [deprecated = true]; // The intent detection confidence. Values range from 0.0 (completely @@ -485,7 +485,7 @@ message QueryResult { // help match the best intent within the classification threshold. // This value may change for the same end-user expression at any time due to a // model retraining or change in implementation. - // This field is deprecated, please use [QueryResult.match][google.cloud.dialogflow.cx.v3beta1.QueryResult.match] instead. + // This field is deprecated, please use [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match] instead. float intent_detection_confidence = 9 [deprecated = true]; // Intent match result, could be an intent or an event. @@ -498,7 +498,7 @@ message QueryResult { // The sentiment analyss result, which depends on // [`analyze_query_text_sentiment`] - // [google.cloud.dialogflow.cx.v3beta1.QueryParameters.analyze_query_text_sentiment], specified in the request. + // [google.cloud.dialogflow.cx.v3.QueryParameters.analyze_query_text_sentiment], specified in the request. SentimentAnalysisResult sentiment_analysis_result = 17; } @@ -530,7 +530,7 @@ message AudioInput { // The natural language speech audio to be processed. // A single request can contain up to 1 minute of speech audio data. - // The [transcribed text][google.cloud.dialogflow.cx.v3beta1.QueryResult.transcript] cannot contain more than 256 + // The [transcribed text][google.cloud.dialogflow.cx.v3.QueryResult.transcript] cannot contain more than 256 // bytes. // // For non-streaming audio detect intent, both `config` and `audio` must be @@ -581,13 +581,13 @@ message Match { EVENT = 6; } - // The [Intent][google.cloud.dialogflow.cx.v3beta1.Intent] that matched the query. Some, not all fields are filled in + // The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query. Some, not all fields are filled in // this message, including but not limited to: `name` and `display_name`. Only - // filled for [`INTENT`][google.cloud.dialogflow.cx.v3beta1.Match.MatchType] match type. + // filled for [`INTENT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match type. Intent intent = 1; // The event that matched the query. Only filled for - // [`EVENT`][google.cloud.dialogflow.cx.v3beta1.Match.MatchType] match type. + // [`EVENT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match type. string event = 6; // The collection of parameters extracted from the query. @@ -612,7 +612,7 @@ message Match { // correction or other processing. string resolved_input = 3; - // Type of this [Match][google.cloud.dialogflow.cx.v3beta1.Match]. + // Type of this [Match][google.cloud.dialogflow.cx.v3.Match]. MatchType match_type = 4; // The confidence of this match. Values range from 0.0 (completely uncertain) @@ -656,19 +656,19 @@ message MatchIntentRequest { message MatchIntentResponse { // The original conversational query. oneof query { - // If [natural language text][google.cloud.dialogflow.cx.v3beta1.TextInput] was provided as input, this field + // 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 = 1; - // If an [intent][google.cloud.dialogflow.cx.v3beta1.IntentInput] was provided as input, this field will + // If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will // contain a copy of the intent identifier. string trigger_intent = 2; - // If [natural language speech audio][google.cloud.dialogflow.cx.v3beta1.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 trascript for the audio. string transcript = 3; - // If an [event][google.cloud.dialogflow.cx.v3beta1.EventInput] was provided as input, this field will + // If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will // contain a copy of the event name. string trigger_event = 6; } @@ -677,7 +677,7 @@ message MatchIntentResponse { // we have that the particular intent matches the query. repeated Match matches = 4; - // The current [Page][google.cloud.dialogflow.cx.v3beta1.Page]. Some, not all fields are filled in this message, + // The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all fields are filled in this message, // including but not limited to `name` and `display_name`. Page current_page = 5; } @@ -707,7 +707,7 @@ message FulfillIntentResponse { // The audio data bytes encoded as specified in the request. // Note: The output audio is generated based on the values of default platform // text responses found in the - // [`query_result.response_messages`][google.cloud.dialogflow.cx.v3beta1.QueryResult.response_messages] field. If + // [`query_result.response_messages`][google.cloud.dialogflow.cx.v3.QueryResult.response_messages] field. If // multiple default text responses exist, they will be concatenated when // generating audio. If no default platform text responses exist, the // generated audio content will be empty. diff --git a/protos/google/cloud/dialogflow/cx/v3beta1/session_entity_type.proto b/protos/google/cloud/dialogflow/cx/v3/session_entity_type.proto similarity index 83% rename from protos/google/cloud/dialogflow/cx/v3beta1/session_entity_type.proto rename to protos/google/cloud/dialogflow/cx/v3/session_entity_type.proto index 5b8f5df9..e7b327f2 100644 --- a/protos/google/cloud/dialogflow/cx/v3beta1/session_entity_type.proto +++ b/protos/google/cloud/dialogflow/cx/v3/session_entity_type.proto @@ -14,25 +14,25 @@ syntax = "proto3"; -package google.cloud.dialogflow.cx.v3beta1; +package google.cloud.dialogflow.cx.v3; import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; -import "google/cloud/dialogflow/cx/v3beta1/entity_type.proto"; +import "google/cloud/dialogflow/cx/v3/entity_type.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; option cc_enable_arenas = true; -option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/cx/v3beta1;cx"; +option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3"; +option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/cx/v3;cx"; option java_multiple_files = true; option java_outer_classname = "SessionEntityTypeProto"; -option java_package = "com.google.cloud.dialogflow.cx.v3beta1"; +option java_package = "com.google.cloud.dialogflow.cx.v3"; option objc_class_prefix = "DF"; -// Service for managing [SessionEntityTypes][google.cloud.dialogflow.cx.v3beta1.SessionEntityType]. +// Service for managing [SessionEntityTypes][google.cloud.dialogflow.cx.v3.SessionEntityType]. service SessionEntityTypes { option (google.api.default_host) = "dialogflow.googleapis.com"; option (google.api.oauth_scopes) = @@ -42,9 +42,9 @@ service SessionEntityTypes { // Returns the list of all session entity types in the specified session. rpc ListSessionEntityTypes(ListSessionEntityTypesRequest) returns (ListSessionEntityTypesResponse) { option (google.api.http) = { - get: "/v3beta1/{parent=projects/*/locations/*/agents/*/sessions/*}/entityTypes" + get: "/v3/{parent=projects/*/locations/*/agents/*/sessions/*}/entityTypes" additional_bindings { - get: "/v3beta1/{parent=projects/*/locations/*/agents/*/environments/*/sessions/*}/entityTypes" + get: "/v3/{parent=projects/*/locations/*/agents/*/environments/*/sessions/*}/entityTypes" } }; option (google.api.method_signature) = "parent"; @@ -53,9 +53,9 @@ service SessionEntityTypes { // Retrieves the specified session entity type. rpc GetSessionEntityType(GetSessionEntityTypeRequest) returns (SessionEntityType) { option (google.api.http) = { - get: "/v3beta1/{name=projects/*/locations/*/agents/*/sessions/*/entityTypes/*}" + get: "/v3/{name=projects/*/locations/*/agents/*/sessions/*/entityTypes/*}" additional_bindings { - get: "/v3beta1/{name=projects/*/locations/*/agents/*/environments/*/sessions/*/entityTypes/*}" + get: "/v3/{name=projects/*/locations/*/agents/*/environments/*/sessions/*/entityTypes/*}" } }; option (google.api.method_signature) = "name"; @@ -67,10 +67,10 @@ service SessionEntityTypes { // session entity type. rpc CreateSessionEntityType(CreateSessionEntityTypeRequest) returns (SessionEntityType) { option (google.api.http) = { - post: "/v3beta1/{parent=projects/*/locations/*/agents/*/sessions/*}/entityTypes" + post: "/v3/{parent=projects/*/locations/*/agents/*/sessions/*}/entityTypes" body: "session_entity_type" additional_bindings { - post: "/v3beta1/{parent=projects/*/locations/*/agents/*/environments/*/sessions/*}/entityTypes" + post: "/v3/{parent=projects/*/locations/*/agents/*/environments/*/sessions/*}/entityTypes" body: "session_entity_type" } }; @@ -80,10 +80,10 @@ service SessionEntityTypes { // Updates the specified session entity type. rpc UpdateSessionEntityType(UpdateSessionEntityTypeRequest) returns (SessionEntityType) { option (google.api.http) = { - patch: "/v3beta1/{session_entity_type.name=projects/*/locations/*/agents/*/sessions/*/entityTypes/*}" + patch: "/v3/{session_entity_type.name=projects/*/locations/*/agents/*/sessions/*/entityTypes/*}" body: "session_entity_type" additional_bindings { - patch: "/v3beta1/{session_entity_type.name=projects/*/locations/*/agents/*/environments/*/sessions/*/entityTypes/*}" + patch: "/v3/{session_entity_type.name=projects/*/locations/*/agents/*/environments/*/sessions/*/entityTypes/*}" body: "session_entity_type" } }; @@ -93,9 +93,9 @@ service SessionEntityTypes { // Deletes the specified session entity type. rpc DeleteSessionEntityType(DeleteSessionEntityTypeRequest) returns (google.protobuf.Empty) { option (google.api.http) = { - delete: "/v3beta1/{name=projects/*/locations/*/agents/*/sessions/*/entityTypes/*}" + delete: "/v3/{name=projects/*/locations/*/agents/*/sessions/*/entityTypes/*}" additional_bindings { - delete: "/v3beta1/{name=projects/*/locations/*/agents/*/environments/*/sessions/*/entityTypes/*}" + delete: "/v3/{name=projects/*/locations/*/agents/*/environments/*/sessions/*/entityTypes/*}" } }; option (google.api.method_signature) = "name"; @@ -107,7 +107,7 @@ service SessionEntityTypes { // preferences, playlists, and so on. // // You can redefine a session entity type at the session level to extend or -// replace a [custom entity type][google.cloud.dialogflow.cx.v3beta1.EntityType] at the user session level (we +// replace a [custom entity type][google.cloud.dialogflow.cx.v3.EntityType] at the user session level (we // refer to the entity types defined at the agent level as "custom entity // types"). // @@ -138,7 +138,7 @@ message SessionEntityType { // `GetSessionEntityType`, `CreateSessionEntityType` and // `UpdateSessionEntityType` only return the additional entities added in // this session entity type. If you want to get the supplemented list, - // please call [EntityTypes.GetEntityType][google.cloud.dialogflow.cx.v3beta1.EntityTypes.GetEntityType] on the custom entity type + // please call [EntityTypes.GetEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.GetEntityType] on the custom entity type // and merge. ENTITY_OVERRIDE_MODE_SUPPLEMENT = 2; } @@ -161,7 +161,7 @@ message SessionEntityType { repeated EntityType.Entity entities = 4 [(google.api.field_behavior) = REQUIRED]; } -// The request message for [SessionEntityTypes.ListSessionEntityTypes][google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes.ListSessionEntityTypes]. +// The request message for [SessionEntityTypes.ListSessionEntityTypes][google.cloud.dialogflow.cx.v3.SessionEntityTypes.ListSessionEntityTypes]. message ListSessionEntityTypesRequest { // Required. The session to list all session entity types from. // Format: `projects//locations//agents//locations//agents//locations//agents//locations//agents//locations//agents//locations//agents//flows//transitionRouteGroups/`. string name = 1; // Required. The human-readable name of the transition route group, unique within - // the [Agent][google.cloud.dialogflow.cx.v3beta1.Agent]. The display name can be no longer than 30 characters. + // the [Agent][google.cloud.dialogflow.cx.v3.Agent]. The display name can be no longer than 30 characters. string display_name = 2 [(google.api.field_behavior) = REQUIRED]; - // Transition routes associated with the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup]. + // Transition routes associated with the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]. // Duplicate transition routes (i.e. using the same - // [`intent`][google.cloud.dialogflow.cx.v3beta1.TransitionRoute.intent]) are not allowed. + // [`intent`][google.cloud.dialogflow.cx.v3.TransitionRoute.intent]) are not allowed. // - // Note that the [`name`][google.cloud.dialogflow.cx.v3beta1.TransitionRoute.name] field is not used in the + // Note that the [`name`][google.cloud.dialogflow.cx.v3.TransitionRoute.name] field is not used in the // transition route group scope. repeated TransitionRoute transition_routes = 5; } -// The request message for [TransitionRouteGroups.ListTransitionRouteGroups][google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups.ListTransitionRouteGroups]. +// The request message for [TransitionRouteGroups.ListTransitionRouteGroups][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.ListTransitionRouteGroups]. message ListTransitionRouteGroupsRequest { // Required. The flow to list all transition route groups for. // Format: `projects//locations//agents//locations//agents//flows//transitionRouteGroups/`. string name = 1 [ @@ -168,7 +168,7 @@ message GetTransitionRouteGroupRequest { // The language to list transition route groups for. The field // [`messages`][TransitionRoute.trigger_fulfillment.messages] in - // [TransitionRoute][google.cloud.dialogflow.cx.v3beta1.TransitionRoute] is language dependent. + // [TransitionRoute][google.cloud.dialogflow.cx.v3.TransitionRoute] is language dependent. // // If not specified, the agent's default language is used. // [Many @@ -178,9 +178,9 @@ message GetTransitionRouteGroupRequest { string language_code = 2; } -// The request message for [TransitionRouteGroups.CreateTransitionRouteGroup][google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups.CreateTransitionRouteGroup]. +// The request message for [TransitionRouteGroups.CreateTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.CreateTransitionRouteGroup]. message CreateTransitionRouteGroupRequest { - // Required. The flow to create an [TransitionRouteGroup][google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup] for. + // Required. The flow to create an [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] for. // Format: `projects//locations//agents//flows/`. string parent = 1 [ @@ -195,7 +195,7 @@ message CreateTransitionRouteGroupRequest { // The language to list transition route groups for. The field // [`messages`][TransitionRoute.trigger_fulfillment.messages] in - // [TransitionRoute][google.cloud.dialogflow.cx.v3beta1.TransitionRoute] is language dependent. + // [TransitionRoute][google.cloud.dialogflow.cx.v3.TransitionRoute] is language dependent. // // If not specified, the agent's default language is used. // [Many @@ -205,7 +205,7 @@ message CreateTransitionRouteGroupRequest { string language_code = 3; } -// The request message for [TransitionRouteGroups.UpdateTransitionRouteGroup][google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups.UpdateTransitionRouteGroup]. +// The request message for [TransitionRouteGroups.UpdateTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.UpdateTransitionRouteGroup]. message UpdateTransitionRouteGroupRequest { // Required. The transition route group to update. TransitionRouteGroup transition_route_group = 1 [(google.api.field_behavior) = REQUIRED]; @@ -215,7 +215,7 @@ message UpdateTransitionRouteGroupRequest { // The language to list transition route groups for. The field // [`messages`][TransitionRoute.trigger_fulfillment.messages] in - // [TransitionRoute][google.cloud.dialogflow.cx.v3beta1.TransitionRoute] is language dependent. + // [TransitionRoute][google.cloud.dialogflow.cx.v3.TransitionRoute] is language dependent. // // If not specified, the agent's default language is used. // [Many @@ -225,9 +225,9 @@ message UpdateTransitionRouteGroupRequest { string language_code = 3; } -// The request message for [TransitionRouteGroups.DeleteTransitionRouteGroup][google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups.DeleteTransitionRouteGroup]. +// The request message for [TransitionRouteGroups.DeleteTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.DeleteTransitionRouteGroup]. message DeleteTransitionRouteGroupRequest { - // Required. The name of the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup] to delete. + // Required. The name of the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] to delete. // Format: `projects//locations//agents//flows//transitionRouteGroups/`. string name = 1 [ diff --git a/protos/google/cloud/dialogflow/cx/v3beta1/version.proto b/protos/google/cloud/dialogflow/cx/v3/version.proto similarity index 82% rename from protos/google/cloud/dialogflow/cx/v3beta1/version.proto rename to protos/google/cloud/dialogflow/cx/v3/version.proto index 819a6d3c..3850fd26 100644 --- a/protos/google/cloud/dialogflow/cx/v3beta1/version.proto +++ b/protos/google/cloud/dialogflow/cx/v3/version.proto @@ -14,53 +14,53 @@ syntax = "proto3"; -package google.cloud.dialogflow.cx.v3beta1; +package google.cloud.dialogflow.cx.v3; import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; -import "google/cloud/dialogflow/cx/v3beta1/flow.proto"; +import "google/cloud/dialogflow/cx/v3/flow.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; option cc_enable_arenas = true; -option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/cx/v3beta1;cx"; +option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3"; +option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/cx/v3;cx"; option java_multiple_files = true; option java_outer_classname = "VersionProto"; -option java_package = "com.google.cloud.dialogflow.cx.v3beta1"; +option java_package = "com.google.cloud.dialogflow.cx.v3"; option objc_class_prefix = "DF"; -// Service for managing [Versions][google.cloud.dialogflow.cx.v3beta1.Version]. +// Service for managing [Versions][google.cloud.dialogflow.cx.v3.Version]. service Versions { option (google.api.default_host) = "dialogflow.googleapis.com"; option (google.api.oauth_scopes) = "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.v3beta1.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: "/v3beta1/{parent=projects/*/locations/*/agents/*/flows/*}/versions" + get: "/v3/{parent=projects/*/locations/*/agents/*/flows/*}/versions" }; option (google.api.method_signature) = "parent"; } - // Retrieves the specified [Version][google.cloud.dialogflow.cx.v3beta1.Version]. + // Retrieves the specified [Version][google.cloud.dialogflow.cx.v3.Version]. rpc GetVersion(GetVersionRequest) returns (Version) { option (google.api.http) = { - get: "/v3beta1/{name=projects/*/locations/*/agents/*/flows/*/versions/*}" + get: "/v3/{name=projects/*/locations/*/agents/*/flows/*/versions/*}" }; option (google.api.method_signature) = "name"; } - // Creates a [Version][google.cloud.dialogflow.cx.v3beta1.Version] in the specified [Flow][google.cloud.dialogflow.cx.v3beta1.Flow]. + // Creates a [Version][google.cloud.dialogflow.cx.v3.Version] in the specified [Flow][google.cloud.dialogflow.cx.v3.Flow]. rpc CreateVersion(CreateVersionRequest) returns (google.longrunning.Operation) { option (google.api.http) = { - post: "/v3beta1/{parent=projects/*/locations/*/agents/*/flows/*}/versions" + post: "/v3/{parent=projects/*/locations/*/agents/*/flows/*}/versions" body: "version" }; option (google.api.method_signature) = "parent,version"; @@ -70,19 +70,19 @@ service Versions { }; } - // Updates the specified [Version][google.cloud.dialogflow.cx.v3beta1.Version]. + // Updates the specified [Version][google.cloud.dialogflow.cx.v3.Version]. rpc UpdateVersion(UpdateVersionRequest) returns (Version) { option (google.api.http) = { - patch: "/v3beta1/{version.name=projects/*/locations/*/agents/*/flows/*/versions/*}" + patch: "/v3/{version.name=projects/*/locations/*/agents/*/flows/*/versions/*}" body: "version" }; option (google.api.method_signature) = "version,update_mask"; } - // Deletes the specified [Version][google.cloud.dialogflow.cx.v3beta1.Version]. + // Deletes the specified [Version][google.cloud.dialogflow.cx.v3.Version]. rpc DeleteVersion(DeleteVersionRequest) returns (google.protobuf.Empty) { option (google.api.http) = { - delete: "/v3beta1/{name=projects/*/locations/*/agents/*/flows/*/versions/*}" + delete: "/v3/{name=projects/*/locations/*/agents/*/flows/*/versions/*}" }; option (google.api.method_signature) = "name"; } @@ -90,7 +90,7 @@ service Versions { // Loads a specified version to draft version. rpc LoadVersion(LoadVersionRequest) returns (google.longrunning.Operation) { option (google.api.http) = { - post: "/v3beta1/{name=projects/*/locations/*/agents/*/flows/*/versions/*}:load" + post: "/v3/{name=projects/*/locations/*/agents/*/flows/*/versions/*}:load" body: "*" }; option (google.api.method_signature) = "name"; @@ -102,7 +102,7 @@ service Versions { } // Metadata associated with the long running operation for -// [Versions.CreateVersion][google.cloud.dialogflow.cx.v3beta1.Versions.CreateVersion]. +// [Versions.CreateVersion][google.cloud.dialogflow.cx.v3.Versions.CreateVersion]. message CreateVersionOperationMetadata { // Name of the created version. // Format: `projects//locations//agents//locations//agents//flows/`. string parent = 1 [ @@ -177,7 +177,7 @@ message ListVersionsRequest { string page_token = 3; } -// The response message for [Versions.ListVersions][google.cloud.dialogflow.cx.v3beta1.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 @@ -189,9 +189,9 @@ message ListVersionsResponse { string next_page_token = 2; } -// The request message for [Versions.GetVersion][google.cloud.dialogflow.cx.v3beta1.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.v3beta1.Version]. + // Required. The name of the [Version][google.cloud.dialogflow.cx.v3.Version]. // Format: `projects//locations//agents//flows//versions/`. string name = 1 [ @@ -202,9 +202,9 @@ message GetVersionRequest { ]; } -// The request message for [Versions.CreateVersion][google.cloud.dialogflow.cx.v3beta1.Versions.CreateVersion]. +// The request message for [Versions.CreateVersion][google.cloud.dialogflow.cx.v3.Versions.CreateVersion]. message CreateVersionRequest { - // Required. The [Flow][google.cloud.dialogflow.cx.v3beta1.Flow] to create an [Version][google.cloud.dialogflow.cx.v3beta1.Version] for. + // 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 [ @@ -218,7 +218,7 @@ message CreateVersionRequest { Version version = 2 [(google.api.field_behavior) = REQUIRED]; } -// The request message for [Versions.UpdateVersion][google.cloud.dialogflow.cx.v3beta1.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]; @@ -228,9 +228,9 @@ message UpdateVersionRequest { google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; } -// The request message for [Versions.DeleteVersion][google.cloud.dialogflow.cx.v3beta1.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.v3beta1.Version] to delete. + // Required. The name of the [Version][google.cloud.dialogflow.cx.v3.Version] to delete. // Format: `projects//locations//agents//flows//versions/`. string name = 1 [ @@ -241,9 +241,9 @@ message DeleteVersionRequest { ]; } -// The request message for [Versions.LoadVersion][google.cloud.dialogflow.cx.v3beta1.Versions.LoadVersion]. +// The request message for [Versions.LoadVersion][google.cloud.dialogflow.cx.v3.Versions.LoadVersion]. message LoadVersionRequest { - // Required. The [Version][google.cloud.dialogflow.cx.v3beta1.Version] to be loaded to draft version. + // Required. The [Version][google.cloud.dialogflow.cx.v3.Version] to be loaded to draft version. // Format: `projects//locations//agents//flows//versions/`. string name = 1 [ diff --git a/protos/google/cloud/dialogflow/cx/v3beta1/webhook.proto b/protos/google/cloud/dialogflow/cx/v3/webhook.proto similarity index 83% rename from protos/google/cloud/dialogflow/cx/v3beta1/webhook.proto rename to protos/google/cloud/dialogflow/cx/v3/webhook.proto index e813bf30..4c7af2bc 100644 --- a/protos/google/cloud/dialogflow/cx/v3beta1/webhook.proto +++ b/protos/google/cloud/dialogflow/cx/v3/webhook.proto @@ -14,27 +14,27 @@ syntax = "proto3"; -package google.cloud.dialogflow.cx.v3beta1; +package google.cloud.dialogflow.cx.v3; import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; -import "google/cloud/dialogflow/cx/v3beta1/response_message.proto"; +import "google/cloud/dialogflow/cx/v3/response_message.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/struct.proto"; option cc_enable_arenas = true; -option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/cx/v3beta1;cx"; +option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3"; +option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/cx/v3;cx"; option java_multiple_files = true; option java_outer_classname = "WebhookProto"; -option java_package = "com.google.cloud.dialogflow.cx.v3beta1"; +option java_package = "com.google.cloud.dialogflow.cx.v3"; option objc_class_prefix = "DF"; -// Service for managing [Webhooks][google.cloud.dialogflow.cx.v3beta1.Webhook]. +// Service for managing [Webhooks][google.cloud.dialogflow.cx.v3.Webhook]. service Webhooks { option (google.api.default_host) = "dialogflow.googleapis.com"; option (google.api.oauth_scopes) = @@ -44,7 +44,7 @@ service Webhooks { // Returns the list of all webhooks in the specified agent. rpc ListWebhooks(ListWebhooksRequest) returns (ListWebhooksResponse) { option (google.api.http) = { - get: "/v3beta1/{parent=projects/*/locations/*/agents/*}/webhooks" + get: "/v3/{parent=projects/*/locations/*/agents/*}/webhooks" }; option (google.api.method_signature) = "parent"; } @@ -52,7 +52,7 @@ service Webhooks { // Retrieves the specified webhook. rpc GetWebhook(GetWebhookRequest) returns (Webhook) { option (google.api.http) = { - get: "/v3beta1/{name=projects/*/locations/*/agents/*/webhooks/*}" + get: "/v3/{name=projects/*/locations/*/agents/*/webhooks/*}" }; option (google.api.method_signature) = "name"; } @@ -60,7 +60,7 @@ service Webhooks { // Creates a webhook in the specified agent. rpc CreateWebhook(CreateWebhookRequest) returns (Webhook) { option (google.api.http) = { - post: "/v3beta1/{parent=projects/*/locations/*/agents/*}/webhooks" + post: "/v3/{parent=projects/*/locations/*/agents/*}/webhooks" body: "webhook" }; option (google.api.method_signature) = "parent,webhook"; @@ -69,7 +69,7 @@ service Webhooks { // Updates the specified webhook. rpc UpdateWebhook(UpdateWebhookRequest) returns (Webhook) { option (google.api.http) = { - patch: "/v3beta1/{webhook.name=projects/*/locations/*/agents/*/webhooks/*}" + patch: "/v3/{webhook.name=projects/*/locations/*/agents/*/webhooks/*}" body: "webhook" }; option (google.api.method_signature) = "webhook,update_mask"; @@ -78,7 +78,7 @@ service Webhooks { // Deletes the specified webhook. rpc DeleteWebhook(DeleteWebhookRequest) returns (google.protobuf.Empty) { option (google.api.http) = { - delete: "/v3beta1/{name=projects/*/locations/*/agents/*/webhooks/*}" + delete: "/v3/{name=projects/*/locations/*/agents/*/webhooks/*}" }; option (google.api.method_signature) = "name"; } @@ -111,8 +111,8 @@ message Webhook { } // The unique identifier of the webhook. - // Required for the [Webhooks.UpdateWebhook][google.cloud.dialogflow.cx.v3beta1.Webhooks.UpdateWebhook] method. - // [Webhooks.CreateWebhook][google.cloud.dialogflow.cx.v3beta1.Webhooks.CreateWebhook] populates the name automatically. + // 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; @@ -135,7 +135,7 @@ message Webhook { bool disabled = 5; } -// The request message for [Webhooks.ListWebhooks][google.cloud.dialogflow.cx.v3beta1.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/`. @@ -154,7 +154,7 @@ message ListWebhooksRequest { string page_token = 3; } -// The response message for [Webhooks.ListWebhooks][google.cloud.dialogflow.cx.v3beta1.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. @@ -165,7 +165,7 @@ message ListWebhooksResponse { string next_page_token = 2; } -// The request message for [Webhooks.GetWebhook][google.cloud.dialogflow.cx.v3beta1.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/`. @@ -193,7 +193,7 @@ message CreateWebhookRequest { Webhook webhook = 2 [(google.api.field_behavior) = REQUIRED]; } -// The request message for [Webhooks.UpdateWebhook][google.cloud.dialogflow.cx.v3beta1.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]; @@ -203,7 +203,7 @@ message UpdateWebhookRequest { google.protobuf.FieldMask update_mask = 2; } -// The request message for [Webhooks.DeleteWebhook][google.cloud.dialogflow.cx.v3beta1.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//locations//agents//intents/`. string last_matched_intent = 1 [(google.api.resource_reference) = { type: "dialogflow.googleapis.com/Intent" @@ -262,7 +262,7 @@ message WebhookRequest { map parameters = 2; } - // Always present. The unique identifier of the [DetectIntentResponse][google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse] that + // 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; @@ -281,10 +281,10 @@ message WebhookRequest { // The list of rich message responses to present to the user. Webhook can // choose to append or replace this list in - // [WebhookResponse.fulfillment_response][google.cloud.dialogflow.cx.v3beta1.WebhookResponse.fulfillment_response]; + // [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.v3beta1.QueryParameters.payload]. + // Custom data set in [QueryParameters.payload][google.cloud.dialogflow.cx.v3.QueryParameters.payload]. google.protobuf.Struct payload = 8; } @@ -325,7 +325,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.v3beta1.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 @@ -371,43 +371,43 @@ message PageInfo { FILLED = 3; } - // Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3beta1.WebhookRequest]. Required for - // [WebhookResponse][google.cloud.dialogflow.cx.v3beta1.WebhookResponse]. + // 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.v3beta1.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3beta1.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.v3beta1.WebhookRequest]. Required for - // [WebhookResponse][google.cloud.dialogflow.cx.v3beta1.WebhookResponse]. The state of the parameter. This field can be set - // to [INVALID][google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo.ParameterState.INVALID] by + // 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.v3beta1.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3beta1.WebhookResponse]. + // 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.v3beta1.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3beta1.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.v3beta1.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3beta1.WebhookResponse]. + // 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.v3beta1.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3beta1.WebhookResponse]. + // 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/`. @@ -415,15 +415,15 @@ message PageInfo { type: "dialogflow.googleapis.com/Page" }]; - // Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3beta1.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3beta1.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.v3beta1.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3beta1.WebhookResponse]. - // The unique identifier of the [session][google.cloud.dialogflow.cx.v3beta1.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 user. // Format: `projects//locations//agents//sessions/`. @@ -431,11 +431,11 @@ message SessionInfo { type: "dialogflow.googleapis.com/Session" }]; - // Optional for [WebhookRequest][google.cloud.dialogflow.cx.v3beta1.WebhookRequest]. Optional for [WebhookResponse][google.cloud.dialogflow.cx.v3beta1.WebhookResponse]. + // 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.v3beta1.WebhookResponse]. The map is keyed by parameters' + // 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 874d49f4..e107703d 100644 --- a/protos/protos.d.ts +++ b/protos/protos.d.ts @@ -26,8 +26,8 @@ export namespace google { /** Namespace cx. */ namespace cx { - /** Namespace v3beta1. */ - namespace v3beta1 { + /** Namespace v3. */ + namespace v3 { /** Represents an Agents */ class Agents extends $protobuf.rpc.Service { @@ -54,146 +54,146 @@ export namespace google { * @param request ListAgentsRequest message or plain object * @param callback Node-style callback called with the error, if any, and ListAgentsResponse */ - public listAgents(request: google.cloud.dialogflow.cx.v3beta1.IListAgentsRequest, callback: google.cloud.dialogflow.cx.v3beta1.Agents.ListAgentsCallback): void; + public listAgents(request: google.cloud.dialogflow.cx.v3.IListAgentsRequest, callback: google.cloud.dialogflow.cx.v3.Agents.ListAgentsCallback): void; /** * Calls ListAgents. * @param request ListAgentsRequest message or plain object * @returns Promise */ - public listAgents(request: google.cloud.dialogflow.cx.v3beta1.IListAgentsRequest): Promise; + public listAgents(request: google.cloud.dialogflow.cx.v3.IListAgentsRequest): Promise; /** * Calls GetAgent. * @param request GetAgentRequest message or plain object * @param callback Node-style callback called with the error, if any, and Agent */ - public getAgent(request: google.cloud.dialogflow.cx.v3beta1.IGetAgentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Agents.GetAgentCallback): void; + public getAgent(request: google.cloud.dialogflow.cx.v3.IGetAgentRequest, callback: google.cloud.dialogflow.cx.v3.Agents.GetAgentCallback): void; /** * Calls GetAgent. * @param request GetAgentRequest message or plain object * @returns Promise */ - public getAgent(request: google.cloud.dialogflow.cx.v3beta1.IGetAgentRequest): Promise; + public getAgent(request: google.cloud.dialogflow.cx.v3.IGetAgentRequest): Promise; /** * Calls CreateAgent. * @param request CreateAgentRequest message or plain object * @param callback Node-style callback called with the error, if any, and Agent */ - public createAgent(request: google.cloud.dialogflow.cx.v3beta1.ICreateAgentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Agents.CreateAgentCallback): void; + public createAgent(request: google.cloud.dialogflow.cx.v3.ICreateAgentRequest, callback: google.cloud.dialogflow.cx.v3.Agents.CreateAgentCallback): void; /** * Calls CreateAgent. * @param request CreateAgentRequest message or plain object * @returns Promise */ - public createAgent(request: google.cloud.dialogflow.cx.v3beta1.ICreateAgentRequest): Promise; + public createAgent(request: google.cloud.dialogflow.cx.v3.ICreateAgentRequest): Promise; /** * Calls UpdateAgent. * @param request UpdateAgentRequest message or plain object * @param callback Node-style callback called with the error, if any, and Agent */ - public updateAgent(request: google.cloud.dialogflow.cx.v3beta1.IUpdateAgentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Agents.UpdateAgentCallback): void; + public updateAgent(request: google.cloud.dialogflow.cx.v3.IUpdateAgentRequest, callback: google.cloud.dialogflow.cx.v3.Agents.UpdateAgentCallback): void; /** * Calls UpdateAgent. * @param request UpdateAgentRequest message or plain object * @returns Promise */ - public updateAgent(request: google.cloud.dialogflow.cx.v3beta1.IUpdateAgentRequest): Promise; + public updateAgent(request: google.cloud.dialogflow.cx.v3.IUpdateAgentRequest): Promise; /** * Calls DeleteAgent. * @param request DeleteAgentRequest message or plain object * @param callback Node-style callback called with the error, if any, and Empty */ - public deleteAgent(request: google.cloud.dialogflow.cx.v3beta1.IDeleteAgentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Agents.DeleteAgentCallback): void; + public deleteAgent(request: google.cloud.dialogflow.cx.v3.IDeleteAgentRequest, callback: google.cloud.dialogflow.cx.v3.Agents.DeleteAgentCallback): void; /** * Calls DeleteAgent. * @param request DeleteAgentRequest message or plain object * @returns Promise */ - public deleteAgent(request: google.cloud.dialogflow.cx.v3beta1.IDeleteAgentRequest): Promise; + public deleteAgent(request: google.cloud.dialogflow.cx.v3.IDeleteAgentRequest): Promise; /** * Calls ExportAgent. * @param request ExportAgentRequest message or plain object * @param callback Node-style callback called with the error, if any, and Operation */ - public exportAgent(request: google.cloud.dialogflow.cx.v3beta1.IExportAgentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Agents.ExportAgentCallback): void; + public exportAgent(request: google.cloud.dialogflow.cx.v3.IExportAgentRequest, callback: google.cloud.dialogflow.cx.v3.Agents.ExportAgentCallback): void; /** * Calls ExportAgent. * @param request ExportAgentRequest message or plain object * @returns Promise */ - public exportAgent(request: google.cloud.dialogflow.cx.v3beta1.IExportAgentRequest): Promise; + public exportAgent(request: google.cloud.dialogflow.cx.v3.IExportAgentRequest): Promise; /** * Calls RestoreAgent. * @param request RestoreAgentRequest message or plain object * @param callback Node-style callback called with the error, if any, and Operation */ - public restoreAgent(request: google.cloud.dialogflow.cx.v3beta1.IRestoreAgentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Agents.RestoreAgentCallback): void; + public restoreAgent(request: google.cloud.dialogflow.cx.v3.IRestoreAgentRequest, callback: google.cloud.dialogflow.cx.v3.Agents.RestoreAgentCallback): void; /** * Calls RestoreAgent. * @param request RestoreAgentRequest message or plain object * @returns Promise */ - public restoreAgent(request: google.cloud.dialogflow.cx.v3beta1.IRestoreAgentRequest): Promise; + public restoreAgent(request: google.cloud.dialogflow.cx.v3.IRestoreAgentRequest): Promise; } namespace Agents { /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Agents#listAgents}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Agents#listAgents}. * @param error Error, if any * @param [response] ListAgentsResponse */ - type ListAgentsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse) => void; + type ListAgentsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.ListAgentsResponse) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Agents#getAgent}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Agents#getAgent}. * @param error Error, if any * @param [response] Agent */ - type GetAgentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Agent) => void; + type GetAgentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Agent) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Agents#createAgent}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Agents#createAgent}. * @param error Error, if any * @param [response] Agent */ - type CreateAgentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Agent) => void; + type CreateAgentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Agent) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Agents#updateAgent}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Agents#updateAgent}. * @param error Error, if any * @param [response] Agent */ - type UpdateAgentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Agent) => void; + type UpdateAgentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Agent) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Agents#deleteAgent}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Agents#deleteAgent}. * @param error Error, if any * @param [response] Empty */ type DeleteAgentCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Agents#exportAgent}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Agents#exportAgent}. * @param error Error, if any * @param [response] Operation */ type ExportAgentCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Agents#restoreAgent}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Agents#restoreAgent}. * @param error Error, if any * @param [response] Operation */ @@ -214,7 +214,7 @@ export namespace google { * Constructs a new SpeechToTextSettings. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ISpeechToTextSettings); + constructor(properties?: google.cloud.dialogflow.cx.v3.ISpeechToTextSettings); /** SpeechToTextSettings enableSpeechAdaptation. */ public enableSpeechAdaptation: boolean; @@ -224,23 +224,23 @@ export namespace google { * @param [properties] Properties to set * @returns SpeechToTextSettings instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ISpeechToTextSettings): google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings; + public static create(properties?: google.cloud.dialogflow.cx.v3.ISpeechToTextSettings): google.cloud.dialogflow.cx.v3.SpeechToTextSettings; /** - * Encodes the specified SpeechToTextSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings.verify|verify} messages. + * Encodes the specified SpeechToTextSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SpeechToTextSettings.verify|verify} messages. * @param message SpeechToTextSettings message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ISpeechToTextSettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ISpeechToTextSettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SpeechToTextSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings.verify|verify} messages. + * Encodes the specified SpeechToTextSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SpeechToTextSettings.verify|verify} messages. * @param message SpeechToTextSettings message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ISpeechToTextSettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ISpeechToTextSettings, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a SpeechToTextSettings message from the specified reader or buffer. @@ -250,7 +250,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.SpeechToTextSettings; /** * Decodes a SpeechToTextSettings message from the specified reader or buffer, length delimited. @@ -259,7 +259,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.SpeechToTextSettings; /** * Verifies a SpeechToTextSettings message. @@ -273,7 +273,7 @@ export namespace google { * @param object Plain object * @returns SpeechToTextSettings */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.SpeechToTextSettings; /** * Creates a plain object from a SpeechToTextSettings message. Also converts values to other types if specified. @@ -281,7 +281,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.SpeechToTextSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this SpeechToTextSettings to JSON. @@ -312,7 +312,7 @@ export namespace google { avatarUri?: (string|null); /** Agent speechToTextSettings */ - speechToTextSettings?: (google.cloud.dialogflow.cx.v3beta1.ISpeechToTextSettings|null); + speechToTextSettings?: (google.cloud.dialogflow.cx.v3.ISpeechToTextSettings|null); /** Agent startFlow */ startFlow?: (string|null); @@ -331,7 +331,7 @@ export namespace google { * Constructs a new Agent. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IAgent); + constructor(properties?: google.cloud.dialogflow.cx.v3.IAgent); /** Agent name. */ public name: string; @@ -352,7 +352,7 @@ export namespace google { public avatarUri: string; /** Agent speechToTextSettings. */ - public speechToTextSettings?: (google.cloud.dialogflow.cx.v3beta1.ISpeechToTextSettings|null); + public speechToTextSettings?: (google.cloud.dialogflow.cx.v3.ISpeechToTextSettings|null); /** Agent startFlow. */ public startFlow: string; @@ -368,23 +368,23 @@ export namespace google { * @param [properties] Properties to set * @returns Agent instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IAgent): google.cloud.dialogflow.cx.v3beta1.Agent; + public static create(properties?: google.cloud.dialogflow.cx.v3.IAgent): google.cloud.dialogflow.cx.v3.Agent; /** - * Encodes the specified Agent message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Agent.verify|verify} messages. + * Encodes the specified Agent message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Agent.verify|verify} messages. * @param message Agent message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IAgent, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IAgent, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Agent message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Agent.verify|verify} messages. + * Encodes the specified Agent message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Agent.verify|verify} messages. * @param message Agent message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IAgent, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IAgent, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an Agent message from the specified reader or buffer. @@ -394,7 +394,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Agent; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Agent; /** * Decodes an Agent message from the specified reader or buffer, length delimited. @@ -403,7 +403,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Agent; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Agent; /** * Verifies an Agent message. @@ -417,7 +417,7 @@ export namespace google { * @param object Plain object * @returns Agent */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Agent; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Agent; /** * Creates a plain object from an Agent message. Also converts values to other types if specified. @@ -425,7 +425,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Agent, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.Agent, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this Agent to JSON. @@ -454,7 +454,7 @@ export namespace google { * Constructs a new ListAgentsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListAgentsRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IListAgentsRequest); /** ListAgentsRequest parent. */ public parent: string; @@ -470,23 +470,23 @@ export namespace google { * @param [properties] Properties to set * @returns ListAgentsRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListAgentsRequest): google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IListAgentsRequest): google.cloud.dialogflow.cx.v3.ListAgentsRequest; /** - * Encodes the specified ListAgentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest.verify|verify} messages. + * Encodes the specified ListAgentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListAgentsRequest.verify|verify} messages. * @param message ListAgentsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListAgentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IListAgentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListAgentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest.verify|verify} messages. + * Encodes the specified ListAgentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListAgentsRequest.verify|verify} messages. * @param message ListAgentsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListAgentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListAgentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a ListAgentsRequest message from the specified reader or buffer. @@ -496,7 +496,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListAgentsRequest; /** * Decodes a ListAgentsRequest message from the specified reader or buffer, length delimited. @@ -505,7 +505,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListAgentsRequest; /** * Verifies a ListAgentsRequest message. @@ -519,7 +519,7 @@ export namespace google { * @param object Plain object * @returns ListAgentsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListAgentsRequest; /** * Creates a plain object from a ListAgentsRequest message. Also converts values to other types if specified. @@ -527,7 +527,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ListAgentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this ListAgentsRequest to JSON. @@ -540,7 +540,7 @@ export namespace google { interface IListAgentsResponse { /** ListAgentsResponse agents */ - agents?: (google.cloud.dialogflow.cx.v3beta1.IAgent[]|null); + agents?: (google.cloud.dialogflow.cx.v3.IAgent[]|null); /** ListAgentsResponse nextPageToken */ nextPageToken?: (string|null); @@ -553,10 +553,10 @@ export namespace google { * Constructs a new ListAgentsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListAgentsResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3.IListAgentsResponse); /** ListAgentsResponse agents. */ - public agents: google.cloud.dialogflow.cx.v3beta1.IAgent[]; + public agents: google.cloud.dialogflow.cx.v3.IAgent[]; /** ListAgentsResponse nextPageToken. */ public nextPageToken: string; @@ -566,23 +566,23 @@ export namespace google { * @param [properties] Properties to set * @returns ListAgentsResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListAgentsResponse): google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3.IListAgentsResponse): google.cloud.dialogflow.cx.v3.ListAgentsResponse; /** - * Encodes the specified ListAgentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse.verify|verify} messages. + * Encodes the specified ListAgentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListAgentsResponse.verify|verify} messages. * @param message ListAgentsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListAgentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IListAgentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListAgentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse.verify|verify} messages. + * Encodes the specified ListAgentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListAgentsResponse.verify|verify} messages. * @param message ListAgentsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListAgentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListAgentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a ListAgentsResponse message from the specified reader or buffer. @@ -592,7 +592,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListAgentsResponse; /** * Decodes a ListAgentsResponse message from the specified reader or buffer, length delimited. @@ -601,7 +601,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListAgentsResponse; /** * Verifies a ListAgentsResponse message. @@ -615,7 +615,7 @@ export namespace google { * @param object Plain object * @returns ListAgentsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListAgentsResponse; /** * Creates a plain object from a ListAgentsResponse message. Also converts values to other types if specified. @@ -623,7 +623,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ListAgentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this ListAgentsResponse to JSON. @@ -646,7 +646,7 @@ export namespace google { * Constructs a new GetAgentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetAgentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IGetAgentRequest); /** GetAgentRequest name. */ public name: string; @@ -656,23 +656,23 @@ export namespace google { * @param [properties] Properties to set * @returns GetAgentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetAgentRequest): google.cloud.dialogflow.cx.v3beta1.GetAgentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IGetAgentRequest): google.cloud.dialogflow.cx.v3.GetAgentRequest; /** - * Encodes the specified GetAgentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetAgentRequest.verify|verify} messages. + * Encodes the specified GetAgentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetAgentRequest.verify|verify} messages. * @param message GetAgentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGetAgentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IGetAgentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetAgentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetAgentRequest.verify|verify} messages. + * Encodes the specified GetAgentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetAgentRequest.verify|verify} messages. * @param message GetAgentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGetAgentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IGetAgentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a GetAgentRequest message from the specified reader or buffer. @@ -682,7 +682,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.GetAgentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.GetAgentRequest; /** * Decodes a GetAgentRequest message from the specified reader or buffer, length delimited. @@ -691,7 +691,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.GetAgentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.GetAgentRequest; /** * Verifies a GetAgentRequest message. @@ -705,7 +705,7 @@ export namespace google { * @param object Plain object * @returns GetAgentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetAgentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.GetAgentRequest; /** * Creates a plain object from a GetAgentRequest message. Also converts values to other types if specified. @@ -713,7 +713,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GetAgentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.GetAgentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this GetAgentRequest to JSON. @@ -729,7 +729,7 @@ export namespace google { parent?: (string|null); /** CreateAgentRequest agent */ - agent?: (google.cloud.dialogflow.cx.v3beta1.IAgent|null); + agent?: (google.cloud.dialogflow.cx.v3.IAgent|null); } /** Represents a CreateAgentRequest. */ @@ -739,36 +739,36 @@ export namespace google { * Constructs a new CreateAgentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateAgentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.ICreateAgentRequest); /** CreateAgentRequest parent. */ public parent: string; /** CreateAgentRequest agent. */ - public agent?: (google.cloud.dialogflow.cx.v3beta1.IAgent|null); + public agent?: (google.cloud.dialogflow.cx.v3.IAgent|null); /** * Creates a new CreateAgentRequest instance using the specified properties. * @param [properties] Properties to set * @returns CreateAgentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateAgentRequest): google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.ICreateAgentRequest): google.cloud.dialogflow.cx.v3.CreateAgentRequest; /** - * Encodes the specified CreateAgentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest.verify|verify} messages. + * Encodes the specified CreateAgentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateAgentRequest.verify|verify} messages. * @param message CreateAgentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ICreateAgentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ICreateAgentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateAgentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest.verify|verify} messages. + * Encodes the specified CreateAgentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateAgentRequest.verify|verify} messages. * @param message CreateAgentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ICreateAgentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICreateAgentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a CreateAgentRequest message from the specified reader or buffer. @@ -778,7 +778,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.CreateAgentRequest; /** * Decodes a CreateAgentRequest message from the specified reader or buffer, length delimited. @@ -787,7 +787,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.CreateAgentRequest; /** * Verifies a CreateAgentRequest message. @@ -801,7 +801,7 @@ export namespace google { * @param object Plain object * @returns CreateAgentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CreateAgentRequest; /** * Creates a plain object from a CreateAgentRequest message. Also converts values to other types if specified. @@ -809,7 +809,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.CreateAgentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this CreateAgentRequest to JSON. @@ -822,7 +822,7 @@ export namespace google { interface IUpdateAgentRequest { /** UpdateAgentRequest agent */ - agent?: (google.cloud.dialogflow.cx.v3beta1.IAgent|null); + agent?: (google.cloud.dialogflow.cx.v3.IAgent|null); /** UpdateAgentRequest updateMask */ updateMask?: (google.protobuf.IFieldMask|null); @@ -835,10 +835,10 @@ export namespace google { * Constructs a new UpdateAgentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateAgentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IUpdateAgentRequest); /** UpdateAgentRequest agent. */ - public agent?: (google.cloud.dialogflow.cx.v3beta1.IAgent|null); + public agent?: (google.cloud.dialogflow.cx.v3.IAgent|null); /** UpdateAgentRequest updateMask. */ public updateMask?: (google.protobuf.IFieldMask|null); @@ -848,23 +848,23 @@ export namespace google { * @param [properties] Properties to set * @returns UpdateAgentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateAgentRequest): google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IUpdateAgentRequest): google.cloud.dialogflow.cx.v3.UpdateAgentRequest; /** - * Encodes the specified UpdateAgentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest.verify|verify} messages. + * Encodes the specified UpdateAgentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateAgentRequest.verify|verify} messages. * @param message UpdateAgentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IUpdateAgentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IUpdateAgentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateAgentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest.verify|verify} messages. + * Encodes the specified UpdateAgentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateAgentRequest.verify|verify} messages. * @param message UpdateAgentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IUpdateAgentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IUpdateAgentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an UpdateAgentRequest message from the specified reader or buffer. @@ -874,7 +874,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.UpdateAgentRequest; /** * Decodes an UpdateAgentRequest message from the specified reader or buffer, length delimited. @@ -883,7 +883,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.UpdateAgentRequest; /** * Verifies an UpdateAgentRequest message. @@ -897,7 +897,7 @@ export namespace google { * @param object Plain object * @returns UpdateAgentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.UpdateAgentRequest; /** * Creates a plain object from an UpdateAgentRequest message. Also converts values to other types if specified. @@ -905,7 +905,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.UpdateAgentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this UpdateAgentRequest to JSON. @@ -928,7 +928,7 @@ export namespace google { * Constructs a new DeleteAgentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteAgentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IDeleteAgentRequest); /** DeleteAgentRequest name. */ public name: string; @@ -938,23 +938,23 @@ export namespace google { * @param [properties] Properties to set * @returns DeleteAgentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteAgentRequest): google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IDeleteAgentRequest): google.cloud.dialogflow.cx.v3.DeleteAgentRequest; /** - * Encodes the specified DeleteAgentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest.verify|verify} messages. + * Encodes the specified DeleteAgentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteAgentRequest.verify|verify} messages. * @param message DeleteAgentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IDeleteAgentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IDeleteAgentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteAgentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest.verify|verify} messages. + * Encodes the specified DeleteAgentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteAgentRequest.verify|verify} messages. * @param message DeleteAgentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IDeleteAgentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDeleteAgentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a DeleteAgentRequest message from the specified reader or buffer. @@ -964,7 +964,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.DeleteAgentRequest; /** * Decodes a DeleteAgentRequest message from the specified reader or buffer, length delimited. @@ -973,7 +973,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.DeleteAgentRequest; /** * Verifies a DeleteAgentRequest message. @@ -987,7 +987,7 @@ export namespace google { * @param object Plain object * @returns DeleteAgentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.DeleteAgentRequest; /** * Creates a plain object from a DeleteAgentRequest message. Also converts values to other types if specified. @@ -995,7 +995,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.DeleteAgentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this DeleteAgentRequest to JSON. @@ -1021,7 +1021,7 @@ export namespace google { * Constructs a new ExportAgentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IExportAgentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IExportAgentRequest); /** ExportAgentRequest name. */ public name: string; @@ -1034,23 +1034,23 @@ export namespace google { * @param [properties] Properties to set * @returns ExportAgentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IExportAgentRequest): google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IExportAgentRequest): google.cloud.dialogflow.cx.v3.ExportAgentRequest; /** - * Encodes the specified ExportAgentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.verify|verify} messages. + * Encodes the specified ExportAgentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportAgentRequest.verify|verify} messages. * @param message ExportAgentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IExportAgentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IExportAgentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExportAgentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.verify|verify} messages. + * Encodes the specified ExportAgentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportAgentRequest.verify|verify} messages. * @param message ExportAgentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IExportAgentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IExportAgentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an ExportAgentRequest message from the specified reader or buffer. @@ -1060,7 +1060,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ExportAgentRequest; /** * Decodes an ExportAgentRequest message from the specified reader or buffer, length delimited. @@ -1069,7 +1069,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ExportAgentRequest; /** * Verifies an ExportAgentRequest message. @@ -1083,7 +1083,7 @@ export namespace google { * @param object Plain object * @returns ExportAgentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ExportAgentRequest; /** * Creates a plain object from an ExportAgentRequest message. Also converts values to other types if specified. @@ -1091,7 +1091,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ExportAgentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this ExportAgentRequest to JSON. @@ -1117,7 +1117,7 @@ export namespace google { * Constructs a new ExportAgentResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IExportAgentResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3.IExportAgentResponse); /** ExportAgentResponse agentUri. */ public agentUri: string; @@ -1133,23 +1133,23 @@ export namespace google { * @param [properties] Properties to set * @returns ExportAgentResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IExportAgentResponse): google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3.IExportAgentResponse): google.cloud.dialogflow.cx.v3.ExportAgentResponse; /** - * Encodes the specified ExportAgentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse.verify|verify} messages. + * Encodes the specified ExportAgentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportAgentResponse.verify|verify} messages. * @param message ExportAgentResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IExportAgentResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IExportAgentResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExportAgentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse.verify|verify} messages. + * Encodes the specified ExportAgentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportAgentResponse.verify|verify} messages. * @param message ExportAgentResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IExportAgentResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IExportAgentResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an ExportAgentResponse message from the specified reader or buffer. @@ -1159,7 +1159,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ExportAgentResponse; /** * Decodes an ExportAgentResponse message from the specified reader or buffer, length delimited. @@ -1168,7 +1168,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ExportAgentResponse; /** * Verifies an ExportAgentResponse message. @@ -1182,7 +1182,7 @@ export namespace google { * @param object Plain object * @returns ExportAgentResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ExportAgentResponse; /** * Creates a plain object from an ExportAgentResponse message. Also converts values to other types if specified. @@ -1190,7 +1190,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ExportAgentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this ExportAgentResponse to JSON. @@ -1219,7 +1219,7 @@ export namespace google { * Constructs a new RestoreAgentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IRestoreAgentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IRestoreAgentRequest); /** RestoreAgentRequest name. */ public name: string; @@ -1238,23 +1238,23 @@ export namespace google { * @param [properties] Properties to set * @returns RestoreAgentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IRestoreAgentRequest): google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IRestoreAgentRequest): google.cloud.dialogflow.cx.v3.RestoreAgentRequest; /** - * Encodes the specified RestoreAgentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.verify|verify} messages. + * Encodes the specified RestoreAgentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RestoreAgentRequest.verify|verify} messages. * @param message RestoreAgentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IRestoreAgentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IRestoreAgentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RestoreAgentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.verify|verify} messages. + * Encodes the specified RestoreAgentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RestoreAgentRequest.verify|verify} messages. * @param message RestoreAgentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IRestoreAgentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IRestoreAgentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a RestoreAgentRequest message from the specified reader or buffer. @@ -1264,7 +1264,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.RestoreAgentRequest; /** * Decodes a RestoreAgentRequest message from the specified reader or buffer, length delimited. @@ -1273,7 +1273,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.RestoreAgentRequest; /** * Verifies a RestoreAgentRequest message. @@ -1287,7 +1287,7 @@ export namespace google { * @param object Plain object * @returns RestoreAgentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.RestoreAgentRequest; /** * Creates a plain object from a RestoreAgentRequest message. Also converts values to other types if specified. @@ -1295,7 +1295,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.RestoreAgentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this RestoreAgentRequest to JSON. @@ -1329,125 +1329,125 @@ export namespace google { * @param request CreateFlowRequest message or plain object * @param callback Node-style callback called with the error, if any, and Flow */ - public createFlow(request: google.cloud.dialogflow.cx.v3beta1.ICreateFlowRequest, callback: google.cloud.dialogflow.cx.v3beta1.Flows.CreateFlowCallback): void; + public createFlow(request: google.cloud.dialogflow.cx.v3.ICreateFlowRequest, callback: google.cloud.dialogflow.cx.v3.Flows.CreateFlowCallback): void; /** * Calls CreateFlow. * @param request CreateFlowRequest message or plain object * @returns Promise */ - public createFlow(request: google.cloud.dialogflow.cx.v3beta1.ICreateFlowRequest): Promise; + public createFlow(request: google.cloud.dialogflow.cx.v3.ICreateFlowRequest): Promise; /** * Calls DeleteFlow. * @param request DeleteFlowRequest message or plain object * @param callback Node-style callback called with the error, if any, and Empty */ - public deleteFlow(request: google.cloud.dialogflow.cx.v3beta1.IDeleteFlowRequest, callback: google.cloud.dialogflow.cx.v3beta1.Flows.DeleteFlowCallback): void; + public deleteFlow(request: google.cloud.dialogflow.cx.v3.IDeleteFlowRequest, callback: google.cloud.dialogflow.cx.v3.Flows.DeleteFlowCallback): void; /** * Calls DeleteFlow. * @param request DeleteFlowRequest message or plain object * @returns Promise */ - public deleteFlow(request: google.cloud.dialogflow.cx.v3beta1.IDeleteFlowRequest): Promise; + public deleteFlow(request: google.cloud.dialogflow.cx.v3.IDeleteFlowRequest): Promise; /** * Calls ListFlows. * @param request ListFlowsRequest message or plain object * @param callback Node-style callback called with the error, if any, and ListFlowsResponse */ - public listFlows(request: google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest, callback: google.cloud.dialogflow.cx.v3beta1.Flows.ListFlowsCallback): void; + public listFlows(request: google.cloud.dialogflow.cx.v3.IListFlowsRequest, callback: google.cloud.dialogflow.cx.v3.Flows.ListFlowsCallback): void; /** * Calls ListFlows. * @param request ListFlowsRequest message or plain object * @returns Promise */ - public listFlows(request: google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest): Promise; + public listFlows(request: google.cloud.dialogflow.cx.v3.IListFlowsRequest): Promise; /** * Calls GetFlow. * @param request GetFlowRequest message or plain object * @param callback Node-style callback called with the error, if any, and Flow */ - public getFlow(request: google.cloud.dialogflow.cx.v3beta1.IGetFlowRequest, callback: google.cloud.dialogflow.cx.v3beta1.Flows.GetFlowCallback): void; + public getFlow(request: google.cloud.dialogflow.cx.v3.IGetFlowRequest, callback: google.cloud.dialogflow.cx.v3.Flows.GetFlowCallback): void; /** * Calls GetFlow. * @param request GetFlowRequest message or plain object * @returns Promise */ - public getFlow(request: google.cloud.dialogflow.cx.v3beta1.IGetFlowRequest): Promise; + public getFlow(request: google.cloud.dialogflow.cx.v3.IGetFlowRequest): Promise; /** * Calls UpdateFlow. * @param request UpdateFlowRequest message or plain object * @param callback Node-style callback called with the error, if any, and Flow */ - public updateFlow(request: google.cloud.dialogflow.cx.v3beta1.IUpdateFlowRequest, callback: google.cloud.dialogflow.cx.v3beta1.Flows.UpdateFlowCallback): void; + public updateFlow(request: google.cloud.dialogflow.cx.v3.IUpdateFlowRequest, callback: google.cloud.dialogflow.cx.v3.Flows.UpdateFlowCallback): void; /** * Calls UpdateFlow. * @param request UpdateFlowRequest message or plain object * @returns Promise */ - public updateFlow(request: google.cloud.dialogflow.cx.v3beta1.IUpdateFlowRequest): Promise; + public updateFlow(request: google.cloud.dialogflow.cx.v3.IUpdateFlowRequest): Promise; /** * Calls TrainFlow. * @param request TrainFlowRequest message or plain object * @param callback Node-style callback called with the error, if any, and Operation */ - public trainFlow(request: google.cloud.dialogflow.cx.v3beta1.ITrainFlowRequest, callback: google.cloud.dialogflow.cx.v3beta1.Flows.TrainFlowCallback): void; + public trainFlow(request: google.cloud.dialogflow.cx.v3.ITrainFlowRequest, callback: google.cloud.dialogflow.cx.v3.Flows.TrainFlowCallback): void; /** * Calls TrainFlow. * @param request TrainFlowRequest message or plain object * @returns Promise */ - public trainFlow(request: google.cloud.dialogflow.cx.v3beta1.ITrainFlowRequest): Promise; + public trainFlow(request: google.cloud.dialogflow.cx.v3.ITrainFlowRequest): Promise; } namespace Flows { /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows#createFlow}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Flows#createFlow}. * @param error Error, if any * @param [response] Flow */ - type CreateFlowCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Flow) => void; + type CreateFlowCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Flow) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows#deleteFlow}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Flows#deleteFlow}. * @param error Error, if any * @param [response] Empty */ type DeleteFlowCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows#listFlows}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Flows#listFlows}. * @param error Error, if any * @param [response] ListFlowsResponse */ - type ListFlowsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse) => void; + type ListFlowsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.ListFlowsResponse) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows#getFlow}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Flows#getFlow}. * @param error Error, if any * @param [response] Flow */ - type GetFlowCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Flow) => void; + type GetFlowCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Flow) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows#updateFlow}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Flows#updateFlow}. * @param error Error, if any * @param [response] Flow */ - type UpdateFlowCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Flow) => void; + type UpdateFlowCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Flow) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows#trainFlow}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Flows#trainFlow}. * @param error Error, if any * @param [response] Operation */ @@ -1458,13 +1458,13 @@ export namespace google { interface INluSettings { /** NluSettings modelType */ - modelType?: (google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelType|keyof typeof google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelType|null); + modelType?: (google.cloud.dialogflow.cx.v3.NluSettings.ModelType|keyof typeof google.cloud.dialogflow.cx.v3.NluSettings.ModelType|null); /** NluSettings classificationThreshold */ classificationThreshold?: (number|null); /** NluSettings modelTrainingMode */ - modelTrainingMode?: (google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelTrainingMode|keyof typeof google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelTrainingMode|null); + modelTrainingMode?: (google.cloud.dialogflow.cx.v3.NluSettings.ModelTrainingMode|keyof typeof google.cloud.dialogflow.cx.v3.NluSettings.ModelTrainingMode|null); } /** Represents a NluSettings. */ @@ -1474,39 +1474,39 @@ export namespace google { * Constructs a new NluSettings. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.INluSettings); + constructor(properties?: google.cloud.dialogflow.cx.v3.INluSettings); /** NluSettings modelType. */ - public modelType: (google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelType|keyof typeof google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelType); + public modelType: (google.cloud.dialogflow.cx.v3.NluSettings.ModelType|keyof typeof google.cloud.dialogflow.cx.v3.NluSettings.ModelType); /** NluSettings classificationThreshold. */ public classificationThreshold: number; /** NluSettings modelTrainingMode. */ - public modelTrainingMode: (google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelTrainingMode|keyof typeof google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelTrainingMode); + public modelTrainingMode: (google.cloud.dialogflow.cx.v3.NluSettings.ModelTrainingMode|keyof typeof google.cloud.dialogflow.cx.v3.NluSettings.ModelTrainingMode); /** * Creates a new NluSettings instance using the specified properties. * @param [properties] Properties to set * @returns NluSettings instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.INluSettings): google.cloud.dialogflow.cx.v3beta1.NluSettings; + public static create(properties?: google.cloud.dialogflow.cx.v3.INluSettings): google.cloud.dialogflow.cx.v3.NluSettings; /** - * Encodes the specified NluSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.NluSettings.verify|verify} messages. + * Encodes the specified NluSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.NluSettings.verify|verify} messages. * @param message NluSettings message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.INluSettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.INluSettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified NluSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.NluSettings.verify|verify} messages. + * Encodes the specified NluSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.NluSettings.verify|verify} messages. * @param message NluSettings message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.INluSettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.INluSettings, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a NluSettings message from the specified reader or buffer. @@ -1516,7 +1516,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.NluSettings; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.NluSettings; /** * Decodes a NluSettings message from the specified reader or buffer, length delimited. @@ -1525,7 +1525,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.NluSettings; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.NluSettings; /** * Verifies a NluSettings message. @@ -1539,7 +1539,7 @@ export namespace google { * @param object Plain object * @returns NluSettings */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.NluSettings; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.NluSettings; /** * Creates a plain object from a NluSettings message. Also converts values to other types if specified. @@ -1547,7 +1547,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.NluSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.NluSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this NluSettings to JSON. @@ -1586,13 +1586,13 @@ export namespace google { description?: (string|null); /** Flow transitionRoutes */ - transitionRoutes?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRoute[]|null); + transitionRoutes?: (google.cloud.dialogflow.cx.v3.ITransitionRoute[]|null); /** Flow eventHandlers */ - eventHandlers?: (google.cloud.dialogflow.cx.v3beta1.IEventHandler[]|null); + eventHandlers?: (google.cloud.dialogflow.cx.v3.IEventHandler[]|null); /** Flow nluSettings */ - nluSettings?: (google.cloud.dialogflow.cx.v3beta1.INluSettings|null); + nluSettings?: (google.cloud.dialogflow.cx.v3.INluSettings|null); } /** Represents a Flow. */ @@ -1602,7 +1602,7 @@ export namespace google { * Constructs a new Flow. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IFlow); + constructor(properties?: google.cloud.dialogflow.cx.v3.IFlow); /** Flow name. */ public name: string; @@ -1614,36 +1614,36 @@ export namespace google { public description: string; /** Flow transitionRoutes. */ - public transitionRoutes: google.cloud.dialogflow.cx.v3beta1.ITransitionRoute[]; + public transitionRoutes: google.cloud.dialogflow.cx.v3.ITransitionRoute[]; /** Flow eventHandlers. */ - public eventHandlers: google.cloud.dialogflow.cx.v3beta1.IEventHandler[]; + public eventHandlers: google.cloud.dialogflow.cx.v3.IEventHandler[]; /** Flow nluSettings. */ - public nluSettings?: (google.cloud.dialogflow.cx.v3beta1.INluSettings|null); + public nluSettings?: (google.cloud.dialogflow.cx.v3.INluSettings|null); /** * Creates a new Flow instance using the specified properties. * @param [properties] Properties to set * @returns Flow instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IFlow): google.cloud.dialogflow.cx.v3beta1.Flow; + public static create(properties?: google.cloud.dialogflow.cx.v3.IFlow): google.cloud.dialogflow.cx.v3.Flow; /** - * Encodes the specified Flow message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Flow.verify|verify} messages. + * Encodes the specified Flow message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Flow.verify|verify} messages. * @param message Flow message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IFlow, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IFlow, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Flow message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Flow.verify|verify} messages. + * Encodes the specified Flow message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Flow.verify|verify} messages. * @param message Flow message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IFlow, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IFlow, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a Flow message from the specified reader or buffer. @@ -1653,7 +1653,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Flow; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Flow; /** * Decodes a Flow message from the specified reader or buffer, length delimited. @@ -1662,7 +1662,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Flow; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Flow; /** * Verifies a Flow message. @@ -1676,7 +1676,7 @@ export namespace google { * @param object Plain object * @returns Flow */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Flow; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Flow; /** * Creates a plain object from a Flow message. Also converts values to other types if specified. @@ -1684,7 +1684,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Flow, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.Flow, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this Flow to JSON. @@ -1700,7 +1700,7 @@ export namespace google { parent?: (string|null); /** CreateFlowRequest flow */ - flow?: (google.cloud.dialogflow.cx.v3beta1.IFlow|null); + flow?: (google.cloud.dialogflow.cx.v3.IFlow|null); /** CreateFlowRequest languageCode */ languageCode?: (string|null); @@ -1713,13 +1713,13 @@ export namespace google { * Constructs a new CreateFlowRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateFlowRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.ICreateFlowRequest); /** CreateFlowRequest parent. */ public parent: string; /** CreateFlowRequest flow. */ - public flow?: (google.cloud.dialogflow.cx.v3beta1.IFlow|null); + public flow?: (google.cloud.dialogflow.cx.v3.IFlow|null); /** CreateFlowRequest languageCode. */ public languageCode: string; @@ -1729,23 +1729,23 @@ export namespace google { * @param [properties] Properties to set * @returns CreateFlowRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateFlowRequest): google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.ICreateFlowRequest): google.cloud.dialogflow.cx.v3.CreateFlowRequest; /** - * Encodes the specified CreateFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest.verify|verify} messages. + * Encodes the specified CreateFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateFlowRequest.verify|verify} messages. * @param message CreateFlowRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ICreateFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ICreateFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest.verify|verify} messages. + * Encodes the specified CreateFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateFlowRequest.verify|verify} messages. * @param message CreateFlowRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ICreateFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICreateFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a CreateFlowRequest message from the specified reader or buffer. @@ -1755,7 +1755,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.CreateFlowRequest; /** * Decodes a CreateFlowRequest message from the specified reader or buffer, length delimited. @@ -1764,7 +1764,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.CreateFlowRequest; /** * Verifies a CreateFlowRequest message. @@ -1778,7 +1778,7 @@ export namespace google { * @param object Plain object * @returns CreateFlowRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CreateFlowRequest; /** * Creates a plain object from a CreateFlowRequest message. Also converts values to other types if specified. @@ -1786,7 +1786,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.CreateFlowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this CreateFlowRequest to JSON. @@ -1812,7 +1812,7 @@ export namespace google { * Constructs a new DeleteFlowRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteFlowRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IDeleteFlowRequest); /** DeleteFlowRequest name. */ public name: string; @@ -1825,23 +1825,23 @@ export namespace google { * @param [properties] Properties to set * @returns DeleteFlowRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteFlowRequest): google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IDeleteFlowRequest): google.cloud.dialogflow.cx.v3.DeleteFlowRequest; /** - * Encodes the specified DeleteFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest.verify|verify} messages. + * Encodes the specified DeleteFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteFlowRequest.verify|verify} messages. * @param message DeleteFlowRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IDeleteFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IDeleteFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest.verify|verify} messages. + * Encodes the specified DeleteFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteFlowRequest.verify|verify} messages. * @param message DeleteFlowRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IDeleteFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDeleteFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a DeleteFlowRequest message from the specified reader or buffer. @@ -1851,7 +1851,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.DeleteFlowRequest; /** * Decodes a DeleteFlowRequest message from the specified reader or buffer, length delimited. @@ -1860,7 +1860,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.DeleteFlowRequest; /** * Verifies a DeleteFlowRequest message. @@ -1874,7 +1874,7 @@ export namespace google { * @param object Plain object * @returns DeleteFlowRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.DeleteFlowRequest; /** * Creates a plain object from a DeleteFlowRequest message. Also converts values to other types if specified. @@ -1882,7 +1882,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.DeleteFlowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this DeleteFlowRequest to JSON. @@ -1914,7 +1914,7 @@ export namespace google { * Constructs a new ListFlowsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IListFlowsRequest); /** ListFlowsRequest parent. */ public parent: string; @@ -1933,23 +1933,23 @@ export namespace google { * @param [properties] Properties to set * @returns ListFlowsRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest): google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IListFlowsRequest): google.cloud.dialogflow.cx.v3.ListFlowsRequest; /** - * Encodes the specified ListFlowsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest.verify|verify} messages. + * Encodes the specified ListFlowsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListFlowsRequest.verify|verify} messages. * @param message ListFlowsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IListFlowsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListFlowsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest.verify|verify} messages. + * Encodes the specified ListFlowsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListFlowsRequest.verify|verify} messages. * @param message ListFlowsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListFlowsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a ListFlowsRequest message from the specified reader or buffer. @@ -1959,7 +1959,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListFlowsRequest; /** * Decodes a ListFlowsRequest message from the specified reader or buffer, length delimited. @@ -1968,7 +1968,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListFlowsRequest; /** * Verifies a ListFlowsRequest message. @@ -1982,7 +1982,7 @@ export namespace google { * @param object Plain object * @returns ListFlowsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListFlowsRequest; /** * Creates a plain object from a ListFlowsRequest message. Also converts values to other types if specified. @@ -1990,7 +1990,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ListFlowsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this ListFlowsRequest to JSON. @@ -2003,7 +2003,7 @@ export namespace google { interface IListFlowsResponse { /** ListFlowsResponse flows */ - flows?: (google.cloud.dialogflow.cx.v3beta1.IFlow[]|null); + flows?: (google.cloud.dialogflow.cx.v3.IFlow[]|null); /** ListFlowsResponse nextPageToken */ nextPageToken?: (string|null); @@ -2016,10 +2016,10 @@ export namespace google { * Constructs a new ListFlowsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListFlowsResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3.IListFlowsResponse); /** ListFlowsResponse flows. */ - public flows: google.cloud.dialogflow.cx.v3beta1.IFlow[]; + public flows: google.cloud.dialogflow.cx.v3.IFlow[]; /** ListFlowsResponse nextPageToken. */ public nextPageToken: string; @@ -2029,23 +2029,23 @@ export namespace google { * @param [properties] Properties to set * @returns ListFlowsResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListFlowsResponse): google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3.IListFlowsResponse): google.cloud.dialogflow.cx.v3.ListFlowsResponse; /** - * Encodes the specified ListFlowsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse.verify|verify} messages. + * Encodes the specified ListFlowsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListFlowsResponse.verify|verify} messages. * @param message ListFlowsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListFlowsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IListFlowsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListFlowsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse.verify|verify} messages. + * Encodes the specified ListFlowsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListFlowsResponse.verify|verify} messages. * @param message ListFlowsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListFlowsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListFlowsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a ListFlowsResponse message from the specified reader or buffer. @@ -2055,7 +2055,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListFlowsResponse; /** * Decodes a ListFlowsResponse message from the specified reader or buffer, length delimited. @@ -2064,7 +2064,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListFlowsResponse; /** * Verifies a ListFlowsResponse message. @@ -2078,7 +2078,7 @@ export namespace google { * @param object Plain object * @returns ListFlowsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListFlowsResponse; /** * Creates a plain object from a ListFlowsResponse message. Also converts values to other types if specified. @@ -2086,7 +2086,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ListFlowsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this ListFlowsResponse to JSON. @@ -2112,7 +2112,7 @@ export namespace google { * Constructs a new GetFlowRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetFlowRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IGetFlowRequest); /** GetFlowRequest name. */ public name: string; @@ -2125,23 +2125,23 @@ export namespace google { * @param [properties] Properties to set * @returns GetFlowRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetFlowRequest): google.cloud.dialogflow.cx.v3beta1.GetFlowRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IGetFlowRequest): google.cloud.dialogflow.cx.v3.GetFlowRequest; /** - * Encodes the specified GetFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetFlowRequest.verify|verify} messages. + * Encodes the specified GetFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetFlowRequest.verify|verify} messages. * @param message GetFlowRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGetFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IGetFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetFlowRequest.verify|verify} messages. + * Encodes the specified GetFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetFlowRequest.verify|verify} messages. * @param message GetFlowRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGetFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IGetFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a GetFlowRequest message from the specified reader or buffer. @@ -2151,7 +2151,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.GetFlowRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.GetFlowRequest; /** * Decodes a GetFlowRequest message from the specified reader or buffer, length delimited. @@ -2160,7 +2160,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.GetFlowRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.GetFlowRequest; /** * Verifies a GetFlowRequest message. @@ -2174,7 +2174,7 @@ export namespace google { * @param object Plain object * @returns GetFlowRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetFlowRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.GetFlowRequest; /** * Creates a plain object from a GetFlowRequest message. Also converts values to other types if specified. @@ -2182,7 +2182,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GetFlowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.GetFlowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this GetFlowRequest to JSON. @@ -2195,7 +2195,7 @@ export namespace google { interface IUpdateFlowRequest { /** UpdateFlowRequest flow */ - flow?: (google.cloud.dialogflow.cx.v3beta1.IFlow|null); + flow?: (google.cloud.dialogflow.cx.v3.IFlow|null); /** UpdateFlowRequest updateMask */ updateMask?: (google.protobuf.IFieldMask|null); @@ -2211,10 +2211,10 @@ export namespace google { * Constructs a new UpdateFlowRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateFlowRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IUpdateFlowRequest); /** UpdateFlowRequest flow. */ - public flow?: (google.cloud.dialogflow.cx.v3beta1.IFlow|null); + public flow?: (google.cloud.dialogflow.cx.v3.IFlow|null); /** UpdateFlowRequest updateMask. */ public updateMask?: (google.protobuf.IFieldMask|null); @@ -2227,23 +2227,23 @@ export namespace google { * @param [properties] Properties to set * @returns UpdateFlowRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateFlowRequest): google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IUpdateFlowRequest): google.cloud.dialogflow.cx.v3.UpdateFlowRequest; /** - * Encodes the specified UpdateFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest.verify|verify} messages. + * Encodes the specified UpdateFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateFlowRequest.verify|verify} messages. * @param message UpdateFlowRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IUpdateFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IUpdateFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest.verify|verify} messages. + * Encodes the specified UpdateFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateFlowRequest.verify|verify} messages. * @param message UpdateFlowRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IUpdateFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IUpdateFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an UpdateFlowRequest message from the specified reader or buffer. @@ -2253,7 +2253,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.UpdateFlowRequest; /** * Decodes an UpdateFlowRequest message from the specified reader or buffer, length delimited. @@ -2262,7 +2262,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.UpdateFlowRequest; /** * Verifies an UpdateFlowRequest message. @@ -2276,7 +2276,7 @@ export namespace google { * @param object Plain object * @returns UpdateFlowRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.UpdateFlowRequest; /** * Creates a plain object from an UpdateFlowRequest message. Also converts values to other types if specified. @@ -2284,7 +2284,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.UpdateFlowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this UpdateFlowRequest to JSON. @@ -2307,7 +2307,7 @@ export namespace google { * Constructs a new TrainFlowRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ITrainFlowRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.ITrainFlowRequest); /** TrainFlowRequest name. */ public name: string; @@ -2317,23 +2317,23 @@ export namespace google { * @param [properties] Properties to set * @returns TrainFlowRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ITrainFlowRequest): google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.ITrainFlowRequest): google.cloud.dialogflow.cx.v3.TrainFlowRequest; /** - * Encodes the specified TrainFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest.verify|verify} messages. + * Encodes the specified TrainFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TrainFlowRequest.verify|verify} messages. * @param message TrainFlowRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ITrainFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ITrainFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TrainFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest.verify|verify} messages. + * Encodes the specified TrainFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TrainFlowRequest.verify|verify} messages. * @param message TrainFlowRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ITrainFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ITrainFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a TrainFlowRequest message from the specified reader or buffer. @@ -2343,7 +2343,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.TrainFlowRequest; /** * Decodes a TrainFlowRequest message from the specified reader or buffer, length delimited. @@ -2352,7 +2352,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.TrainFlowRequest; /** * Verifies a TrainFlowRequest message. @@ -2366,7 +2366,7 @@ export namespace google { * @param object Plain object * @returns TrainFlowRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.TrainFlowRequest; /** * Creates a plain object from a TrainFlowRequest message. Also converts values to other types if specified. @@ -2374,7 +2374,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.TrainFlowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this TrainFlowRequest to JSON. @@ -2408,104 +2408,104 @@ export namespace google { * @param request ListPagesRequest message or plain object * @param callback Node-style callback called with the error, if any, and ListPagesResponse */ - public listPages(request: google.cloud.dialogflow.cx.v3beta1.IListPagesRequest, callback: google.cloud.dialogflow.cx.v3beta1.Pages.ListPagesCallback): void; + public listPages(request: google.cloud.dialogflow.cx.v3.IListPagesRequest, callback: google.cloud.dialogflow.cx.v3.Pages.ListPagesCallback): void; /** * Calls ListPages. * @param request ListPagesRequest message or plain object * @returns Promise */ - public listPages(request: google.cloud.dialogflow.cx.v3beta1.IListPagesRequest): Promise; + public listPages(request: google.cloud.dialogflow.cx.v3.IListPagesRequest): Promise; /** * Calls GetPage. * @param request GetPageRequest message or plain object * @param callback Node-style callback called with the error, if any, and Page */ - public getPage(request: google.cloud.dialogflow.cx.v3beta1.IGetPageRequest, callback: google.cloud.dialogflow.cx.v3beta1.Pages.GetPageCallback): void; + public getPage(request: google.cloud.dialogflow.cx.v3.IGetPageRequest, callback: google.cloud.dialogflow.cx.v3.Pages.GetPageCallback): void; /** * Calls GetPage. * @param request GetPageRequest message or plain object * @returns Promise */ - public getPage(request: google.cloud.dialogflow.cx.v3beta1.IGetPageRequest): Promise; + public getPage(request: google.cloud.dialogflow.cx.v3.IGetPageRequest): Promise; /** * Calls CreatePage. * @param request CreatePageRequest message or plain object * @param callback Node-style callback called with the error, if any, and Page */ - public createPage(request: google.cloud.dialogflow.cx.v3beta1.ICreatePageRequest, callback: google.cloud.dialogflow.cx.v3beta1.Pages.CreatePageCallback): void; + public createPage(request: google.cloud.dialogflow.cx.v3.ICreatePageRequest, callback: google.cloud.dialogflow.cx.v3.Pages.CreatePageCallback): void; /** * Calls CreatePage. * @param request CreatePageRequest message or plain object * @returns Promise */ - public createPage(request: google.cloud.dialogflow.cx.v3beta1.ICreatePageRequest): Promise; + public createPage(request: google.cloud.dialogflow.cx.v3.ICreatePageRequest): Promise; /** * Calls UpdatePage. * @param request UpdatePageRequest message or plain object * @param callback Node-style callback called with the error, if any, and Page */ - public updatePage(request: google.cloud.dialogflow.cx.v3beta1.IUpdatePageRequest, callback: google.cloud.dialogflow.cx.v3beta1.Pages.UpdatePageCallback): void; + public updatePage(request: google.cloud.dialogflow.cx.v3.IUpdatePageRequest, callback: google.cloud.dialogflow.cx.v3.Pages.UpdatePageCallback): void; /** * Calls UpdatePage. * @param request UpdatePageRequest message or plain object * @returns Promise */ - public updatePage(request: google.cloud.dialogflow.cx.v3beta1.IUpdatePageRequest): Promise; + public updatePage(request: google.cloud.dialogflow.cx.v3.IUpdatePageRequest): Promise; /** * Calls DeletePage. * @param request DeletePageRequest message or plain object * @param callback Node-style callback called with the error, if any, and Empty */ - public deletePage(request: google.cloud.dialogflow.cx.v3beta1.IDeletePageRequest, callback: google.cloud.dialogflow.cx.v3beta1.Pages.DeletePageCallback): void; + public deletePage(request: google.cloud.dialogflow.cx.v3.IDeletePageRequest, callback: google.cloud.dialogflow.cx.v3.Pages.DeletePageCallback): void; /** * Calls DeletePage. * @param request DeletePageRequest message or plain object * @returns Promise */ - public deletePage(request: google.cloud.dialogflow.cx.v3beta1.IDeletePageRequest): Promise; + public deletePage(request: google.cloud.dialogflow.cx.v3.IDeletePageRequest): Promise; } namespace Pages { /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Pages#listPages}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Pages#listPages}. * @param error Error, if any * @param [response] ListPagesResponse */ - type ListPagesCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.ListPagesResponse) => void; + type ListPagesCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.ListPagesResponse) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Pages#getPage}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Pages#getPage}. * @param error Error, if any * @param [response] Page */ - type GetPageCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Page) => void; + type GetPageCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Page) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Pages#createPage}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Pages#createPage}. * @param error Error, if any * @param [response] Page */ - type CreatePageCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Page) => void; + type CreatePageCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Page) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Pages#updatePage}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Pages#updatePage}. * @param error Error, if any * @param [response] Page */ - type UpdatePageCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Page) => void; + type UpdatePageCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Page) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Pages#deletePage}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Pages#deletePage}. * @param error Error, if any * @param [response] Empty */ @@ -2522,19 +2522,19 @@ export namespace google { displayName?: (string|null); /** Page entryFulfillment */ - entryFulfillment?: (google.cloud.dialogflow.cx.v3beta1.IFulfillment|null); + entryFulfillment?: (google.cloud.dialogflow.cx.v3.IFulfillment|null); /** Page form */ - form?: (google.cloud.dialogflow.cx.v3beta1.IForm|null); + form?: (google.cloud.dialogflow.cx.v3.IForm|null); /** Page transitionRouteGroups */ transitionRouteGroups?: (string[]|null); /** Page transitionRoutes */ - transitionRoutes?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRoute[]|null); + transitionRoutes?: (google.cloud.dialogflow.cx.v3.ITransitionRoute[]|null); /** Page eventHandlers */ - eventHandlers?: (google.cloud.dialogflow.cx.v3beta1.IEventHandler[]|null); + eventHandlers?: (google.cloud.dialogflow.cx.v3.IEventHandler[]|null); } /** Represents a Page. */ @@ -2544,7 +2544,7 @@ export namespace google { * Constructs a new Page. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IPage); + constructor(properties?: google.cloud.dialogflow.cx.v3.IPage); /** Page name. */ public name: string; @@ -2553,42 +2553,42 @@ export namespace google { public displayName: string; /** Page entryFulfillment. */ - public entryFulfillment?: (google.cloud.dialogflow.cx.v3beta1.IFulfillment|null); + public entryFulfillment?: (google.cloud.dialogflow.cx.v3.IFulfillment|null); /** Page form. */ - public form?: (google.cloud.dialogflow.cx.v3beta1.IForm|null); + public form?: (google.cloud.dialogflow.cx.v3.IForm|null); /** Page transitionRouteGroups. */ public transitionRouteGroups: string[]; /** Page transitionRoutes. */ - public transitionRoutes: google.cloud.dialogflow.cx.v3beta1.ITransitionRoute[]; + public transitionRoutes: google.cloud.dialogflow.cx.v3.ITransitionRoute[]; /** Page eventHandlers. */ - public eventHandlers: google.cloud.dialogflow.cx.v3beta1.IEventHandler[]; + public eventHandlers: google.cloud.dialogflow.cx.v3.IEventHandler[]; /** * Creates a new Page instance using the specified properties. * @param [properties] Properties to set * @returns Page instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IPage): google.cloud.dialogflow.cx.v3beta1.Page; + public static create(properties?: google.cloud.dialogflow.cx.v3.IPage): google.cloud.dialogflow.cx.v3.Page; /** - * Encodes the specified Page message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Page.verify|verify} messages. + * Encodes the specified Page message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Page.verify|verify} messages. * @param message Page message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IPage, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IPage, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Page message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Page.verify|verify} messages. + * Encodes the specified Page message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Page.verify|verify} messages. * @param message Page message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IPage, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IPage, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a Page message from the specified reader or buffer. @@ -2598,7 +2598,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Page; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Page; /** * Decodes a Page message from the specified reader or buffer, length delimited. @@ -2607,7 +2607,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Page; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Page; /** * Verifies a Page message. @@ -2621,7 +2621,7 @@ export namespace google { * @param object Plain object * @returns Page */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Page; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Page; /** * Creates a plain object from a Page message. Also converts values to other types if specified. @@ -2629,7 +2629,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Page, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.Page, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this Page to JSON. @@ -2642,7 +2642,7 @@ export namespace google { interface IForm { /** Form parameters */ - parameters?: (google.cloud.dialogflow.cx.v3beta1.Form.IParameter[]|null); + parameters?: (google.cloud.dialogflow.cx.v3.Form.IParameter[]|null); } /** Represents a Form. */ @@ -2652,33 +2652,33 @@ export namespace google { * Constructs a new Form. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IForm); + constructor(properties?: google.cloud.dialogflow.cx.v3.IForm); /** Form parameters. */ - public parameters: google.cloud.dialogflow.cx.v3beta1.Form.IParameter[]; + public parameters: google.cloud.dialogflow.cx.v3.Form.IParameter[]; /** * Creates a new Form instance using the specified properties. * @param [properties] Properties to set * @returns Form instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IForm): google.cloud.dialogflow.cx.v3beta1.Form; + public static create(properties?: google.cloud.dialogflow.cx.v3.IForm): google.cloud.dialogflow.cx.v3.Form; /** - * Encodes the specified Form message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Form.verify|verify} messages. + * Encodes the specified Form message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Form.verify|verify} messages. * @param message Form message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IForm, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IForm, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Form message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Form.verify|verify} messages. + * Encodes the specified Form message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Form.verify|verify} messages. * @param message Form message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IForm, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IForm, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a Form message from the specified reader or buffer. @@ -2688,7 +2688,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Form; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Form; /** * Decodes a Form message from the specified reader or buffer, length delimited. @@ -2697,7 +2697,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Form; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Form; /** * Verifies a Form message. @@ -2711,7 +2711,7 @@ export namespace google { * @param object Plain object * @returns Form */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Form; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Form; /** * Creates a plain object from a Form message. Also converts values to other types if specified. @@ -2719,7 +2719,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Form, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.Form, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this Form to JSON. @@ -2746,7 +2746,7 @@ export namespace google { isList?: (boolean|null); /** Parameter fillBehavior */ - fillBehavior?: (google.cloud.dialogflow.cx.v3beta1.Form.Parameter.IFillBehavior|null); + fillBehavior?: (google.cloud.dialogflow.cx.v3.Form.Parameter.IFillBehavior|null); /** Parameter defaultValue */ defaultValue?: (google.protobuf.IValue|null); @@ -2762,7 +2762,7 @@ export namespace google { * Constructs a new Parameter. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Form.IParameter); + constructor(properties?: google.cloud.dialogflow.cx.v3.Form.IParameter); /** Parameter displayName. */ public displayName: string; @@ -2777,7 +2777,7 @@ export namespace google { public isList: boolean; /** Parameter fillBehavior. */ - public fillBehavior?: (google.cloud.dialogflow.cx.v3beta1.Form.Parameter.IFillBehavior|null); + public fillBehavior?: (google.cloud.dialogflow.cx.v3.Form.Parameter.IFillBehavior|null); /** Parameter defaultValue. */ public defaultValue?: (google.protobuf.IValue|null); @@ -2790,23 +2790,23 @@ export namespace google { * @param [properties] Properties to set * @returns Parameter instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Form.IParameter): google.cloud.dialogflow.cx.v3beta1.Form.Parameter; + public static create(properties?: google.cloud.dialogflow.cx.v3.Form.IParameter): google.cloud.dialogflow.cx.v3.Form.Parameter; /** - * Encodes the specified Parameter message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Form.Parameter.verify|verify} messages. + * Encodes the specified Parameter message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Form.Parameter.verify|verify} messages. * @param message Parameter message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.Form.IParameter, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.Form.IParameter, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Parameter message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Form.Parameter.verify|verify} messages. + * Encodes the specified Parameter message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Form.Parameter.verify|verify} messages. * @param message Parameter message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.Form.IParameter, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.Form.IParameter, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a Parameter message from the specified reader or buffer. @@ -2816,7 +2816,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Form.Parameter; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Form.Parameter; /** * Decodes a Parameter message from the specified reader or buffer, length delimited. @@ -2825,7 +2825,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Form.Parameter; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Form.Parameter; /** * Verifies a Parameter message. @@ -2839,7 +2839,7 @@ export namespace google { * @param object Plain object * @returns Parameter */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Form.Parameter; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Form.Parameter; /** * Creates a plain object from a Parameter message. Also converts values to other types if specified. @@ -2847,7 +2847,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Form.Parameter, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.Form.Parameter, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this Parameter to JSON. @@ -2862,10 +2862,10 @@ export namespace google { interface IFillBehavior { /** FillBehavior initialPromptFulfillment */ - initialPromptFulfillment?: (google.cloud.dialogflow.cx.v3beta1.IFulfillment|null); + initialPromptFulfillment?: (google.cloud.dialogflow.cx.v3.IFulfillment|null); /** FillBehavior repromptEventHandlers */ - repromptEventHandlers?: (google.cloud.dialogflow.cx.v3beta1.IEventHandler[]|null); + repromptEventHandlers?: (google.cloud.dialogflow.cx.v3.IEventHandler[]|null); } /** Represents a FillBehavior. */ @@ -2875,36 +2875,36 @@ export namespace google { * Constructs a new FillBehavior. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Form.Parameter.IFillBehavior); + constructor(properties?: google.cloud.dialogflow.cx.v3.Form.Parameter.IFillBehavior); /** FillBehavior initialPromptFulfillment. */ - public initialPromptFulfillment?: (google.cloud.dialogflow.cx.v3beta1.IFulfillment|null); + public initialPromptFulfillment?: (google.cloud.dialogflow.cx.v3.IFulfillment|null); /** FillBehavior repromptEventHandlers. */ - public repromptEventHandlers: google.cloud.dialogflow.cx.v3beta1.IEventHandler[]; + public repromptEventHandlers: google.cloud.dialogflow.cx.v3.IEventHandler[]; /** * Creates a new FillBehavior instance using the specified properties. * @param [properties] Properties to set * @returns FillBehavior instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Form.Parameter.IFillBehavior): google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior; + public static create(properties?: google.cloud.dialogflow.cx.v3.Form.Parameter.IFillBehavior): google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior; /** - * Encodes the specified FillBehavior message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior.verify|verify} messages. + * Encodes the specified FillBehavior message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior.verify|verify} messages. * @param message FillBehavior message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.Form.Parameter.IFillBehavior, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.Form.Parameter.IFillBehavior, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FillBehavior message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior.verify|verify} messages. + * Encodes the specified FillBehavior message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior.verify|verify} messages. * @param message FillBehavior message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.Form.Parameter.IFillBehavior, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.Form.Parameter.IFillBehavior, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a FillBehavior message from the specified reader or buffer. @@ -2914,7 +2914,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior; /** * Decodes a FillBehavior message from the specified reader or buffer, length delimited. @@ -2923,7 +2923,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior; /** * Verifies a FillBehavior message. @@ -2937,7 +2937,7 @@ export namespace google { * @param object Plain object * @returns FillBehavior */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior; /** * Creates a plain object from a FillBehavior message. Also converts values to other types if specified. @@ -2945,7 +2945,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this FillBehavior to JSON. @@ -2966,7 +2966,7 @@ export namespace google { event?: (string|null); /** EventHandler triggerFulfillment */ - triggerFulfillment?: (google.cloud.dialogflow.cx.v3beta1.IFulfillment|null); + triggerFulfillment?: (google.cloud.dialogflow.cx.v3.IFulfillment|null); /** EventHandler targetPage */ targetPage?: (string|null); @@ -2982,7 +2982,7 @@ export namespace google { * Constructs a new EventHandler. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IEventHandler); + constructor(properties?: google.cloud.dialogflow.cx.v3.IEventHandler); /** EventHandler name. */ public name: string; @@ -2991,7 +2991,7 @@ export namespace google { public event: string; /** EventHandler triggerFulfillment. */ - public triggerFulfillment?: (google.cloud.dialogflow.cx.v3beta1.IFulfillment|null); + public triggerFulfillment?: (google.cloud.dialogflow.cx.v3.IFulfillment|null); /** EventHandler targetPage. */ public targetPage: string; @@ -3007,23 +3007,23 @@ export namespace google { * @param [properties] Properties to set * @returns EventHandler instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IEventHandler): google.cloud.dialogflow.cx.v3beta1.EventHandler; + public static create(properties?: google.cloud.dialogflow.cx.v3.IEventHandler): google.cloud.dialogflow.cx.v3.EventHandler; /** - * Encodes the specified EventHandler message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EventHandler.verify|verify} messages. + * Encodes the specified EventHandler message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.EventHandler.verify|verify} messages. * @param message EventHandler message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IEventHandler, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IEventHandler, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified EventHandler message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EventHandler.verify|verify} messages. + * Encodes the specified EventHandler message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.EventHandler.verify|verify} messages. * @param message EventHandler message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IEventHandler, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IEventHandler, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an EventHandler message from the specified reader or buffer. @@ -3033,7 +3033,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.EventHandler; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.EventHandler; /** * Decodes an EventHandler message from the specified reader or buffer, length delimited. @@ -3042,7 +3042,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.EventHandler; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.EventHandler; /** * Verifies an EventHandler message. @@ -3056,7 +3056,7 @@ export namespace google { * @param object Plain object * @returns EventHandler */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.EventHandler; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.EventHandler; /** * Creates a plain object from an EventHandler message. Also converts values to other types if specified. @@ -3064,7 +3064,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.EventHandler, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.EventHandler, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this EventHandler to JSON. @@ -3086,7 +3086,7 @@ export namespace google { condition?: (string|null); /** TransitionRoute triggerFulfillment */ - triggerFulfillment?: (google.cloud.dialogflow.cx.v3beta1.IFulfillment|null); + triggerFulfillment?: (google.cloud.dialogflow.cx.v3.IFulfillment|null); /** TransitionRoute targetPage */ targetPage?: (string|null); @@ -3102,7 +3102,7 @@ export namespace google { * Constructs a new TransitionRoute. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ITransitionRoute); + constructor(properties?: google.cloud.dialogflow.cx.v3.ITransitionRoute); /** TransitionRoute name. */ public name: string; @@ -3114,7 +3114,7 @@ export namespace google { public condition: string; /** TransitionRoute triggerFulfillment. */ - public triggerFulfillment?: (google.cloud.dialogflow.cx.v3beta1.IFulfillment|null); + public triggerFulfillment?: (google.cloud.dialogflow.cx.v3.IFulfillment|null); /** TransitionRoute targetPage. */ public targetPage: string; @@ -3130,23 +3130,23 @@ export namespace google { * @param [properties] Properties to set * @returns TransitionRoute instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ITransitionRoute): google.cloud.dialogflow.cx.v3beta1.TransitionRoute; + public static create(properties?: google.cloud.dialogflow.cx.v3.ITransitionRoute): google.cloud.dialogflow.cx.v3.TransitionRoute; /** - * Encodes the specified TransitionRoute message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRoute.verify|verify} messages. + * Encodes the specified TransitionRoute message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRoute.verify|verify} messages. * @param message TransitionRoute message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ITransitionRoute, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ITransitionRoute, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TransitionRoute message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRoute.verify|verify} messages. + * Encodes the specified TransitionRoute message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRoute.verify|verify} messages. * @param message TransitionRoute message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ITransitionRoute, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ITransitionRoute, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a TransitionRoute message from the specified reader or buffer. @@ -3156,7 +3156,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.TransitionRoute; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.TransitionRoute; /** * Decodes a TransitionRoute message from the specified reader or buffer, length delimited. @@ -3165,7 +3165,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.TransitionRoute; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.TransitionRoute; /** * Verifies a TransitionRoute message. @@ -3179,7 +3179,7 @@ export namespace google { * @param object Plain object * @returns TransitionRoute */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.TransitionRoute; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.TransitionRoute; /** * Creates a plain object from a TransitionRoute message. Also converts values to other types if specified. @@ -3187,7 +3187,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.TransitionRoute, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.TransitionRoute, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this TransitionRoute to JSON. @@ -3219,7 +3219,7 @@ export namespace google { * Constructs a new ListPagesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListPagesRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IListPagesRequest); /** ListPagesRequest parent. */ public parent: string; @@ -3238,23 +3238,23 @@ export namespace google { * @param [properties] Properties to set * @returns ListPagesRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListPagesRequest): google.cloud.dialogflow.cx.v3beta1.ListPagesRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IListPagesRequest): google.cloud.dialogflow.cx.v3.ListPagesRequest; /** - * Encodes the specified ListPagesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListPagesRequest.verify|verify} messages. + * Encodes the specified ListPagesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListPagesRequest.verify|verify} messages. * @param message ListPagesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListPagesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IListPagesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListPagesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListPagesRequest.verify|verify} messages. + * Encodes the specified ListPagesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListPagesRequest.verify|verify} messages. * @param message ListPagesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListPagesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListPagesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a ListPagesRequest message from the specified reader or buffer. @@ -3264,7 +3264,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListPagesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListPagesRequest; /** * Decodes a ListPagesRequest message from the specified reader or buffer, length delimited. @@ -3273,7 +3273,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListPagesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListPagesRequest; /** * Verifies a ListPagesRequest message. @@ -3287,7 +3287,7 @@ export namespace google { * @param object Plain object * @returns ListPagesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListPagesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListPagesRequest; /** * Creates a plain object from a ListPagesRequest message. Also converts values to other types if specified. @@ -3295,7 +3295,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListPagesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ListPagesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this ListPagesRequest to JSON. @@ -3308,7 +3308,7 @@ export namespace google { interface IListPagesResponse { /** ListPagesResponse pages */ - pages?: (google.cloud.dialogflow.cx.v3beta1.IPage[]|null); + pages?: (google.cloud.dialogflow.cx.v3.IPage[]|null); /** ListPagesResponse nextPageToken */ nextPageToken?: (string|null); @@ -3321,10 +3321,10 @@ export namespace google { * Constructs a new ListPagesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListPagesResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3.IListPagesResponse); /** ListPagesResponse pages. */ - public pages: google.cloud.dialogflow.cx.v3beta1.IPage[]; + public pages: google.cloud.dialogflow.cx.v3.IPage[]; /** ListPagesResponse nextPageToken. */ public nextPageToken: string; @@ -3334,23 +3334,23 @@ export namespace google { * @param [properties] Properties to set * @returns ListPagesResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListPagesResponse): google.cloud.dialogflow.cx.v3beta1.ListPagesResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3.IListPagesResponse): google.cloud.dialogflow.cx.v3.ListPagesResponse; /** - * Encodes the specified ListPagesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListPagesResponse.verify|verify} messages. + * Encodes the specified ListPagesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListPagesResponse.verify|verify} messages. * @param message ListPagesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListPagesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IListPagesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListPagesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListPagesResponse.verify|verify} messages. + * Encodes the specified ListPagesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListPagesResponse.verify|verify} messages. * @param message ListPagesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListPagesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListPagesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a ListPagesResponse message from the specified reader or buffer. @@ -3360,7 +3360,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListPagesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListPagesResponse; /** * Decodes a ListPagesResponse message from the specified reader or buffer, length delimited. @@ -3369,7 +3369,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListPagesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListPagesResponse; /** * Verifies a ListPagesResponse message. @@ -3383,7 +3383,7 @@ export namespace google { * @param object Plain object * @returns ListPagesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListPagesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListPagesResponse; /** * Creates a plain object from a ListPagesResponse message. Also converts values to other types if specified. @@ -3391,7 +3391,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListPagesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ListPagesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this ListPagesResponse to JSON. @@ -3417,7 +3417,7 @@ export namespace google { * Constructs a new GetPageRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetPageRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IGetPageRequest); /** GetPageRequest name. */ public name: string; @@ -3430,23 +3430,23 @@ export namespace google { * @param [properties] Properties to set * @returns GetPageRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetPageRequest): google.cloud.dialogflow.cx.v3beta1.GetPageRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IGetPageRequest): google.cloud.dialogflow.cx.v3.GetPageRequest; /** - * Encodes the specified GetPageRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetPageRequest.verify|verify} messages. + * Encodes the specified GetPageRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetPageRequest.verify|verify} messages. * @param message GetPageRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGetPageRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IGetPageRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetPageRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetPageRequest.verify|verify} messages. + * Encodes the specified GetPageRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetPageRequest.verify|verify} messages. * @param message GetPageRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGetPageRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IGetPageRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a GetPageRequest message from the specified reader or buffer. @@ -3456,7 +3456,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.GetPageRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.GetPageRequest; /** * Decodes a GetPageRequest message from the specified reader or buffer, length delimited. @@ -3465,7 +3465,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.GetPageRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.GetPageRequest; /** * Verifies a GetPageRequest message. @@ -3479,7 +3479,7 @@ export namespace google { * @param object Plain object * @returns GetPageRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetPageRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.GetPageRequest; /** * Creates a plain object from a GetPageRequest message. Also converts values to other types if specified. @@ -3487,7 +3487,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GetPageRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.GetPageRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this GetPageRequest to JSON. @@ -3503,7 +3503,7 @@ export namespace google { parent?: (string|null); /** CreatePageRequest page */ - page?: (google.cloud.dialogflow.cx.v3beta1.IPage|null); + page?: (google.cloud.dialogflow.cx.v3.IPage|null); /** CreatePageRequest languageCode */ languageCode?: (string|null); @@ -3516,13 +3516,13 @@ export namespace google { * Constructs a new CreatePageRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICreatePageRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.ICreatePageRequest); /** CreatePageRequest parent. */ public parent: string; /** CreatePageRequest page. */ - public page?: (google.cloud.dialogflow.cx.v3beta1.IPage|null); + public page?: (google.cloud.dialogflow.cx.v3.IPage|null); /** CreatePageRequest languageCode. */ public languageCode: string; @@ -3532,23 +3532,23 @@ export namespace google { * @param [properties] Properties to set * @returns CreatePageRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ICreatePageRequest): google.cloud.dialogflow.cx.v3beta1.CreatePageRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.ICreatePageRequest): google.cloud.dialogflow.cx.v3.CreatePageRequest; /** - * Encodes the specified CreatePageRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreatePageRequest.verify|verify} messages. + * Encodes the specified CreatePageRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreatePageRequest.verify|verify} messages. * @param message CreatePageRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ICreatePageRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ICreatePageRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreatePageRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreatePageRequest.verify|verify} messages. + * Encodes the specified CreatePageRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreatePageRequest.verify|verify} messages. * @param message CreatePageRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ICreatePageRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICreatePageRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a CreatePageRequest message from the specified reader or buffer. @@ -3558,7 +3558,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.CreatePageRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.CreatePageRequest; /** * Decodes a CreatePageRequest message from the specified reader or buffer, length delimited. @@ -3567,7 +3567,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.CreatePageRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.CreatePageRequest; /** * Verifies a CreatePageRequest message. @@ -3581,7 +3581,7 @@ export namespace google { * @param object Plain object * @returns CreatePageRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.CreatePageRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CreatePageRequest; /** * Creates a plain object from a CreatePageRequest message. Also converts values to other types if specified. @@ -3589,7 +3589,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.CreatePageRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.CreatePageRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this CreatePageRequest to JSON. @@ -3602,7 +3602,7 @@ export namespace google { interface IUpdatePageRequest { /** UpdatePageRequest page */ - page?: (google.cloud.dialogflow.cx.v3beta1.IPage|null); + page?: (google.cloud.dialogflow.cx.v3.IPage|null); /** UpdatePageRequest languageCode */ languageCode?: (string|null); @@ -3618,10 +3618,10 @@ export namespace google { * Constructs a new UpdatePageRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdatePageRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IUpdatePageRequest); /** UpdatePageRequest page. */ - public page?: (google.cloud.dialogflow.cx.v3beta1.IPage|null); + public page?: (google.cloud.dialogflow.cx.v3.IPage|null); /** UpdatePageRequest languageCode. */ public languageCode: string; @@ -3634,23 +3634,23 @@ export namespace google { * @param [properties] Properties to set * @returns UpdatePageRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdatePageRequest): google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IUpdatePageRequest): google.cloud.dialogflow.cx.v3.UpdatePageRequest; /** - * Encodes the specified UpdatePageRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest.verify|verify} messages. + * Encodes the specified UpdatePageRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdatePageRequest.verify|verify} messages. * @param message UpdatePageRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IUpdatePageRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IUpdatePageRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdatePageRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest.verify|verify} messages. + * Encodes the specified UpdatePageRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdatePageRequest.verify|verify} messages. * @param message UpdatePageRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IUpdatePageRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IUpdatePageRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an UpdatePageRequest message from the specified reader or buffer. @@ -3660,7 +3660,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.UpdatePageRequest; /** * Decodes an UpdatePageRequest message from the specified reader or buffer, length delimited. @@ -3669,7 +3669,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.UpdatePageRequest; /** * Verifies an UpdatePageRequest message. @@ -3683,7 +3683,7 @@ export namespace google { * @param object Plain object * @returns UpdatePageRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.UpdatePageRequest; /** * Creates a plain object from an UpdatePageRequest message. Also converts values to other types if specified. @@ -3691,7 +3691,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.UpdatePageRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this UpdatePageRequest to JSON. @@ -3717,7 +3717,7 @@ export namespace google { * Constructs a new DeletePageRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDeletePageRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IDeletePageRequest); /** DeletePageRequest name. */ public name: string; @@ -3730,23 +3730,23 @@ export namespace google { * @param [properties] Properties to set * @returns DeletePageRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDeletePageRequest): google.cloud.dialogflow.cx.v3beta1.DeletePageRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IDeletePageRequest): google.cloud.dialogflow.cx.v3.DeletePageRequest; /** - * Encodes the specified DeletePageRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeletePageRequest.verify|verify} messages. + * Encodes the specified DeletePageRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeletePageRequest.verify|verify} messages. * @param message DeletePageRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IDeletePageRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IDeletePageRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeletePageRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeletePageRequest.verify|verify} messages. + * Encodes the specified DeletePageRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeletePageRequest.verify|verify} messages. * @param message DeletePageRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IDeletePageRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDeletePageRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a DeletePageRequest message from the specified reader or buffer. @@ -3756,7 +3756,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.DeletePageRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.DeletePageRequest; /** * Decodes a DeletePageRequest message from the specified reader or buffer, length delimited. @@ -3765,7 +3765,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.DeletePageRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.DeletePageRequest; /** * Verifies a DeletePageRequest message. @@ -3779,7 +3779,7 @@ export namespace google { * @param object Plain object * @returns DeletePageRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.DeletePageRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.DeletePageRequest; /** * Creates a plain object from a DeletePageRequest message. Also converts values to other types if specified. @@ -3787,7 +3787,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.DeletePageRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.DeletePageRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this DeletePageRequest to JSON. @@ -3800,7 +3800,7 @@ export namespace google { interface IFulfillment { /** Fulfillment messages */ - messages?: (google.cloud.dialogflow.cx.v3beta1.IResponseMessage[]|null); + messages?: (google.cloud.dialogflow.cx.v3.IResponseMessage[]|null); /** Fulfillment webhook */ webhook?: (string|null); @@ -3809,10 +3809,10 @@ export namespace google { tag?: (string|null); /** Fulfillment setParameterActions */ - setParameterActions?: (google.cloud.dialogflow.cx.v3beta1.Fulfillment.ISetParameterAction[]|null); + setParameterActions?: (google.cloud.dialogflow.cx.v3.Fulfillment.ISetParameterAction[]|null); /** Fulfillment conditionalCases */ - conditionalCases?: (google.cloud.dialogflow.cx.v3beta1.Fulfillment.IConditionalCases[]|null); + conditionalCases?: (google.cloud.dialogflow.cx.v3.Fulfillment.IConditionalCases[]|null); } /** Represents a Fulfillment. */ @@ -3822,10 +3822,10 @@ export namespace google { * Constructs a new Fulfillment. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IFulfillment); + constructor(properties?: google.cloud.dialogflow.cx.v3.IFulfillment); /** Fulfillment messages. */ - public messages: google.cloud.dialogflow.cx.v3beta1.IResponseMessage[]; + public messages: google.cloud.dialogflow.cx.v3.IResponseMessage[]; /** Fulfillment webhook. */ public webhook: string; @@ -3834,33 +3834,33 @@ export namespace google { public tag: string; /** Fulfillment setParameterActions. */ - public setParameterActions: google.cloud.dialogflow.cx.v3beta1.Fulfillment.ISetParameterAction[]; + public setParameterActions: google.cloud.dialogflow.cx.v3.Fulfillment.ISetParameterAction[]; /** Fulfillment conditionalCases. */ - public conditionalCases: google.cloud.dialogflow.cx.v3beta1.Fulfillment.IConditionalCases[]; + public conditionalCases: google.cloud.dialogflow.cx.v3.Fulfillment.IConditionalCases[]; /** * Creates a new Fulfillment instance using the specified properties. * @param [properties] Properties to set * @returns Fulfillment instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IFulfillment): google.cloud.dialogflow.cx.v3beta1.Fulfillment; + public static create(properties?: google.cloud.dialogflow.cx.v3.IFulfillment): google.cloud.dialogflow.cx.v3.Fulfillment; /** - * Encodes the specified Fulfillment message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Fulfillment.verify|verify} messages. + * Encodes the specified Fulfillment message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Fulfillment.verify|verify} messages. * @param message Fulfillment message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IFulfillment, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IFulfillment, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Fulfillment message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Fulfillment.verify|verify} messages. + * Encodes the specified Fulfillment message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Fulfillment.verify|verify} messages. * @param message Fulfillment message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IFulfillment, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IFulfillment, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a Fulfillment message from the specified reader or buffer. @@ -3870,7 +3870,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Fulfillment; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Fulfillment; /** * Decodes a Fulfillment message from the specified reader or buffer, length delimited. @@ -3879,7 +3879,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Fulfillment; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Fulfillment; /** * Verifies a Fulfillment message. @@ -3893,7 +3893,7 @@ export namespace google { * @param object Plain object * @returns Fulfillment */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Fulfillment; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Fulfillment; /** * Creates a plain object from a Fulfillment message. Also converts values to other types if specified. @@ -3901,7 +3901,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Fulfillment, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.Fulfillment, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this Fulfillment to JSON. @@ -3929,7 +3929,7 @@ export namespace google { * Constructs a new SetParameterAction. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Fulfillment.ISetParameterAction); + constructor(properties?: google.cloud.dialogflow.cx.v3.Fulfillment.ISetParameterAction); /** SetParameterAction parameter. */ public parameter: string; @@ -3942,23 +3942,23 @@ export namespace google { * @param [properties] Properties to set * @returns SetParameterAction instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Fulfillment.ISetParameterAction): google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction; + public static create(properties?: google.cloud.dialogflow.cx.v3.Fulfillment.ISetParameterAction): google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction; /** - * Encodes the specified SetParameterAction message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction.verify|verify} messages. + * Encodes the specified SetParameterAction message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction.verify|verify} messages. * @param message SetParameterAction message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.Fulfillment.ISetParameterAction, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.Fulfillment.ISetParameterAction, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SetParameterAction message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction.verify|verify} messages. + * Encodes the specified SetParameterAction message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction.verify|verify} messages. * @param message SetParameterAction message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.Fulfillment.ISetParameterAction, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.Fulfillment.ISetParameterAction, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a SetParameterAction message from the specified reader or buffer. @@ -3968,7 +3968,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction; /** * Decodes a SetParameterAction message from the specified reader or buffer, length delimited. @@ -3977,7 +3977,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction; /** * Verifies a SetParameterAction message. @@ -3991,7 +3991,7 @@ export namespace google { * @param object Plain object * @returns SetParameterAction */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction; /** * Creates a plain object from a SetParameterAction message. Also converts values to other types if specified. @@ -3999,7 +3999,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this SetParameterAction to JSON. @@ -4012,7 +4012,7 @@ export namespace google { interface IConditionalCases { /** ConditionalCases cases */ - cases?: (google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.ICase[]|null); + cases?: (google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.ICase[]|null); } /** Represents a ConditionalCases. */ @@ -4022,33 +4022,33 @@ export namespace google { * Constructs a new ConditionalCases. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Fulfillment.IConditionalCases); + constructor(properties?: google.cloud.dialogflow.cx.v3.Fulfillment.IConditionalCases); /** ConditionalCases cases. */ - public cases: google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.ICase[]; + public cases: google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.ICase[]; /** * Creates a new ConditionalCases instance using the specified properties. * @param [properties] Properties to set * @returns ConditionalCases instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Fulfillment.IConditionalCases): google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases; + public static create(properties?: google.cloud.dialogflow.cx.v3.Fulfillment.IConditionalCases): google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases; /** - * Encodes the specified ConditionalCases message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.verify|verify} messages. + * Encodes the specified ConditionalCases message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.verify|verify} messages. * @param message ConditionalCases message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.Fulfillment.IConditionalCases, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.Fulfillment.IConditionalCases, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ConditionalCases message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.verify|verify} messages. + * Encodes the specified ConditionalCases message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.verify|verify} messages. * @param message ConditionalCases message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.Fulfillment.IConditionalCases, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.Fulfillment.IConditionalCases, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a ConditionalCases message from the specified reader or buffer. @@ -4058,7 +4058,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases; /** * Decodes a ConditionalCases message from the specified reader or buffer, length delimited. @@ -4067,7 +4067,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases; /** * Verifies a ConditionalCases message. @@ -4081,7 +4081,7 @@ export namespace google { * @param object Plain object * @returns ConditionalCases */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases; /** * Creates a plain object from a ConditionalCases message. Also converts values to other types if specified. @@ -4089,7 +4089,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this ConditionalCases to JSON. @@ -4107,7 +4107,7 @@ export namespace google { condition?: (string|null); /** Case caseContent */ - caseContent?: (google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.ICaseContent[]|null); + caseContent?: (google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.ICaseContent[]|null); } /** Represents a Case. */ @@ -4117,36 +4117,36 @@ export namespace google { * Constructs a new Case. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.ICase); + constructor(properties?: google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.ICase); /** Case condition. */ public condition: string; /** Case caseContent. */ - public caseContent: google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.ICaseContent[]; + public caseContent: google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.ICaseContent[]; /** * Creates a new Case instance using the specified properties. * @param [properties] Properties to set * @returns Case instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.ICase): google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case; + public static create(properties?: google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.ICase): google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case; /** - * Encodes the specified Case message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.verify|verify} messages. + * Encodes the specified Case message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.verify|verify} messages. * @param message Case message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.ICase, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.ICase, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Case message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.verify|verify} messages. + * Encodes the specified Case message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.verify|verify} messages. * @param message Case message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.ICase, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.ICase, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a Case message from the specified reader or buffer. @@ -4156,7 +4156,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case; /** * Decodes a Case message from the specified reader or buffer, length delimited. @@ -4165,7 +4165,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case; /** * Verifies a Case message. @@ -4179,7 +4179,7 @@ export namespace google { * @param object Plain object * @returns Case */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case; /** * Creates a plain object from a Case message. Also converts values to other types if specified. @@ -4187,7 +4187,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this Case to JSON. @@ -4202,10 +4202,10 @@ export namespace google { interface ICaseContent { /** CaseContent message */ - message?: (google.cloud.dialogflow.cx.v3beta1.IResponseMessage|null); + message?: (google.cloud.dialogflow.cx.v3.IResponseMessage|null); /** CaseContent additionalCases */ - additionalCases?: (google.cloud.dialogflow.cx.v3beta1.Fulfillment.IConditionalCases|null); + additionalCases?: (google.cloud.dialogflow.cx.v3.Fulfillment.IConditionalCases|null); } /** Represents a CaseContent. */ @@ -4215,13 +4215,13 @@ export namespace google { * Constructs a new CaseContent. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.ICaseContent); + constructor(properties?: google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.ICaseContent); /** CaseContent message. */ - public message?: (google.cloud.dialogflow.cx.v3beta1.IResponseMessage|null); + public message?: (google.cloud.dialogflow.cx.v3.IResponseMessage|null); /** CaseContent additionalCases. */ - public additionalCases?: (google.cloud.dialogflow.cx.v3beta1.Fulfillment.IConditionalCases|null); + public additionalCases?: (google.cloud.dialogflow.cx.v3.Fulfillment.IConditionalCases|null); /** CaseContent casesOrMessage. */ public casesOrMessage?: ("message"|"additionalCases"); @@ -4231,23 +4231,23 @@ export namespace google { * @param [properties] Properties to set * @returns CaseContent instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.ICaseContent): google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent; + public static create(properties?: google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.ICaseContent): google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent; /** - * Encodes the specified CaseContent message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent.verify|verify} messages. + * Encodes the specified CaseContent message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent.verify|verify} messages. * @param message CaseContent message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.ICaseContent, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.ICaseContent, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CaseContent message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent.verify|verify} messages. + * Encodes the specified CaseContent message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent.verify|verify} messages. * @param message CaseContent message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.ICaseContent, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.ICaseContent, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a CaseContent message from the specified reader or buffer. @@ -4257,7 +4257,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent; /** * Decodes a CaseContent message from the specified reader or buffer, length delimited. @@ -4266,7 +4266,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent; /** * Verifies a CaseContent message. @@ -4280,7 +4280,7 @@ export namespace google { * @param object Plain object * @returns CaseContent */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent; /** * Creates a plain object from a CaseContent message. Also converts values to other types if specified. @@ -4288,7 +4288,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this CaseContent to JSON. @@ -4304,28 +4304,28 @@ export namespace google { interface IResponseMessage { /** ResponseMessage text */ - text?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IText|null); + text?: (google.cloud.dialogflow.cx.v3.ResponseMessage.IText|null); /** ResponseMessage payload */ payload?: (google.protobuf.IStruct|null); /** ResponseMessage conversationSuccess */ - conversationSuccess?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IConversationSuccess|null); + conversationSuccess?: (google.cloud.dialogflow.cx.v3.ResponseMessage.IConversationSuccess|null); /** ResponseMessage outputAudioText */ - outputAudioText?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IOutputAudioText|null); + outputAudioText?: (google.cloud.dialogflow.cx.v3.ResponseMessage.IOutputAudioText|null); /** ResponseMessage liveAgentHandoff */ - liveAgentHandoff?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ILiveAgentHandoff|null); + liveAgentHandoff?: (google.cloud.dialogflow.cx.v3.ResponseMessage.ILiveAgentHandoff|null); /** ResponseMessage endInteraction */ - endInteraction?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IEndInteraction|null); + endInteraction?: (google.cloud.dialogflow.cx.v3.ResponseMessage.IEndInteraction|null); /** ResponseMessage playAudio */ - playAudio?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IPlayAudio|null); + playAudio?: (google.cloud.dialogflow.cx.v3.ResponseMessage.IPlayAudio|null); /** ResponseMessage mixedAudio */ - mixedAudio?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IMixedAudio|null); + mixedAudio?: (google.cloud.dialogflow.cx.v3.ResponseMessage.IMixedAudio|null); } /** Represents a ResponseMessage. */ @@ -4335,31 +4335,31 @@ export namespace google { * Constructs a new ResponseMessage. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IResponseMessage); + constructor(properties?: google.cloud.dialogflow.cx.v3.IResponseMessage); /** ResponseMessage text. */ - public text?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IText|null); + public text?: (google.cloud.dialogflow.cx.v3.ResponseMessage.IText|null); /** ResponseMessage payload. */ public payload?: (google.protobuf.IStruct|null); /** ResponseMessage conversationSuccess. */ - public conversationSuccess?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IConversationSuccess|null); + public conversationSuccess?: (google.cloud.dialogflow.cx.v3.ResponseMessage.IConversationSuccess|null); /** ResponseMessage outputAudioText. */ - public outputAudioText?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IOutputAudioText|null); + public outputAudioText?: (google.cloud.dialogflow.cx.v3.ResponseMessage.IOutputAudioText|null); /** ResponseMessage liveAgentHandoff. */ - public liveAgentHandoff?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ILiveAgentHandoff|null); + public liveAgentHandoff?: (google.cloud.dialogflow.cx.v3.ResponseMessage.ILiveAgentHandoff|null); /** ResponseMessage endInteraction. */ - public endInteraction?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IEndInteraction|null); + public endInteraction?: (google.cloud.dialogflow.cx.v3.ResponseMessage.IEndInteraction|null); /** ResponseMessage playAudio. */ - public playAudio?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IPlayAudio|null); + public playAudio?: (google.cloud.dialogflow.cx.v3.ResponseMessage.IPlayAudio|null); /** ResponseMessage mixedAudio. */ - public mixedAudio?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IMixedAudio|null); + public mixedAudio?: (google.cloud.dialogflow.cx.v3.ResponseMessage.IMixedAudio|null); /** ResponseMessage message. */ public message?: ("text"|"payload"|"conversationSuccess"|"outputAudioText"|"liveAgentHandoff"|"endInteraction"|"playAudio"|"mixedAudio"); @@ -4369,23 +4369,23 @@ export namespace google { * @param [properties] Properties to set * @returns ResponseMessage instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IResponseMessage): google.cloud.dialogflow.cx.v3beta1.ResponseMessage; + public static create(properties?: google.cloud.dialogflow.cx.v3.IResponseMessage): google.cloud.dialogflow.cx.v3.ResponseMessage; /** - * Encodes the specified ResponseMessage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.verify|verify} messages. + * Encodes the specified ResponseMessage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ResponseMessage.verify|verify} messages. * @param message ResponseMessage message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IResponseMessage, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IResponseMessage, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ResponseMessage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.verify|verify} messages. + * Encodes the specified ResponseMessage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ResponseMessage.verify|verify} messages. * @param message ResponseMessage message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IResponseMessage, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IResponseMessage, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a ResponseMessage message from the specified reader or buffer. @@ -4395,7 +4395,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ResponseMessage; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ResponseMessage; /** * Decodes a ResponseMessage message from the specified reader or buffer, length delimited. @@ -4404,7 +4404,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ResponseMessage; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ResponseMessage; /** * Verifies a ResponseMessage message. @@ -4418,7 +4418,7 @@ export namespace google { * @param object Plain object * @returns ResponseMessage */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ResponseMessage; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ResponseMessage; /** * Creates a plain object from a ResponseMessage message. Also converts values to other types if specified. @@ -4426,7 +4426,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ResponseMessage, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this ResponseMessage to JSON. @@ -4454,7 +4454,7 @@ export namespace google { * Constructs a new Text. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IText); + constructor(properties?: google.cloud.dialogflow.cx.v3.ResponseMessage.IText); /** Text text. */ public text: string[]; @@ -4467,23 +4467,23 @@ export namespace google { * @param [properties] Properties to set * @returns Text instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IText): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text; + public static create(properties?: google.cloud.dialogflow.cx.v3.ResponseMessage.IText): google.cloud.dialogflow.cx.v3.ResponseMessage.Text; /** - * Encodes the specified Text message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text.verify|verify} messages. + * Encodes the specified Text message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ResponseMessage.Text.verify|verify} messages. * @param message Text message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IText, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ResponseMessage.IText, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Text message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text.verify|verify} messages. + * Encodes the specified Text message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ResponseMessage.Text.verify|verify} messages. * @param message Text message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IText, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ResponseMessage.IText, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a Text message from the specified reader or buffer. @@ -4493,7 +4493,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ResponseMessage.Text; /** * Decodes a Text message from the specified reader or buffer, length delimited. @@ -4502,7 +4502,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ResponseMessage.Text; /** * Verifies a Text message. @@ -4516,7 +4516,7 @@ export namespace google { * @param object Plain object * @returns Text */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ResponseMessage.Text; /** * Creates a plain object from a Text message. Also converts values to other types if specified. @@ -4524,7 +4524,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ResponseMessage.Text, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this Text to JSON. @@ -4547,7 +4547,7 @@ export namespace google { * Constructs a new LiveAgentHandoff. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ILiveAgentHandoff); + constructor(properties?: google.cloud.dialogflow.cx.v3.ResponseMessage.ILiveAgentHandoff); /** LiveAgentHandoff metadata. */ public metadata?: (google.protobuf.IStruct|null); @@ -4557,23 +4557,23 @@ export namespace google { * @param [properties] Properties to set * @returns LiveAgentHandoff instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ILiveAgentHandoff): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff; + public static create(properties?: google.cloud.dialogflow.cx.v3.ResponseMessage.ILiveAgentHandoff): google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff; /** - * Encodes the specified LiveAgentHandoff message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff.verify|verify} messages. + * Encodes the specified LiveAgentHandoff message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff.verify|verify} messages. * @param message LiveAgentHandoff message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ILiveAgentHandoff, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ResponseMessage.ILiveAgentHandoff, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified LiveAgentHandoff message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff.verify|verify} messages. + * Encodes the specified LiveAgentHandoff message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff.verify|verify} messages. * @param message LiveAgentHandoff message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ILiveAgentHandoff, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ResponseMessage.ILiveAgentHandoff, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a LiveAgentHandoff message from the specified reader or buffer. @@ -4583,7 +4583,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff; /** * Decodes a LiveAgentHandoff message from the specified reader or buffer, length delimited. @@ -4592,7 +4592,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff; /** * Verifies a LiveAgentHandoff message. @@ -4606,7 +4606,7 @@ export namespace google { * @param object Plain object * @returns LiveAgentHandoff */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff; /** * Creates a plain object from a LiveAgentHandoff message. Also converts values to other types if specified. @@ -4614,7 +4614,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this LiveAgentHandoff to JSON. @@ -4637,7 +4637,7 @@ export namespace google { * Constructs a new ConversationSuccess. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IConversationSuccess); + constructor(properties?: google.cloud.dialogflow.cx.v3.ResponseMessage.IConversationSuccess); /** ConversationSuccess metadata. */ public metadata?: (google.protobuf.IStruct|null); @@ -4647,23 +4647,23 @@ export namespace google { * @param [properties] Properties to set * @returns ConversationSuccess instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IConversationSuccess): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess; + public static create(properties?: google.cloud.dialogflow.cx.v3.ResponseMessage.IConversationSuccess): google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess; /** - * Encodes the specified ConversationSuccess message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess.verify|verify} messages. + * Encodes the specified ConversationSuccess message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess.verify|verify} messages. * @param message ConversationSuccess message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IConversationSuccess, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ResponseMessage.IConversationSuccess, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ConversationSuccess message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess.verify|verify} messages. + * Encodes the specified ConversationSuccess message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess.verify|verify} messages. * @param message ConversationSuccess message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IConversationSuccess, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ResponseMessage.IConversationSuccess, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a ConversationSuccess message from the specified reader or buffer. @@ -4673,7 +4673,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess; /** * Decodes a ConversationSuccess message from the specified reader or buffer, length delimited. @@ -4682,7 +4682,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess; /** * Verifies a ConversationSuccess message. @@ -4696,7 +4696,7 @@ export namespace google { * @param object Plain object * @returns ConversationSuccess */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess; /** * Creates a plain object from a ConversationSuccess message. Also converts values to other types if specified. @@ -4704,7 +4704,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this ConversationSuccess to JSON. @@ -4733,7 +4733,7 @@ export namespace google { * Constructs a new OutputAudioText. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IOutputAudioText); + constructor(properties?: google.cloud.dialogflow.cx.v3.ResponseMessage.IOutputAudioText); /** OutputAudioText text. */ public text: string; @@ -4752,23 +4752,23 @@ export namespace google { * @param [properties] Properties to set * @returns OutputAudioText instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IOutputAudioText): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText; + public static create(properties?: google.cloud.dialogflow.cx.v3.ResponseMessage.IOutputAudioText): google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText; /** - * Encodes the specified OutputAudioText message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText.verify|verify} messages. + * Encodes the specified OutputAudioText message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText.verify|verify} messages. * @param message OutputAudioText message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IOutputAudioText, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ResponseMessage.IOutputAudioText, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified OutputAudioText message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText.verify|verify} messages. + * Encodes the specified OutputAudioText message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText.verify|verify} messages. * @param message OutputAudioText message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IOutputAudioText, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ResponseMessage.IOutputAudioText, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an OutputAudioText message from the specified reader or buffer. @@ -4778,7 +4778,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText; /** * Decodes an OutputAudioText message from the specified reader or buffer, length delimited. @@ -4787,7 +4787,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText; /** * Verifies an OutputAudioText message. @@ -4801,7 +4801,7 @@ export namespace google { * @param object Plain object * @returns OutputAudioText */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText; /** * Creates a plain object from an OutputAudioText message. Also converts values to other types if specified. @@ -4809,7 +4809,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this OutputAudioText to JSON. @@ -4818,11 +4818,191 @@ export namespace google { public toJSON(): { [k: string]: any }; } + /** Properties of an EndInteraction. */ + interface IEndInteraction { + } + + /** Represents an EndInteraction. */ + class EndInteraction implements IEndInteraction { + + /** + * Constructs a new EndInteraction. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.ResponseMessage.IEndInteraction); + + /** + * Creates a new EndInteraction instance using the specified properties. + * @param [properties] Properties to set + * @returns EndInteraction instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.ResponseMessage.IEndInteraction): google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction; + + /** + * Encodes the specified EndInteraction message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction.verify|verify} messages. + * @param message EndInteraction message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.ResponseMessage.IEndInteraction, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified EndInteraction message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction.verify|verify} messages. + * @param message EndInteraction message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ResponseMessage.IEndInteraction, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EndInteraction message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EndInteraction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction; + + /** + * Decodes an EndInteraction message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EndInteraction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction; + + /** + * Verifies an EndInteraction message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an EndInteraction message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EndInteraction + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction; + + /** + * Creates a plain object from an EndInteraction message. Also converts values to other types if specified. + * @param message EndInteraction + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EndInteraction to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a PlayAudio. */ + interface IPlayAudio { + + /** PlayAudio audioUri */ + audioUri?: (string|null); + + /** PlayAudio allowPlaybackInterruption */ + allowPlaybackInterruption?: (boolean|null); + } + + /** Represents a PlayAudio. */ + class PlayAudio implements IPlayAudio { + + /** + * Constructs a new PlayAudio. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.ResponseMessage.IPlayAudio); + + /** PlayAudio audioUri. */ + public audioUri: string; + + /** PlayAudio allowPlaybackInterruption. */ + public allowPlaybackInterruption: boolean; + + /** + * Creates a new PlayAudio instance using the specified properties. + * @param [properties] Properties to set + * @returns PlayAudio instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.ResponseMessage.IPlayAudio): google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio; + + /** + * Encodes the specified PlayAudio message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio.verify|verify} messages. + * @param message PlayAudio message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.ResponseMessage.IPlayAudio, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PlayAudio message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio.verify|verify} messages. + * @param message PlayAudio message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ResponseMessage.IPlayAudio, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PlayAudio message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PlayAudio + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio; + + /** + * Decodes a PlayAudio message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PlayAudio + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio; + + /** + * Verifies a PlayAudio message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a PlayAudio message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PlayAudio + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio; + + /** + * Creates a plain object from a PlayAudio message. Also converts values to other types if specified. + * @param message PlayAudio + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PlayAudio to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + /** Properties of a MixedAudio. */ interface IMixedAudio { /** MixedAudio segments */ - segments?: (google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.ISegment[]|null); + segments?: (google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.ISegment[]|null); } /** Represents a MixedAudio. */ @@ -4832,33 +5012,33 @@ export namespace google { * Constructs a new MixedAudio. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IMixedAudio); + constructor(properties?: google.cloud.dialogflow.cx.v3.ResponseMessage.IMixedAudio); /** MixedAudio segments. */ - public segments: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.ISegment[]; + public segments: google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.ISegment[]; /** * Creates a new MixedAudio instance using the specified properties. * @param [properties] Properties to set * @returns MixedAudio instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IMixedAudio): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio; + public static create(properties?: google.cloud.dialogflow.cx.v3.ResponseMessage.IMixedAudio): google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio; /** - * Encodes the specified MixedAudio message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.verify|verify} messages. + * Encodes the specified MixedAudio message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.verify|verify} messages. * @param message MixedAudio message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IMixedAudio, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ResponseMessage.IMixedAudio, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MixedAudio message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.verify|verify} messages. + * Encodes the specified MixedAudio message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.verify|verify} messages. * @param message MixedAudio message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IMixedAudio, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ResponseMessage.IMixedAudio, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a MixedAudio message from the specified reader or buffer. @@ -4868,7 +5048,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio; /** * Decodes a MixedAudio message from the specified reader or buffer, length delimited. @@ -4877,7 +5057,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio; /** * Verifies a MixedAudio message. @@ -4891,7 +5071,7 @@ export namespace google { * @param object Plain object * @returns MixedAudio */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio; /** * Creates a plain object from a MixedAudio message. Also converts values to other types if specified. @@ -4899,7 +5079,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this MixedAudio to JSON. @@ -4930,7 +5110,7 @@ export namespace google { * Constructs a new Segment. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.ISegment); + constructor(properties?: google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.ISegment); /** Segment audio. */ public audio: (Uint8Array|string); @@ -4949,23 +5129,23 @@ export namespace google { * @param [properties] Properties to set * @returns Segment instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.ISegment): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment; + public static create(properties?: google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.ISegment): google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment; /** - * Encodes the specified Segment message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment.verify|verify} messages. + * Encodes the specified Segment message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment.verify|verify} messages. * @param message Segment message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.ISegment, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.ISegment, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Segment message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment.verify|verify} messages. + * Encodes the specified Segment message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment.verify|verify} messages. * @param message Segment message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.ISegment, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.ISegment, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a Segment message from the specified reader or buffer. @@ -4975,7 +5155,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment; /** * Decodes a Segment message from the specified reader or buffer, length delimited. @@ -4984,7 +5164,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment; /** * Verifies a Segment message. @@ -4998,7 +5178,7 @@ export namespace google { * @param object Plain object * @returns Segment */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment; /** * Creates a plain object from a Segment message. Also converts values to other types if specified. @@ -5006,7 +5186,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this Segment to JSON. @@ -5015,247 +5195,67 @@ export namespace google { public toJSON(): { [k: string]: any }; } } + } - /** Properties of an EndInteraction. */ - interface IEndInteraction { - } - - /** Represents an EndInteraction. */ - class EndInteraction implements IEndInteraction { + /** Properties of a SpeechWordInfo. */ + interface ISpeechWordInfo { - /** - * Constructs a new EndInteraction. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IEndInteraction); + /** SpeechWordInfo word */ + word?: (string|null); - /** - * Creates a new EndInteraction instance using the specified properties. - * @param [properties] Properties to set - * @returns EndInteraction instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IEndInteraction): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction; + /** SpeechWordInfo startOffset */ + startOffset?: (google.protobuf.IDuration|null); - /** - * Encodes the specified EndInteraction message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction.verify|verify} messages. - * @param message EndInteraction message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IEndInteraction, writer?: $protobuf.Writer): $protobuf.Writer; + /** SpeechWordInfo endOffset */ + endOffset?: (google.protobuf.IDuration|null); - /** - * Encodes the specified EndInteraction message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction.verify|verify} messages. - * @param message EndInteraction message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IEndInteraction, writer?: $protobuf.Writer): $protobuf.Writer; + /** SpeechWordInfo confidence */ + confidence?: (number|null); + } - /** - * Decodes an EndInteraction message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns EndInteraction - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction; + /** Represents a SpeechWordInfo. */ + class SpeechWordInfo implements ISpeechWordInfo { - /** - * Decodes an EndInteraction message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EndInteraction - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction; + /** + * Constructs a new SpeechWordInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.ISpeechWordInfo); - /** - * Verifies an EndInteraction message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** SpeechWordInfo word. */ + public word: string; - /** - * Creates an EndInteraction message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns EndInteraction - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction; + /** SpeechWordInfo startOffset. */ + public startOffset?: (google.protobuf.IDuration|null); - /** - * Creates a plain object from an EndInteraction message. Also converts values to other types if specified. - * @param message EndInteraction - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** SpeechWordInfo endOffset. */ + public endOffset?: (google.protobuf.IDuration|null); - /** - * Converts this EndInteraction to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** SpeechWordInfo confidence. */ + public confidence: number; - /** Properties of a PlayAudio. */ - interface IPlayAudio { - - /** PlayAudio audioUri */ - audioUri?: (string|null); - - /** PlayAudio allowPlaybackInterruption */ - allowPlaybackInterruption?: (boolean|null); - } - - /** Represents a PlayAudio. */ - class PlayAudio implements IPlayAudio { - - /** - * Constructs a new PlayAudio. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IPlayAudio); - - /** PlayAudio audioUri. */ - public audioUri: string; - - /** PlayAudio allowPlaybackInterruption. */ - public allowPlaybackInterruption: boolean; - - /** - * Creates a new PlayAudio instance using the specified properties. - * @param [properties] Properties to set - * @returns PlayAudio instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IPlayAudio): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio; - - /** - * Encodes the specified PlayAudio message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio.verify|verify} messages. - * @param message PlayAudio message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IPlayAudio, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified PlayAudio message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio.verify|verify} messages. - * @param message PlayAudio message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IPlayAudio, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a PlayAudio message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PlayAudio - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio; - - /** - * Decodes a PlayAudio message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PlayAudio - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio; - - /** - * Verifies a PlayAudio message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a PlayAudio message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns PlayAudio - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio; - - /** - * Creates a plain object from a PlayAudio message. Also converts values to other types if specified. - * @param message PlayAudio - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this PlayAudio to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } - - /** Properties of a SpeechWordInfo. */ - interface ISpeechWordInfo { - - /** SpeechWordInfo word */ - word?: (string|null); - - /** SpeechWordInfo startOffset */ - startOffset?: (google.protobuf.IDuration|null); - - /** SpeechWordInfo endOffset */ - endOffset?: (google.protobuf.IDuration|null); - - /** SpeechWordInfo confidence */ - confidence?: (number|null); - } - - /** Represents a SpeechWordInfo. */ - class SpeechWordInfo implements ISpeechWordInfo { - - /** - * Constructs a new SpeechWordInfo. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ISpeechWordInfo); - - /** SpeechWordInfo word. */ - public word: string; - - /** SpeechWordInfo startOffset. */ - public startOffset?: (google.protobuf.IDuration|null); - - /** SpeechWordInfo endOffset. */ - public endOffset?: (google.protobuf.IDuration|null); - - /** SpeechWordInfo confidence. */ - public confidence: number; + /** + * Creates a new SpeechWordInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns SpeechWordInfo instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.ISpeechWordInfo): google.cloud.dialogflow.cx.v3.SpeechWordInfo; /** - * Creates a new SpeechWordInfo instance using the specified properties. - * @param [properties] Properties to set - * @returns SpeechWordInfo instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ISpeechWordInfo): google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo; - - /** - * Encodes the specified SpeechWordInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo.verify|verify} messages. + * Encodes the specified SpeechWordInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SpeechWordInfo.verify|verify} messages. * @param message SpeechWordInfo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ISpeechWordInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ISpeechWordInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SpeechWordInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo.verify|verify} messages. + * Encodes the specified SpeechWordInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SpeechWordInfo.verify|verify} messages. * @param message SpeechWordInfo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ISpeechWordInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ISpeechWordInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a SpeechWordInfo message from the specified reader or buffer. @@ -5265,7 +5265,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.SpeechWordInfo; /** * Decodes a SpeechWordInfo message from the specified reader or buffer, length delimited. @@ -5274,7 +5274,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.SpeechWordInfo; /** * Verifies a SpeechWordInfo message. @@ -5288,7 +5288,7 @@ export namespace google { * @param object Plain object * @returns SpeechWordInfo */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.SpeechWordInfo; /** * Creates a plain object from a SpeechWordInfo message. Also converts values to other types if specified. @@ -5296,7 +5296,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.SpeechWordInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this SpeechWordInfo to JSON. @@ -5321,7 +5321,7 @@ export namespace google { interface IInputAudioConfig { /** InputAudioConfig audioEncoding */ - audioEncoding?: (google.cloud.dialogflow.cx.v3beta1.AudioEncoding|keyof typeof google.cloud.dialogflow.cx.v3beta1.AudioEncoding|null); + audioEncoding?: (google.cloud.dialogflow.cx.v3.AudioEncoding|keyof typeof google.cloud.dialogflow.cx.v3.AudioEncoding|null); /** InputAudioConfig sampleRateHertz */ sampleRateHertz?: (number|null); @@ -5336,7 +5336,7 @@ export namespace google { model?: (string|null); /** InputAudioConfig modelVariant */ - modelVariant?: (google.cloud.dialogflow.cx.v3beta1.SpeechModelVariant|keyof typeof google.cloud.dialogflow.cx.v3beta1.SpeechModelVariant|null); + modelVariant?: (google.cloud.dialogflow.cx.v3.SpeechModelVariant|keyof typeof google.cloud.dialogflow.cx.v3.SpeechModelVariant|null); /** InputAudioConfig singleUtterance */ singleUtterance?: (boolean|null); @@ -5349,10 +5349,10 @@ export namespace google { * Constructs a new InputAudioConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IInputAudioConfig); + constructor(properties?: google.cloud.dialogflow.cx.v3.IInputAudioConfig); /** InputAudioConfig audioEncoding. */ - public audioEncoding: (google.cloud.dialogflow.cx.v3beta1.AudioEncoding|keyof typeof google.cloud.dialogflow.cx.v3beta1.AudioEncoding); + public audioEncoding: (google.cloud.dialogflow.cx.v3.AudioEncoding|keyof typeof google.cloud.dialogflow.cx.v3.AudioEncoding); /** InputAudioConfig sampleRateHertz. */ public sampleRateHertz: number; @@ -5367,7 +5367,7 @@ export namespace google { public model: string; /** InputAudioConfig modelVariant. */ - public modelVariant: (google.cloud.dialogflow.cx.v3beta1.SpeechModelVariant|keyof typeof google.cloud.dialogflow.cx.v3beta1.SpeechModelVariant); + public modelVariant: (google.cloud.dialogflow.cx.v3.SpeechModelVariant|keyof typeof google.cloud.dialogflow.cx.v3.SpeechModelVariant); /** InputAudioConfig singleUtterance. */ public singleUtterance: boolean; @@ -5377,23 +5377,23 @@ export namespace google { * @param [properties] Properties to set * @returns InputAudioConfig instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IInputAudioConfig): google.cloud.dialogflow.cx.v3beta1.InputAudioConfig; + public static create(properties?: google.cloud.dialogflow.cx.v3.IInputAudioConfig): google.cloud.dialogflow.cx.v3.InputAudioConfig; /** - * Encodes the specified InputAudioConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.InputAudioConfig.verify|verify} messages. + * Encodes the specified InputAudioConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.InputAudioConfig.verify|verify} messages. * @param message InputAudioConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IInputAudioConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IInputAudioConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified InputAudioConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.InputAudioConfig.verify|verify} messages. + * Encodes the specified InputAudioConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.InputAudioConfig.verify|verify} messages. * @param message InputAudioConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IInputAudioConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IInputAudioConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an InputAudioConfig message from the specified reader or buffer. @@ -5403,7 +5403,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.InputAudioConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.InputAudioConfig; /** * Decodes an InputAudioConfig message from the specified reader or buffer, length delimited. @@ -5412,7 +5412,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.InputAudioConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.InputAudioConfig; /** * Verifies an InputAudioConfig message. @@ -5426,7 +5426,7 @@ export namespace google { * @param object Plain object * @returns InputAudioConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.InputAudioConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.InputAudioConfig; /** * Creates a plain object from an InputAudioConfig message. Also converts values to other types if specified. @@ -5434,7 +5434,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.InputAudioConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.InputAudioConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this InputAudioConfig to JSON. @@ -5458,7 +5458,7 @@ export namespace google { name?: (string|null); /** VoiceSelectionParams ssmlGender */ - ssmlGender?: (google.cloud.dialogflow.cx.v3beta1.SsmlVoiceGender|keyof typeof google.cloud.dialogflow.cx.v3beta1.SsmlVoiceGender|null); + ssmlGender?: (google.cloud.dialogflow.cx.v3.SsmlVoiceGender|keyof typeof google.cloud.dialogflow.cx.v3.SsmlVoiceGender|null); } /** Represents a VoiceSelectionParams. */ @@ -5468,36 +5468,36 @@ export namespace google { * Constructs a new VoiceSelectionParams. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IVoiceSelectionParams); + constructor(properties?: google.cloud.dialogflow.cx.v3.IVoiceSelectionParams); /** VoiceSelectionParams name. */ public name: string; /** VoiceSelectionParams ssmlGender. */ - public ssmlGender: (google.cloud.dialogflow.cx.v3beta1.SsmlVoiceGender|keyof typeof google.cloud.dialogflow.cx.v3beta1.SsmlVoiceGender); + public ssmlGender: (google.cloud.dialogflow.cx.v3.SsmlVoiceGender|keyof typeof google.cloud.dialogflow.cx.v3.SsmlVoiceGender); /** * Creates a new VoiceSelectionParams instance using the specified properties. * @param [properties] Properties to set * @returns VoiceSelectionParams instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IVoiceSelectionParams): google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams; + public static create(properties?: google.cloud.dialogflow.cx.v3.IVoiceSelectionParams): google.cloud.dialogflow.cx.v3.VoiceSelectionParams; /** - * Encodes the specified VoiceSelectionParams message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams.verify|verify} messages. + * Encodes the specified VoiceSelectionParams message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.VoiceSelectionParams.verify|verify} messages. * @param message VoiceSelectionParams message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IVoiceSelectionParams, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IVoiceSelectionParams, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified VoiceSelectionParams message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams.verify|verify} messages. + * Encodes the specified VoiceSelectionParams message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.VoiceSelectionParams.verify|verify} messages. * @param message VoiceSelectionParams message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IVoiceSelectionParams, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IVoiceSelectionParams, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a VoiceSelectionParams message from the specified reader or buffer. @@ -5507,7 +5507,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.VoiceSelectionParams; /** * Decodes a VoiceSelectionParams message from the specified reader or buffer, length delimited. @@ -5516,7 +5516,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.VoiceSelectionParams; /** * Verifies a VoiceSelectionParams message. @@ -5530,7 +5530,7 @@ export namespace google { * @param object Plain object * @returns VoiceSelectionParams */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.VoiceSelectionParams; /** * Creates a plain object from a VoiceSelectionParams message. Also converts values to other types if specified. @@ -5538,7 +5538,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.VoiceSelectionParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this VoiceSelectionParams to JSON. @@ -5563,7 +5563,7 @@ export namespace google { effectsProfileId?: (string[]|null); /** SynthesizeSpeechConfig voice */ - voice?: (google.cloud.dialogflow.cx.v3beta1.IVoiceSelectionParams|null); + voice?: (google.cloud.dialogflow.cx.v3.IVoiceSelectionParams|null); } /** Represents a SynthesizeSpeechConfig. */ @@ -5573,7 +5573,7 @@ export namespace google { * Constructs a new SynthesizeSpeechConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ISynthesizeSpeechConfig); + constructor(properties?: google.cloud.dialogflow.cx.v3.ISynthesizeSpeechConfig); /** SynthesizeSpeechConfig speakingRate. */ public speakingRate: number; @@ -5588,30 +5588,30 @@ export namespace google { public effectsProfileId: string[]; /** SynthesizeSpeechConfig voice. */ - public voice?: (google.cloud.dialogflow.cx.v3beta1.IVoiceSelectionParams|null); + public voice?: (google.cloud.dialogflow.cx.v3.IVoiceSelectionParams|null); /** * Creates a new SynthesizeSpeechConfig instance using the specified properties. * @param [properties] Properties to set * @returns SynthesizeSpeechConfig instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ISynthesizeSpeechConfig): google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig; + public static create(properties?: google.cloud.dialogflow.cx.v3.ISynthesizeSpeechConfig): google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig; /** - * Encodes the specified SynthesizeSpeechConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig.verify|verify} messages. + * Encodes the specified SynthesizeSpeechConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig.verify|verify} messages. * @param message SynthesizeSpeechConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ISynthesizeSpeechConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ISynthesizeSpeechConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SynthesizeSpeechConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig.verify|verify} messages. + * Encodes the specified SynthesizeSpeechConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig.verify|verify} messages. * @param message SynthesizeSpeechConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ISynthesizeSpeechConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ISynthesizeSpeechConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a SynthesizeSpeechConfig message from the specified reader or buffer. @@ -5621,7 +5621,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig; /** * Decodes a SynthesizeSpeechConfig message from the specified reader or buffer, length delimited. @@ -5630,7 +5630,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig; /** * Verifies a SynthesizeSpeechConfig message. @@ -5644,7 +5644,7 @@ export namespace google { * @param object Plain object * @returns SynthesizeSpeechConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig; /** * Creates a plain object from a SynthesizeSpeechConfig message. Also converts values to other types if specified. @@ -5652,7 +5652,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this SynthesizeSpeechConfig to JSON. @@ -5673,13 +5673,13 @@ export namespace google { interface IOutputAudioConfig { /** OutputAudioConfig audioEncoding */ - audioEncoding?: (google.cloud.dialogflow.cx.v3beta1.OutputAudioEncoding|keyof typeof google.cloud.dialogflow.cx.v3beta1.OutputAudioEncoding|null); + audioEncoding?: (google.cloud.dialogflow.cx.v3.OutputAudioEncoding|keyof typeof google.cloud.dialogflow.cx.v3.OutputAudioEncoding|null); /** OutputAudioConfig sampleRateHertz */ sampleRateHertz?: (number|null); /** OutputAudioConfig synthesizeSpeechConfig */ - synthesizeSpeechConfig?: (google.cloud.dialogflow.cx.v3beta1.ISynthesizeSpeechConfig|null); + synthesizeSpeechConfig?: (google.cloud.dialogflow.cx.v3.ISynthesizeSpeechConfig|null); } /** Represents an OutputAudioConfig. */ @@ -5689,39 +5689,39 @@ export namespace google { * Constructs a new OutputAudioConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig); + constructor(properties?: google.cloud.dialogflow.cx.v3.IOutputAudioConfig); /** OutputAudioConfig audioEncoding. */ - public audioEncoding: (google.cloud.dialogflow.cx.v3beta1.OutputAudioEncoding|keyof typeof google.cloud.dialogflow.cx.v3beta1.OutputAudioEncoding); + public audioEncoding: (google.cloud.dialogflow.cx.v3.OutputAudioEncoding|keyof typeof google.cloud.dialogflow.cx.v3.OutputAudioEncoding); /** OutputAudioConfig sampleRateHertz. */ public sampleRateHertz: number; /** OutputAudioConfig synthesizeSpeechConfig. */ - public synthesizeSpeechConfig?: (google.cloud.dialogflow.cx.v3beta1.ISynthesizeSpeechConfig|null); + public synthesizeSpeechConfig?: (google.cloud.dialogflow.cx.v3.ISynthesizeSpeechConfig|null); /** * Creates a new OutputAudioConfig instance using the specified properties. * @param [properties] Properties to set * @returns OutputAudioConfig instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig): google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig; + public static create(properties?: google.cloud.dialogflow.cx.v3.IOutputAudioConfig): google.cloud.dialogflow.cx.v3.OutputAudioConfig; /** - * Encodes the specified OutputAudioConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.verify|verify} messages. + * Encodes the specified OutputAudioConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.OutputAudioConfig.verify|verify} messages. * @param message OutputAudioConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IOutputAudioConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified OutputAudioConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.verify|verify} messages. + * Encodes the specified OutputAudioConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.OutputAudioConfig.verify|verify} messages. * @param message OutputAudioConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IOutputAudioConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an OutputAudioConfig message from the specified reader or buffer. @@ -5731,7 +5731,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.OutputAudioConfig; /** * Decodes an OutputAudioConfig message from the specified reader or buffer, length delimited. @@ -5740,7 +5740,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.OutputAudioConfig; /** * Verifies an OutputAudioConfig message. @@ -5754,7 +5754,7 @@ export namespace google { * @param object Plain object * @returns OutputAudioConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.OutputAudioConfig; /** * Creates a plain object from an OutputAudioConfig message. Also converts values to other types if specified. @@ -5762,7 +5762,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.OutputAudioConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this OutputAudioConfig to JSON. @@ -5806,104 +5806,104 @@ export namespace google { * @param request ListEntityTypesRequest message or plain object * @param callback Node-style callback called with the error, if any, and ListEntityTypesResponse */ - public listEntityTypes(request: google.cloud.dialogflow.cx.v3beta1.IListEntityTypesRequest, callback: google.cloud.dialogflow.cx.v3beta1.EntityTypes.ListEntityTypesCallback): void; + public listEntityTypes(request: google.cloud.dialogflow.cx.v3.IListEntityTypesRequest, callback: google.cloud.dialogflow.cx.v3.EntityTypes.ListEntityTypesCallback): void; /** * Calls ListEntityTypes. * @param request ListEntityTypesRequest message or plain object * @returns Promise */ - public listEntityTypes(request: google.cloud.dialogflow.cx.v3beta1.IListEntityTypesRequest): Promise; + public listEntityTypes(request: google.cloud.dialogflow.cx.v3.IListEntityTypesRequest): Promise; /** * Calls GetEntityType. * @param request GetEntityTypeRequest message or plain object * @param callback Node-style callback called with the error, if any, and EntityType */ - public getEntityType(request: google.cloud.dialogflow.cx.v3beta1.IGetEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3beta1.EntityTypes.GetEntityTypeCallback): void; + public getEntityType(request: google.cloud.dialogflow.cx.v3.IGetEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3.EntityTypes.GetEntityTypeCallback): void; /** * Calls GetEntityType. * @param request GetEntityTypeRequest message or plain object * @returns Promise */ - public getEntityType(request: google.cloud.dialogflow.cx.v3beta1.IGetEntityTypeRequest): Promise; + public getEntityType(request: google.cloud.dialogflow.cx.v3.IGetEntityTypeRequest): Promise; /** * Calls CreateEntityType. * @param request CreateEntityTypeRequest message or plain object * @param callback Node-style callback called with the error, if any, and EntityType */ - public createEntityType(request: google.cloud.dialogflow.cx.v3beta1.ICreateEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3beta1.EntityTypes.CreateEntityTypeCallback): void; + public createEntityType(request: google.cloud.dialogflow.cx.v3.ICreateEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3.EntityTypes.CreateEntityTypeCallback): void; /** * Calls CreateEntityType. * @param request CreateEntityTypeRequest message or plain object * @returns Promise */ - public createEntityType(request: google.cloud.dialogflow.cx.v3beta1.ICreateEntityTypeRequest): Promise; + public createEntityType(request: google.cloud.dialogflow.cx.v3.ICreateEntityTypeRequest): Promise; /** * Calls UpdateEntityType. * @param request UpdateEntityTypeRequest message or plain object * @param callback Node-style callback called with the error, if any, and EntityType */ - public updateEntityType(request: google.cloud.dialogflow.cx.v3beta1.IUpdateEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3beta1.EntityTypes.UpdateEntityTypeCallback): void; + public updateEntityType(request: google.cloud.dialogflow.cx.v3.IUpdateEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3.EntityTypes.UpdateEntityTypeCallback): void; /** * Calls UpdateEntityType. * @param request UpdateEntityTypeRequest message or plain object * @returns Promise */ - public updateEntityType(request: google.cloud.dialogflow.cx.v3beta1.IUpdateEntityTypeRequest): Promise; + public updateEntityType(request: google.cloud.dialogflow.cx.v3.IUpdateEntityTypeRequest): Promise; /** * Calls DeleteEntityType. * @param request DeleteEntityTypeRequest message or plain object * @param callback Node-style callback called with the error, if any, and Empty */ - public deleteEntityType(request: google.cloud.dialogflow.cx.v3beta1.IDeleteEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3beta1.EntityTypes.DeleteEntityTypeCallback): void; + public deleteEntityType(request: google.cloud.dialogflow.cx.v3.IDeleteEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3.EntityTypes.DeleteEntityTypeCallback): void; /** * Calls DeleteEntityType. * @param request DeleteEntityTypeRequest message or plain object * @returns Promise */ - public deleteEntityType(request: google.cloud.dialogflow.cx.v3beta1.IDeleteEntityTypeRequest): Promise; + public deleteEntityType(request: google.cloud.dialogflow.cx.v3.IDeleteEntityTypeRequest): Promise; } namespace EntityTypes { /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.EntityTypes#listEntityTypes}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.EntityTypes#listEntityTypes}. * @param error Error, if any * @param [response] ListEntityTypesResponse */ - type ListEntityTypesCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse) => void; + type ListEntityTypesCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.ListEntityTypesResponse) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.EntityTypes#getEntityType}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.EntityTypes#getEntityType}. * @param error Error, if any * @param [response] EntityType */ - type GetEntityTypeCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.EntityType) => void; + type GetEntityTypeCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.EntityType) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.EntityTypes#createEntityType}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.EntityTypes#createEntityType}. * @param error Error, if any * @param [response] EntityType */ - type CreateEntityTypeCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.EntityType) => void; + type CreateEntityTypeCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.EntityType) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.EntityTypes#updateEntityType}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.EntityTypes#updateEntityType}. * @param error Error, if any * @param [response] EntityType */ - type UpdateEntityTypeCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.EntityType) => void; + type UpdateEntityTypeCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.EntityType) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.EntityTypes#deleteEntityType}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.EntityTypes#deleteEntityType}. * @param error Error, if any * @param [response] Empty */ @@ -5920,16 +5920,16 @@ export namespace google { displayName?: (string|null); /** EntityType kind */ - kind?: (google.cloud.dialogflow.cx.v3beta1.EntityType.Kind|keyof typeof google.cloud.dialogflow.cx.v3beta1.EntityType.Kind|null); + kind?: (google.cloud.dialogflow.cx.v3.EntityType.Kind|keyof typeof google.cloud.dialogflow.cx.v3.EntityType.Kind|null); /** EntityType autoExpansionMode */ - autoExpansionMode?: (google.cloud.dialogflow.cx.v3beta1.EntityType.AutoExpansionMode|keyof typeof google.cloud.dialogflow.cx.v3beta1.EntityType.AutoExpansionMode|null); + autoExpansionMode?: (google.cloud.dialogflow.cx.v3.EntityType.AutoExpansionMode|keyof typeof google.cloud.dialogflow.cx.v3.EntityType.AutoExpansionMode|null); /** EntityType entities */ - entities?: (google.cloud.dialogflow.cx.v3beta1.EntityType.IEntity[]|null); + entities?: (google.cloud.dialogflow.cx.v3.EntityType.IEntity[]|null); /** EntityType excludedPhrases */ - excludedPhrases?: (google.cloud.dialogflow.cx.v3beta1.EntityType.IExcludedPhrase[]|null); + excludedPhrases?: (google.cloud.dialogflow.cx.v3.EntityType.IExcludedPhrase[]|null); /** EntityType enableFuzzyExtraction */ enableFuzzyExtraction?: (boolean|null); @@ -5942,7 +5942,7 @@ export namespace google { * Constructs a new EntityType. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IEntityType); + constructor(properties?: google.cloud.dialogflow.cx.v3.IEntityType); /** EntityType name. */ public name: string; @@ -5951,16 +5951,16 @@ export namespace google { public displayName: string; /** EntityType kind. */ - public kind: (google.cloud.dialogflow.cx.v3beta1.EntityType.Kind|keyof typeof google.cloud.dialogflow.cx.v3beta1.EntityType.Kind); + public kind: (google.cloud.dialogflow.cx.v3.EntityType.Kind|keyof typeof google.cloud.dialogflow.cx.v3.EntityType.Kind); /** EntityType autoExpansionMode. */ - public autoExpansionMode: (google.cloud.dialogflow.cx.v3beta1.EntityType.AutoExpansionMode|keyof typeof google.cloud.dialogflow.cx.v3beta1.EntityType.AutoExpansionMode); + public autoExpansionMode: (google.cloud.dialogflow.cx.v3.EntityType.AutoExpansionMode|keyof typeof google.cloud.dialogflow.cx.v3.EntityType.AutoExpansionMode); /** EntityType entities. */ - public entities: google.cloud.dialogflow.cx.v3beta1.EntityType.IEntity[]; + public entities: google.cloud.dialogflow.cx.v3.EntityType.IEntity[]; /** EntityType excludedPhrases. */ - public excludedPhrases: google.cloud.dialogflow.cx.v3beta1.EntityType.IExcludedPhrase[]; + public excludedPhrases: google.cloud.dialogflow.cx.v3.EntityType.IExcludedPhrase[]; /** EntityType enableFuzzyExtraction. */ public enableFuzzyExtraction: boolean; @@ -5970,23 +5970,23 @@ export namespace google { * @param [properties] Properties to set * @returns EntityType instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IEntityType): google.cloud.dialogflow.cx.v3beta1.EntityType; + public static create(properties?: google.cloud.dialogflow.cx.v3.IEntityType): google.cloud.dialogflow.cx.v3.EntityType; /** - * Encodes the specified EntityType message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EntityType.verify|verify} messages. + * Encodes the specified EntityType message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.EntityType.verify|verify} messages. * @param message EntityType message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IEntityType, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IEntityType, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified EntityType message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EntityType.verify|verify} messages. + * Encodes the specified EntityType message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.EntityType.verify|verify} messages. * @param message EntityType message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IEntityType, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IEntityType, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an EntityType message from the specified reader or buffer. @@ -5996,7 +5996,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.EntityType; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.EntityType; /** * Decodes an EntityType message from the specified reader or buffer, length delimited. @@ -6005,7 +6005,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.EntityType; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.EntityType; /** * Verifies an EntityType message. @@ -6019,7 +6019,7 @@ export namespace google { * @param object Plain object * @returns EntityType */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.EntityType; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.EntityType; /** * Creates a plain object from an EntityType message. Also converts values to other types if specified. @@ -6027,7 +6027,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.EntityType, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.EntityType, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this EntityType to JSON. @@ -6055,7 +6055,7 @@ export namespace google { * Constructs a new Entity. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.EntityType.IEntity); + constructor(properties?: google.cloud.dialogflow.cx.v3.EntityType.IEntity); /** Entity value. */ public value: string; @@ -6068,23 +6068,23 @@ export namespace google { * @param [properties] Properties to set * @returns Entity instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.EntityType.IEntity): google.cloud.dialogflow.cx.v3beta1.EntityType.Entity; + public static create(properties?: google.cloud.dialogflow.cx.v3.EntityType.IEntity): google.cloud.dialogflow.cx.v3.EntityType.Entity; /** - * Encodes the specified Entity message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.verify|verify} messages. + * Encodes the specified Entity message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.EntityType.Entity.verify|verify} messages. * @param message Entity message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.EntityType.IEntity, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.EntityType.IEntity, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Entity message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.verify|verify} messages. + * Encodes the specified Entity message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.EntityType.Entity.verify|verify} messages. * @param message Entity message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.EntityType.IEntity, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.EntityType.IEntity, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an Entity message from the specified reader or buffer. @@ -6094,7 +6094,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.EntityType.Entity; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.EntityType.Entity; /** * Decodes an Entity message from the specified reader or buffer, length delimited. @@ -6103,7 +6103,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.EntityType.Entity; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.EntityType.Entity; /** * Verifies an Entity message. @@ -6117,7 +6117,7 @@ export namespace google { * @param object Plain object * @returns Entity */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.EntityType.Entity; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.EntityType.Entity; /** * Creates a plain object from an Entity message. Also converts values to other types if specified. @@ -6125,7 +6125,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.EntityType.Entity, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.EntityType.Entity, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this Entity to JSON. @@ -6148,7 +6148,7 @@ export namespace google { * Constructs a new ExcludedPhrase. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.EntityType.IExcludedPhrase); + constructor(properties?: google.cloud.dialogflow.cx.v3.EntityType.IExcludedPhrase); /** ExcludedPhrase value. */ public value: string; @@ -6158,23 +6158,23 @@ export namespace google { * @param [properties] Properties to set * @returns ExcludedPhrase instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.EntityType.IExcludedPhrase): google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase; + public static create(properties?: google.cloud.dialogflow.cx.v3.EntityType.IExcludedPhrase): google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase; /** - * Encodes the specified ExcludedPhrase message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase.verify|verify} messages. + * Encodes the specified ExcludedPhrase message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase.verify|verify} messages. * @param message ExcludedPhrase message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.EntityType.IExcludedPhrase, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.EntityType.IExcludedPhrase, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExcludedPhrase message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase.verify|verify} messages. + * Encodes the specified ExcludedPhrase message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase.verify|verify} messages. * @param message ExcludedPhrase message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.EntityType.IExcludedPhrase, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.EntityType.IExcludedPhrase, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an ExcludedPhrase message from the specified reader or buffer. @@ -6184,7 +6184,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase; /** * Decodes an ExcludedPhrase message from the specified reader or buffer, length delimited. @@ -6193,7 +6193,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase; /** * Verifies an ExcludedPhrase message. @@ -6207,7 +6207,7 @@ export namespace google { * @param object Plain object * @returns ExcludedPhrase */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase; /** * Creates a plain object from an ExcludedPhrase message. Also converts values to other types if specified. @@ -6215,7 +6215,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this ExcludedPhrase to JSON. @@ -6262,7 +6262,7 @@ export namespace google { * Constructs a new ListEntityTypesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListEntityTypesRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IListEntityTypesRequest); /** ListEntityTypesRequest parent. */ public parent: string; @@ -6281,23 +6281,23 @@ export namespace google { * @param [properties] Properties to set * @returns ListEntityTypesRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListEntityTypesRequest): google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IListEntityTypesRequest): google.cloud.dialogflow.cx.v3.ListEntityTypesRequest; /** - * Encodes the specified ListEntityTypesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest.verify|verify} messages. + * Encodes the specified ListEntityTypesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListEntityTypesRequest.verify|verify} messages. * @param message ListEntityTypesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListEntityTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IListEntityTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListEntityTypesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest.verify|verify} messages. + * Encodes the specified ListEntityTypesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListEntityTypesRequest.verify|verify} messages. * @param message ListEntityTypesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListEntityTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListEntityTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a ListEntityTypesRequest message from the specified reader or buffer. @@ -6307,7 +6307,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListEntityTypesRequest; /** * Decodes a ListEntityTypesRequest message from the specified reader or buffer, length delimited. @@ -6316,7 +6316,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListEntityTypesRequest; /** * Verifies a ListEntityTypesRequest message. @@ -6330,7 +6330,7 @@ export namespace google { * @param object Plain object * @returns ListEntityTypesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListEntityTypesRequest; /** * Creates a plain object from a ListEntityTypesRequest message. Also converts values to other types if specified. @@ -6338,7 +6338,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ListEntityTypesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this ListEntityTypesRequest to JSON. @@ -6351,7 +6351,7 @@ export namespace google { interface IListEntityTypesResponse { /** ListEntityTypesResponse entityTypes */ - entityTypes?: (google.cloud.dialogflow.cx.v3beta1.IEntityType[]|null); + entityTypes?: (google.cloud.dialogflow.cx.v3.IEntityType[]|null); /** ListEntityTypesResponse nextPageToken */ nextPageToken?: (string|null); @@ -6364,10 +6364,10 @@ export namespace google { * Constructs a new ListEntityTypesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListEntityTypesResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3.IListEntityTypesResponse); /** ListEntityTypesResponse entityTypes. */ - public entityTypes: google.cloud.dialogflow.cx.v3beta1.IEntityType[]; + public entityTypes: google.cloud.dialogflow.cx.v3.IEntityType[]; /** ListEntityTypesResponse nextPageToken. */ public nextPageToken: string; @@ -6377,23 +6377,23 @@ export namespace google { * @param [properties] Properties to set * @returns ListEntityTypesResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListEntityTypesResponse): google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3.IListEntityTypesResponse): google.cloud.dialogflow.cx.v3.ListEntityTypesResponse; /** - * Encodes the specified ListEntityTypesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse.verify|verify} messages. + * Encodes the specified ListEntityTypesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListEntityTypesResponse.verify|verify} messages. * @param message ListEntityTypesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListEntityTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IListEntityTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListEntityTypesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse.verify|verify} messages. + * Encodes the specified ListEntityTypesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListEntityTypesResponse.verify|verify} messages. * @param message ListEntityTypesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListEntityTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListEntityTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a ListEntityTypesResponse message from the specified reader or buffer. @@ -6403,7 +6403,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListEntityTypesResponse; /** * Decodes a ListEntityTypesResponse message from the specified reader or buffer, length delimited. @@ -6412,7 +6412,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListEntityTypesResponse; /** * Verifies a ListEntityTypesResponse message. @@ -6426,7 +6426,7 @@ export namespace google { * @param object Plain object * @returns ListEntityTypesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListEntityTypesResponse; /** * Creates a plain object from a ListEntityTypesResponse message. Also converts values to other types if specified. @@ -6434,7 +6434,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ListEntityTypesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this ListEntityTypesResponse to JSON. @@ -6460,7 +6460,7 @@ export namespace google { * Constructs a new GetEntityTypeRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetEntityTypeRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IGetEntityTypeRequest); /** GetEntityTypeRequest name. */ public name: string; @@ -6473,23 +6473,23 @@ export namespace google { * @param [properties] Properties to set * @returns GetEntityTypeRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetEntityTypeRequest): google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IGetEntityTypeRequest): google.cloud.dialogflow.cx.v3.GetEntityTypeRequest; /** - * Encodes the specified GetEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest.verify|verify} messages. + * Encodes the specified GetEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetEntityTypeRequest.verify|verify} messages. * @param message GetEntityTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGetEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IGetEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest.verify|verify} messages. + * Encodes the specified GetEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetEntityTypeRequest.verify|verify} messages. * @param message GetEntityTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGetEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IGetEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a GetEntityTypeRequest message from the specified reader or buffer. @@ -6499,7 +6499,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.GetEntityTypeRequest; /** * Decodes a GetEntityTypeRequest message from the specified reader or buffer, length delimited. @@ -6508,7 +6508,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.GetEntityTypeRequest; /** * Verifies a GetEntityTypeRequest message. @@ -6522,7 +6522,7 @@ export namespace google { * @param object Plain object * @returns GetEntityTypeRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.GetEntityTypeRequest; /** * Creates a plain object from a GetEntityTypeRequest message. Also converts values to other types if specified. @@ -6530,7 +6530,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.GetEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this GetEntityTypeRequest to JSON. @@ -6546,7 +6546,7 @@ export namespace google { parent?: (string|null); /** CreateEntityTypeRequest entityType */ - entityType?: (google.cloud.dialogflow.cx.v3beta1.IEntityType|null); + entityType?: (google.cloud.dialogflow.cx.v3.IEntityType|null); /** CreateEntityTypeRequest languageCode */ languageCode?: (string|null); @@ -6559,13 +6559,13 @@ export namespace google { * Constructs a new CreateEntityTypeRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateEntityTypeRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.ICreateEntityTypeRequest); /** CreateEntityTypeRequest parent. */ public parent: string; /** CreateEntityTypeRequest entityType. */ - public entityType?: (google.cloud.dialogflow.cx.v3beta1.IEntityType|null); + public entityType?: (google.cloud.dialogflow.cx.v3.IEntityType|null); /** CreateEntityTypeRequest languageCode. */ public languageCode: string; @@ -6575,23 +6575,23 @@ export namespace google { * @param [properties] Properties to set * @returns CreateEntityTypeRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateEntityTypeRequest): google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.ICreateEntityTypeRequest): google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest; /** - * Encodes the specified CreateEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest.verify|verify} messages. + * Encodes the specified CreateEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest.verify|verify} messages. * @param message CreateEntityTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ICreateEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ICreateEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest.verify|verify} messages. + * Encodes the specified CreateEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest.verify|verify} messages. * @param message CreateEntityTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ICreateEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICreateEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a CreateEntityTypeRequest message from the specified reader or buffer. @@ -6601,7 +6601,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest; /** * Decodes a CreateEntityTypeRequest message from the specified reader or buffer, length delimited. @@ -6610,7 +6610,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest; /** * Verifies a CreateEntityTypeRequest message. @@ -6624,7 +6624,7 @@ export namespace google { * @param object Plain object * @returns CreateEntityTypeRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest; /** * Creates a plain object from a CreateEntityTypeRequest message. Also converts values to other types if specified. @@ -6632,7 +6632,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this CreateEntityTypeRequest to JSON. @@ -6645,7 +6645,7 @@ export namespace google { interface IUpdateEntityTypeRequest { /** UpdateEntityTypeRequest entityType */ - entityType?: (google.cloud.dialogflow.cx.v3beta1.IEntityType|null); + entityType?: (google.cloud.dialogflow.cx.v3.IEntityType|null); /** UpdateEntityTypeRequest languageCode */ languageCode?: (string|null); @@ -6661,10 +6661,10 @@ export namespace google { * Constructs a new UpdateEntityTypeRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateEntityTypeRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IUpdateEntityTypeRequest); /** UpdateEntityTypeRequest entityType. */ - public entityType?: (google.cloud.dialogflow.cx.v3beta1.IEntityType|null); + public entityType?: (google.cloud.dialogflow.cx.v3.IEntityType|null); /** UpdateEntityTypeRequest languageCode. */ public languageCode: string; @@ -6677,23 +6677,23 @@ export namespace google { * @param [properties] Properties to set * @returns UpdateEntityTypeRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateEntityTypeRequest): google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IUpdateEntityTypeRequest): google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest; /** - * Encodes the specified UpdateEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest.verify|verify} messages. + * Encodes the specified UpdateEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest.verify|verify} messages. * @param message UpdateEntityTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IUpdateEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IUpdateEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest.verify|verify} messages. + * Encodes the specified UpdateEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest.verify|verify} messages. * @param message UpdateEntityTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IUpdateEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IUpdateEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an UpdateEntityTypeRequest message from the specified reader or buffer. @@ -6703,7 +6703,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest; /** * Decodes an UpdateEntityTypeRequest message from the specified reader or buffer, length delimited. @@ -6712,7 +6712,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest; /** * Verifies an UpdateEntityTypeRequest message. @@ -6726,7 +6726,7 @@ export namespace google { * @param object Plain object * @returns UpdateEntityTypeRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest; /** * Creates a plain object from an UpdateEntityTypeRequest message. Also converts values to other types if specified. @@ -6734,7 +6734,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this UpdateEntityTypeRequest to JSON. @@ -6760,7 +6760,7 @@ export namespace google { * Constructs a new DeleteEntityTypeRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteEntityTypeRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IDeleteEntityTypeRequest); /** DeleteEntityTypeRequest name. */ public name: string; @@ -6773,23 +6773,23 @@ export namespace google { * @param [properties] Properties to set * @returns DeleteEntityTypeRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteEntityTypeRequest): google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IDeleteEntityTypeRequest): google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest; /** - * Encodes the specified DeleteEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest.verify|verify} messages. + * Encodes the specified DeleteEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest.verify|verify} messages. * @param message DeleteEntityTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IDeleteEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IDeleteEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest.verify|verify} messages. + * Encodes the specified DeleteEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest.verify|verify} messages. * @param message DeleteEntityTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IDeleteEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDeleteEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a DeleteEntityTypeRequest message from the specified reader or buffer. @@ -6799,7 +6799,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest; /** * Decodes a DeleteEntityTypeRequest message from the specified reader or buffer, length delimited. @@ -6808,7 +6808,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest; /** * Verifies a DeleteEntityTypeRequest message. @@ -6822,7 +6822,7 @@ export namespace google { * @param object Plain object * @returns DeleteEntityTypeRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest; /** * Creates a plain object from a DeleteEntityTypeRequest message. Also converts values to other types if specified. @@ -6830,7 +6830,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this DeleteEntityTypeRequest to JSON. @@ -6864,129 +6864,129 @@ export namespace google { * @param request ListEnvironmentsRequest message or plain object * @param callback Node-style callback called with the error, if any, and ListEnvironmentsResponse */ - public listEnvironments(request: google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsRequest, callback: google.cloud.dialogflow.cx.v3beta1.Environments.ListEnvironmentsCallback): void; + public listEnvironments(request: google.cloud.dialogflow.cx.v3.IListEnvironmentsRequest, callback: google.cloud.dialogflow.cx.v3.Environments.ListEnvironmentsCallback): void; /** * Calls ListEnvironments. * @param request ListEnvironmentsRequest message or plain object * @returns Promise */ - public listEnvironments(request: google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsRequest): Promise; + public listEnvironments(request: google.cloud.dialogflow.cx.v3.IListEnvironmentsRequest): Promise; /** * Calls GetEnvironment. * @param request GetEnvironmentRequest message or plain object * @param callback Node-style callback called with the error, if any, and Environment */ - public getEnvironment(request: google.cloud.dialogflow.cx.v3beta1.IGetEnvironmentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Environments.GetEnvironmentCallback): void; + public getEnvironment(request: google.cloud.dialogflow.cx.v3.IGetEnvironmentRequest, callback: google.cloud.dialogflow.cx.v3.Environments.GetEnvironmentCallback): void; /** * Calls GetEnvironment. * @param request GetEnvironmentRequest message or plain object * @returns Promise */ - public getEnvironment(request: google.cloud.dialogflow.cx.v3beta1.IGetEnvironmentRequest): Promise; + public getEnvironment(request: google.cloud.dialogflow.cx.v3.IGetEnvironmentRequest): Promise; /** * Calls CreateEnvironment. * @param request CreateEnvironmentRequest message or plain object * @param callback Node-style callback called with the error, if any, and Operation */ - public createEnvironment(request: google.cloud.dialogflow.cx.v3beta1.ICreateEnvironmentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Environments.CreateEnvironmentCallback): void; + public createEnvironment(request: google.cloud.dialogflow.cx.v3.ICreateEnvironmentRequest, callback: google.cloud.dialogflow.cx.v3.Environments.CreateEnvironmentCallback): void; /** * Calls CreateEnvironment. * @param request CreateEnvironmentRequest message or plain object * @returns Promise */ - public createEnvironment(request: google.cloud.dialogflow.cx.v3beta1.ICreateEnvironmentRequest): Promise; + public createEnvironment(request: google.cloud.dialogflow.cx.v3.ICreateEnvironmentRequest): Promise; /** * Calls UpdateEnvironment. * @param request UpdateEnvironmentRequest message or plain object * @param callback Node-style callback called with the error, if any, and Operation */ - public updateEnvironment(request: google.cloud.dialogflow.cx.v3beta1.IUpdateEnvironmentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Environments.UpdateEnvironmentCallback): void; + public updateEnvironment(request: google.cloud.dialogflow.cx.v3.IUpdateEnvironmentRequest, callback: google.cloud.dialogflow.cx.v3.Environments.UpdateEnvironmentCallback): void; /** * Calls UpdateEnvironment. * @param request UpdateEnvironmentRequest message or plain object * @returns Promise */ - public updateEnvironment(request: google.cloud.dialogflow.cx.v3beta1.IUpdateEnvironmentRequest): Promise; + public updateEnvironment(request: google.cloud.dialogflow.cx.v3.IUpdateEnvironmentRequest): Promise; /** * Calls DeleteEnvironment. * @param request DeleteEnvironmentRequest message or plain object * @param callback Node-style callback called with the error, if any, and Empty */ - public deleteEnvironment(request: google.cloud.dialogflow.cx.v3beta1.IDeleteEnvironmentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Environments.DeleteEnvironmentCallback): void; + public deleteEnvironment(request: google.cloud.dialogflow.cx.v3.IDeleteEnvironmentRequest, callback: google.cloud.dialogflow.cx.v3.Environments.DeleteEnvironmentCallback): void; /** * Calls DeleteEnvironment. * @param request DeleteEnvironmentRequest message or plain object * @returns Promise */ - public deleteEnvironment(request: google.cloud.dialogflow.cx.v3beta1.IDeleteEnvironmentRequest): Promise; + public deleteEnvironment(request: google.cloud.dialogflow.cx.v3.IDeleteEnvironmentRequest): Promise; /** * Calls LookupEnvironmentHistory. * @param request LookupEnvironmentHistoryRequest message or plain object * @param callback Node-style callback called with the error, if any, and LookupEnvironmentHistoryResponse */ - public lookupEnvironmentHistory(request: google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryRequest, callback: google.cloud.dialogflow.cx.v3beta1.Environments.LookupEnvironmentHistoryCallback): void; + public lookupEnvironmentHistory(request: google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryRequest, callback: google.cloud.dialogflow.cx.v3.Environments.LookupEnvironmentHistoryCallback): void; /** * Calls LookupEnvironmentHistory. * @param request LookupEnvironmentHistoryRequest message or plain object * @returns Promise */ - public lookupEnvironmentHistory(request: google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryRequest): Promise; + public lookupEnvironmentHistory(request: google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryRequest): Promise; } namespace Environments { /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments#listEnvironments}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Environments#listEnvironments}. * @param error Error, if any * @param [response] ListEnvironmentsResponse */ - type ListEnvironmentsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse) => void; + type ListEnvironmentsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments#getEnvironment}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Environments#getEnvironment}. * @param error Error, if any * @param [response] Environment */ - type GetEnvironmentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Environment) => void; + type GetEnvironmentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Environment) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments#createEnvironment}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Environments#createEnvironment}. * @param error Error, if any * @param [response] Operation */ type CreateEnvironmentCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments#updateEnvironment}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Environments#updateEnvironment}. * @param error Error, if any * @param [response] Operation */ type UpdateEnvironmentCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments#deleteEnvironment}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Environments#deleteEnvironment}. * @param error Error, if any * @param [response] Empty */ type DeleteEnvironmentCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments#lookupEnvironmentHistory}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Environments#lookupEnvironmentHistory}. * @param error Error, if any * @param [response] LookupEnvironmentHistoryResponse */ - type LookupEnvironmentHistoryCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse) => void; + type LookupEnvironmentHistoryCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse) => void; } /** Properties of an Environment. */ @@ -7002,7 +7002,7 @@ export namespace google { description?: (string|null); /** Environment versionConfigs */ - versionConfigs?: (google.cloud.dialogflow.cx.v3beta1.Environment.IVersionConfig[]|null); + versionConfigs?: (google.cloud.dialogflow.cx.v3.Environment.IVersionConfig[]|null); /** Environment updateTime */ updateTime?: (google.protobuf.ITimestamp|null); @@ -7015,7 +7015,7 @@ export namespace google { * Constructs a new Environment. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IEnvironment); + constructor(properties?: google.cloud.dialogflow.cx.v3.IEnvironment); /** Environment name. */ public name: string; @@ -7027,7 +7027,7 @@ export namespace google { public description: string; /** Environment versionConfigs. */ - public versionConfigs: google.cloud.dialogflow.cx.v3beta1.Environment.IVersionConfig[]; + public versionConfigs: google.cloud.dialogflow.cx.v3.Environment.IVersionConfig[]; /** Environment updateTime. */ public updateTime?: (google.protobuf.ITimestamp|null); @@ -7037,23 +7037,23 @@ export namespace google { * @param [properties] Properties to set * @returns Environment instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IEnvironment): google.cloud.dialogflow.cx.v3beta1.Environment; + public static create(properties?: google.cloud.dialogflow.cx.v3.IEnvironment): google.cloud.dialogflow.cx.v3.Environment; /** - * Encodes the specified Environment message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Environment.verify|verify} messages. + * Encodes the specified Environment message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Environment.verify|verify} messages. * @param message Environment message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IEnvironment, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IEnvironment, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Environment message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Environment.verify|verify} messages. + * Encodes the specified Environment message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Environment.verify|verify} messages. * @param message Environment message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IEnvironment, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IEnvironment, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an Environment message from the specified reader or buffer. @@ -7063,7 +7063,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Environment; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Environment; /** * Decodes an Environment message from the specified reader or buffer, length delimited. @@ -7072,7 +7072,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Environment; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Environment; /** * Verifies an Environment message. @@ -7086,7 +7086,7 @@ export namespace google { * @param object Plain object * @returns Environment */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Environment; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Environment; /** * Creates a plain object from an Environment message. Also converts values to other types if specified. @@ -7094,7 +7094,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Environment, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.Environment, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this Environment to JSON. @@ -7119,7 +7119,7 @@ export namespace google { * Constructs a new VersionConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Environment.IVersionConfig); + constructor(properties?: google.cloud.dialogflow.cx.v3.Environment.IVersionConfig); /** VersionConfig version. */ public version: string; @@ -7129,23 +7129,23 @@ export namespace google { * @param [properties] Properties to set * @returns VersionConfig instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Environment.IVersionConfig): google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig; + public static create(properties?: google.cloud.dialogflow.cx.v3.Environment.IVersionConfig): google.cloud.dialogflow.cx.v3.Environment.VersionConfig; /** - * Encodes the specified VersionConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig.verify|verify} messages. + * Encodes the specified VersionConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Environment.VersionConfig.verify|verify} messages. * @param message VersionConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.Environment.IVersionConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.Environment.IVersionConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified VersionConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig.verify|verify} messages. + * Encodes the specified VersionConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Environment.VersionConfig.verify|verify} messages. * @param message VersionConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.Environment.IVersionConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.Environment.IVersionConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a VersionConfig message from the specified reader or buffer. @@ -7155,7 +7155,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Environment.VersionConfig; /** * Decodes a VersionConfig message from the specified reader or buffer, length delimited. @@ -7164,7 +7164,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Environment.VersionConfig; /** * Verifies a VersionConfig message. @@ -7178,7 +7178,7 @@ export namespace google { * @param object Plain object * @returns VersionConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Environment.VersionConfig; /** * Creates a plain object from a VersionConfig message. Also converts values to other types if specified. @@ -7186,7 +7186,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.Environment.VersionConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this VersionConfig to JSON. @@ -7216,7 +7216,7 @@ export namespace google { * Constructs a new ListEnvironmentsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IListEnvironmentsRequest); /** ListEnvironmentsRequest parent. */ public parent: string; @@ -7232,23 +7232,23 @@ export namespace google { * @param [properties] Properties to set * @returns ListEnvironmentsRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsRequest): google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IListEnvironmentsRequest): google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest; /** - * Encodes the specified ListEnvironmentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest.verify|verify} messages. + * Encodes the specified ListEnvironmentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest.verify|verify} messages. * @param message ListEnvironmentsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IListEnvironmentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListEnvironmentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest.verify|verify} messages. + * Encodes the specified ListEnvironmentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest.verify|verify} messages. * @param message ListEnvironmentsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListEnvironmentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a ListEnvironmentsRequest message from the specified reader or buffer. @@ -7258,7 +7258,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest; /** * Decodes a ListEnvironmentsRequest message from the specified reader or buffer, length delimited. @@ -7267,7 +7267,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest; /** * Verifies a ListEnvironmentsRequest message. @@ -7281,7 +7281,7 @@ export namespace google { * @param object Plain object * @returns ListEnvironmentsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest; /** * Creates a plain object from a ListEnvironmentsRequest message. Also converts values to other types if specified. @@ -7289,7 +7289,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this ListEnvironmentsRequest to JSON. @@ -7302,7 +7302,7 @@ export namespace google { interface IListEnvironmentsResponse { /** ListEnvironmentsResponse environments */ - environments?: (google.cloud.dialogflow.cx.v3beta1.IEnvironment[]|null); + environments?: (google.cloud.dialogflow.cx.v3.IEnvironment[]|null); /** ListEnvironmentsResponse nextPageToken */ nextPageToken?: (string|null); @@ -7315,10 +7315,10 @@ export namespace google { * Constructs a new ListEnvironmentsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3.IListEnvironmentsResponse); /** ListEnvironmentsResponse environments. */ - public environments: google.cloud.dialogflow.cx.v3beta1.IEnvironment[]; + public environments: google.cloud.dialogflow.cx.v3.IEnvironment[]; /** ListEnvironmentsResponse nextPageToken. */ public nextPageToken: string; @@ -7328,23 +7328,23 @@ export namespace google { * @param [properties] Properties to set * @returns ListEnvironmentsResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsResponse): google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3.IListEnvironmentsResponse): google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse; /** - * Encodes the specified ListEnvironmentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse.verify|verify} messages. + * Encodes the specified ListEnvironmentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse.verify|verify} messages. * @param message ListEnvironmentsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IListEnvironmentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListEnvironmentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse.verify|verify} messages. + * Encodes the specified ListEnvironmentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse.verify|verify} messages. * @param message ListEnvironmentsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListEnvironmentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a ListEnvironmentsResponse message from the specified reader or buffer. @@ -7354,7 +7354,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse; /** * Decodes a ListEnvironmentsResponse message from the specified reader or buffer, length delimited. @@ -7363,7 +7363,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse; /** * Verifies a ListEnvironmentsResponse message. @@ -7377,7 +7377,7 @@ export namespace google { * @param object Plain object * @returns ListEnvironmentsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse; /** * Creates a plain object from a ListEnvironmentsResponse message. Also converts values to other types if specified. @@ -7385,7 +7385,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this ListEnvironmentsResponse to JSON. @@ -7408,7 +7408,7 @@ export namespace google { * Constructs a new GetEnvironmentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetEnvironmentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IGetEnvironmentRequest); /** GetEnvironmentRequest name. */ public name: string; @@ -7418,23 +7418,23 @@ export namespace google { * @param [properties] Properties to set * @returns GetEnvironmentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetEnvironmentRequest): google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IGetEnvironmentRequest): google.cloud.dialogflow.cx.v3.GetEnvironmentRequest; /** - * Encodes the specified GetEnvironmentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest.verify|verify} messages. + * Encodes the specified GetEnvironmentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetEnvironmentRequest.verify|verify} messages. * @param message GetEnvironmentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGetEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IGetEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest.verify|verify} messages. + * Encodes the specified GetEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetEnvironmentRequest.verify|verify} messages. * @param message GetEnvironmentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGetEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IGetEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a GetEnvironmentRequest message from the specified reader or buffer. @@ -7444,7 +7444,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.GetEnvironmentRequest; /** * Decodes a GetEnvironmentRequest message from the specified reader or buffer, length delimited. @@ -7453,7 +7453,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.GetEnvironmentRequest; /** * Verifies a GetEnvironmentRequest message. @@ -7467,7 +7467,7 @@ export namespace google { * @param object Plain object * @returns GetEnvironmentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.GetEnvironmentRequest; /** * Creates a plain object from a GetEnvironmentRequest message. Also converts values to other types if specified. @@ -7475,7 +7475,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.GetEnvironmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this GetEnvironmentRequest to JSON. @@ -7491,7 +7491,7 @@ export namespace google { parent?: (string|null); /** CreateEnvironmentRequest environment */ - environment?: (google.cloud.dialogflow.cx.v3beta1.IEnvironment|null); + environment?: (google.cloud.dialogflow.cx.v3.IEnvironment|null); } /** Represents a CreateEnvironmentRequest. */ @@ -7501,36 +7501,36 @@ export namespace google { * Constructs a new CreateEnvironmentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateEnvironmentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.ICreateEnvironmentRequest); /** CreateEnvironmentRequest parent. */ public parent: string; /** CreateEnvironmentRequest environment. */ - public environment?: (google.cloud.dialogflow.cx.v3beta1.IEnvironment|null); + public environment?: (google.cloud.dialogflow.cx.v3.IEnvironment|null); /** * Creates a new CreateEnvironmentRequest instance using the specified properties. * @param [properties] Properties to set * @returns CreateEnvironmentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateEnvironmentRequest): google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.ICreateEnvironmentRequest): google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest; /** - * Encodes the specified CreateEnvironmentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest.verify|verify} messages. + * Encodes the specified CreateEnvironmentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest.verify|verify} messages. * @param message CreateEnvironmentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ICreateEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ICreateEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest.verify|verify} messages. + * Encodes the specified CreateEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest.verify|verify} messages. * @param message CreateEnvironmentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ICreateEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICreateEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a CreateEnvironmentRequest message from the specified reader or buffer. @@ -7540,7 +7540,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest; /** * Decodes a CreateEnvironmentRequest message from the specified reader or buffer, length delimited. @@ -7549,7 +7549,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest; /** * Verifies a CreateEnvironmentRequest message. @@ -7563,7 +7563,7 @@ export namespace google { * @param object Plain object * @returns CreateEnvironmentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest; /** * Creates a plain object from a CreateEnvironmentRequest message. Also converts values to other types if specified. @@ -7571,7 +7571,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this CreateEnvironmentRequest to JSON. @@ -7584,7 +7584,7 @@ export namespace google { interface IUpdateEnvironmentRequest { /** UpdateEnvironmentRequest environment */ - environment?: (google.cloud.dialogflow.cx.v3beta1.IEnvironment|null); + environment?: (google.cloud.dialogflow.cx.v3.IEnvironment|null); /** UpdateEnvironmentRequest updateMask */ updateMask?: (google.protobuf.IFieldMask|null); @@ -7597,10 +7597,10 @@ export namespace google { * Constructs a new UpdateEnvironmentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateEnvironmentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IUpdateEnvironmentRequest); /** UpdateEnvironmentRequest environment. */ - public environment?: (google.cloud.dialogflow.cx.v3beta1.IEnvironment|null); + public environment?: (google.cloud.dialogflow.cx.v3.IEnvironment|null); /** UpdateEnvironmentRequest updateMask. */ public updateMask?: (google.protobuf.IFieldMask|null); @@ -7610,23 +7610,23 @@ export namespace google { * @param [properties] Properties to set * @returns UpdateEnvironmentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateEnvironmentRequest): google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IUpdateEnvironmentRequest): google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest; /** - * Encodes the specified UpdateEnvironmentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest.verify|verify} messages. + * Encodes the specified UpdateEnvironmentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest.verify|verify} messages. * @param message UpdateEnvironmentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IUpdateEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IUpdateEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest.verify|verify} messages. + * Encodes the specified UpdateEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest.verify|verify} messages. * @param message UpdateEnvironmentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IUpdateEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IUpdateEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an UpdateEnvironmentRequest message from the specified reader or buffer. @@ -7636,7 +7636,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest; /** * Decodes an UpdateEnvironmentRequest message from the specified reader or buffer, length delimited. @@ -7645,7 +7645,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest; /** * Verifies an UpdateEnvironmentRequest message. @@ -7659,7 +7659,7 @@ export namespace google { * @param object Plain object * @returns UpdateEnvironmentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest; /** * Creates a plain object from an UpdateEnvironmentRequest message. Also converts values to other types if specified. @@ -7667,7 +7667,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this UpdateEnvironmentRequest to JSON. @@ -7690,7 +7690,7 @@ export namespace google { * Constructs a new DeleteEnvironmentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteEnvironmentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IDeleteEnvironmentRequest); /** DeleteEnvironmentRequest name. */ public name: string; @@ -7700,23 +7700,23 @@ export namespace google { * @param [properties] Properties to set * @returns DeleteEnvironmentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteEnvironmentRequest): google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IDeleteEnvironmentRequest): google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest; /** - * Encodes the specified DeleteEnvironmentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest.verify|verify} messages. + * Encodes the specified DeleteEnvironmentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest.verify|verify} messages. * @param message DeleteEnvironmentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IDeleteEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IDeleteEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest.verify|verify} messages. + * Encodes the specified DeleteEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest.verify|verify} messages. * @param message DeleteEnvironmentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IDeleteEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDeleteEnvironmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a DeleteEnvironmentRequest message from the specified reader or buffer. @@ -7726,7 +7726,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest; /** * Decodes a DeleteEnvironmentRequest message from the specified reader or buffer, length delimited. @@ -7735,7 +7735,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest; /** * Verifies a DeleteEnvironmentRequest message. @@ -7749,7 +7749,7 @@ export namespace google { * @param object Plain object * @returns DeleteEnvironmentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest; /** * Creates a plain object from a DeleteEnvironmentRequest message. Also converts values to other types if specified. @@ -7757,7 +7757,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this DeleteEnvironmentRequest to JSON. @@ -7786,7 +7786,7 @@ export namespace google { * Constructs a new LookupEnvironmentHistoryRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryRequest); /** LookupEnvironmentHistoryRequest name. */ public name: string; @@ -7802,23 +7802,23 @@ export namespace google { * @param [properties] Properties to set * @returns LookupEnvironmentHistoryRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryRequest): google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryRequest): google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest; /** - * Encodes the specified LookupEnvironmentHistoryRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest.verify|verify} messages. + * Encodes the specified LookupEnvironmentHistoryRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest.verify|verify} messages. * @param message LookupEnvironmentHistoryRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified LookupEnvironmentHistoryRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest.verify|verify} messages. + * Encodes the specified LookupEnvironmentHistoryRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest.verify|verify} messages. * @param message LookupEnvironmentHistoryRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a LookupEnvironmentHistoryRequest message from the specified reader or buffer. @@ -7828,7 +7828,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest; /** * Decodes a LookupEnvironmentHistoryRequest message from the specified reader or buffer, length delimited. @@ -7837,7 +7837,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest; /** * Verifies a LookupEnvironmentHistoryRequest message. @@ -7851,7 +7851,7 @@ export namespace google { * @param object Plain object * @returns LookupEnvironmentHistoryRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest; /** * Creates a plain object from a LookupEnvironmentHistoryRequest message. Also converts values to other types if specified. @@ -7859,7 +7859,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this LookupEnvironmentHistoryRequest to JSON. @@ -7872,7 +7872,7 @@ export namespace google { interface ILookupEnvironmentHistoryResponse { /** LookupEnvironmentHistoryResponse environments */ - environments?: (google.cloud.dialogflow.cx.v3beta1.IEnvironment[]|null); + environments?: (google.cloud.dialogflow.cx.v3.IEnvironment[]|null); /** LookupEnvironmentHistoryResponse nextPageToken */ nextPageToken?: (string|null); @@ -7885,10 +7885,10 @@ export namespace google { * Constructs a new LookupEnvironmentHistoryResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryResponse); /** LookupEnvironmentHistoryResponse environments. */ - public environments: google.cloud.dialogflow.cx.v3beta1.IEnvironment[]; + public environments: google.cloud.dialogflow.cx.v3.IEnvironment[]; /** LookupEnvironmentHistoryResponse nextPageToken. */ public nextPageToken: string; @@ -7898,23 +7898,23 @@ export namespace google { * @param [properties] Properties to set * @returns LookupEnvironmentHistoryResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryResponse): google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryResponse): google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse; /** - * Encodes the specified LookupEnvironmentHistoryResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse.verify|verify} messages. + * Encodes the specified LookupEnvironmentHistoryResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse.verify|verify} messages. * @param message LookupEnvironmentHistoryResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified LookupEnvironmentHistoryResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse.verify|verify} messages. + * Encodes the specified LookupEnvironmentHistoryResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse.verify|verify} messages. * @param message LookupEnvironmentHistoryResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a LookupEnvironmentHistoryResponse message from the specified reader or buffer. @@ -7924,7 +7924,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse; /** * Decodes a LookupEnvironmentHistoryResponse message from the specified reader or buffer, length delimited. @@ -7933,7 +7933,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse; /** * Verifies a LookupEnvironmentHistoryResponse message. @@ -7947,7 +7947,7 @@ export namespace google { * @param object Plain object * @returns LookupEnvironmentHistoryResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse; /** * Creates a plain object from a LookupEnvironmentHistoryResponse message. Also converts values to other types if specified. @@ -7955,7 +7955,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this LookupEnvironmentHistoryResponse to JSON. @@ -7989,104 +7989,104 @@ export namespace google { * @param request ListIntentsRequest message or plain object * @param callback Node-style callback called with the error, if any, and ListIntentsResponse */ - public listIntents(request: google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest, callback: google.cloud.dialogflow.cx.v3beta1.Intents.ListIntentsCallback): void; + public listIntents(request: google.cloud.dialogflow.cx.v3.IListIntentsRequest, callback: google.cloud.dialogflow.cx.v3.Intents.ListIntentsCallback): void; /** * Calls ListIntents. * @param request ListIntentsRequest message or plain object * @returns Promise */ - public listIntents(request: google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest): Promise; + public listIntents(request: google.cloud.dialogflow.cx.v3.IListIntentsRequest): Promise; /** * Calls GetIntent. * @param request GetIntentRequest message or plain object * @param callback Node-style callback called with the error, if any, and Intent */ - public getIntent(request: google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Intents.GetIntentCallback): void; + public getIntent(request: google.cloud.dialogflow.cx.v3.IGetIntentRequest, callback: google.cloud.dialogflow.cx.v3.Intents.GetIntentCallback): void; /** * Calls GetIntent. * @param request GetIntentRequest message or plain object * @returns Promise */ - public getIntent(request: google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest): Promise; + public getIntent(request: google.cloud.dialogflow.cx.v3.IGetIntentRequest): Promise; /** * Calls CreateIntent. * @param request CreateIntentRequest message or plain object * @param callback Node-style callback called with the error, if any, and Intent */ - public createIntent(request: google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Intents.CreateIntentCallback): void; + public createIntent(request: google.cloud.dialogflow.cx.v3.ICreateIntentRequest, callback: google.cloud.dialogflow.cx.v3.Intents.CreateIntentCallback): void; /** * Calls CreateIntent. * @param request CreateIntentRequest message or plain object * @returns Promise */ - public createIntent(request: google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest): Promise; + public createIntent(request: google.cloud.dialogflow.cx.v3.ICreateIntentRequest): Promise; /** * Calls UpdateIntent. * @param request UpdateIntentRequest message or plain object * @param callback Node-style callback called with the error, if any, and Intent */ - public updateIntent(request: google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Intents.UpdateIntentCallback): void; + public updateIntent(request: google.cloud.dialogflow.cx.v3.IUpdateIntentRequest, callback: google.cloud.dialogflow.cx.v3.Intents.UpdateIntentCallback): void; /** * Calls UpdateIntent. * @param request UpdateIntentRequest message or plain object * @returns Promise */ - public updateIntent(request: google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest): Promise; + public updateIntent(request: google.cloud.dialogflow.cx.v3.IUpdateIntentRequest): Promise; /** * Calls DeleteIntent. * @param request DeleteIntentRequest message or plain object * @param callback Node-style callback called with the error, if any, and Empty */ - public deleteIntent(request: google.cloud.dialogflow.cx.v3beta1.IDeleteIntentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Intents.DeleteIntentCallback): void; + public deleteIntent(request: google.cloud.dialogflow.cx.v3.IDeleteIntentRequest, callback: google.cloud.dialogflow.cx.v3.Intents.DeleteIntentCallback): void; /** * Calls DeleteIntent. * @param request DeleteIntentRequest message or plain object * @returns Promise */ - public deleteIntent(request: google.cloud.dialogflow.cx.v3beta1.IDeleteIntentRequest): Promise; + public deleteIntent(request: google.cloud.dialogflow.cx.v3.IDeleteIntentRequest): Promise; } namespace Intents { /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Intents#listIntents}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Intents#listIntents}. * @param error Error, if any * @param [response] ListIntentsResponse */ - type ListIntentsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse) => void; + type ListIntentsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.ListIntentsResponse) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Intents#getIntent}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Intents#getIntent}. * @param error Error, if any * @param [response] Intent */ - type GetIntentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Intent) => void; + type GetIntentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Intent) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Intents#createIntent}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Intents#createIntent}. * @param error Error, if any * @param [response] Intent */ - type CreateIntentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Intent) => void; + type CreateIntentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Intent) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Intents#updateIntent}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Intents#updateIntent}. * @param error Error, if any * @param [response] Intent */ - type UpdateIntentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Intent) => void; + type UpdateIntentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Intent) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Intents#deleteIntent}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Intents#deleteIntent}. * @param error Error, if any * @param [response] Empty */ @@ -8103,10 +8103,10 @@ export namespace google { displayName?: (string|null); /** Intent trainingPhrases */ - trainingPhrases?: (google.cloud.dialogflow.cx.v3beta1.Intent.ITrainingPhrase[]|null); + trainingPhrases?: (google.cloud.dialogflow.cx.v3.Intent.ITrainingPhrase[]|null); /** Intent parameters */ - parameters?: (google.cloud.dialogflow.cx.v3beta1.Intent.IParameter[]|null); + parameters?: (google.cloud.dialogflow.cx.v3.Intent.IParameter[]|null); /** Intent priority */ priority?: (number|null); @@ -8128,7 +8128,7 @@ export namespace google { * Constructs a new Intent. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IIntent); + constructor(properties?: google.cloud.dialogflow.cx.v3.IIntent); /** Intent name. */ public name: string; @@ -8137,10 +8137,10 @@ export namespace google { public displayName: string; /** Intent trainingPhrases. */ - public trainingPhrases: google.cloud.dialogflow.cx.v3beta1.Intent.ITrainingPhrase[]; + public trainingPhrases: google.cloud.dialogflow.cx.v3.Intent.ITrainingPhrase[]; /** Intent parameters. */ - public parameters: google.cloud.dialogflow.cx.v3beta1.Intent.IParameter[]; + public parameters: google.cloud.dialogflow.cx.v3.Intent.IParameter[]; /** Intent priority. */ public priority: number; @@ -8159,23 +8159,23 @@ export namespace google { * @param [properties] Properties to set * @returns Intent instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IIntent): google.cloud.dialogflow.cx.v3beta1.Intent; + public static create(properties?: google.cloud.dialogflow.cx.v3.IIntent): google.cloud.dialogflow.cx.v3.Intent; /** - * Encodes the specified Intent message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.verify|verify} messages. + * Encodes the specified Intent message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Intent.verify|verify} messages. * @param message Intent message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IIntent, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IIntent, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Intent message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.verify|verify} messages. + * Encodes the specified Intent message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Intent.verify|verify} messages. * @param message Intent message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IIntent, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IIntent, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an Intent message from the specified reader or buffer. @@ -8185,7 +8185,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Intent; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Intent; /** * Decodes an Intent message from the specified reader or buffer, length delimited. @@ -8194,7 +8194,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Intent; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Intent; /** * Verifies an Intent message. @@ -8208,7 +8208,7 @@ export namespace google { * @param object Plain object * @returns Intent */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Intent; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Intent; /** * Creates a plain object from an Intent message. Also converts values to other types if specified. @@ -8216,7 +8216,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Intent, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.Intent, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this Intent to JSON. @@ -8234,7 +8234,7 @@ export namespace google { id?: (string|null); /** TrainingPhrase parts */ - parts?: (google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.IPart[]|null); + parts?: (google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.IPart[]|null); /** TrainingPhrase repeatCount */ repeatCount?: (number|null); @@ -8247,13 +8247,13 @@ export namespace google { * Constructs a new TrainingPhrase. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Intent.ITrainingPhrase); + constructor(properties?: google.cloud.dialogflow.cx.v3.Intent.ITrainingPhrase); /** TrainingPhrase id. */ public id: string; /** TrainingPhrase parts. */ - public parts: google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.IPart[]; + public parts: google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.IPart[]; /** TrainingPhrase repeatCount. */ public repeatCount: number; @@ -8263,23 +8263,23 @@ export namespace google { * @param [properties] Properties to set * @returns TrainingPhrase instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Intent.ITrainingPhrase): google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase; + public static create(properties?: google.cloud.dialogflow.cx.v3.Intent.ITrainingPhrase): google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase; /** - * Encodes the specified TrainingPhrase message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.verify|verify} messages. + * Encodes the specified TrainingPhrase message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.verify|verify} messages. * @param message TrainingPhrase message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.Intent.ITrainingPhrase, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.Intent.ITrainingPhrase, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TrainingPhrase message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.verify|verify} messages. + * Encodes the specified TrainingPhrase message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.verify|verify} messages. * @param message TrainingPhrase message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.Intent.ITrainingPhrase, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.Intent.ITrainingPhrase, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a TrainingPhrase message from the specified reader or buffer. @@ -8289,7 +8289,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase; /** * Decodes a TrainingPhrase message from the specified reader or buffer, length delimited. @@ -8298,7 +8298,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase; /** * Verifies a TrainingPhrase message. @@ -8312,7 +8312,7 @@ export namespace google { * @param object Plain object * @returns TrainingPhrase */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase; /** * Creates a plain object from a TrainingPhrase message. Also converts values to other types if specified. @@ -8320,7 +8320,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this TrainingPhrase to JSON. @@ -8348,7 +8348,7 @@ export namespace google { * Constructs a new Part. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.IPart); + constructor(properties?: google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.IPart); /** Part text. */ public text: string; @@ -8361,23 +8361,23 @@ export namespace google { * @param [properties] Properties to set * @returns Part instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.IPart): google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part; + public static create(properties?: google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.IPart): google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part; /** - * Encodes the specified Part message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part.verify|verify} messages. + * Encodes the specified Part message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.verify|verify} messages. * @param message Part message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.IPart, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.IPart, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Part message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part.verify|verify} messages. + * Encodes the specified Part message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.verify|verify} messages. * @param message Part message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.IPart, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.IPart, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a Part message from the specified reader or buffer. @@ -8387,7 +8387,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part; /** * Decodes a Part message from the specified reader or buffer, length delimited. @@ -8396,7 +8396,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part; /** * Verifies a Part message. @@ -8410,7 +8410,7 @@ export namespace google { * @param object Plain object * @returns Part */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part; /** * Creates a plain object from a Part message. Also converts values to other types if specified. @@ -8418,7 +8418,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this Part to JSON. @@ -8451,7 +8451,7 @@ export namespace google { * Constructs a new Parameter. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Intent.IParameter); + constructor(properties?: google.cloud.dialogflow.cx.v3.Intent.IParameter); /** Parameter id. */ public id: string; @@ -8470,23 +8470,23 @@ export namespace google { * @param [properties] Properties to set * @returns Parameter instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Intent.IParameter): google.cloud.dialogflow.cx.v3beta1.Intent.Parameter; + public static create(properties?: google.cloud.dialogflow.cx.v3.Intent.IParameter): google.cloud.dialogflow.cx.v3.Intent.Parameter; /** - * Encodes the specified Parameter message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.Parameter.verify|verify} messages. + * Encodes the specified Parameter message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Intent.Parameter.verify|verify} messages. * @param message Parameter message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.Intent.IParameter, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.Intent.IParameter, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Parameter message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.Parameter.verify|verify} messages. + * Encodes the specified Parameter message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Intent.Parameter.verify|verify} messages. * @param message Parameter message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.Intent.IParameter, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.Intent.IParameter, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a Parameter message from the specified reader or buffer. @@ -8496,7 +8496,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Intent.Parameter; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Intent.Parameter; /** * Decodes a Parameter message from the specified reader or buffer, length delimited. @@ -8505,7 +8505,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Intent.Parameter; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Intent.Parameter; /** * Verifies a Parameter message. @@ -8519,629 +8519,1478 @@ export namespace google { * @param object Plain object * @returns Parameter */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Intent.Parameter; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Intent.Parameter; + + /** + * Creates a plain object from a Parameter message. Also converts values to other types if specified. + * @param message Parameter + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.Intent.Parameter, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Parameter to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + + /** Properties of a ListIntentsRequest. */ + interface IListIntentsRequest { + + /** ListIntentsRequest parent */ + parent?: (string|null); + + /** ListIntentsRequest languageCode */ + languageCode?: (string|null); + + /** ListIntentsRequest intentView */ + intentView?: (google.cloud.dialogflow.cx.v3.IntentView|keyof typeof google.cloud.dialogflow.cx.v3.IntentView|null); + + /** ListIntentsRequest pageSize */ + pageSize?: (number|null); + + /** ListIntentsRequest pageToken */ + pageToken?: (string|null); + } + + /** Represents a ListIntentsRequest. */ + class ListIntentsRequest implements IListIntentsRequest { + + /** + * Constructs a new ListIntentsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.IListIntentsRequest); + + /** ListIntentsRequest parent. */ + public parent: string; + + /** ListIntentsRequest languageCode. */ + public languageCode: string; + + /** ListIntentsRequest intentView. */ + public intentView: (google.cloud.dialogflow.cx.v3.IntentView|keyof typeof google.cloud.dialogflow.cx.v3.IntentView); + + /** ListIntentsRequest pageSize. */ + public pageSize: number; + + /** ListIntentsRequest pageToken. */ + public pageToken: string; + + /** + * Creates a new ListIntentsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListIntentsRequest instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.IListIntentsRequest): google.cloud.dialogflow.cx.v3.ListIntentsRequest; + + /** + * Encodes the specified ListIntentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListIntentsRequest.verify|verify} messages. + * @param message ListIntentsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.IListIntentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListIntentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListIntentsRequest.verify|verify} messages. + * @param message ListIntentsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListIntentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListIntentsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListIntentsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListIntentsRequest; + + /** + * Decodes a ListIntentsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListIntentsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListIntentsRequest; + + /** + * Verifies a ListIntentsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListIntentsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListIntentsRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListIntentsRequest; + + /** + * Creates a plain object from a ListIntentsRequest message. Also converts values to other types if specified. + * @param message ListIntentsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.ListIntentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListIntentsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ListIntentsResponse. */ + interface IListIntentsResponse { + + /** ListIntentsResponse intents */ + intents?: (google.cloud.dialogflow.cx.v3.IIntent[]|null); + + /** ListIntentsResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a ListIntentsResponse. */ + class ListIntentsResponse implements IListIntentsResponse { + + /** + * Constructs a new ListIntentsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.IListIntentsResponse); + + /** ListIntentsResponse intents. */ + public intents: google.cloud.dialogflow.cx.v3.IIntent[]; + + /** ListIntentsResponse nextPageToken. */ + public nextPageToken: string; + + /** + * Creates a new ListIntentsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListIntentsResponse instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.IListIntentsResponse): google.cloud.dialogflow.cx.v3.ListIntentsResponse; + + /** + * Encodes the specified ListIntentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListIntentsResponse.verify|verify} messages. + * @param message ListIntentsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.IListIntentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListIntentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListIntentsResponse.verify|verify} messages. + * @param message ListIntentsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListIntentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListIntentsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListIntentsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListIntentsResponse; + + /** + * Decodes a ListIntentsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListIntentsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListIntentsResponse; + + /** + * Verifies a ListIntentsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListIntentsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListIntentsResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListIntentsResponse; + + /** + * Creates a plain object from a ListIntentsResponse message. Also converts values to other types if specified. + * @param message ListIntentsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.ListIntentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListIntentsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a GetIntentRequest. */ + interface IGetIntentRequest { + + /** GetIntentRequest name */ + name?: (string|null); + + /** GetIntentRequest languageCode */ + languageCode?: (string|null); + } + + /** Represents a GetIntentRequest. */ + class GetIntentRequest implements IGetIntentRequest { + + /** + * Constructs a new GetIntentRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.IGetIntentRequest); + + /** GetIntentRequest name. */ + public name: string; + + /** GetIntentRequest languageCode. */ + public languageCode: string; + + /** + * Creates a new GetIntentRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetIntentRequest instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.IGetIntentRequest): google.cloud.dialogflow.cx.v3.GetIntentRequest; + + /** + * Encodes the specified GetIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetIntentRequest.verify|verify} messages. + * @param message GetIntentRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.IGetIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetIntentRequest.verify|verify} messages. + * @param message GetIntentRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IGetIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetIntentRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetIntentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.GetIntentRequest; + + /** + * Decodes a GetIntentRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetIntentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.GetIntentRequest; + + /** + * Verifies a GetIntentRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetIntentRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetIntentRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.GetIntentRequest; + + /** + * Creates a plain object from a GetIntentRequest message. Also converts values to other types if specified. + * @param message GetIntentRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.GetIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetIntentRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a CreateIntentRequest. */ + interface ICreateIntentRequest { + + /** CreateIntentRequest parent */ + parent?: (string|null); + + /** CreateIntentRequest intent */ + intent?: (google.cloud.dialogflow.cx.v3.IIntent|null); + + /** CreateIntentRequest languageCode */ + languageCode?: (string|null); + } + + /** Represents a CreateIntentRequest. */ + class CreateIntentRequest implements ICreateIntentRequest { + + /** + * Constructs a new CreateIntentRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.ICreateIntentRequest); + + /** CreateIntentRequest parent. */ + public parent: string; + + /** CreateIntentRequest intent. */ + public intent?: (google.cloud.dialogflow.cx.v3.IIntent|null); + + /** CreateIntentRequest languageCode. */ + public languageCode: string; + + /** + * Creates a new CreateIntentRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateIntentRequest instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.ICreateIntentRequest): google.cloud.dialogflow.cx.v3.CreateIntentRequest; + + /** + * Encodes the specified CreateIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateIntentRequest.verify|verify} messages. + * @param message CreateIntentRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.ICreateIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CreateIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateIntentRequest.verify|verify} messages. + * @param message CreateIntentRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICreateIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateIntentRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateIntentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.CreateIntentRequest; + + /** + * Decodes a CreateIntentRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateIntentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.CreateIntentRequest; + + /** + * Verifies a CreateIntentRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CreateIntentRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateIntentRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CreateIntentRequest; + + /** + * Creates a plain object from a CreateIntentRequest message. Also converts values to other types if specified. + * @param message CreateIntentRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.CreateIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CreateIntentRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an UpdateIntentRequest. */ + interface IUpdateIntentRequest { + + /** UpdateIntentRequest intent */ + intent?: (google.cloud.dialogflow.cx.v3.IIntent|null); + + /** UpdateIntentRequest languageCode */ + languageCode?: (string|null); + + /** UpdateIntentRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + } + + /** Represents an UpdateIntentRequest. */ + class UpdateIntentRequest implements IUpdateIntentRequest { + + /** + * Constructs a new UpdateIntentRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.IUpdateIntentRequest); + + /** UpdateIntentRequest intent. */ + public intent?: (google.cloud.dialogflow.cx.v3.IIntent|null); + + /** UpdateIntentRequest languageCode. */ + public languageCode: string; + + /** UpdateIntentRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); + + /** + * Creates a new UpdateIntentRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateIntentRequest instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.IUpdateIntentRequest): google.cloud.dialogflow.cx.v3.UpdateIntentRequest; + + /** + * Encodes the specified UpdateIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateIntentRequest.verify|verify} messages. + * @param message UpdateIntentRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.IUpdateIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdateIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateIntentRequest.verify|verify} messages. + * @param message UpdateIntentRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IUpdateIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpdateIntentRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateIntentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.UpdateIntentRequest; + + /** + * Decodes an UpdateIntentRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateIntentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.UpdateIntentRequest; + + /** + * Verifies an UpdateIntentRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an UpdateIntentRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateIntentRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.UpdateIntentRequest; + + /** + * Creates a plain object from an UpdateIntentRequest message. Also converts values to other types if specified. + * @param message UpdateIntentRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.UpdateIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateIntentRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a DeleteIntentRequest. */ + interface IDeleteIntentRequest { + + /** DeleteIntentRequest name */ + name?: (string|null); + } + + /** Represents a DeleteIntentRequest. */ + class DeleteIntentRequest implements IDeleteIntentRequest { + + /** + * Constructs a new DeleteIntentRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.IDeleteIntentRequest); + + /** DeleteIntentRequest name. */ + public name: string; + + /** + * Creates a new DeleteIntentRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteIntentRequest instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.IDeleteIntentRequest): google.cloud.dialogflow.cx.v3.DeleteIntentRequest; + + /** + * Encodes the specified DeleteIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteIntentRequest.verify|verify} messages. + * @param message DeleteIntentRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.IDeleteIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteIntentRequest.verify|verify} messages. + * @param message DeleteIntentRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDeleteIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteIntentRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteIntentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.DeleteIntentRequest; + + /** + * Decodes a DeleteIntentRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteIntentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.DeleteIntentRequest; + + /** + * Verifies a DeleteIntentRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DeleteIntentRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteIntentRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.DeleteIntentRequest; + + /** + * Creates a plain object from a DeleteIntentRequest message. Also converts values to other types if specified. + * @param message DeleteIntentRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.DeleteIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteIntentRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** IntentView enum. */ + enum IntentView { + INTENT_VIEW_UNSPECIFIED = 0, + INTENT_VIEW_PARTIAL = 1, + INTENT_VIEW_FULL = 2 + } + + /** Represents a SecuritySettingsService */ + class SecuritySettingsService extends $protobuf.rpc.Service { + + /** + * Constructs a new SecuritySettingsService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new SecuritySettingsService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): SecuritySettingsService; + + /** + * Calls CreateSecuritySettings. + * @param request CreateSecuritySettingsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and SecuritySettings + */ + public createSecuritySettings(request: google.cloud.dialogflow.cx.v3.ICreateSecuritySettingsRequest, callback: google.cloud.dialogflow.cx.v3.SecuritySettingsService.CreateSecuritySettingsCallback): void; + + /** + * Calls CreateSecuritySettings. + * @param request CreateSecuritySettingsRequest message or plain object + * @returns Promise + */ + public createSecuritySettings(request: google.cloud.dialogflow.cx.v3.ICreateSecuritySettingsRequest): Promise; + + /** + * Calls GetSecuritySettings. + * @param request GetSecuritySettingsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and SecuritySettings + */ + public getSecuritySettings(request: google.cloud.dialogflow.cx.v3.IGetSecuritySettingsRequest, callback: google.cloud.dialogflow.cx.v3.SecuritySettingsService.GetSecuritySettingsCallback): void; + + /** + * Calls GetSecuritySettings. + * @param request GetSecuritySettingsRequest message or plain object + * @returns Promise + */ + public getSecuritySettings(request: google.cloud.dialogflow.cx.v3.IGetSecuritySettingsRequest): Promise; + + /** + * Calls UpdateSecuritySettings. + * @param request UpdateSecuritySettingsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and SecuritySettings + */ + public updateSecuritySettings(request: google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest, callback: google.cloud.dialogflow.cx.v3.SecuritySettingsService.UpdateSecuritySettingsCallback): void; + + /** + * Calls UpdateSecuritySettings. + * @param request UpdateSecuritySettingsRequest message or plain object + * @returns Promise + */ + public updateSecuritySettings(request: google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest): Promise; + + /** + * Calls ListSecuritySettings. + * @param request ListSecuritySettingsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListSecuritySettingsResponse + */ + public listSecuritySettings(request: google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest, callback: google.cloud.dialogflow.cx.v3.SecuritySettingsService.ListSecuritySettingsCallback): void; + + /** + * Calls ListSecuritySettings. + * @param request ListSecuritySettingsRequest message or plain object + * @returns Promise + */ + public listSecuritySettings(request: google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest): Promise; + + /** + * Calls DeleteSecuritySettings. + * @param request DeleteSecuritySettingsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public deleteSecuritySettings(request: google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest, callback: google.cloud.dialogflow.cx.v3.SecuritySettingsService.DeleteSecuritySettingsCallback): void; + + /** + * Calls DeleteSecuritySettings. + * @param request DeleteSecuritySettingsRequest message or plain object + * @returns Promise + */ + public deleteSecuritySettings(request: google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest): Promise; + } + + namespace SecuritySettingsService { + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.SecuritySettingsService#createSecuritySettings}. + * @param error Error, if any + * @param [response] SecuritySettings + */ + type CreateSecuritySettingsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.SecuritySettings) => void; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.SecuritySettingsService#getSecuritySettings}. + * @param error Error, if any + * @param [response] SecuritySettings + */ + type GetSecuritySettingsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.SecuritySettings) => void; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.SecuritySettingsService#updateSecuritySettings}. + * @param error Error, if any + * @param [response] SecuritySettings + */ + type UpdateSecuritySettingsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.SecuritySettings) => void; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.SecuritySettingsService#listSecuritySettings}. + * @param error Error, if any + * @param [response] ListSecuritySettingsResponse + */ + type ListSecuritySettingsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse) => void; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.SecuritySettingsService#deleteSecuritySettings}. + * @param error Error, if any + * @param [response] Empty + */ + type DeleteSecuritySettingsCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + } + + /** Properties of a GetSecuritySettingsRequest. */ + interface IGetSecuritySettingsRequest { + + /** GetSecuritySettingsRequest name */ + name?: (string|null); + } + + /** Represents a GetSecuritySettingsRequest. */ + class GetSecuritySettingsRequest implements IGetSecuritySettingsRequest { + + /** + * Constructs a new GetSecuritySettingsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.IGetSecuritySettingsRequest); + + /** GetSecuritySettingsRequest name. */ + public name: string; + + /** + * Creates a new GetSecuritySettingsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetSecuritySettingsRequest instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.IGetSecuritySettingsRequest): google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest; + + /** + * Encodes the specified GetSecuritySettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest.verify|verify} messages. + * @param message GetSecuritySettingsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.IGetSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetSecuritySettingsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest.verify|verify} messages. + * @param message GetSecuritySettingsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IGetSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetSecuritySettingsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetSecuritySettingsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest; - /** - * Creates a plain object from a Parameter message. Also converts values to other types if specified. - * @param message Parameter - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Intent.Parameter, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Decodes a GetSecuritySettingsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetSecuritySettingsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest; - /** - * Converts this Parameter to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } + /** + * Verifies a GetSecuritySettingsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** Properties of a ListIntentsRequest. */ - interface IListIntentsRequest { + /** + * Creates a GetSecuritySettingsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetSecuritySettingsRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest; - /** ListIntentsRequest parent */ - parent?: (string|null); + /** + * Creates a plain object from a GetSecuritySettingsRequest message. Also converts values to other types if specified. + * @param message GetSecuritySettingsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** ListIntentsRequest languageCode */ - languageCode?: (string|null); + /** + * Converts this GetSecuritySettingsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** ListIntentsRequest intentView */ - intentView?: (google.cloud.dialogflow.cx.v3beta1.IntentView|keyof typeof google.cloud.dialogflow.cx.v3beta1.IntentView|null); + /** Properties of an UpdateSecuritySettingsRequest. */ + interface IUpdateSecuritySettingsRequest { - /** ListIntentsRequest pageSize */ - pageSize?: (number|null); + /** UpdateSecuritySettingsRequest securitySettings */ + securitySettings?: (google.cloud.dialogflow.cx.v3.ISecuritySettings|null); - /** ListIntentsRequest pageToken */ - pageToken?: (string|null); + /** UpdateSecuritySettingsRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); } - /** Represents a ListIntentsRequest. */ - class ListIntentsRequest implements IListIntentsRequest { + /** Represents an UpdateSecuritySettingsRequest. */ + class UpdateSecuritySettingsRequest implements IUpdateSecuritySettingsRequest { /** - * Constructs a new ListIntentsRequest. + * Constructs a new UpdateSecuritySettingsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest); - - /** ListIntentsRequest parent. */ - public parent: string; - - /** ListIntentsRequest languageCode. */ - public languageCode: string; - - /** ListIntentsRequest intentView. */ - public intentView: (google.cloud.dialogflow.cx.v3beta1.IntentView|keyof typeof google.cloud.dialogflow.cx.v3beta1.IntentView); + constructor(properties?: google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest); - /** ListIntentsRequest pageSize. */ - public pageSize: number; + /** UpdateSecuritySettingsRequest securitySettings. */ + public securitySettings?: (google.cloud.dialogflow.cx.v3.ISecuritySettings|null); - /** ListIntentsRequest pageToken. */ - public pageToken: string; + /** UpdateSecuritySettingsRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new ListIntentsRequest instance using the specified properties. + * Creates a new UpdateSecuritySettingsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListIntentsRequest instance + * @returns UpdateSecuritySettingsRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest): google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest): google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest; /** - * Encodes the specified ListIntentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest.verify|verify} messages. - * @param message ListIntentsRequest message or plain object to encode + * Encodes the specified UpdateSecuritySettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest.verify|verify} messages. + * @param message UpdateSecuritySettingsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListIntentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest.verify|verify} messages. - * @param message ListIntentsRequest message or plain object to encode + * Encodes the specified UpdateSecuritySettingsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest.verify|verify} messages. + * @param message UpdateSecuritySettingsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListIntentsRequest message from the specified reader or buffer. + * Decodes an UpdateSecuritySettingsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListIntentsRequest + * @returns UpdateSecuritySettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest; /** - * Decodes a ListIntentsRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateSecuritySettingsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListIntentsRequest + * @returns UpdateSecuritySettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest; /** - * Verifies a ListIntentsRequest message. + * Verifies an UpdateSecuritySettingsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListIntentsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateSecuritySettingsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListIntentsRequest + * @returns UpdateSecuritySettingsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest; /** - * Creates a plain object from a ListIntentsRequest message. Also converts values to other types if specified. - * @param message ListIntentsRequest + * Creates a plain object from an UpdateSecuritySettingsRequest message. Also converts values to other types if specified. + * @param message UpdateSecuritySettingsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListIntentsRequest to JSON. + * Converts this UpdateSecuritySettingsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListIntentsResponse. */ - interface IListIntentsResponse { + /** Properties of a ListSecuritySettingsRequest. */ + interface IListSecuritySettingsRequest { - /** ListIntentsResponse intents */ - intents?: (google.cloud.dialogflow.cx.v3beta1.IIntent[]|null); + /** ListSecuritySettingsRequest parent */ + parent?: (string|null); - /** ListIntentsResponse nextPageToken */ - nextPageToken?: (string|null); + /** ListSecuritySettingsRequest pageSize */ + pageSize?: (number|null); + + /** ListSecuritySettingsRequest pageToken */ + pageToken?: (string|null); } - /** Represents a ListIntentsResponse. */ - class ListIntentsResponse implements IListIntentsResponse { + /** Represents a ListSecuritySettingsRequest. */ + class ListSecuritySettingsRequest implements IListSecuritySettingsRequest { /** - * Constructs a new ListIntentsResponse. + * Constructs a new ListSecuritySettingsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListIntentsResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest); - /** ListIntentsResponse intents. */ - public intents: google.cloud.dialogflow.cx.v3beta1.IIntent[]; + /** ListSecuritySettingsRequest parent. */ + public parent: string; - /** ListIntentsResponse nextPageToken. */ - public nextPageToken: string; + /** ListSecuritySettingsRequest pageSize. */ + public pageSize: number; + + /** ListSecuritySettingsRequest pageToken. */ + public pageToken: string; /** - * Creates a new ListIntentsResponse instance using the specified properties. + * Creates a new ListSecuritySettingsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListIntentsResponse instance + * @returns ListSecuritySettingsRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListIntentsResponse): google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest): google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest; /** - * Encodes the specified ListIntentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse.verify|verify} messages. - * @param message ListIntentsResponse message or plain object to encode + * Encodes the specified ListSecuritySettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest.verify|verify} messages. + * @param message ListSecuritySettingsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListIntentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListIntentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse.verify|verify} messages. - * @param message ListIntentsResponse message or plain object to encode + * Encodes the specified ListSecuritySettingsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest.verify|verify} messages. + * @param message ListSecuritySettingsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListIntentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListIntentsResponse message from the specified reader or buffer. + * Decodes a ListSecuritySettingsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListIntentsResponse + * @returns ListSecuritySettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest; /** - * Decodes a ListIntentsResponse message from the specified reader or buffer, length delimited. + * Decodes a ListSecuritySettingsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListIntentsResponse + * @returns ListSecuritySettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest; /** - * Verifies a ListIntentsResponse message. + * Verifies a ListSecuritySettingsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListIntentsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListSecuritySettingsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListIntentsResponse + * @returns ListSecuritySettingsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest; /** - * Creates a plain object from a ListIntentsResponse message. Also converts values to other types if specified. - * @param message ListIntentsResponse + * Creates a plain object from a ListSecuritySettingsRequest message. Also converts values to other types if specified. + * @param message ListSecuritySettingsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListIntentsResponse to JSON. + * Converts this ListSecuritySettingsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetIntentRequest. */ - interface IGetIntentRequest { + /** Properties of a ListSecuritySettingsResponse. */ + interface IListSecuritySettingsResponse { - /** GetIntentRequest name */ - name?: (string|null); + /** ListSecuritySettingsResponse securitySettings */ + securitySettings?: (google.cloud.dialogflow.cx.v3.ISecuritySettings[]|null); - /** GetIntentRequest languageCode */ - languageCode?: (string|null); + /** ListSecuritySettingsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a GetIntentRequest. */ - class GetIntentRequest implements IGetIntentRequest { + /** Represents a ListSecuritySettingsResponse. */ + class ListSecuritySettingsResponse implements IListSecuritySettingsResponse { /** - * Constructs a new GetIntentRequest. + * Constructs a new ListSecuritySettingsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IListSecuritySettingsResponse); - /** GetIntentRequest name. */ - public name: string; + /** ListSecuritySettingsResponse securitySettings. */ + public securitySettings: google.cloud.dialogflow.cx.v3.ISecuritySettings[]; - /** GetIntentRequest languageCode. */ - public languageCode: string; + /** ListSecuritySettingsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new GetIntentRequest instance using the specified properties. + * Creates a new ListSecuritySettingsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetIntentRequest instance + * @returns ListSecuritySettingsResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest): google.cloud.dialogflow.cx.v3beta1.GetIntentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IListSecuritySettingsResponse): google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse; /** - * Encodes the specified GetIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetIntentRequest.verify|verify} messages. - * @param message GetIntentRequest message or plain object to encode + * Encodes the specified ListSecuritySettingsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse.verify|verify} messages. + * @param message ListSecuritySettingsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IListSecuritySettingsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetIntentRequest.verify|verify} messages. - * @param message GetIntentRequest message or plain object to encode + * Encodes the specified ListSecuritySettingsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse.verify|verify} messages. + * @param message ListSecuritySettingsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListSecuritySettingsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetIntentRequest message from the specified reader or buffer. + * Decodes a ListSecuritySettingsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetIntentRequest + * @returns ListSecuritySettingsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.GetIntentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse; /** - * Decodes a GetIntentRequest message from the specified reader or buffer, length delimited. + * Decodes a ListSecuritySettingsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetIntentRequest + * @returns ListSecuritySettingsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.GetIntentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse; /** - * Verifies a GetIntentRequest message. + * Verifies a ListSecuritySettingsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetIntentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListSecuritySettingsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetIntentRequest + * @returns ListSecuritySettingsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetIntentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse; /** - * Creates a plain object from a GetIntentRequest message. Also converts values to other types if specified. - * @param message GetIntentRequest + * Creates a plain object from a ListSecuritySettingsResponse message. Also converts values to other types if specified. + * @param message ListSecuritySettingsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GetIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetIntentRequest to JSON. + * Converts this ListSecuritySettingsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreateIntentRequest. */ - interface ICreateIntentRequest { + /** Properties of a CreateSecuritySettingsRequest. */ + interface ICreateSecuritySettingsRequest { - /** CreateIntentRequest parent */ + /** CreateSecuritySettingsRequest parent */ parent?: (string|null); - /** CreateIntentRequest intent */ - intent?: (google.cloud.dialogflow.cx.v3beta1.IIntent|null); - - /** CreateIntentRequest languageCode */ - languageCode?: (string|null); + /** CreateSecuritySettingsRequest securitySettings */ + securitySettings?: (google.cloud.dialogflow.cx.v3.ISecuritySettings|null); } - /** Represents a CreateIntentRequest. */ - class CreateIntentRequest implements ICreateIntentRequest { + /** Represents a CreateSecuritySettingsRequest. */ + class CreateSecuritySettingsRequest implements ICreateSecuritySettingsRequest { /** - * Constructs a new CreateIntentRequest. + * Constructs a new CreateSecuritySettingsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.ICreateSecuritySettingsRequest); - /** CreateIntentRequest parent. */ + /** CreateSecuritySettingsRequest parent. */ public parent: string; - /** CreateIntentRequest intent. */ - public intent?: (google.cloud.dialogflow.cx.v3beta1.IIntent|null); - - /** CreateIntentRequest languageCode. */ - public languageCode: string; + /** CreateSecuritySettingsRequest securitySettings. */ + public securitySettings?: (google.cloud.dialogflow.cx.v3.ISecuritySettings|null); /** - * Creates a new CreateIntentRequest instance using the specified properties. + * Creates a new CreateSecuritySettingsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateIntentRequest instance + * @returns CreateSecuritySettingsRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest): google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.ICreateSecuritySettingsRequest): google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest; /** - * Encodes the specified CreateIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest.verify|verify} messages. - * @param message CreateIntentRequest message or plain object to encode + * Encodes the specified CreateSecuritySettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest.verify|verify} messages. + * @param message CreateSecuritySettingsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ICreateSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest.verify|verify} messages. - * @param message CreateIntentRequest message or plain object to encode + * Encodes the specified CreateSecuritySettingsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest.verify|verify} messages. + * @param message CreateSecuritySettingsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICreateSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateIntentRequest message from the specified reader or buffer. + * Decodes a CreateSecuritySettingsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateIntentRequest + * @returns CreateSecuritySettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest; /** - * Decodes a CreateIntentRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateSecuritySettingsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateIntentRequest + * @returns CreateSecuritySettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest; /** - * Verifies a CreateIntentRequest message. + * Verifies a CreateSecuritySettingsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateIntentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateSecuritySettingsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateIntentRequest + * @returns CreateSecuritySettingsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest; /** - * Creates a plain object from a CreateIntentRequest message. Also converts values to other types if specified. - * @param message CreateIntentRequest + * Creates a plain object from a CreateSecuritySettingsRequest message. Also converts values to other types if specified. + * @param message CreateSecuritySettingsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateIntentRequest to JSON. + * Converts this CreateSecuritySettingsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an UpdateIntentRequest. */ - interface IUpdateIntentRequest { - - /** UpdateIntentRequest intent */ - intent?: (google.cloud.dialogflow.cx.v3beta1.IIntent|null); - - /** UpdateIntentRequest languageCode */ - languageCode?: (string|null); + /** Properties of a DeleteSecuritySettingsRequest. */ + interface IDeleteSecuritySettingsRequest { - /** UpdateIntentRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** DeleteSecuritySettingsRequest name */ + name?: (string|null); } - /** Represents an UpdateIntentRequest. */ - class UpdateIntentRequest implements IUpdateIntentRequest { + /** Represents a DeleteSecuritySettingsRequest. */ + class DeleteSecuritySettingsRequest implements IDeleteSecuritySettingsRequest { /** - * Constructs a new UpdateIntentRequest. + * Constructs a new DeleteSecuritySettingsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest); - - /** UpdateIntentRequest intent. */ - public intent?: (google.cloud.dialogflow.cx.v3beta1.IIntent|null); - - /** UpdateIntentRequest languageCode. */ - public languageCode: string; + constructor(properties?: google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest); - /** UpdateIntentRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** DeleteSecuritySettingsRequest name. */ + public name: string; /** - * Creates a new UpdateIntentRequest instance using the specified properties. + * Creates a new DeleteSecuritySettingsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateIntentRequest instance + * @returns DeleteSecuritySettingsRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest): google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest): google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest; /** - * Encodes the specified UpdateIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest.verify|verify} messages. - * @param message UpdateIntentRequest message or plain object to encode + * Encodes the specified DeleteSecuritySettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest.verify|verify} messages. + * @param message DeleteSecuritySettingsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest.verify|verify} messages. - * @param message UpdateIntentRequest message or plain object to encode + * Encodes the specified DeleteSecuritySettingsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest.verify|verify} messages. + * @param message DeleteSecuritySettingsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateIntentRequest message from the specified reader or buffer. + * Decodes a DeleteSecuritySettingsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateIntentRequest + * @returns DeleteSecuritySettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest; /** - * Decodes an UpdateIntentRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteSecuritySettingsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateIntentRequest + * @returns DeleteSecuritySettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest; /** - * Verifies an UpdateIntentRequest message. + * Verifies a DeleteSecuritySettingsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an UpdateIntentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteSecuritySettingsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateIntentRequest + * @returns DeleteSecuritySettingsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest; /** - * Creates a plain object from an UpdateIntentRequest message. Also converts values to other types if specified. - * @param message UpdateIntentRequest + * Creates a plain object from a DeleteSecuritySettingsRequest message. Also converts values to other types if specified. + * @param message DeleteSecuritySettingsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateIntentRequest to JSON. + * Converts this DeleteSecuritySettingsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteIntentRequest. */ - interface IDeleteIntentRequest { + /** Properties of a SecuritySettings. */ + interface ISecuritySettings { - /** DeleteIntentRequest name */ + /** SecuritySettings name */ name?: (string|null); + + /** SecuritySettings displayName */ + displayName?: (string|null); + + /** SecuritySettings redactionStrategy */ + redactionStrategy?: (google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy|keyof typeof google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy|null); + + /** SecuritySettings redactionScope */ + redactionScope?: (google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope|keyof typeof google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope|null); + + /** SecuritySettings inspectTemplate */ + inspectTemplate?: (string|null); + + /** SecuritySettings retentionWindowDays */ + retentionWindowDays?: (number|null); + + /** SecuritySettings purgeDataTypes */ + purgeDataTypes?: (google.cloud.dialogflow.cx.v3.SecuritySettings.PurgeDataType[]|null); } - /** Represents a DeleteIntentRequest. */ - class DeleteIntentRequest implements IDeleteIntentRequest { + /** Represents a SecuritySettings. */ + class SecuritySettings implements ISecuritySettings { /** - * Constructs a new DeleteIntentRequest. + * Constructs a new SecuritySettings. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteIntentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.ISecuritySettings); - /** DeleteIntentRequest name. */ + /** SecuritySettings name. */ public name: string; + /** SecuritySettings displayName. */ + public displayName: string; + + /** SecuritySettings redactionStrategy. */ + public redactionStrategy: (google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy|keyof typeof google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy); + + /** SecuritySettings redactionScope. */ + public redactionScope: (google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope|keyof typeof google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope); + + /** SecuritySettings inspectTemplate. */ + public inspectTemplate: string; + + /** SecuritySettings retentionWindowDays. */ + public retentionWindowDays: number; + + /** SecuritySettings purgeDataTypes. */ + public purgeDataTypes: google.cloud.dialogflow.cx.v3.SecuritySettings.PurgeDataType[]; + + /** SecuritySettings dataRetention. */ + public dataRetention?: "retentionWindowDays"; + /** - * Creates a new DeleteIntentRequest instance using the specified properties. + * Creates a new SecuritySettings instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteIntentRequest instance + * @returns SecuritySettings instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteIntentRequest): google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.ISecuritySettings): google.cloud.dialogflow.cx.v3.SecuritySettings; /** - * Encodes the specified DeleteIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest.verify|verify} messages. - * @param message DeleteIntentRequest message or plain object to encode + * Encodes the specified SecuritySettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SecuritySettings.verify|verify} messages. + * @param message SecuritySettings message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IDeleteIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ISecuritySettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest.verify|verify} messages. - * @param message DeleteIntentRequest message or plain object to encode + * Encodes the specified SecuritySettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SecuritySettings.verify|verify} messages. + * @param message SecuritySettings message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IDeleteIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ISecuritySettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteIntentRequest message from the specified reader or buffer. + * Decodes a SecuritySettings message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteIntentRequest + * @returns SecuritySettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.SecuritySettings; /** - * Decodes a DeleteIntentRequest message from the specified reader or buffer, length delimited. + * Decodes a SecuritySettings message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteIntentRequest + * @returns SecuritySettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.SecuritySettings; /** - * Verifies a DeleteIntentRequest message. + * Verifies a SecuritySettings message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteIntentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SecuritySettings message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteIntentRequest + * @returns SecuritySettings */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.SecuritySettings; /** - * Creates a plain object from a DeleteIntentRequest message. Also converts values to other types if specified. - * @param message DeleteIntentRequest + * Creates a plain object from a SecuritySettings message. Also converts values to other types if specified. + * @param message SecuritySettings * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.SecuritySettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteIntentRequest to JSON. + * Converts this SecuritySettings to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** IntentView enum. */ - enum IntentView { - INTENT_VIEW_UNSPECIFIED = 0, - INTENT_VIEW_PARTIAL = 1, - INTENT_VIEW_FULL = 2 + namespace SecuritySettings { + + /** RedactionStrategy enum. */ + enum RedactionStrategy { + REDACTION_STRATEGY_UNSPECIFIED = 0, + REDACT_WITH_SERVICE = 1 + } + + /** RedactionScope enum. */ + enum RedactionScope { + REDACTION_SCOPE_UNSPECIFIED = 0, + REDACT_DISK_STORAGE = 2 + } + + /** PurgeDataType enum. */ + enum PurgeDataType { + PURGE_DATA_TYPE_UNSPECIFIED = 0, + DIALOGFLOW_HISTORY = 1 + } } /** Represents a Sessions */ @@ -9169,87 +10018,87 @@ export namespace google { * @param request DetectIntentRequest message or plain object * @param callback Node-style callback called with the error, if any, and DetectIntentResponse */ - public detectIntent(request: google.cloud.dialogflow.cx.v3beta1.IDetectIntentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Sessions.DetectIntentCallback): void; + public detectIntent(request: google.cloud.dialogflow.cx.v3.IDetectIntentRequest, callback: google.cloud.dialogflow.cx.v3.Sessions.DetectIntentCallback): void; /** * Calls DetectIntent. * @param request DetectIntentRequest message or plain object * @returns Promise */ - public detectIntent(request: google.cloud.dialogflow.cx.v3beta1.IDetectIntentRequest): Promise; + public detectIntent(request: google.cloud.dialogflow.cx.v3.IDetectIntentRequest): Promise; /** * Calls StreamingDetectIntent. * @param request StreamingDetectIntentRequest message or plain object * @param callback Node-style callback called with the error, if any, and StreamingDetectIntentResponse */ - public streamingDetectIntent(request: google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Sessions.StreamingDetectIntentCallback): void; + public streamingDetectIntent(request: google.cloud.dialogflow.cx.v3.IStreamingDetectIntentRequest, callback: google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntentCallback): void; /** * Calls StreamingDetectIntent. * @param request StreamingDetectIntentRequest message or plain object * @returns Promise */ - public streamingDetectIntent(request: google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentRequest): Promise; + public streamingDetectIntent(request: google.cloud.dialogflow.cx.v3.IStreamingDetectIntentRequest): Promise; /** * Calls MatchIntent. * @param request MatchIntentRequest message or plain object * @param callback Node-style callback called with the error, if any, and MatchIntentResponse */ - public matchIntent(request: google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Sessions.MatchIntentCallback): void; + public matchIntent(request: google.cloud.dialogflow.cx.v3.IMatchIntentRequest, callback: google.cloud.dialogflow.cx.v3.Sessions.MatchIntentCallback): void; /** * Calls MatchIntent. * @param request MatchIntentRequest message or plain object * @returns Promise */ - public matchIntent(request: google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest): Promise; + public matchIntent(request: google.cloud.dialogflow.cx.v3.IMatchIntentRequest): Promise; /** * Calls FulfillIntent. * @param request FulfillIntentRequest message or plain object * @param callback Node-style callback called with the error, if any, and FulfillIntentResponse */ - public fulfillIntent(request: google.cloud.dialogflow.cx.v3beta1.IFulfillIntentRequest, callback: google.cloud.dialogflow.cx.v3beta1.Sessions.FulfillIntentCallback): void; + public fulfillIntent(request: google.cloud.dialogflow.cx.v3.IFulfillIntentRequest, callback: google.cloud.dialogflow.cx.v3.Sessions.FulfillIntentCallback): void; /** * Calls FulfillIntent. * @param request FulfillIntentRequest message or plain object * @returns Promise */ - public fulfillIntent(request: google.cloud.dialogflow.cx.v3beta1.IFulfillIntentRequest): Promise; + public fulfillIntent(request: google.cloud.dialogflow.cx.v3.IFulfillIntentRequest): Promise; } namespace Sessions { /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Sessions#detectIntent}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Sessions#detectIntent}. * @param error Error, if any * @param [response] DetectIntentResponse */ - type DetectIntentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse) => void; + type DetectIntentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.DetectIntentResponse) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Sessions#streamingDetectIntent}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Sessions#streamingDetectIntent}. * @param error Error, if any * @param [response] StreamingDetectIntentResponse */ - type StreamingDetectIntentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse) => void; + type StreamingDetectIntentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Sessions#matchIntent}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Sessions#matchIntent}. * @param error Error, if any * @param [response] MatchIntentResponse */ - type MatchIntentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse) => void; + type MatchIntentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.MatchIntentResponse) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Sessions#fulfillIntent}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Sessions#fulfillIntent}. * @param error Error, if any * @param [response] FulfillIntentResponse */ - type FulfillIntentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse) => void; + type FulfillIntentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.FulfillIntentResponse) => void; } /** Properties of a DetectIntentRequest. */ @@ -9259,13 +10108,13 @@ export namespace google { session?: (string|null); /** DetectIntentRequest queryParams */ - queryParams?: (google.cloud.dialogflow.cx.v3beta1.IQueryParameters|null); + queryParams?: (google.cloud.dialogflow.cx.v3.IQueryParameters|null); /** DetectIntentRequest queryInput */ - queryInput?: (google.cloud.dialogflow.cx.v3beta1.IQueryInput|null); + queryInput?: (google.cloud.dialogflow.cx.v3.IQueryInput|null); /** DetectIntentRequest outputAudioConfig */ - outputAudioConfig?: (google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null); + outputAudioConfig?: (google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null); } /** Represents a DetectIntentRequest. */ @@ -9275,42 +10124,42 @@ export namespace google { * Constructs a new DetectIntentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDetectIntentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IDetectIntentRequest); /** DetectIntentRequest session. */ public session: string; /** DetectIntentRequest queryParams. */ - public queryParams?: (google.cloud.dialogflow.cx.v3beta1.IQueryParameters|null); + public queryParams?: (google.cloud.dialogflow.cx.v3.IQueryParameters|null); /** DetectIntentRequest queryInput. */ - public queryInput?: (google.cloud.dialogflow.cx.v3beta1.IQueryInput|null); + public queryInput?: (google.cloud.dialogflow.cx.v3.IQueryInput|null); /** DetectIntentRequest outputAudioConfig. */ - public outputAudioConfig?: (google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null); + public outputAudioConfig?: (google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null); /** * Creates a new DetectIntentRequest instance using the specified properties. * @param [properties] Properties to set * @returns DetectIntentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDetectIntentRequest): google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IDetectIntentRequest): google.cloud.dialogflow.cx.v3.DetectIntentRequest; /** - * Encodes the specified DetectIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest.verify|verify} messages. + * Encodes the specified DetectIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DetectIntentRequest.verify|verify} messages. * @param message DetectIntentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IDetectIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IDetectIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DetectIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest.verify|verify} messages. + * Encodes the specified DetectIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DetectIntentRequest.verify|verify} messages. * @param message DetectIntentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IDetectIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDetectIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a DetectIntentRequest message from the specified reader or buffer. @@ -9320,7 +10169,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.DetectIntentRequest; /** * Decodes a DetectIntentRequest message from the specified reader or buffer, length delimited. @@ -9329,7 +10178,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.DetectIntentRequest; /** * Verifies a DetectIntentRequest message. @@ -9343,7 +10192,7 @@ export namespace google { * @param object Plain object * @returns DetectIntentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.DetectIntentRequest; /** * Creates a plain object from a DetectIntentRequest message. Also converts values to other types if specified. @@ -9351,7 +10200,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.DetectIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this DetectIntentRequest to JSON. @@ -9367,13 +10216,13 @@ export namespace google { responseId?: (string|null); /** DetectIntentResponse queryResult */ - queryResult?: (google.cloud.dialogflow.cx.v3beta1.IQueryResult|null); + queryResult?: (google.cloud.dialogflow.cx.v3.IQueryResult|null); /** DetectIntentResponse outputAudio */ outputAudio?: (Uint8Array|string|null); /** DetectIntentResponse outputAudioConfig */ - outputAudioConfig?: (google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null); + outputAudioConfig?: (google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null); } /** Represents a DetectIntentResponse. */ @@ -9383,42 +10232,42 @@ export namespace google { * Constructs a new DetectIntentResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDetectIntentResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3.IDetectIntentResponse); /** DetectIntentResponse responseId. */ public responseId: string; /** DetectIntentResponse queryResult. */ - public queryResult?: (google.cloud.dialogflow.cx.v3beta1.IQueryResult|null); + public queryResult?: (google.cloud.dialogflow.cx.v3.IQueryResult|null); /** DetectIntentResponse outputAudio. */ public outputAudio: (Uint8Array|string); /** DetectIntentResponse outputAudioConfig. */ - public outputAudioConfig?: (google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null); + public outputAudioConfig?: (google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null); /** * Creates a new DetectIntentResponse instance using the specified properties. * @param [properties] Properties to set * @returns DetectIntentResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDetectIntentResponse): google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3.IDetectIntentResponse): google.cloud.dialogflow.cx.v3.DetectIntentResponse; /** - * Encodes the specified DetectIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.verify|verify} messages. + * Encodes the specified DetectIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DetectIntentResponse.verify|verify} messages. * @param message DetectIntentResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IDetectIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IDetectIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DetectIntentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.verify|verify} messages. + * Encodes the specified DetectIntentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DetectIntentResponse.verify|verify} messages. * @param message DetectIntentResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IDetectIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDetectIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a DetectIntentResponse message from the specified reader or buffer. @@ -9428,7 +10277,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.DetectIntentResponse; /** * Decodes a DetectIntentResponse message from the specified reader or buffer, length delimited. @@ -9437,7 +10286,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.DetectIntentResponse; /** * Verifies a DetectIntentResponse message. @@ -9451,7 +10300,7 @@ export namespace google { * @param object Plain object * @returns DetectIntentResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.DetectIntentResponse; /** * Creates a plain object from a DetectIntentResponse message. Also converts values to other types if specified. @@ -9459,7 +10308,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.DetectIntentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this DetectIntentResponse to JSON. @@ -9475,13 +10324,13 @@ export namespace google { session?: (string|null); /** StreamingDetectIntentRequest queryParams */ - queryParams?: (google.cloud.dialogflow.cx.v3beta1.IQueryParameters|null); + queryParams?: (google.cloud.dialogflow.cx.v3.IQueryParameters|null); /** StreamingDetectIntentRequest queryInput */ - queryInput?: (google.cloud.dialogflow.cx.v3beta1.IQueryInput|null); + queryInput?: (google.cloud.dialogflow.cx.v3.IQueryInput|null); /** StreamingDetectIntentRequest outputAudioConfig */ - outputAudioConfig?: (google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null); + outputAudioConfig?: (google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null); } /** Represents a StreamingDetectIntentRequest. */ @@ -9491,42 +10340,42 @@ export namespace google { * Constructs a new StreamingDetectIntentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IStreamingDetectIntentRequest); /** StreamingDetectIntentRequest session. */ public session: string; /** StreamingDetectIntentRequest queryParams. */ - public queryParams?: (google.cloud.dialogflow.cx.v3beta1.IQueryParameters|null); + public queryParams?: (google.cloud.dialogflow.cx.v3.IQueryParameters|null); /** StreamingDetectIntentRequest queryInput. */ - public queryInput?: (google.cloud.dialogflow.cx.v3beta1.IQueryInput|null); + public queryInput?: (google.cloud.dialogflow.cx.v3.IQueryInput|null); /** StreamingDetectIntentRequest outputAudioConfig. */ - public outputAudioConfig?: (google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null); + public outputAudioConfig?: (google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null); /** * Creates a new StreamingDetectIntentRequest instance using the specified properties. * @param [properties] Properties to set * @returns StreamingDetectIntentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentRequest): google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IStreamingDetectIntentRequest): google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest; /** - * Encodes the specified StreamingDetectIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest.verify|verify} messages. + * Encodes the specified StreamingDetectIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.verify|verify} messages. * @param message StreamingDetectIntentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IStreamingDetectIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified StreamingDetectIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest.verify|verify} messages. + * Encodes the specified StreamingDetectIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.verify|verify} messages. * @param message StreamingDetectIntentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IStreamingDetectIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a StreamingDetectIntentRequest message from the specified reader or buffer. @@ -9536,7 +10385,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest; /** * Decodes a StreamingDetectIntentRequest message from the specified reader or buffer, length delimited. @@ -9545,7 +10394,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest; /** * Verifies a StreamingDetectIntentRequest message. @@ -9559,7 +10408,7 @@ export namespace google { * @param object Plain object * @returns StreamingDetectIntentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest; /** * Creates a plain object from a StreamingDetectIntentRequest message. Also converts values to other types if specified. @@ -9567,7 +10416,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this StreamingDetectIntentRequest to JSON. @@ -9580,10 +10429,10 @@ export namespace google { interface IStreamingDetectIntentResponse { /** StreamingDetectIntentResponse recognitionResult */ - recognitionResult?: (google.cloud.dialogflow.cx.v3beta1.IStreamingRecognitionResult|null); + recognitionResult?: (google.cloud.dialogflow.cx.v3.IStreamingRecognitionResult|null); /** StreamingDetectIntentResponse detectIntentResponse */ - detectIntentResponse?: (google.cloud.dialogflow.cx.v3beta1.IDetectIntentResponse|null); + detectIntentResponse?: (google.cloud.dialogflow.cx.v3.IDetectIntentResponse|null); } /** Represents a StreamingDetectIntentResponse. */ @@ -9593,13 +10442,13 @@ export namespace google { * Constructs a new StreamingDetectIntentResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3.IStreamingDetectIntentResponse); /** StreamingDetectIntentResponse recognitionResult. */ - public recognitionResult?: (google.cloud.dialogflow.cx.v3beta1.IStreamingRecognitionResult|null); + public recognitionResult?: (google.cloud.dialogflow.cx.v3.IStreamingRecognitionResult|null); /** StreamingDetectIntentResponse detectIntentResponse. */ - public detectIntentResponse?: (google.cloud.dialogflow.cx.v3beta1.IDetectIntentResponse|null); + public detectIntentResponse?: (google.cloud.dialogflow.cx.v3.IDetectIntentResponse|null); /** StreamingDetectIntentResponse response. */ public response?: ("recognitionResult"|"detectIntentResponse"); @@ -9609,23 +10458,23 @@ export namespace google { * @param [properties] Properties to set * @returns StreamingDetectIntentResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentResponse): google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3.IStreamingDetectIntentResponse): google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse; /** - * Encodes the specified StreamingDetectIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse.verify|verify} messages. + * Encodes the specified StreamingDetectIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse.verify|verify} messages. * @param message StreamingDetectIntentResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IStreamingDetectIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified StreamingDetectIntentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse.verify|verify} messages. + * Encodes the specified StreamingDetectIntentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse.verify|verify} messages. * @param message StreamingDetectIntentResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IStreamingDetectIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a StreamingDetectIntentResponse message from the specified reader or buffer. @@ -9635,7 +10484,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse; /** * Decodes a StreamingDetectIntentResponse message from the specified reader or buffer, length delimited. @@ -9644,7 +10493,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse; /** * Verifies a StreamingDetectIntentResponse message. @@ -9658,7 +10507,7 @@ export namespace google { * @param object Plain object * @returns StreamingDetectIntentResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse; /** * Creates a plain object from a StreamingDetectIntentResponse message. Also converts values to other types if specified. @@ -9666,7 +10515,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this StreamingDetectIntentResponse to JSON. @@ -9679,7 +10528,7 @@ export namespace google { interface IStreamingRecognitionResult { /** StreamingRecognitionResult messageType */ - messageType?: (google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.MessageType|keyof typeof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.MessageType|null); + messageType?: (google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.MessageType|keyof typeof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.MessageType|null); /** StreamingRecognitionResult transcript */ transcript?: (string|null); @@ -9694,7 +10543,7 @@ export namespace google { stability?: (number|null); /** StreamingRecognitionResult speechWordInfo */ - speechWordInfo?: (google.cloud.dialogflow.cx.v3beta1.ISpeechWordInfo[]|null); + speechWordInfo?: (google.cloud.dialogflow.cx.v3.ISpeechWordInfo[]|null); /** StreamingRecognitionResult speechEndOffset */ speechEndOffset?: (google.protobuf.IDuration|null); @@ -9707,10 +10556,10 @@ export namespace google { * Constructs a new StreamingRecognitionResult. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IStreamingRecognitionResult); + constructor(properties?: google.cloud.dialogflow.cx.v3.IStreamingRecognitionResult); /** StreamingRecognitionResult messageType. */ - public messageType: (google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.MessageType|keyof typeof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.MessageType); + public messageType: (google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.MessageType|keyof typeof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.MessageType); /** StreamingRecognitionResult transcript. */ public transcript: string; @@ -9725,7 +10574,7 @@ export namespace google { public stability: number; /** StreamingRecognitionResult speechWordInfo. */ - public speechWordInfo: google.cloud.dialogflow.cx.v3beta1.ISpeechWordInfo[]; + public speechWordInfo: google.cloud.dialogflow.cx.v3.ISpeechWordInfo[]; /** StreamingRecognitionResult speechEndOffset. */ public speechEndOffset?: (google.protobuf.IDuration|null); @@ -9735,23 +10584,23 @@ export namespace google { * @param [properties] Properties to set * @returns StreamingRecognitionResult instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IStreamingRecognitionResult): google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult; + public static create(properties?: google.cloud.dialogflow.cx.v3.IStreamingRecognitionResult): google.cloud.dialogflow.cx.v3.StreamingRecognitionResult; /** - * Encodes the specified StreamingRecognitionResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.verify|verify} messages. + * Encodes the specified StreamingRecognitionResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.verify|verify} messages. * @param message StreamingRecognitionResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IStreamingRecognitionResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IStreamingRecognitionResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified StreamingRecognitionResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.verify|verify} messages. + * Encodes the specified StreamingRecognitionResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.verify|verify} messages. * @param message StreamingRecognitionResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IStreamingRecognitionResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IStreamingRecognitionResult, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a StreamingRecognitionResult message from the specified reader or buffer. @@ -9761,7 +10610,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.StreamingRecognitionResult; /** * Decodes a StreamingRecognitionResult message from the specified reader or buffer, length delimited. @@ -9770,7 +10619,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.StreamingRecognitionResult; /** * Verifies a StreamingRecognitionResult message. @@ -9784,7 +10633,7 @@ export namespace google { * @param object Plain object * @returns StreamingRecognitionResult */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.StreamingRecognitionResult; /** * Creates a plain object from a StreamingRecognitionResult message. Also converts values to other types if specified. @@ -9792,7 +10641,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.StreamingRecognitionResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this StreamingRecognitionResult to JSON. @@ -9821,7 +10670,7 @@ export namespace google { geoLocation?: (google.type.ILatLng|null); /** QueryParameters sessionEntityTypes */ - sessionEntityTypes?: (google.cloud.dialogflow.cx.v3beta1.ISessionEntityType[]|null); + sessionEntityTypes?: (google.cloud.dialogflow.cx.v3.ISessionEntityType[]|null); /** QueryParameters payload */ payload?: (google.protobuf.IStruct|null); @@ -9840,7 +10689,7 @@ export namespace google { * Constructs a new QueryParameters. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IQueryParameters); + constructor(properties?: google.cloud.dialogflow.cx.v3.IQueryParameters); /** QueryParameters timeZone. */ public timeZone: string; @@ -9849,7 +10698,7 @@ export namespace google { public geoLocation?: (google.type.ILatLng|null); /** QueryParameters sessionEntityTypes. */ - public sessionEntityTypes: google.cloud.dialogflow.cx.v3beta1.ISessionEntityType[]; + public sessionEntityTypes: google.cloud.dialogflow.cx.v3.ISessionEntityType[]; /** QueryParameters payload. */ public payload?: (google.protobuf.IStruct|null); @@ -9865,23 +10714,23 @@ export namespace google { * @param [properties] Properties to set * @returns QueryParameters instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IQueryParameters): google.cloud.dialogflow.cx.v3beta1.QueryParameters; + public static create(properties?: google.cloud.dialogflow.cx.v3.IQueryParameters): google.cloud.dialogflow.cx.v3.QueryParameters; /** - * Encodes the specified QueryParameters message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.QueryParameters.verify|verify} messages. + * Encodes the specified QueryParameters message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.QueryParameters.verify|verify} messages. * @param message QueryParameters message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IQueryParameters, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IQueryParameters, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryParameters message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.QueryParameters.verify|verify} messages. + * Encodes the specified QueryParameters message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.QueryParameters.verify|verify} messages. * @param message QueryParameters message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IQueryParameters, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IQueryParameters, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a QueryParameters message from the specified reader or buffer. @@ -9891,7 +10740,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.QueryParameters; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.QueryParameters; /** * Decodes a QueryParameters message from the specified reader or buffer, length delimited. @@ -9900,7 +10749,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.QueryParameters; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.QueryParameters; /** * Verifies a QueryParameters message. @@ -9914,7 +10763,7 @@ export namespace google { * @param object Plain object * @returns QueryParameters */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.QueryParameters; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.QueryParameters; /** * Creates a plain object from a QueryParameters message. Also converts values to other types if specified. @@ -9922,7 +10771,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.QueryParameters, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.QueryParameters, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this QueryParameters to JSON. @@ -9935,19 +10784,19 @@ export namespace google { interface IQueryInput { /** QueryInput text */ - text?: (google.cloud.dialogflow.cx.v3beta1.ITextInput|null); + text?: (google.cloud.dialogflow.cx.v3.ITextInput|null); /** QueryInput intent */ - intent?: (google.cloud.dialogflow.cx.v3beta1.IIntentInput|null); + intent?: (google.cloud.dialogflow.cx.v3.IIntentInput|null); /** QueryInput audio */ - audio?: (google.cloud.dialogflow.cx.v3beta1.IAudioInput|null); + audio?: (google.cloud.dialogflow.cx.v3.IAudioInput|null); /** QueryInput event */ - event?: (google.cloud.dialogflow.cx.v3beta1.IEventInput|null); + event?: (google.cloud.dialogflow.cx.v3.IEventInput|null); /** QueryInput dtmf */ - dtmf?: (google.cloud.dialogflow.cx.v3beta1.IDtmfInput|null); + dtmf?: (google.cloud.dialogflow.cx.v3.IDtmfInput|null); /** QueryInput languageCode */ languageCode?: (string|null); @@ -9960,22 +10809,22 @@ export namespace google { * Constructs a new QueryInput. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IQueryInput); + constructor(properties?: google.cloud.dialogflow.cx.v3.IQueryInput); /** QueryInput text. */ - public text?: (google.cloud.dialogflow.cx.v3beta1.ITextInput|null); + public text?: (google.cloud.dialogflow.cx.v3.ITextInput|null); /** QueryInput intent. */ - public intent?: (google.cloud.dialogflow.cx.v3beta1.IIntentInput|null); + public intent?: (google.cloud.dialogflow.cx.v3.IIntentInput|null); /** QueryInput audio. */ - public audio?: (google.cloud.dialogflow.cx.v3beta1.IAudioInput|null); + public audio?: (google.cloud.dialogflow.cx.v3.IAudioInput|null); /** QueryInput event. */ - public event?: (google.cloud.dialogflow.cx.v3beta1.IEventInput|null); + public event?: (google.cloud.dialogflow.cx.v3.IEventInput|null); /** QueryInput dtmf. */ - public dtmf?: (google.cloud.dialogflow.cx.v3beta1.IDtmfInput|null); + public dtmf?: (google.cloud.dialogflow.cx.v3.IDtmfInput|null); /** QueryInput languageCode. */ public languageCode: string; @@ -9988,23 +10837,23 @@ export namespace google { * @param [properties] Properties to set * @returns QueryInput instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IQueryInput): google.cloud.dialogflow.cx.v3beta1.QueryInput; + public static create(properties?: google.cloud.dialogflow.cx.v3.IQueryInput): google.cloud.dialogflow.cx.v3.QueryInput; /** - * Encodes the specified QueryInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.QueryInput.verify|verify} messages. + * Encodes the specified QueryInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.QueryInput.verify|verify} messages. * @param message QueryInput message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IQueryInput, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IQueryInput, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.QueryInput.verify|verify} messages. + * Encodes the specified QueryInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.QueryInput.verify|verify} messages. * @param message QueryInput message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IQueryInput, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IQueryInput, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a QueryInput message from the specified reader or buffer. @@ -10014,7 +10863,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.QueryInput; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.QueryInput; /** * Decodes a QueryInput message from the specified reader or buffer, length delimited. @@ -10023,7 +10872,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.QueryInput; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.QueryInput; /** * Verifies a QueryInput message. @@ -10037,7 +10886,7 @@ export namespace google { * @param object Plain object * @returns QueryInput */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.QueryInput; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.QueryInput; /** * Creates a plain object from a QueryInput message. Also converts values to other types if specified. @@ -10045,7 +10894,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.QueryInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.QueryInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this QueryInput to JSON. @@ -10076,7 +10925,7 @@ export namespace google { parameters?: (google.protobuf.IStruct|null); /** QueryResult responseMessages */ - responseMessages?: (google.cloud.dialogflow.cx.v3beta1.IResponseMessage[]|null); + responseMessages?: (google.cloud.dialogflow.cx.v3.IResponseMessage[]|null); /** QueryResult webhookStatuses */ webhookStatuses?: (google.rpc.IStatus[]|null); @@ -10085,22 +10934,22 @@ export namespace google { webhookPayloads?: (google.protobuf.IStruct[]|null); /** QueryResult currentPage */ - currentPage?: (google.cloud.dialogflow.cx.v3beta1.IPage|null); + currentPage?: (google.cloud.dialogflow.cx.v3.IPage|null); /** QueryResult intent */ - intent?: (google.cloud.dialogflow.cx.v3beta1.IIntent|null); + intent?: (google.cloud.dialogflow.cx.v3.IIntent|null); /** QueryResult intentDetectionConfidence */ intentDetectionConfidence?: (number|null); /** QueryResult match */ - match?: (google.cloud.dialogflow.cx.v3beta1.IMatch|null); + match?: (google.cloud.dialogflow.cx.v3.IMatch|null); /** QueryResult diagnosticInfo */ diagnosticInfo?: (google.protobuf.IStruct|null); /** QueryResult sentimentAnalysisResult */ - sentimentAnalysisResult?: (google.cloud.dialogflow.cx.v3beta1.ISentimentAnalysisResult|null); + sentimentAnalysisResult?: (google.cloud.dialogflow.cx.v3.ISentimentAnalysisResult|null); } /** Represents a QueryResult. */ @@ -10110,7 +10959,7 @@ export namespace google { * Constructs a new QueryResult. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IQueryResult); + constructor(properties?: google.cloud.dialogflow.cx.v3.IQueryResult); /** QueryResult text. */ public text: string; @@ -10131,7 +10980,7 @@ export namespace google { public parameters?: (google.protobuf.IStruct|null); /** QueryResult responseMessages. */ - public responseMessages: google.cloud.dialogflow.cx.v3beta1.IResponseMessage[]; + public responseMessages: google.cloud.dialogflow.cx.v3.IResponseMessage[]; /** QueryResult webhookStatuses. */ public webhookStatuses: google.rpc.IStatus[]; @@ -10140,22 +10989,22 @@ export namespace google { public webhookPayloads: google.protobuf.IStruct[]; /** QueryResult currentPage. */ - public currentPage?: (google.cloud.dialogflow.cx.v3beta1.IPage|null); + public currentPage?: (google.cloud.dialogflow.cx.v3.IPage|null); /** QueryResult intent. */ - public intent?: (google.cloud.dialogflow.cx.v3beta1.IIntent|null); + public intent?: (google.cloud.dialogflow.cx.v3.IIntent|null); /** QueryResult intentDetectionConfidence. */ public intentDetectionConfidence: number; /** QueryResult match. */ - public match?: (google.cloud.dialogflow.cx.v3beta1.IMatch|null); + public match?: (google.cloud.dialogflow.cx.v3.IMatch|null); /** QueryResult diagnosticInfo. */ public diagnosticInfo?: (google.protobuf.IStruct|null); /** QueryResult sentimentAnalysisResult. */ - public sentimentAnalysisResult?: (google.cloud.dialogflow.cx.v3beta1.ISentimentAnalysisResult|null); + public sentimentAnalysisResult?: (google.cloud.dialogflow.cx.v3.ISentimentAnalysisResult|null); /** QueryResult query. */ public query?: ("text"|"triggerIntent"|"transcript"|"triggerEvent"); @@ -10165,23 +11014,23 @@ export namespace google { * @param [properties] Properties to set * @returns QueryResult instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IQueryResult): google.cloud.dialogflow.cx.v3beta1.QueryResult; + public static create(properties?: google.cloud.dialogflow.cx.v3.IQueryResult): google.cloud.dialogflow.cx.v3.QueryResult; /** - * Encodes the specified QueryResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.QueryResult.verify|verify} messages. + * Encodes the specified QueryResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.QueryResult.verify|verify} messages. * @param message QueryResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IQueryResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IQueryResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.QueryResult.verify|verify} messages. + * Encodes the specified QueryResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.QueryResult.verify|verify} messages. * @param message QueryResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IQueryResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IQueryResult, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a QueryResult message from the specified reader or buffer. @@ -10191,7 +11040,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.QueryResult; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.QueryResult; /** * Decodes a QueryResult message from the specified reader or buffer, length delimited. @@ -10200,7 +11049,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.QueryResult; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.QueryResult; /** * Verifies a QueryResult message. @@ -10214,7 +11063,7 @@ export namespace google { * @param object Plain object * @returns QueryResult */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.QueryResult; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.QueryResult; /** * Creates a plain object from a QueryResult message. Also converts values to other types if specified. @@ -10222,7 +11071,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.QueryResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.QueryResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this QueryResult to JSON. @@ -10245,7 +11094,7 @@ export namespace google { * Constructs a new TextInput. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ITextInput); + constructor(properties?: google.cloud.dialogflow.cx.v3.ITextInput); /** TextInput text. */ public text: string; @@ -10255,23 +11104,23 @@ export namespace google { * @param [properties] Properties to set * @returns TextInput instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ITextInput): google.cloud.dialogflow.cx.v3beta1.TextInput; + public static create(properties?: google.cloud.dialogflow.cx.v3.ITextInput): google.cloud.dialogflow.cx.v3.TextInput; /** - * Encodes the specified TextInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TextInput.verify|verify} messages. + * Encodes the specified TextInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TextInput.verify|verify} messages. * @param message TextInput message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ITextInput, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ITextInput, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TextInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TextInput.verify|verify} messages. + * Encodes the specified TextInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TextInput.verify|verify} messages. * @param message TextInput message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ITextInput, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ITextInput, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a TextInput message from the specified reader or buffer. @@ -10281,7 +11130,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.TextInput; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.TextInput; /** * Decodes a TextInput message from the specified reader or buffer, length delimited. @@ -10290,7 +11139,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.TextInput; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.TextInput; /** * Verifies a TextInput message. @@ -10304,7 +11153,7 @@ export namespace google { * @param object Plain object * @returns TextInput */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.TextInput; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.TextInput; /** * Creates a plain object from a TextInput message. Also converts values to other types if specified. @@ -10312,7 +11161,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.TextInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.TextInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this TextInput to JSON. @@ -10335,7 +11184,7 @@ export namespace google { * Constructs a new IntentInput. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IIntentInput); + constructor(properties?: google.cloud.dialogflow.cx.v3.IIntentInput); /** IntentInput intent. */ public intent: string; @@ -10345,23 +11194,23 @@ export namespace google { * @param [properties] Properties to set * @returns IntentInput instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IIntentInput): google.cloud.dialogflow.cx.v3beta1.IntentInput; + public static create(properties?: google.cloud.dialogflow.cx.v3.IIntentInput): google.cloud.dialogflow.cx.v3.IntentInput; /** - * Encodes the specified IntentInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.IntentInput.verify|verify} messages. + * Encodes the specified IntentInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.IntentInput.verify|verify} messages. * @param message IntentInput message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IIntentInput, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IIntentInput, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified IntentInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.IntentInput.verify|verify} messages. + * Encodes the specified IntentInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.IntentInput.verify|verify} messages. * @param message IntentInput message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IIntentInput, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IIntentInput, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an IntentInput message from the specified reader or buffer. @@ -10371,7 +11220,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.IntentInput; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.IntentInput; /** * Decodes an IntentInput message from the specified reader or buffer, length delimited. @@ -10380,7 +11229,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.IntentInput; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.IntentInput; /** * Verifies an IntentInput message. @@ -10394,7 +11243,7 @@ export namespace google { * @param object Plain object * @returns IntentInput */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.IntentInput; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.IntentInput; /** * Creates a plain object from an IntentInput message. Also converts values to other types if specified. @@ -10402,7 +11251,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.IntentInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.IntentInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this IntentInput to JSON. @@ -10415,7 +11264,7 @@ export namespace google { interface IAudioInput { /** AudioInput config */ - config?: (google.cloud.dialogflow.cx.v3beta1.IInputAudioConfig|null); + config?: (google.cloud.dialogflow.cx.v3.IInputAudioConfig|null); /** AudioInput audio */ audio?: (Uint8Array|string|null); @@ -10428,10 +11277,10 @@ export namespace google { * Constructs a new AudioInput. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IAudioInput); + constructor(properties?: google.cloud.dialogflow.cx.v3.IAudioInput); /** AudioInput config. */ - public config?: (google.cloud.dialogflow.cx.v3beta1.IInputAudioConfig|null); + public config?: (google.cloud.dialogflow.cx.v3.IInputAudioConfig|null); /** AudioInput audio. */ public audio: (Uint8Array|string); @@ -10441,23 +11290,23 @@ export namespace google { * @param [properties] Properties to set * @returns AudioInput instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IAudioInput): google.cloud.dialogflow.cx.v3beta1.AudioInput; + public static create(properties?: google.cloud.dialogflow.cx.v3.IAudioInput): google.cloud.dialogflow.cx.v3.AudioInput; /** - * Encodes the specified AudioInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.AudioInput.verify|verify} messages. + * Encodes the specified AudioInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.AudioInput.verify|verify} messages. * @param message AudioInput message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IAudioInput, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IAudioInput, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AudioInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.AudioInput.verify|verify} messages. + * Encodes the specified AudioInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.AudioInput.verify|verify} messages. * @param message AudioInput message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IAudioInput, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IAudioInput, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an AudioInput message from the specified reader or buffer. @@ -10467,7 +11316,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.AudioInput; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.AudioInput; /** * Decodes an AudioInput message from the specified reader or buffer, length delimited. @@ -10476,7 +11325,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.AudioInput; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.AudioInput; /** * Verifies an AudioInput message. @@ -10490,7 +11339,7 @@ export namespace google { * @param object Plain object * @returns AudioInput */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.AudioInput; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.AudioInput; /** * Creates a plain object from an AudioInput message. Also converts values to other types if specified. @@ -10498,7 +11347,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.AudioInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.AudioInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this AudioInput to JSON. @@ -10521,7 +11370,7 @@ export namespace google { * Constructs a new EventInput. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IEventInput); + constructor(properties?: google.cloud.dialogflow.cx.v3.IEventInput); /** EventInput event. */ public event: string; @@ -10531,23 +11380,23 @@ export namespace google { * @param [properties] Properties to set * @returns EventInput instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IEventInput): google.cloud.dialogflow.cx.v3beta1.EventInput; + public static create(properties?: google.cloud.dialogflow.cx.v3.IEventInput): google.cloud.dialogflow.cx.v3.EventInput; /** - * Encodes the specified EventInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EventInput.verify|verify} messages. + * Encodes the specified EventInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.EventInput.verify|verify} messages. * @param message EventInput message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IEventInput, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IEventInput, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified EventInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EventInput.verify|verify} messages. + * Encodes the specified EventInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.EventInput.verify|verify} messages. * @param message EventInput message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IEventInput, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IEventInput, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an EventInput message from the specified reader or buffer. @@ -10557,7 +11406,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.EventInput; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.EventInput; /** * Decodes an EventInput message from the specified reader or buffer, length delimited. @@ -10566,7 +11415,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.EventInput; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.EventInput; /** * Verifies an EventInput message. @@ -10580,7 +11429,7 @@ export namespace google { * @param object Plain object * @returns EventInput */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.EventInput; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.EventInput; /** * Creates a plain object from an EventInput message. Also converts values to other types if specified. @@ -10588,7 +11437,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.EventInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.EventInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this EventInput to JSON. @@ -10614,7 +11463,7 @@ export namespace google { * Constructs a new DtmfInput. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDtmfInput); + constructor(properties?: google.cloud.dialogflow.cx.v3.IDtmfInput); /** DtmfInput digits. */ public digits: string; @@ -10627,23 +11476,23 @@ export namespace google { * @param [properties] Properties to set * @returns DtmfInput instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDtmfInput): google.cloud.dialogflow.cx.v3beta1.DtmfInput; + public static create(properties?: google.cloud.dialogflow.cx.v3.IDtmfInput): google.cloud.dialogflow.cx.v3.DtmfInput; /** - * Encodes the specified DtmfInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DtmfInput.verify|verify} messages. + * Encodes the specified DtmfInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DtmfInput.verify|verify} messages. * @param message DtmfInput message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IDtmfInput, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IDtmfInput, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DtmfInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DtmfInput.verify|verify} messages. + * Encodes the specified DtmfInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DtmfInput.verify|verify} messages. * @param message DtmfInput message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IDtmfInput, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDtmfInput, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a DtmfInput message from the specified reader or buffer. @@ -10653,7 +11502,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.DtmfInput; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.DtmfInput; /** * Decodes a DtmfInput message from the specified reader or buffer, length delimited. @@ -10662,7 +11511,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.DtmfInput; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.DtmfInput; /** * Verifies a DtmfInput message. @@ -10676,7 +11525,7 @@ export namespace google { * @param object Plain object * @returns DtmfInput */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.DtmfInput; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.DtmfInput; /** * Creates a plain object from a DtmfInput message. Also converts values to other types if specified. @@ -10684,7 +11533,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.DtmfInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.DtmfInput, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this DtmfInput to JSON. @@ -10697,7 +11546,7 @@ export namespace google { interface IMatch { /** Match intent */ - intent?: (google.cloud.dialogflow.cx.v3beta1.IIntent|null); + intent?: (google.cloud.dialogflow.cx.v3.IIntent|null); /** Match event */ event?: (string|null); @@ -10709,7 +11558,7 @@ export namespace google { resolvedInput?: (string|null); /** Match matchType */ - matchType?: (google.cloud.dialogflow.cx.v3beta1.Match.MatchType|keyof typeof google.cloud.dialogflow.cx.v3beta1.Match.MatchType|null); + matchType?: (google.cloud.dialogflow.cx.v3.Match.MatchType|keyof typeof google.cloud.dialogflow.cx.v3.Match.MatchType|null); /** Match confidence */ confidence?: (number|null); @@ -10722,10 +11571,10 @@ export namespace google { * Constructs a new Match. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IMatch); + constructor(properties?: google.cloud.dialogflow.cx.v3.IMatch); /** Match intent. */ - public intent?: (google.cloud.dialogflow.cx.v3beta1.IIntent|null); + public intent?: (google.cloud.dialogflow.cx.v3.IIntent|null); /** Match event. */ public event: string; @@ -10737,7 +11586,7 @@ export namespace google { public resolvedInput: string; /** Match matchType. */ - public matchType: (google.cloud.dialogflow.cx.v3beta1.Match.MatchType|keyof typeof google.cloud.dialogflow.cx.v3beta1.Match.MatchType); + public matchType: (google.cloud.dialogflow.cx.v3.Match.MatchType|keyof typeof google.cloud.dialogflow.cx.v3.Match.MatchType); /** Match confidence. */ public confidence: number; @@ -10747,23 +11596,23 @@ export namespace google { * @param [properties] Properties to set * @returns Match instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IMatch): google.cloud.dialogflow.cx.v3beta1.Match; + public static create(properties?: google.cloud.dialogflow.cx.v3.IMatch): google.cloud.dialogflow.cx.v3.Match; /** - * Encodes the specified Match message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Match.verify|verify} messages. + * Encodes the specified Match message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Match.verify|verify} messages. * @param message Match message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IMatch, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IMatch, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Match message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Match.verify|verify} messages. + * Encodes the specified Match message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Match.verify|verify} messages. * @param message Match message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IMatch, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IMatch, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a Match message from the specified reader or buffer. @@ -10773,7 +11622,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Match; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Match; /** * Decodes a Match message from the specified reader or buffer, length delimited. @@ -10782,7 +11631,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Match; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Match; /** * Verifies a Match message. @@ -10796,7 +11645,7 @@ export namespace google { * @param object Plain object * @returns Match */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Match; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Match; /** * Creates a plain object from a Match message. Also converts values to other types if specified. @@ -10804,7 +11653,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Match, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.Match, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this Match to JSON. @@ -10834,10 +11683,10 @@ export namespace google { session?: (string|null); /** MatchIntentRequest queryParams */ - queryParams?: (google.cloud.dialogflow.cx.v3beta1.IQueryParameters|null); + queryParams?: (google.cloud.dialogflow.cx.v3.IQueryParameters|null); /** MatchIntentRequest queryInput */ - queryInput?: (google.cloud.dialogflow.cx.v3beta1.IQueryInput|null); + queryInput?: (google.cloud.dialogflow.cx.v3.IQueryInput|null); } /** Represents a MatchIntentRequest. */ @@ -10847,39 +11696,39 @@ export namespace google { * Constructs a new MatchIntentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IMatchIntentRequest); /** MatchIntentRequest session. */ public session: string; /** MatchIntentRequest queryParams. */ - public queryParams?: (google.cloud.dialogflow.cx.v3beta1.IQueryParameters|null); + public queryParams?: (google.cloud.dialogflow.cx.v3.IQueryParameters|null); /** MatchIntentRequest queryInput. */ - public queryInput?: (google.cloud.dialogflow.cx.v3beta1.IQueryInput|null); + public queryInput?: (google.cloud.dialogflow.cx.v3.IQueryInput|null); /** * Creates a new MatchIntentRequest instance using the specified properties. * @param [properties] Properties to set * @returns MatchIntentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest): google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IMatchIntentRequest): google.cloud.dialogflow.cx.v3.MatchIntentRequest; /** - * Encodes the specified MatchIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest.verify|verify} messages. + * Encodes the specified MatchIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.MatchIntentRequest.verify|verify} messages. * @param message MatchIntentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IMatchIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MatchIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest.verify|verify} messages. + * Encodes the specified MatchIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.MatchIntentRequest.verify|verify} messages. * @param message MatchIntentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IMatchIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a MatchIntentRequest message from the specified reader or buffer. @@ -10889,7 +11738,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.MatchIntentRequest; /** * Decodes a MatchIntentRequest message from the specified reader or buffer, length delimited. @@ -10898,7 +11747,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.MatchIntentRequest; /** * Verifies a MatchIntentRequest message. @@ -10912,7 +11761,7 @@ export namespace google { * @param object Plain object * @returns MatchIntentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.MatchIntentRequest; /** * Creates a plain object from a MatchIntentRequest message. Also converts values to other types if specified. @@ -10920,7 +11769,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.MatchIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this MatchIntentRequest to JSON. @@ -10945,10 +11794,10 @@ export namespace google { triggerEvent?: (string|null); /** MatchIntentResponse matches */ - matches?: (google.cloud.dialogflow.cx.v3beta1.IMatch[]|null); + matches?: (google.cloud.dialogflow.cx.v3.IMatch[]|null); /** MatchIntentResponse currentPage */ - currentPage?: (google.cloud.dialogflow.cx.v3beta1.IPage|null); + currentPage?: (google.cloud.dialogflow.cx.v3.IPage|null); } /** Represents a MatchIntentResponse. */ @@ -10958,7 +11807,7 @@ export namespace google { * Constructs a new MatchIntentResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IMatchIntentResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3.IMatchIntentResponse); /** MatchIntentResponse text. */ public text: string; @@ -10973,10 +11822,10 @@ export namespace google { public triggerEvent: string; /** MatchIntentResponse matches. */ - public matches: google.cloud.dialogflow.cx.v3beta1.IMatch[]; + public matches: google.cloud.dialogflow.cx.v3.IMatch[]; /** MatchIntentResponse currentPage. */ - public currentPage?: (google.cloud.dialogflow.cx.v3beta1.IPage|null); + public currentPage?: (google.cloud.dialogflow.cx.v3.IPage|null); /** MatchIntentResponse query. */ public query?: ("text"|"triggerIntent"|"transcript"|"triggerEvent"); @@ -10986,23 +11835,23 @@ export namespace google { * @param [properties] Properties to set * @returns MatchIntentResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IMatchIntentResponse): google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3.IMatchIntentResponse): google.cloud.dialogflow.cx.v3.MatchIntentResponse; /** - * Encodes the specified MatchIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse.verify|verify} messages. + * Encodes the specified MatchIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.MatchIntentResponse.verify|verify} messages. * @param message MatchIntentResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IMatchIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IMatchIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MatchIntentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse.verify|verify} messages. + * Encodes the specified MatchIntentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.MatchIntentResponse.verify|verify} messages. * @param message MatchIntentResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IMatchIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IMatchIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a MatchIntentResponse message from the specified reader or buffer. @@ -11012,7 +11861,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.MatchIntentResponse; /** * Decodes a MatchIntentResponse message from the specified reader or buffer, length delimited. @@ -11021,7 +11870,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.MatchIntentResponse; /** * Verifies a MatchIntentResponse message. @@ -11035,7 +11884,7 @@ export namespace google { * @param object Plain object * @returns MatchIntentResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.MatchIntentResponse; /** * Creates a plain object from a MatchIntentResponse message. Also converts values to other types if specified. @@ -11043,7 +11892,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.MatchIntentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this MatchIntentResponse to JSON. @@ -11056,13 +11905,13 @@ export namespace google { interface IFulfillIntentRequest { /** FulfillIntentRequest matchIntentRequest */ - matchIntentRequest?: (google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest|null); + matchIntentRequest?: (google.cloud.dialogflow.cx.v3.IMatchIntentRequest|null); /** FulfillIntentRequest match */ - match?: (google.cloud.dialogflow.cx.v3beta1.IMatch|null); + match?: (google.cloud.dialogflow.cx.v3.IMatch|null); /** FulfillIntentRequest outputAudioConfig */ - outputAudioConfig?: (google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null); + outputAudioConfig?: (google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null); } /** Represents a FulfillIntentRequest. */ @@ -11072,39 +11921,39 @@ export namespace google { * Constructs a new FulfillIntentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IFulfillIntentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IFulfillIntentRequest); /** FulfillIntentRequest matchIntentRequest. */ - public matchIntentRequest?: (google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest|null); + public matchIntentRequest?: (google.cloud.dialogflow.cx.v3.IMatchIntentRequest|null); /** FulfillIntentRequest match. */ - public match?: (google.cloud.dialogflow.cx.v3beta1.IMatch|null); + public match?: (google.cloud.dialogflow.cx.v3.IMatch|null); /** FulfillIntentRequest outputAudioConfig. */ - public outputAudioConfig?: (google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null); + public outputAudioConfig?: (google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null); /** * Creates a new FulfillIntentRequest instance using the specified properties. * @param [properties] Properties to set * @returns FulfillIntentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IFulfillIntentRequest): google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IFulfillIntentRequest): google.cloud.dialogflow.cx.v3.FulfillIntentRequest; /** - * Encodes the specified FulfillIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest.verify|verify} messages. + * Encodes the specified FulfillIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.FulfillIntentRequest.verify|verify} messages. * @param message FulfillIntentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IFulfillIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IFulfillIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FulfillIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest.verify|verify} messages. + * Encodes the specified FulfillIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.FulfillIntentRequest.verify|verify} messages. * @param message FulfillIntentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IFulfillIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IFulfillIntentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a FulfillIntentRequest message from the specified reader or buffer. @@ -11114,7 +11963,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.FulfillIntentRequest; /** * Decodes a FulfillIntentRequest message from the specified reader or buffer, length delimited. @@ -11123,7 +11972,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.FulfillIntentRequest; /** * Verifies a FulfillIntentRequest message. @@ -11137,7 +11986,7 @@ export namespace google { * @param object Plain object * @returns FulfillIntentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.FulfillIntentRequest; /** * Creates a plain object from a FulfillIntentRequest message. Also converts values to other types if specified. @@ -11145,7 +11994,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.FulfillIntentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this FulfillIntentRequest to JSON. @@ -11161,13 +12010,13 @@ export namespace google { responseId?: (string|null); /** FulfillIntentResponse queryResult */ - queryResult?: (google.cloud.dialogflow.cx.v3beta1.IQueryResult|null); + queryResult?: (google.cloud.dialogflow.cx.v3.IQueryResult|null); /** FulfillIntentResponse outputAudio */ outputAudio?: (Uint8Array|string|null); /** FulfillIntentResponse outputAudioConfig */ - outputAudioConfig?: (google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null); + outputAudioConfig?: (google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null); } /** Represents a FulfillIntentResponse. */ @@ -11177,42 +12026,42 @@ export namespace google { * Constructs a new FulfillIntentResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IFulfillIntentResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3.IFulfillIntentResponse); /** FulfillIntentResponse responseId. */ public responseId: string; /** FulfillIntentResponse queryResult. */ - public queryResult?: (google.cloud.dialogflow.cx.v3beta1.IQueryResult|null); + public queryResult?: (google.cloud.dialogflow.cx.v3.IQueryResult|null); /** FulfillIntentResponse outputAudio. */ public outputAudio: (Uint8Array|string); /** FulfillIntentResponse outputAudioConfig. */ - public outputAudioConfig?: (google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null); + public outputAudioConfig?: (google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null); /** * Creates a new FulfillIntentResponse instance using the specified properties. * @param [properties] Properties to set * @returns FulfillIntentResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IFulfillIntentResponse): google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3.IFulfillIntentResponse): google.cloud.dialogflow.cx.v3.FulfillIntentResponse; /** - * Encodes the specified FulfillIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse.verify|verify} messages. + * Encodes the specified FulfillIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.FulfillIntentResponse.verify|verify} messages. * @param message FulfillIntentResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IFulfillIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IFulfillIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FulfillIntentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse.verify|verify} messages. + * Encodes the specified FulfillIntentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.FulfillIntentResponse.verify|verify} messages. * @param message FulfillIntentResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IFulfillIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IFulfillIntentResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a FulfillIntentResponse message from the specified reader or buffer. @@ -11222,7 +12071,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.FulfillIntentResponse; /** * Decodes a FulfillIntentResponse message from the specified reader or buffer, length delimited. @@ -11231,7 +12080,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.FulfillIntentResponse; /** * Verifies a FulfillIntentResponse message. @@ -11245,7 +12094,7 @@ export namespace google { * @param object Plain object * @returns FulfillIntentResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.FulfillIntentResponse; /** * Creates a plain object from a FulfillIntentResponse message. Also converts values to other types if specified. @@ -11253,7 +12102,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.FulfillIntentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this FulfillIntentResponse to JSON. @@ -11279,7 +12128,7 @@ export namespace google { * Constructs a new SentimentAnalysisResult. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ISentimentAnalysisResult); + constructor(properties?: google.cloud.dialogflow.cx.v3.ISentimentAnalysisResult); /** SentimentAnalysisResult score. */ public score: number; @@ -11292,23 +12141,23 @@ export namespace google { * @param [properties] Properties to set * @returns SentimentAnalysisResult instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ISentimentAnalysisResult): google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult; + public static create(properties?: google.cloud.dialogflow.cx.v3.ISentimentAnalysisResult): google.cloud.dialogflow.cx.v3.SentimentAnalysisResult; /** - * Encodes the specified SentimentAnalysisResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult.verify|verify} messages. + * Encodes the specified SentimentAnalysisResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SentimentAnalysisResult.verify|verify} messages. * @param message SentimentAnalysisResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ISentimentAnalysisResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ISentimentAnalysisResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SentimentAnalysisResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult.verify|verify} messages. + * Encodes the specified SentimentAnalysisResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SentimentAnalysisResult.verify|verify} messages. * @param message SentimentAnalysisResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ISentimentAnalysisResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ISentimentAnalysisResult, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a SentimentAnalysisResult message from the specified reader or buffer. @@ -11318,7 +12167,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.SentimentAnalysisResult; /** * Decodes a SentimentAnalysisResult message from the specified reader or buffer, length delimited. @@ -11327,7 +12176,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.SentimentAnalysisResult; /** * Verifies a SentimentAnalysisResult message. @@ -11341,7 +12190,7 @@ export namespace google { * @param object Plain object * @returns SentimentAnalysisResult */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.SentimentAnalysisResult; /** * Creates a plain object from a SentimentAnalysisResult message. Also converts values to other types if specified. @@ -11349,7 +12198,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.SentimentAnalysisResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this SentimentAnalysisResult to JSON. @@ -11383,104 +12232,104 @@ export namespace google { * @param request ListSessionEntityTypesRequest message or plain object * @param callback Node-style callback called with the error, if any, and ListSessionEntityTypesResponse */ - public listSessionEntityTypes(request: google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesRequest, callback: google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes.ListSessionEntityTypesCallback): void; + public listSessionEntityTypes(request: google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest, callback: google.cloud.dialogflow.cx.v3.SessionEntityTypes.ListSessionEntityTypesCallback): void; /** * Calls ListSessionEntityTypes. * @param request ListSessionEntityTypesRequest message or plain object * @returns Promise */ - public listSessionEntityTypes(request: google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesRequest): Promise; + public listSessionEntityTypes(request: google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest): Promise; /** * Calls GetSessionEntityType. * @param request GetSessionEntityTypeRequest message or plain object * @param callback Node-style callback called with the error, if any, and SessionEntityType */ - public getSessionEntityType(request: google.cloud.dialogflow.cx.v3beta1.IGetSessionEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes.GetSessionEntityTypeCallback): void; + public getSessionEntityType(request: google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3.SessionEntityTypes.GetSessionEntityTypeCallback): void; /** * Calls GetSessionEntityType. * @param request GetSessionEntityTypeRequest message or plain object * @returns Promise */ - public getSessionEntityType(request: google.cloud.dialogflow.cx.v3beta1.IGetSessionEntityTypeRequest): Promise; + public getSessionEntityType(request: google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest): Promise; /** * Calls CreateSessionEntityType. * @param request CreateSessionEntityTypeRequest message or plain object * @param callback Node-style callback called with the error, if any, and SessionEntityType */ - public createSessionEntityType(request: google.cloud.dialogflow.cx.v3beta1.ICreateSessionEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes.CreateSessionEntityTypeCallback): void; + public createSessionEntityType(request: google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3.SessionEntityTypes.CreateSessionEntityTypeCallback): void; /** * Calls CreateSessionEntityType. * @param request CreateSessionEntityTypeRequest message or plain object * @returns Promise */ - public createSessionEntityType(request: google.cloud.dialogflow.cx.v3beta1.ICreateSessionEntityTypeRequest): Promise; + public createSessionEntityType(request: google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest): Promise; /** * Calls UpdateSessionEntityType. * @param request UpdateSessionEntityTypeRequest message or plain object * @param callback Node-style callback called with the error, if any, and SessionEntityType */ - public updateSessionEntityType(request: google.cloud.dialogflow.cx.v3beta1.IUpdateSessionEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes.UpdateSessionEntityTypeCallback): void; + public updateSessionEntityType(request: google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3.SessionEntityTypes.UpdateSessionEntityTypeCallback): void; /** * Calls UpdateSessionEntityType. * @param request UpdateSessionEntityTypeRequest message or plain object * @returns Promise */ - public updateSessionEntityType(request: google.cloud.dialogflow.cx.v3beta1.IUpdateSessionEntityTypeRequest): Promise; + public updateSessionEntityType(request: google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest): Promise; /** * Calls DeleteSessionEntityType. * @param request DeleteSessionEntityTypeRequest message or plain object * @param callback Node-style callback called with the error, if any, and Empty */ - public deleteSessionEntityType(request: google.cloud.dialogflow.cx.v3beta1.IDeleteSessionEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes.DeleteSessionEntityTypeCallback): void; + public deleteSessionEntityType(request: google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3.SessionEntityTypes.DeleteSessionEntityTypeCallback): void; /** * Calls DeleteSessionEntityType. * @param request DeleteSessionEntityTypeRequest message or plain object * @returns Promise */ - public deleteSessionEntityType(request: google.cloud.dialogflow.cx.v3beta1.IDeleteSessionEntityTypeRequest): Promise; + public deleteSessionEntityType(request: google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest): Promise; } namespace SessionEntityTypes { /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes#listSessionEntityTypes}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.SessionEntityTypes#listSessionEntityTypes}. * @param error Error, if any * @param [response] ListSessionEntityTypesResponse */ - type ListSessionEntityTypesCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse) => void; + type ListSessionEntityTypesCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes#getSessionEntityType}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.SessionEntityTypes#getSessionEntityType}. * @param error Error, if any * @param [response] SessionEntityType */ - type GetSessionEntityTypeCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.SessionEntityType) => void; + type GetSessionEntityTypeCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.SessionEntityType) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes#createSessionEntityType}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.SessionEntityTypes#createSessionEntityType}. * @param error Error, if any * @param [response] SessionEntityType */ - type CreateSessionEntityTypeCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.SessionEntityType) => void; + type CreateSessionEntityTypeCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.SessionEntityType) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes#updateSessionEntityType}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.SessionEntityTypes#updateSessionEntityType}. * @param error Error, if any * @param [response] SessionEntityType */ - type UpdateSessionEntityTypeCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.SessionEntityType) => void; + type UpdateSessionEntityTypeCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.SessionEntityType) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes#deleteSessionEntityType}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.SessionEntityTypes#deleteSessionEntityType}. * @param error Error, if any * @param [response] Empty */ @@ -11494,10 +12343,10 @@ export namespace google { name?: (string|null); /** SessionEntityType entityOverrideMode */ - entityOverrideMode?: (google.cloud.dialogflow.cx.v3beta1.SessionEntityType.EntityOverrideMode|keyof typeof google.cloud.dialogflow.cx.v3beta1.SessionEntityType.EntityOverrideMode|null); + entityOverrideMode?: (google.cloud.dialogflow.cx.v3.SessionEntityType.EntityOverrideMode|keyof typeof google.cloud.dialogflow.cx.v3.SessionEntityType.EntityOverrideMode|null); /** SessionEntityType entities */ - entities?: (google.cloud.dialogflow.cx.v3beta1.EntityType.IEntity[]|null); + entities?: (google.cloud.dialogflow.cx.v3.EntityType.IEntity[]|null); } /** Represents a SessionEntityType. */ @@ -11507,39 +12356,39 @@ export namespace google { * Constructs a new SessionEntityType. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ISessionEntityType); + constructor(properties?: google.cloud.dialogflow.cx.v3.ISessionEntityType); /** SessionEntityType name. */ public name: string; /** SessionEntityType entityOverrideMode. */ - public entityOverrideMode: (google.cloud.dialogflow.cx.v3beta1.SessionEntityType.EntityOverrideMode|keyof typeof google.cloud.dialogflow.cx.v3beta1.SessionEntityType.EntityOverrideMode); + public entityOverrideMode: (google.cloud.dialogflow.cx.v3.SessionEntityType.EntityOverrideMode|keyof typeof google.cloud.dialogflow.cx.v3.SessionEntityType.EntityOverrideMode); /** SessionEntityType entities. */ - public entities: google.cloud.dialogflow.cx.v3beta1.EntityType.IEntity[]; + public entities: google.cloud.dialogflow.cx.v3.EntityType.IEntity[]; /** * Creates a new SessionEntityType instance using the specified properties. * @param [properties] Properties to set * @returns SessionEntityType instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ISessionEntityType): google.cloud.dialogflow.cx.v3beta1.SessionEntityType; + public static create(properties?: google.cloud.dialogflow.cx.v3.ISessionEntityType): google.cloud.dialogflow.cx.v3.SessionEntityType; /** - * Encodes the specified SessionEntityType message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SessionEntityType.verify|verify} messages. + * Encodes the specified SessionEntityType message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SessionEntityType.verify|verify} messages. * @param message SessionEntityType message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ISessionEntityType, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ISessionEntityType, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SessionEntityType message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SessionEntityType.verify|verify} messages. + * Encodes the specified SessionEntityType message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SessionEntityType.verify|verify} messages. * @param message SessionEntityType message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ISessionEntityType, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ISessionEntityType, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a SessionEntityType message from the specified reader or buffer. @@ -11549,7 +12398,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.SessionEntityType; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.SessionEntityType; /** * Decodes a SessionEntityType message from the specified reader or buffer, length delimited. @@ -11558,7 +12407,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.SessionEntityType; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.SessionEntityType; /** * Verifies a SessionEntityType message. @@ -11572,7 +12421,7 @@ export namespace google { * @param object Plain object * @returns SessionEntityType */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.SessionEntityType; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.SessionEntityType; /** * Creates a plain object from a SessionEntityType message. Also converts values to other types if specified. @@ -11580,7 +12429,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.SessionEntityType, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.SessionEntityType, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this SessionEntityType to JSON. @@ -11619,7 +12468,7 @@ export namespace google { * Constructs a new ListSessionEntityTypesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest); /** ListSessionEntityTypesRequest parent. */ public parent: string; @@ -11635,23 +12484,23 @@ export namespace google { * @param [properties] Properties to set * @returns ListSessionEntityTypesRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesRequest): google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest): google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest; /** - * Encodes the specified ListSessionEntityTypesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest.verify|verify} messages. + * Encodes the specified ListSessionEntityTypesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest.verify|verify} messages. * @param message ListSessionEntityTypesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListSessionEntityTypesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest.verify|verify} messages. + * Encodes the specified ListSessionEntityTypesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest.verify|verify} messages. * @param message ListSessionEntityTypesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a ListSessionEntityTypesRequest message from the specified reader or buffer. @@ -11661,7 +12510,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest; /** * Decodes a ListSessionEntityTypesRequest message from the specified reader or buffer, length delimited. @@ -11670,7 +12519,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest; /** * Verifies a ListSessionEntityTypesRequest message. @@ -11684,7 +12533,7 @@ export namespace google { * @param object Plain object * @returns ListSessionEntityTypesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest; /** * Creates a plain object from a ListSessionEntityTypesRequest message. Also converts values to other types if specified. @@ -11692,7 +12541,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this ListSessionEntityTypesRequest to JSON. @@ -11705,7 +12554,7 @@ export namespace google { interface IListSessionEntityTypesResponse { /** ListSessionEntityTypesResponse sessionEntityTypes */ - sessionEntityTypes?: (google.cloud.dialogflow.cx.v3beta1.ISessionEntityType[]|null); + sessionEntityTypes?: (google.cloud.dialogflow.cx.v3.ISessionEntityType[]|null); /** ListSessionEntityTypesResponse nextPageToken */ nextPageToken?: (string|null); @@ -11718,10 +12567,10 @@ export namespace google { * Constructs a new ListSessionEntityTypesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3.IListSessionEntityTypesResponse); /** ListSessionEntityTypesResponse sessionEntityTypes. */ - public sessionEntityTypes: google.cloud.dialogflow.cx.v3beta1.ISessionEntityType[]; + public sessionEntityTypes: google.cloud.dialogflow.cx.v3.ISessionEntityType[]; /** ListSessionEntityTypesResponse nextPageToken. */ public nextPageToken: string; @@ -11731,23 +12580,23 @@ export namespace google { * @param [properties] Properties to set * @returns ListSessionEntityTypesResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesResponse): google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3.IListSessionEntityTypesResponse): google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse; /** - * Encodes the specified ListSessionEntityTypesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse.verify|verify} messages. + * Encodes the specified ListSessionEntityTypesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse.verify|verify} messages. * @param message ListSessionEntityTypesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IListSessionEntityTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListSessionEntityTypesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse.verify|verify} messages. + * Encodes the specified ListSessionEntityTypesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse.verify|verify} messages. * @param message ListSessionEntityTypesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListSessionEntityTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a ListSessionEntityTypesResponse message from the specified reader or buffer. @@ -11757,7 +12606,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse; /** * Decodes a ListSessionEntityTypesResponse message from the specified reader or buffer, length delimited. @@ -11766,7 +12615,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse; /** * Verifies a ListSessionEntityTypesResponse message. @@ -11780,7 +12629,7 @@ export namespace google { * @param object Plain object * @returns ListSessionEntityTypesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse; /** * Creates a plain object from a ListSessionEntityTypesResponse message. Also converts values to other types if specified. @@ -11788,7 +12637,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this ListSessionEntityTypesResponse to JSON. @@ -11811,7 +12660,7 @@ export namespace google { * Constructs a new GetSessionEntityTypeRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetSessionEntityTypeRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest); /** GetSessionEntityTypeRequest name. */ public name: string; @@ -11821,23 +12670,23 @@ export namespace google { * @param [properties] Properties to set * @returns GetSessionEntityTypeRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetSessionEntityTypeRequest): google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest): google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest; /** - * Encodes the specified GetSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest.verify|verify} messages. + * Encodes the specified GetSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest.verify|verify} messages. * @param message GetSessionEntityTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGetSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest.verify|verify} messages. + * Encodes the specified GetSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest.verify|verify} messages. * @param message GetSessionEntityTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGetSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a GetSessionEntityTypeRequest message from the specified reader or buffer. @@ -11847,7 +12696,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest; /** * Decodes a GetSessionEntityTypeRequest message from the specified reader or buffer, length delimited. @@ -11856,7 +12705,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest; /** * Verifies a GetSessionEntityTypeRequest message. @@ -11870,7 +12719,7 @@ export namespace google { * @param object Plain object * @returns GetSessionEntityTypeRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest; /** * Creates a plain object from a GetSessionEntityTypeRequest message. Also converts values to other types if specified. @@ -11878,7 +12727,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this GetSessionEntityTypeRequest to JSON. @@ -11894,7 +12743,7 @@ export namespace google { parent?: (string|null); /** CreateSessionEntityTypeRequest sessionEntityType */ - sessionEntityType?: (google.cloud.dialogflow.cx.v3beta1.ISessionEntityType|null); + sessionEntityType?: (google.cloud.dialogflow.cx.v3.ISessionEntityType|null); } /** Represents a CreateSessionEntityTypeRequest. */ @@ -11904,36 +12753,36 @@ export namespace google { * Constructs a new CreateSessionEntityTypeRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateSessionEntityTypeRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest); /** CreateSessionEntityTypeRequest parent. */ public parent: string; /** CreateSessionEntityTypeRequest sessionEntityType. */ - public sessionEntityType?: (google.cloud.dialogflow.cx.v3beta1.ISessionEntityType|null); + public sessionEntityType?: (google.cloud.dialogflow.cx.v3.ISessionEntityType|null); /** * Creates a new CreateSessionEntityTypeRequest instance using the specified properties. * @param [properties] Properties to set * @returns CreateSessionEntityTypeRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateSessionEntityTypeRequest): google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest): google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest; /** - * Encodes the specified CreateSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest.verify|verify} messages. + * Encodes the specified CreateSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest.verify|verify} messages. * @param message CreateSessionEntityTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ICreateSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest.verify|verify} messages. + * Encodes the specified CreateSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest.verify|verify} messages. * @param message CreateSessionEntityTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ICreateSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a CreateSessionEntityTypeRequest message from the specified reader or buffer. @@ -11943,7 +12792,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest; /** * Decodes a CreateSessionEntityTypeRequest message from the specified reader or buffer, length delimited. @@ -11952,7 +12801,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest; /** * Verifies a CreateSessionEntityTypeRequest message. @@ -11966,7 +12815,7 @@ export namespace google { * @param object Plain object * @returns CreateSessionEntityTypeRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest; /** * Creates a plain object from a CreateSessionEntityTypeRequest message. Also converts values to other types if specified. @@ -11974,7 +12823,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this CreateSessionEntityTypeRequest to JSON. @@ -11987,7 +12836,7 @@ export namespace google { interface IUpdateSessionEntityTypeRequest { /** UpdateSessionEntityTypeRequest sessionEntityType */ - sessionEntityType?: (google.cloud.dialogflow.cx.v3beta1.ISessionEntityType|null); + sessionEntityType?: (google.cloud.dialogflow.cx.v3.ISessionEntityType|null); /** UpdateSessionEntityTypeRequest updateMask */ updateMask?: (google.protobuf.IFieldMask|null); @@ -12000,10 +12849,10 @@ export namespace google { * Constructs a new UpdateSessionEntityTypeRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateSessionEntityTypeRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest); /** UpdateSessionEntityTypeRequest sessionEntityType. */ - public sessionEntityType?: (google.cloud.dialogflow.cx.v3beta1.ISessionEntityType|null); + public sessionEntityType?: (google.cloud.dialogflow.cx.v3.ISessionEntityType|null); /** UpdateSessionEntityTypeRequest updateMask. */ public updateMask?: (google.protobuf.IFieldMask|null); @@ -12013,23 +12862,23 @@ export namespace google { * @param [properties] Properties to set * @returns UpdateSessionEntityTypeRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateSessionEntityTypeRequest): google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest): google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest; /** - * Encodes the specified UpdateSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest.verify|verify} messages. + * Encodes the specified UpdateSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest.verify|verify} messages. * @param message UpdateSessionEntityTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IUpdateSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest.verify|verify} messages. + * Encodes the specified UpdateSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest.verify|verify} messages. * @param message UpdateSessionEntityTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IUpdateSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an UpdateSessionEntityTypeRequest message from the specified reader or buffer. @@ -12039,7 +12888,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest; /** * Decodes an UpdateSessionEntityTypeRequest message from the specified reader or buffer, length delimited. @@ -12048,7 +12897,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest; /** * Verifies an UpdateSessionEntityTypeRequest message. @@ -12062,7 +12911,7 @@ export namespace google { * @param object Plain object * @returns UpdateSessionEntityTypeRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest; /** * Creates a plain object from an UpdateSessionEntityTypeRequest message. Also converts values to other types if specified. @@ -12070,7 +12919,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this UpdateSessionEntityTypeRequest to JSON. @@ -12093,7 +12942,7 @@ export namespace google { * Constructs a new DeleteSessionEntityTypeRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteSessionEntityTypeRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest); /** DeleteSessionEntityTypeRequest name. */ public name: string; @@ -12103,23 +12952,23 @@ export namespace google { * @param [properties] Properties to set * @returns DeleteSessionEntityTypeRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteSessionEntityTypeRequest): google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest): google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest; /** - * Encodes the specified DeleteSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest.verify|verify} messages. + * Encodes the specified DeleteSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest.verify|verify} messages. * @param message DeleteSessionEntityTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IDeleteSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest.verify|verify} messages. + * Encodes the specified DeleteSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest.verify|verify} messages. * @param message DeleteSessionEntityTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IDeleteSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a DeleteSessionEntityTypeRequest message from the specified reader or buffer. @@ -12129,7 +12978,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest; /** * Decodes a DeleteSessionEntityTypeRequest message from the specified reader or buffer, length delimited. @@ -12138,7 +12987,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest; /** * Verifies a DeleteSessionEntityTypeRequest message. @@ -12152,7 +13001,7 @@ export namespace google { * @param object Plain object * @returns DeleteSessionEntityTypeRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest; /** * Creates a plain object from a DeleteSessionEntityTypeRequest message. Also converts values to other types if specified. @@ -12160,7 +13009,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this DeleteSessionEntityTypeRequest to JSON. @@ -12194,104 +13043,104 @@ export namespace google { * @param request ListTransitionRouteGroupsRequest message or plain object * @param callback Node-style callback called with the error, if any, and ListTransitionRouteGroupsResponse */ - public listTransitionRouteGroups(request: google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsRequest, callback: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups.ListTransitionRouteGroupsCallback): void; + public listTransitionRouteGroups(request: google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest, callback: google.cloud.dialogflow.cx.v3.TransitionRouteGroups.ListTransitionRouteGroupsCallback): void; /** * Calls ListTransitionRouteGroups. * @param request ListTransitionRouteGroupsRequest message or plain object * @returns Promise */ - public listTransitionRouteGroups(request: google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsRequest): Promise; + public listTransitionRouteGroups(request: google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest): Promise; /** * Calls GetTransitionRouteGroup. * @param request GetTransitionRouteGroupRequest message or plain object * @param callback Node-style callback called with the error, if any, and TransitionRouteGroup */ - public getTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3beta1.IGetTransitionRouteGroupRequest, callback: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups.GetTransitionRouteGroupCallback): void; + public getTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest, callback: google.cloud.dialogflow.cx.v3.TransitionRouteGroups.GetTransitionRouteGroupCallback): void; /** * Calls GetTransitionRouteGroup. * @param request GetTransitionRouteGroupRequest message or plain object * @returns Promise */ - public getTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3beta1.IGetTransitionRouteGroupRequest): Promise; + public getTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest): Promise; /** * Calls CreateTransitionRouteGroup. * @param request CreateTransitionRouteGroupRequest message or plain object * @param callback Node-style callback called with the error, if any, and TransitionRouteGroup */ - public createTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3beta1.ICreateTransitionRouteGroupRequest, callback: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups.CreateTransitionRouteGroupCallback): void; + public createTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest, callback: google.cloud.dialogflow.cx.v3.TransitionRouteGroups.CreateTransitionRouteGroupCallback): void; /** * Calls CreateTransitionRouteGroup. * @param request CreateTransitionRouteGroupRequest message or plain object * @returns Promise */ - public createTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3beta1.ICreateTransitionRouteGroupRequest): Promise; + public createTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest): Promise; /** * Calls UpdateTransitionRouteGroup. * @param request UpdateTransitionRouteGroupRequest message or plain object * @param callback Node-style callback called with the error, if any, and TransitionRouteGroup */ - public updateTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3beta1.IUpdateTransitionRouteGroupRequest, callback: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups.UpdateTransitionRouteGroupCallback): void; + public updateTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest, callback: google.cloud.dialogflow.cx.v3.TransitionRouteGroups.UpdateTransitionRouteGroupCallback): void; /** * Calls UpdateTransitionRouteGroup. * @param request UpdateTransitionRouteGroupRequest message or plain object * @returns Promise */ - public updateTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3beta1.IUpdateTransitionRouteGroupRequest): Promise; + public updateTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest): Promise; /** * Calls DeleteTransitionRouteGroup. * @param request DeleteTransitionRouteGroupRequest message or plain object * @param callback Node-style callback called with the error, if any, and Empty */ - public deleteTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3beta1.IDeleteTransitionRouteGroupRequest, callback: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups.DeleteTransitionRouteGroupCallback): void; + public deleteTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest, callback: google.cloud.dialogflow.cx.v3.TransitionRouteGroups.DeleteTransitionRouteGroupCallback): void; /** * Calls DeleteTransitionRouteGroup. * @param request DeleteTransitionRouteGroupRequest message or plain object * @returns Promise */ - public deleteTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3beta1.IDeleteTransitionRouteGroupRequest): Promise; + public deleteTransitionRouteGroup(request: google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest): Promise; } namespace TransitionRouteGroups { /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups#listTransitionRouteGroups}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroups#listTransitionRouteGroups}. * @param error Error, if any * @param [response] ListTransitionRouteGroupsResponse */ - type ListTransitionRouteGroupsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse) => void; + type ListTransitionRouteGroupsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups#getTransitionRouteGroup}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroups#getTransitionRouteGroup}. * @param error Error, if any * @param [response] TransitionRouteGroup */ - type GetTransitionRouteGroupCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup) => void; + type GetTransitionRouteGroupCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.TransitionRouteGroup) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups#createTransitionRouteGroup}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroups#createTransitionRouteGroup}. * @param error Error, if any * @param [response] TransitionRouteGroup */ - type CreateTransitionRouteGroupCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup) => void; + type CreateTransitionRouteGroupCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.TransitionRouteGroup) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups#updateTransitionRouteGroup}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroups#updateTransitionRouteGroup}. * @param error Error, if any * @param [response] TransitionRouteGroup */ - type UpdateTransitionRouteGroupCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup) => void; + type UpdateTransitionRouteGroupCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.TransitionRouteGroup) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups#deleteTransitionRouteGroup}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroups#deleteTransitionRouteGroup}. * @param error Error, if any * @param [response] Empty */ @@ -12308,7 +13157,7 @@ export namespace google { displayName?: (string|null); /** TransitionRouteGroup transitionRoutes */ - transitionRoutes?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRoute[]|null); + transitionRoutes?: (google.cloud.dialogflow.cx.v3.ITransitionRoute[]|null); } /** Represents a TransitionRouteGroup. */ @@ -12318,7 +13167,7 @@ export namespace google { * Constructs a new TransitionRouteGroup. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup); + constructor(properties?: google.cloud.dialogflow.cx.v3.ITransitionRouteGroup); /** TransitionRouteGroup name. */ public name: string; @@ -12327,30 +13176,30 @@ export namespace google { public displayName: string; /** TransitionRouteGroup transitionRoutes. */ - public transitionRoutes: google.cloud.dialogflow.cx.v3beta1.ITransitionRoute[]; + public transitionRoutes: google.cloud.dialogflow.cx.v3.ITransitionRoute[]; /** * Creates a new TransitionRouteGroup instance using the specified properties. * @param [properties] Properties to set * @returns TransitionRouteGroup instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup): google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup; + public static create(properties?: google.cloud.dialogflow.cx.v3.ITransitionRouteGroup): google.cloud.dialogflow.cx.v3.TransitionRouteGroup; /** - * Encodes the specified TransitionRouteGroup message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.verify|verify} messages. + * Encodes the specified TransitionRouteGroup message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroup.verify|verify} messages. * @param message TransitionRouteGroup message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ITransitionRouteGroup, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TransitionRouteGroup message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.verify|verify} messages. + * Encodes the specified TransitionRouteGroup message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroup.verify|verify} messages. * @param message TransitionRouteGroup message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ITransitionRouteGroup, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a TransitionRouteGroup message from the specified reader or buffer. @@ -12360,7 +13209,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.TransitionRouteGroup; /** * Decodes a TransitionRouteGroup message from the specified reader or buffer, length delimited. @@ -12369,7 +13218,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.TransitionRouteGroup; /** * Verifies a TransitionRouteGroup message. @@ -12383,7 +13232,7 @@ export namespace google { * @param object Plain object * @returns TransitionRouteGroup */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.TransitionRouteGroup; /** * Creates a plain object from a TransitionRouteGroup message. Also converts values to other types if specified. @@ -12391,7 +13240,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.TransitionRouteGroup, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this TransitionRouteGroup to JSON. @@ -12423,7 +13272,7 @@ export namespace google { * Constructs a new ListTransitionRouteGroupsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest); /** ListTransitionRouteGroupsRequest parent. */ public parent: string; @@ -12442,23 +13291,23 @@ export namespace google { * @param [properties] Properties to set * @returns ListTransitionRouteGroupsRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsRequest): google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest): google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest; /** - * Encodes the specified ListTransitionRouteGroupsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest.verify|verify} messages. + * Encodes the specified ListTransitionRouteGroupsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest.verify|verify} messages. * @param message ListTransitionRouteGroupsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListTransitionRouteGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest.verify|verify} messages. + * Encodes the specified ListTransitionRouteGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest.verify|verify} messages. * @param message ListTransitionRouteGroupsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a ListTransitionRouteGroupsRequest message from the specified reader or buffer. @@ -12468,7 +13317,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest; /** * Decodes a ListTransitionRouteGroupsRequest message from the specified reader or buffer, length delimited. @@ -12477,7 +13326,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest; /** * Verifies a ListTransitionRouteGroupsRequest message. @@ -12491,7 +13340,7 @@ export namespace google { * @param object Plain object * @returns ListTransitionRouteGroupsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest; /** * Creates a plain object from a ListTransitionRouteGroupsRequest message. Also converts values to other types if specified. @@ -12499,7 +13348,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this ListTransitionRouteGroupsRequest to JSON. @@ -12512,7 +13361,7 @@ export namespace google { interface IListTransitionRouteGroupsResponse { /** ListTransitionRouteGroupsResponse transitionRouteGroups */ - transitionRouteGroups?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup[]|null); + transitionRouteGroups?: (google.cloud.dialogflow.cx.v3.ITransitionRouteGroup[]|null); /** ListTransitionRouteGroupsResponse nextPageToken */ nextPageToken?: (string|null); @@ -12525,10 +13374,10 @@ export namespace google { * Constructs a new ListTransitionRouteGroupsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsResponse); /** ListTransitionRouteGroupsResponse transitionRouteGroups. */ - public transitionRouteGroups: google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup[]; + public transitionRouteGroups: google.cloud.dialogflow.cx.v3.ITransitionRouteGroup[]; /** ListTransitionRouteGroupsResponse nextPageToken. */ public nextPageToken: string; @@ -12538,23 +13387,23 @@ export namespace google { * @param [properties] Properties to set * @returns ListTransitionRouteGroupsResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsResponse): google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsResponse): google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse; /** - * Encodes the specified ListTransitionRouteGroupsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse.verify|verify} messages. + * Encodes the specified ListTransitionRouteGroupsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse.verify|verify} messages. * @param message ListTransitionRouteGroupsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListTransitionRouteGroupsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse.verify|verify} messages. + * Encodes the specified ListTransitionRouteGroupsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse.verify|verify} messages. * @param message ListTransitionRouteGroupsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a ListTransitionRouteGroupsResponse message from the specified reader or buffer. @@ -12564,7 +13413,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse; /** * Decodes a ListTransitionRouteGroupsResponse message from the specified reader or buffer, length delimited. @@ -12573,7 +13422,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse; /** * Verifies a ListTransitionRouteGroupsResponse message. @@ -12587,7 +13436,7 @@ export namespace google { * @param object Plain object * @returns ListTransitionRouteGroupsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse; /** * Creates a plain object from a ListTransitionRouteGroupsResponse message. Also converts values to other types if specified. @@ -12595,7 +13444,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this ListTransitionRouteGroupsResponse to JSON. @@ -12621,7 +13470,7 @@ export namespace google { * Constructs a new GetTransitionRouteGroupRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetTransitionRouteGroupRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest); /** GetTransitionRouteGroupRequest name. */ public name: string; @@ -12634,23 +13483,23 @@ export namespace google { * @param [properties] Properties to set * @returns GetTransitionRouteGroupRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetTransitionRouteGroupRequest): google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest): google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest; /** - * Encodes the specified GetTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest.verify|verify} messages. + * Encodes the specified GetTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest.verify|verify} messages. * @param message GetTransitionRouteGroupRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGetTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetTransitionRouteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest.verify|verify} messages. + * Encodes the specified GetTransitionRouteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest.verify|verify} messages. * @param message GetTransitionRouteGroupRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGetTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a GetTransitionRouteGroupRequest message from the specified reader or buffer. @@ -12660,7 +13509,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest; /** * Decodes a GetTransitionRouteGroupRequest message from the specified reader or buffer, length delimited. @@ -12669,7 +13518,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest; /** * Verifies a GetTransitionRouteGroupRequest message. @@ -12683,7 +13532,7 @@ export namespace google { * @param object Plain object * @returns GetTransitionRouteGroupRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest; /** * Creates a plain object from a GetTransitionRouteGroupRequest message. Also converts values to other types if specified. @@ -12691,7 +13540,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this GetTransitionRouteGroupRequest to JSON. @@ -12707,7 +13556,7 @@ export namespace google { parent?: (string|null); /** CreateTransitionRouteGroupRequest transitionRouteGroup */ - transitionRouteGroup?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup|null); + transitionRouteGroup?: (google.cloud.dialogflow.cx.v3.ITransitionRouteGroup|null); /** CreateTransitionRouteGroupRequest languageCode */ languageCode?: (string|null); @@ -12720,13 +13569,13 @@ export namespace google { * Constructs a new CreateTransitionRouteGroupRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateTransitionRouteGroupRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest); /** CreateTransitionRouteGroupRequest parent. */ public parent: string; /** CreateTransitionRouteGroupRequest transitionRouteGroup. */ - public transitionRouteGroup?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup|null); + public transitionRouteGroup?: (google.cloud.dialogflow.cx.v3.ITransitionRouteGroup|null); /** CreateTransitionRouteGroupRequest languageCode. */ public languageCode: string; @@ -12736,23 +13585,23 @@ export namespace google { * @param [properties] Properties to set * @returns CreateTransitionRouteGroupRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateTransitionRouteGroupRequest): google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest): google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest; /** - * Encodes the specified CreateTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest.verify|verify} messages. + * Encodes the specified CreateTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest.verify|verify} messages. * @param message CreateTransitionRouteGroupRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ICreateTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateTransitionRouteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest.verify|verify} messages. + * Encodes the specified CreateTransitionRouteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest.verify|verify} messages. * @param message CreateTransitionRouteGroupRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ICreateTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a CreateTransitionRouteGroupRequest message from the specified reader or buffer. @@ -12762,7 +13611,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest; /** * Decodes a CreateTransitionRouteGroupRequest message from the specified reader or buffer, length delimited. @@ -12771,7 +13620,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest; /** * Verifies a CreateTransitionRouteGroupRequest message. @@ -12785,7 +13634,7 @@ export namespace google { * @param object Plain object * @returns CreateTransitionRouteGroupRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest; /** * Creates a plain object from a CreateTransitionRouteGroupRequest message. Also converts values to other types if specified. @@ -12793,7 +13642,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this CreateTransitionRouteGroupRequest to JSON. @@ -12806,7 +13655,7 @@ export namespace google { interface IUpdateTransitionRouteGroupRequest { /** UpdateTransitionRouteGroupRequest transitionRouteGroup */ - transitionRouteGroup?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup|null); + transitionRouteGroup?: (google.cloud.dialogflow.cx.v3.ITransitionRouteGroup|null); /** UpdateTransitionRouteGroupRequest updateMask */ updateMask?: (google.protobuf.IFieldMask|null); @@ -12822,10 +13671,10 @@ export namespace google { * Constructs a new UpdateTransitionRouteGroupRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateTransitionRouteGroupRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest); /** UpdateTransitionRouteGroupRequest transitionRouteGroup. */ - public transitionRouteGroup?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup|null); + public transitionRouteGroup?: (google.cloud.dialogflow.cx.v3.ITransitionRouteGroup|null); /** UpdateTransitionRouteGroupRequest updateMask. */ public updateMask?: (google.protobuf.IFieldMask|null); @@ -12838,23 +13687,23 @@ export namespace google { * @param [properties] Properties to set * @returns UpdateTransitionRouteGroupRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateTransitionRouteGroupRequest): google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest): google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest; /** - * Encodes the specified UpdateTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest.verify|verify} messages. + * Encodes the specified UpdateTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest.verify|verify} messages. * @param message UpdateTransitionRouteGroupRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IUpdateTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateTransitionRouteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest.verify|verify} messages. + * Encodes the specified UpdateTransitionRouteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest.verify|verify} messages. * @param message UpdateTransitionRouteGroupRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IUpdateTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an UpdateTransitionRouteGroupRequest message from the specified reader or buffer. @@ -12864,7 +13713,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest; /** * Decodes an UpdateTransitionRouteGroupRequest message from the specified reader or buffer, length delimited. @@ -12873,7 +13722,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest; /** * Verifies an UpdateTransitionRouteGroupRequest message. @@ -12887,7 +13736,7 @@ export namespace google { * @param object Plain object * @returns UpdateTransitionRouteGroupRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest; /** * Creates a plain object from an UpdateTransitionRouteGroupRequest message. Also converts values to other types if specified. @@ -12895,7 +13744,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this UpdateTransitionRouteGroupRequest to JSON. @@ -12921,7 +13770,7 @@ export namespace google { * Constructs a new DeleteTransitionRouteGroupRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteTransitionRouteGroupRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest); /** DeleteTransitionRouteGroupRequest name. */ public name: string; @@ -12934,23 +13783,23 @@ export namespace google { * @param [properties] Properties to set * @returns DeleteTransitionRouteGroupRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteTransitionRouteGroupRequest): google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest): google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest; /** - * Encodes the specified DeleteTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest.verify|verify} messages. + * Encodes the specified DeleteTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest.verify|verify} messages. * @param message DeleteTransitionRouteGroupRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IDeleteTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteTransitionRouteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest.verify|verify} messages. + * Encodes the specified DeleteTransitionRouteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest.verify|verify} messages. * @param message DeleteTransitionRouteGroupRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IDeleteTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a DeleteTransitionRouteGroupRequest message from the specified reader or buffer. @@ -12960,7 +13809,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest; /** * Decodes a DeleteTransitionRouteGroupRequest message from the specified reader or buffer, length delimited. @@ -12969,7 +13818,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest; /** * Verifies a DeleteTransitionRouteGroupRequest message. @@ -12983,7 +13832,7 @@ export namespace google { * @param object Plain object * @returns DeleteTransitionRouteGroupRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest; /** * Creates a plain object from a DeleteTransitionRouteGroupRequest message. Also converts values to other types if specified. @@ -12991,7 +13840,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this DeleteTransitionRouteGroupRequest to JSON. @@ -13025,125 +13874,125 @@ export namespace google { * @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.v3beta1.IListVersionsRequest, callback: google.cloud.dialogflow.cx.v3beta1.Versions.ListVersionsCallback): void; + public listVersions(request: google.cloud.dialogflow.cx.v3.IListVersionsRequest, callback: google.cloud.dialogflow.cx.v3.Versions.ListVersionsCallback): void; /** * Calls ListVersions. * @param request ListVersionsRequest message or plain object * @returns Promise */ - public listVersions(request: google.cloud.dialogflow.cx.v3beta1.IListVersionsRequest): Promise; + public listVersions(request: google.cloud.dialogflow.cx.v3.IListVersionsRequest): Promise; /** * 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.v3beta1.IGetVersionRequest, callback: google.cloud.dialogflow.cx.v3beta1.Versions.GetVersionCallback): void; + public getVersion(request: google.cloud.dialogflow.cx.v3.IGetVersionRequest, callback: google.cloud.dialogflow.cx.v3.Versions.GetVersionCallback): void; /** * Calls GetVersion. * @param request GetVersionRequest message or plain object * @returns Promise */ - public getVersion(request: google.cloud.dialogflow.cx.v3beta1.IGetVersionRequest): Promise; + public getVersion(request: google.cloud.dialogflow.cx.v3.IGetVersionRequest): Promise; /** * 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.v3beta1.ICreateVersionRequest, callback: google.cloud.dialogflow.cx.v3beta1.Versions.CreateVersionCallback): void; + public createVersion(request: google.cloud.dialogflow.cx.v3.ICreateVersionRequest, callback: google.cloud.dialogflow.cx.v3.Versions.CreateVersionCallback): void; /** * Calls CreateVersion. * @param request CreateVersionRequest message or plain object * @returns Promise */ - public createVersion(request: google.cloud.dialogflow.cx.v3beta1.ICreateVersionRequest): Promise; + public createVersion(request: google.cloud.dialogflow.cx.v3.ICreateVersionRequest): Promise; /** * 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.v3beta1.IUpdateVersionRequest, callback: google.cloud.dialogflow.cx.v3beta1.Versions.UpdateVersionCallback): void; + public updateVersion(request: google.cloud.dialogflow.cx.v3.IUpdateVersionRequest, callback: google.cloud.dialogflow.cx.v3.Versions.UpdateVersionCallback): void; /** * Calls UpdateVersion. * @param request UpdateVersionRequest message or plain object * @returns Promise */ - public updateVersion(request: google.cloud.dialogflow.cx.v3beta1.IUpdateVersionRequest): Promise; + public updateVersion(request: google.cloud.dialogflow.cx.v3.IUpdateVersionRequest): Promise; /** * 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.v3beta1.IDeleteVersionRequest, callback: google.cloud.dialogflow.cx.v3beta1.Versions.DeleteVersionCallback): void; + 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.v3beta1.IDeleteVersionRequest): 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.v3beta1.ILoadVersionRequest, callback: google.cloud.dialogflow.cx.v3beta1.Versions.LoadVersionCallback): void; + 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.v3beta1.ILoadVersionRequest): Promise; + public loadVersion(request: google.cloud.dialogflow.cx.v3.ILoadVersionRequest): Promise; } namespace Versions { /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Versions#listVersions}. + * 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.v3beta1.ListVersionsResponse) => void; + type ListVersionsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.ListVersionsResponse) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Versions#getVersion}. + * 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.v3beta1.Version) => void; + type GetVersionCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Version) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Versions#createVersion}. + * 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.v3beta1.Versions#updateVersion}. + * 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.v3beta1.Version) => void; + type UpdateVersionCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Version) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Versions#deleteVersion}. + * 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.v3beta1.Versions#loadVersion}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Versions#loadVersion}. * @param error Error, if any * @param [response] Operation */ @@ -13164,7 +14013,7 @@ export namespace google { * Constructs a new CreateVersionOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateVersionOperationMetadata); + constructor(properties?: google.cloud.dialogflow.cx.v3.ICreateVersionOperationMetadata); /** CreateVersionOperationMetadata version. */ public version: string; @@ -13174,23 +14023,23 @@ export namespace google { * @param [properties] Properties to set * @returns CreateVersionOperationMetadata instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateVersionOperationMetadata): google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata; + public static create(properties?: google.cloud.dialogflow.cx.v3.ICreateVersionOperationMetadata): google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata; /** - * Encodes the specified CreateVersionOperationMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata.verify|verify} messages. + * 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.v3beta1.ICreateVersionOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ICreateVersionOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateVersionOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata.verify|verify} messages. + * 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.v3beta1.ICreateVersionOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICreateVersionOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a CreateVersionOperationMetadata message from the specified reader or buffer. @@ -13200,7 +14049,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata; /** * Decodes a CreateVersionOperationMetadata message from the specified reader or buffer, length delimited. @@ -13209,7 +14058,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata; /** * Verifies a CreateVersionOperationMetadata message. @@ -13223,7 +14072,7 @@ export namespace google { * @param object Plain object * @returns CreateVersionOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata; /** * Creates a plain object from a CreateVersionOperationMetadata message. Also converts values to other types if specified. @@ -13231,7 +14080,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this CreateVersionOperationMetadata to JSON. @@ -13253,13 +14102,13 @@ export namespace google { description?: (string|null); /** Version nluSettings */ - nluSettings?: (google.cloud.dialogflow.cx.v3beta1.INluSettings|null); + nluSettings?: (google.cloud.dialogflow.cx.v3.INluSettings|null); /** Version createTime */ createTime?: (google.protobuf.ITimestamp|null); /** Version state */ - state?: (google.cloud.dialogflow.cx.v3beta1.Version.State|keyof typeof google.cloud.dialogflow.cx.v3beta1.Version.State|null); + state?: (google.cloud.dialogflow.cx.v3.Version.State|keyof typeof google.cloud.dialogflow.cx.v3.Version.State|null); } /** Represents a Version. */ @@ -13269,7 +14118,7 @@ export namespace google { * Constructs a new Version. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IVersion); + constructor(properties?: google.cloud.dialogflow.cx.v3.IVersion); /** Version name. */ public name: string; @@ -13281,36 +14130,36 @@ export namespace google { public description: string; /** Version nluSettings. */ - public nluSettings?: (google.cloud.dialogflow.cx.v3beta1.INluSettings|null); + public nluSettings?: (google.cloud.dialogflow.cx.v3.INluSettings|null); /** Version createTime. */ public createTime?: (google.protobuf.ITimestamp|null); /** Version state. */ - public state: (google.cloud.dialogflow.cx.v3beta1.Version.State|keyof typeof google.cloud.dialogflow.cx.v3beta1.Version.State); + public state: (google.cloud.dialogflow.cx.v3.Version.State|keyof typeof google.cloud.dialogflow.cx.v3.Version.State); /** * 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.v3beta1.IVersion): google.cloud.dialogflow.cx.v3beta1.Version; + public static create(properties?: google.cloud.dialogflow.cx.v3.IVersion): google.cloud.dialogflow.cx.v3.Version; /** - * Encodes the specified Version message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Version.verify|verify} messages. + * 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.v3beta1.IVersion, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IVersion, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Version message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Version.verify|verify} messages. + * 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.v3beta1.IVersion, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IVersion, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a Version message from the specified reader or buffer. @@ -13320,7 +14169,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Version; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Version; /** * Decodes a Version message from the specified reader or buffer, length delimited. @@ -13329,7 +14178,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Version; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Version; /** * Verifies a Version message. @@ -13343,7 +14192,7 @@ export namespace google { * @param object Plain object * @returns Version */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Version; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Version; /** * Creates a plain object from a Version message. Also converts values to other types if specified. @@ -13351,7 +14200,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Version, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.Version, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this Version to JSON. @@ -13391,7 +14240,7 @@ export namespace google { * Constructs a new ListVersionsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListVersionsRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IListVersionsRequest); /** ListVersionsRequest parent. */ public parent: string; @@ -13407,23 +14256,23 @@ export namespace google { * @param [properties] Properties to set * @returns ListVersionsRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListVersionsRequest): google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IListVersionsRequest): google.cloud.dialogflow.cx.v3.ListVersionsRequest; /** - * Encodes the specified ListVersionsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest.verify|verify} messages. + * 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.v3beta1.IListVersionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IListVersionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListVersionsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest.verify|verify} messages. + * 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.v3beta1.IListVersionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListVersionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a ListVersionsRequest message from the specified reader or buffer. @@ -13433,7 +14282,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListVersionsRequest; /** * Decodes a ListVersionsRequest message from the specified reader or buffer, length delimited. @@ -13442,7 +14291,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListVersionsRequest; /** * Verifies a ListVersionsRequest message. @@ -13456,7 +14305,7 @@ export namespace google { * @param object Plain object * @returns ListVersionsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListVersionsRequest; /** * Creates a plain object from a ListVersionsRequest message. Also converts values to other types if specified. @@ -13464,7 +14313,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ListVersionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this ListVersionsRequest to JSON. @@ -13477,7 +14326,7 @@ export namespace google { interface IListVersionsResponse { /** ListVersionsResponse versions */ - versions?: (google.cloud.dialogflow.cx.v3beta1.IVersion[]|null); + versions?: (google.cloud.dialogflow.cx.v3.IVersion[]|null); /** ListVersionsResponse nextPageToken */ nextPageToken?: (string|null); @@ -13490,10 +14339,10 @@ export namespace google { * Constructs a new ListVersionsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListVersionsResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3.IListVersionsResponse); /** ListVersionsResponse versions. */ - public versions: google.cloud.dialogflow.cx.v3beta1.IVersion[]; + public versions: google.cloud.dialogflow.cx.v3.IVersion[]; /** ListVersionsResponse nextPageToken. */ public nextPageToken: string; @@ -13503,23 +14352,23 @@ export namespace google { * @param [properties] Properties to set * @returns ListVersionsResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListVersionsResponse): google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3.IListVersionsResponse): google.cloud.dialogflow.cx.v3.ListVersionsResponse; /** - * Encodes the specified ListVersionsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse.verify|verify} messages. + * 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.v3beta1.IListVersionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IListVersionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListVersionsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse.verify|verify} messages. + * 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.v3beta1.IListVersionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListVersionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a ListVersionsResponse message from the specified reader or buffer. @@ -13529,7 +14378,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListVersionsResponse; /** * Decodes a ListVersionsResponse message from the specified reader or buffer, length delimited. @@ -13538,7 +14387,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListVersionsResponse; /** * Verifies a ListVersionsResponse message. @@ -13552,7 +14401,7 @@ export namespace google { * @param object Plain object * @returns ListVersionsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListVersionsResponse; /** * Creates a plain object from a ListVersionsResponse message. Also converts values to other types if specified. @@ -13560,7 +14409,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ListVersionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this ListVersionsResponse to JSON. @@ -13583,7 +14432,7 @@ export namespace google { * Constructs a new GetVersionRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetVersionRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IGetVersionRequest); /** GetVersionRequest name. */ public name: string; @@ -13593,23 +14442,23 @@ export namespace google { * @param [properties] Properties to set * @returns GetVersionRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetVersionRequest): google.cloud.dialogflow.cx.v3beta1.GetVersionRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IGetVersionRequest): google.cloud.dialogflow.cx.v3.GetVersionRequest; /** - * Encodes the specified GetVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetVersionRequest.verify|verify} messages. + * 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.v3beta1.IGetVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IGetVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetVersionRequest.verify|verify} messages. + * 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.v3beta1.IGetVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IGetVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a GetVersionRequest message from the specified reader or buffer. @@ -13619,7 +14468,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.GetVersionRequest; + 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. @@ -13628,7 +14477,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.GetVersionRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.GetVersionRequest; /** * Verifies a GetVersionRequest message. @@ -13642,7 +14491,7 @@ export namespace google { * @param object Plain object * @returns GetVersionRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetVersionRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.GetVersionRequest; /** * Creates a plain object from a GetVersionRequest message. Also converts values to other types if specified. @@ -13650,7 +14499,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GetVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.GetVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this GetVersionRequest to JSON. @@ -13666,7 +14515,7 @@ export namespace google { parent?: (string|null); /** CreateVersionRequest version */ - version?: (google.cloud.dialogflow.cx.v3beta1.IVersion|null); + version?: (google.cloud.dialogflow.cx.v3.IVersion|null); } /** Represents a CreateVersionRequest. */ @@ -13676,36 +14525,36 @@ export namespace google { * Constructs a new CreateVersionRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateVersionRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.ICreateVersionRequest); /** CreateVersionRequest parent. */ public parent: string; /** CreateVersionRequest version. */ - public version?: (google.cloud.dialogflow.cx.v3beta1.IVersion|null); + public version?: (google.cloud.dialogflow.cx.v3.IVersion|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.v3beta1.ICreateVersionRequest): google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.ICreateVersionRequest): google.cloud.dialogflow.cx.v3.CreateVersionRequest; /** - * Encodes the specified CreateVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest.verify|verify} messages. + * 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.v3beta1.ICreateVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ICreateVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest.verify|verify} messages. + * 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.v3beta1.ICreateVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICreateVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a CreateVersionRequest message from the specified reader or buffer. @@ -13715,7 +14564,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.CreateVersionRequest; /** * Decodes a CreateVersionRequest message from the specified reader or buffer, length delimited. @@ -13724,7 +14573,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.CreateVersionRequest; /** * Verifies a CreateVersionRequest message. @@ -13738,7 +14587,7 @@ export namespace google { * @param object Plain object * @returns CreateVersionRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CreateVersionRequest; /** * Creates a plain object from a CreateVersionRequest message. Also converts values to other types if specified. @@ -13746,7 +14595,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.CreateVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this CreateVersionRequest to JSON. @@ -13759,7 +14608,7 @@ export namespace google { interface IUpdateVersionRequest { /** UpdateVersionRequest version */ - version?: (google.cloud.dialogflow.cx.v3beta1.IVersion|null); + version?: (google.cloud.dialogflow.cx.v3.IVersion|null); /** UpdateVersionRequest updateMask */ updateMask?: (google.protobuf.IFieldMask|null); @@ -13772,10 +14621,10 @@ export namespace google { * Constructs a new UpdateVersionRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateVersionRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IUpdateVersionRequest); /** UpdateVersionRequest version. */ - public version?: (google.cloud.dialogflow.cx.v3beta1.IVersion|null); + public version?: (google.cloud.dialogflow.cx.v3.IVersion|null); /** UpdateVersionRequest updateMask. */ public updateMask?: (google.protobuf.IFieldMask|null); @@ -13785,23 +14634,23 @@ export namespace google { * @param [properties] Properties to set * @returns UpdateVersionRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateVersionRequest): google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IUpdateVersionRequest): google.cloud.dialogflow.cx.v3.UpdateVersionRequest; /** - * Encodes the specified UpdateVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest.verify|verify} messages. + * 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.v3beta1.IUpdateVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IUpdateVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest.verify|verify} messages. + * 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.v3beta1.IUpdateVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IUpdateVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an UpdateVersionRequest message from the specified reader or buffer. @@ -13811,7 +14660,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.UpdateVersionRequest; /** * Decodes an UpdateVersionRequest message from the specified reader or buffer, length delimited. @@ -13820,7 +14669,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.UpdateVersionRequest; /** * Verifies an UpdateVersionRequest message. @@ -13834,7 +14683,7 @@ export namespace google { * @param object Plain object * @returns UpdateVersionRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.UpdateVersionRequest; /** * Creates a plain object from an UpdateVersionRequest message. Also converts values to other types if specified. @@ -13842,7 +14691,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.UpdateVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this UpdateVersionRequest to JSON. @@ -13865,7 +14714,7 @@ export namespace google { * Constructs a new DeleteVersionRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteVersionRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IDeleteVersionRequest); /** DeleteVersionRequest name. */ public name: string; @@ -13875,23 +14724,23 @@ export namespace google { * @param [properties] Properties to set * @returns DeleteVersionRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteVersionRequest): google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IDeleteVersionRequest): google.cloud.dialogflow.cx.v3.DeleteVersionRequest; /** - * Encodes the specified DeleteVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest.verify|verify} messages. + * 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.v3beta1.IDeleteVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IDeleteVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest.verify|verify} messages. + * 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.v3beta1.IDeleteVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDeleteVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a DeleteVersionRequest message from the specified reader or buffer. @@ -13901,7 +14750,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.DeleteVersionRequest; /** * Decodes a DeleteVersionRequest message from the specified reader or buffer, length delimited. @@ -13910,7 +14759,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.DeleteVersionRequest; /** * Verifies a DeleteVersionRequest message. @@ -13924,7 +14773,7 @@ export namespace google { * @param object Plain object * @returns DeleteVersionRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.DeleteVersionRequest; /** * Creates a plain object from a DeleteVersionRequest message. Also converts values to other types if specified. @@ -13932,7 +14781,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.DeleteVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this DeleteVersionRequest to JSON. @@ -13958,7 +14807,7 @@ export namespace google { * Constructs a new LoadVersionRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ILoadVersionRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.ILoadVersionRequest); /** LoadVersionRequest name. */ public name: string; @@ -13971,23 +14820,23 @@ export namespace google { * @param [properties] Properties to set * @returns LoadVersionRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ILoadVersionRequest): google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.ILoadVersionRequest): google.cloud.dialogflow.cx.v3.LoadVersionRequest; /** - * Encodes the specified LoadVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest.verify|verify} messages. + * 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.v3beta1.ILoadVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ILoadVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified LoadVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest.verify|verify} messages. + * 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.v3beta1.ILoadVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ILoadVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a LoadVersionRequest message from the specified reader or buffer. @@ -13997,7 +14846,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.LoadVersionRequest; /** * Decodes a LoadVersionRequest message from the specified reader or buffer, length delimited. @@ -14006,7 +14855,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.LoadVersionRequest; /** * Verifies a LoadVersionRequest message. @@ -14020,7 +14869,7 @@ export namespace google { * @param object Plain object * @returns LoadVersionRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.LoadVersionRequest; /** * Creates a plain object from a LoadVersionRequest message. Also converts values to other types if specified. @@ -14028,7 +14877,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.LoadVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this LoadVersionRequest to JSON. @@ -14062,104 +14911,104 @@ export namespace google { * @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.v3beta1.IListWebhooksRequest, callback: google.cloud.dialogflow.cx.v3beta1.Webhooks.ListWebhooksCallback): void; + public listWebhooks(request: google.cloud.dialogflow.cx.v3.IListWebhooksRequest, callback: google.cloud.dialogflow.cx.v3.Webhooks.ListWebhooksCallback): void; /** * Calls ListWebhooks. * @param request ListWebhooksRequest message or plain object * @returns Promise */ - public listWebhooks(request: google.cloud.dialogflow.cx.v3beta1.IListWebhooksRequest): Promise; + public listWebhooks(request: google.cloud.dialogflow.cx.v3.IListWebhooksRequest): Promise; /** * 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.v3beta1.IGetWebhookRequest, callback: google.cloud.dialogflow.cx.v3beta1.Webhooks.GetWebhookCallback): void; + public getWebhook(request: google.cloud.dialogflow.cx.v3.IGetWebhookRequest, callback: google.cloud.dialogflow.cx.v3.Webhooks.GetWebhookCallback): void; /** * Calls GetWebhook. * @param request GetWebhookRequest message or plain object * @returns Promise */ - public getWebhook(request: google.cloud.dialogflow.cx.v3beta1.IGetWebhookRequest): Promise; + public getWebhook(request: google.cloud.dialogflow.cx.v3.IGetWebhookRequest): Promise; /** * 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.v3beta1.ICreateWebhookRequest, callback: google.cloud.dialogflow.cx.v3beta1.Webhooks.CreateWebhookCallback): void; + public createWebhook(request: google.cloud.dialogflow.cx.v3.ICreateWebhookRequest, callback: google.cloud.dialogflow.cx.v3.Webhooks.CreateWebhookCallback): void; /** * Calls CreateWebhook. * @param request CreateWebhookRequest message or plain object * @returns Promise */ - public createWebhook(request: google.cloud.dialogflow.cx.v3beta1.ICreateWebhookRequest): Promise; + public createWebhook(request: google.cloud.dialogflow.cx.v3.ICreateWebhookRequest): Promise; /** * Calls UpdateWebhook. * @param request UpdateWebhookRequest message or plain object * @param callback Node-style callback called with the error, if any, and Webhook */ - public updateWebhook(request: google.cloud.dialogflow.cx.v3beta1.IUpdateWebhookRequest, callback: google.cloud.dialogflow.cx.v3beta1.Webhooks.UpdateWebhookCallback): void; + public updateWebhook(request: google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest, callback: google.cloud.dialogflow.cx.v3.Webhooks.UpdateWebhookCallback): void; /** * Calls UpdateWebhook. * @param request UpdateWebhookRequest message or plain object * @returns Promise */ - public updateWebhook(request: google.cloud.dialogflow.cx.v3beta1.IUpdateWebhookRequest): Promise; + public updateWebhook(request: google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest): Promise; /** * Calls DeleteWebhook. * @param request DeleteWebhookRequest message or plain object * @param callback Node-style callback called with the error, if any, and Empty */ - public deleteWebhook(request: google.cloud.dialogflow.cx.v3beta1.IDeleteWebhookRequest, callback: google.cloud.dialogflow.cx.v3beta1.Webhooks.DeleteWebhookCallback): void; + public deleteWebhook(request: google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest, callback: google.cloud.dialogflow.cx.v3.Webhooks.DeleteWebhookCallback): void; /** * Calls DeleteWebhook. * @param request DeleteWebhookRequest message or plain object * @returns Promise */ - public deleteWebhook(request: google.cloud.dialogflow.cx.v3beta1.IDeleteWebhookRequest): Promise; + public deleteWebhook(request: google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest): Promise; } namespace Webhooks { /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Webhooks#listWebhooks}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Webhooks#listWebhooks}. * @param error Error, if any * @param [response] ListWebhooksResponse */ - type ListWebhooksCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse) => void; + type ListWebhooksCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.ListWebhooksResponse) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Webhooks#getWebhook}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Webhooks#getWebhook}. * @param error Error, if any * @param [response] Webhook */ - type GetWebhookCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Webhook) => void; + type GetWebhookCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Webhook) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Webhooks#createWebhook}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Webhooks#createWebhook}. * @param error Error, if any * @param [response] Webhook */ - type CreateWebhookCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Webhook) => void; + type CreateWebhookCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Webhook) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Webhooks#updateWebhook}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Webhooks#updateWebhook}. * @param error Error, if any * @param [response] Webhook */ - type UpdateWebhookCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Webhook) => void; + type UpdateWebhookCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Webhook) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Webhooks#deleteWebhook}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Webhooks#deleteWebhook}. * @param error Error, if any * @param [response] Empty */ @@ -14176,7 +15025,7 @@ export namespace google { displayName?: (string|null); /** Webhook genericWebService */ - genericWebService?: (google.cloud.dialogflow.cx.v3beta1.Webhook.IGenericWebService|null); + genericWebService?: (google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService|null); /** Webhook timeout */ timeout?: (google.protobuf.IDuration|null); @@ -14192,7 +15041,7 @@ export namespace google { * Constructs a new Webhook. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IWebhook); + constructor(properties?: google.cloud.dialogflow.cx.v3.IWebhook); /** Webhook name. */ public name: string; @@ -14201,7 +15050,7 @@ export namespace google { public displayName: string; /** Webhook genericWebService. */ - public genericWebService?: (google.cloud.dialogflow.cx.v3beta1.Webhook.IGenericWebService|null); + public genericWebService?: (google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService|null); /** Webhook timeout. */ public timeout?: (google.protobuf.IDuration|null); @@ -14217,23 +15066,23 @@ export namespace google { * @param [properties] Properties to set * @returns Webhook instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IWebhook): google.cloud.dialogflow.cx.v3beta1.Webhook; + public static create(properties?: google.cloud.dialogflow.cx.v3.IWebhook): google.cloud.dialogflow.cx.v3.Webhook; /** - * Encodes the specified Webhook message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Webhook.verify|verify} messages. + * 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.v3beta1.IWebhook, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IWebhook, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Webhook message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Webhook.verify|verify} messages. + * 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.v3beta1.IWebhook, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IWebhook, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a Webhook message from the specified reader or buffer. @@ -14243,7 +15092,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Webhook; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Webhook; /** * Decodes a Webhook message from the specified reader or buffer, length delimited. @@ -14252,7 +15101,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Webhook; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Webhook; /** * Verifies a Webhook message. @@ -14266,7 +15115,7 @@ export namespace google { * @param object Plain object * @returns Webhook */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Webhook; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Webhook; /** * Creates a plain object from a Webhook message. Also converts values to other types if specified. @@ -14274,7 +15123,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Webhook, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.Webhook, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this Webhook to JSON. @@ -14308,7 +15157,7 @@ export namespace google { * Constructs a new GenericWebService. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Webhook.IGenericWebService); + constructor(properties?: google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService); /** GenericWebService uri. */ public uri: string; @@ -14327,23 +15176,23 @@ export namespace google { * @param [properties] Properties to set * @returns GenericWebService instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Webhook.IGenericWebService): google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService; + 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.v3beta1.Webhook.GenericWebService.verify|verify} messages. + * 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.v3beta1.Webhook.IGenericWebService, writer?: $protobuf.Writer): $protobuf.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.v3beta1.Webhook.GenericWebService.verify|verify} messages. + * 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.v3beta1.Webhook.IGenericWebService, writer?: $protobuf.Writer): $protobuf.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. @@ -14353,7 +15202,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService; + 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. @@ -14362,7 +15211,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Webhook.GenericWebService; /** * Verifies a GenericWebService message. @@ -14376,7 +15225,7 @@ export namespace google { * @param object Plain object * @returns GenericWebService */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Webhook.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. @@ -14384,7 +15233,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService, 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 GenericWebService to JSON. @@ -14414,7 +15263,7 @@ export namespace google { * Constructs a new ListWebhooksRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListWebhooksRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IListWebhooksRequest); /** ListWebhooksRequest parent. */ public parent: string; @@ -14430,23 +15279,23 @@ export namespace google { * @param [properties] Properties to set * @returns ListWebhooksRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListWebhooksRequest): google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IListWebhooksRequest): google.cloud.dialogflow.cx.v3.ListWebhooksRequest; /** - * Encodes the specified ListWebhooksRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest.verify|verify} messages. + * 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.v3beta1.IListWebhooksRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IListWebhooksRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListWebhooksRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest.verify|verify} messages. + * 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.v3beta1.IListWebhooksRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListWebhooksRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a ListWebhooksRequest message from the specified reader or buffer. @@ -14456,7 +15305,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListWebhooksRequest; /** * Decodes a ListWebhooksRequest message from the specified reader or buffer, length delimited. @@ -14465,7 +15314,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListWebhooksRequest; /** * Verifies a ListWebhooksRequest message. @@ -14479,7 +15328,7 @@ export namespace google { * @param object Plain object * @returns ListWebhooksRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListWebhooksRequest; /** * Creates a plain object from a ListWebhooksRequest message. Also converts values to other types if specified. @@ -14487,7 +15336,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ListWebhooksRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this ListWebhooksRequest to JSON. @@ -14500,7 +15349,7 @@ export namespace google { interface IListWebhooksResponse { /** ListWebhooksResponse webhooks */ - webhooks?: (google.cloud.dialogflow.cx.v3beta1.IWebhook[]|null); + webhooks?: (google.cloud.dialogflow.cx.v3.IWebhook[]|null); /** ListWebhooksResponse nextPageToken */ nextPageToken?: (string|null); @@ -14513,10 +15362,10 @@ export namespace google { * Constructs a new ListWebhooksResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListWebhooksResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3.IListWebhooksResponse); /** ListWebhooksResponse webhooks. */ - public webhooks: google.cloud.dialogflow.cx.v3beta1.IWebhook[]; + public webhooks: google.cloud.dialogflow.cx.v3.IWebhook[]; /** ListWebhooksResponse nextPageToken. */ public nextPageToken: string; @@ -14526,23 +15375,23 @@ export namespace google { * @param [properties] Properties to set * @returns ListWebhooksResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListWebhooksResponse): google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3.IListWebhooksResponse): google.cloud.dialogflow.cx.v3.ListWebhooksResponse; /** - * Encodes the specified ListWebhooksResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse.verify|verify} messages. + * 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.v3beta1.IListWebhooksResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IListWebhooksResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListWebhooksResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse.verify|verify} messages. + * 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.v3beta1.IListWebhooksResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListWebhooksResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a ListWebhooksResponse message from the specified reader or buffer. @@ -14552,7 +15401,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListWebhooksResponse; /** * Decodes a ListWebhooksResponse message from the specified reader or buffer, length delimited. @@ -14561,7 +15410,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListWebhooksResponse; /** * Verifies a ListWebhooksResponse message. @@ -14575,7 +15424,7 @@ export namespace google { * @param object Plain object * @returns ListWebhooksResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListWebhooksResponse; /** * Creates a plain object from a ListWebhooksResponse message. Also converts values to other types if specified. @@ -14583,7 +15432,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ListWebhooksResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this ListWebhooksResponse to JSON. @@ -14606,7 +15455,7 @@ export namespace google { * Constructs a new GetWebhookRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetWebhookRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IGetWebhookRequest); /** GetWebhookRequest name. */ public name: string; @@ -14616,23 +15465,23 @@ export namespace google { * @param [properties] Properties to set * @returns GetWebhookRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetWebhookRequest): google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IGetWebhookRequest): google.cloud.dialogflow.cx.v3.GetWebhookRequest; /** - * Encodes the specified GetWebhookRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest.verify|verify} messages. + * 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.v3beta1.IGetWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IGetWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetWebhookRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest.verify|verify} messages. + * 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.v3beta1.IGetWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IGetWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a GetWebhookRequest message from the specified reader or buffer. @@ -14642,7 +15491,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.GetWebhookRequest; /** * Decodes a GetWebhookRequest message from the specified reader or buffer, length delimited. @@ -14651,7 +15500,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.GetWebhookRequest; /** * Verifies a GetWebhookRequest message. @@ -14665,7 +15514,7 @@ export namespace google { * @param object Plain object * @returns GetWebhookRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.GetWebhookRequest; /** * Creates a plain object from a GetWebhookRequest message. Also converts values to other types if specified. @@ -14673,7 +15522,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.GetWebhookRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this GetWebhookRequest to JSON. @@ -14689,7 +15538,7 @@ export namespace google { parent?: (string|null); /** CreateWebhookRequest webhook */ - webhook?: (google.cloud.dialogflow.cx.v3beta1.IWebhook|null); + webhook?: (google.cloud.dialogflow.cx.v3.IWebhook|null); } /** Represents a CreateWebhookRequest. */ @@ -14699,36 +15548,36 @@ export namespace google { * Constructs a new CreateWebhookRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateWebhookRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.ICreateWebhookRequest); /** CreateWebhookRequest parent. */ public parent: string; /** CreateWebhookRequest webhook. */ - public webhook?: (google.cloud.dialogflow.cx.v3beta1.IWebhook|null); + public webhook?: (google.cloud.dialogflow.cx.v3.IWebhook|null); /** * 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.v3beta1.ICreateWebhookRequest): google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.ICreateWebhookRequest): google.cloud.dialogflow.cx.v3.CreateWebhookRequest; /** - * Encodes the specified CreateWebhookRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest.verify|verify} messages. + * 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.v3beta1.ICreateWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ICreateWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateWebhookRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest.verify|verify} messages. + * 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.v3beta1.ICreateWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICreateWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a CreateWebhookRequest message from the specified reader or buffer. @@ -14738,7 +15587,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.CreateWebhookRequest; /** * Decodes a CreateWebhookRequest message from the specified reader or buffer, length delimited. @@ -14747,7 +15596,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.CreateWebhookRequest; /** * Verifies a CreateWebhookRequest message. @@ -14761,7 +15610,7 @@ export namespace google { * @param object Plain object * @returns CreateWebhookRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CreateWebhookRequest; /** * Creates a plain object from a CreateWebhookRequest message. Also converts values to other types if specified. @@ -14769,7 +15618,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.CreateWebhookRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this CreateWebhookRequest to JSON. @@ -14782,7 +15631,7 @@ export namespace google { interface IUpdateWebhookRequest { /** UpdateWebhookRequest webhook */ - webhook?: (google.cloud.dialogflow.cx.v3beta1.IWebhook|null); + webhook?: (google.cloud.dialogflow.cx.v3.IWebhook|null); /** UpdateWebhookRequest updateMask */ updateMask?: (google.protobuf.IFieldMask|null); @@ -14795,10 +15644,10 @@ export namespace google { * Constructs a new UpdateWebhookRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateWebhookRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest); /** UpdateWebhookRequest webhook. */ - public webhook?: (google.cloud.dialogflow.cx.v3beta1.IWebhook|null); + public webhook?: (google.cloud.dialogflow.cx.v3.IWebhook|null); /** UpdateWebhookRequest updateMask. */ public updateMask?: (google.protobuf.IFieldMask|null); @@ -14808,23 +15657,23 @@ export namespace google { * @param [properties] Properties to set * @returns UpdateWebhookRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateWebhookRequest): google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest): google.cloud.dialogflow.cx.v3.UpdateWebhookRequest; /** - * Encodes the specified UpdateWebhookRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest.verify|verify} messages. + * 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.v3beta1.IUpdateWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateWebhookRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest.verify|verify} messages. + * 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.v3beta1.IUpdateWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an UpdateWebhookRequest message from the specified reader or buffer. @@ -14834,7 +15683,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.UpdateWebhookRequest; /** * Decodes an UpdateWebhookRequest message from the specified reader or buffer, length delimited. @@ -14843,7 +15692,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.UpdateWebhookRequest; /** * Verifies an UpdateWebhookRequest message. @@ -14857,7 +15706,7 @@ export namespace google { * @param object Plain object * @returns UpdateWebhookRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.UpdateWebhookRequest; /** * Creates a plain object from an UpdateWebhookRequest message. Also converts values to other types if specified. @@ -14865,7 +15714,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.UpdateWebhookRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this UpdateWebhookRequest to JSON. @@ -14891,7 +15740,7 @@ export namespace google { * Constructs a new DeleteWebhookRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteWebhookRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest); /** DeleteWebhookRequest name. */ public name: string; @@ -14904,23 +15753,23 @@ export namespace google { * @param [properties] Properties to set * @returns DeleteWebhookRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteWebhookRequest): google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest): google.cloud.dialogflow.cx.v3.DeleteWebhookRequest; /** - * Encodes the specified DeleteWebhookRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest.verify|verify} messages. + * 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.v3beta1.IDeleteWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteWebhookRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest.verify|verify} messages. + * 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.v3beta1.IDeleteWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a DeleteWebhookRequest message from the specified reader or buffer. @@ -14930,7 +15779,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.DeleteWebhookRequest; /** * Decodes a DeleteWebhookRequest message from the specified reader or buffer, length delimited. @@ -14939,7 +15788,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.DeleteWebhookRequest; /** * Verifies a DeleteWebhookRequest message. @@ -14953,7 +15802,7 @@ export namespace google { * @param object Plain object * @returns DeleteWebhookRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.DeleteWebhookRequest; /** * Creates a plain object from a DeleteWebhookRequest message. Also converts values to other types if specified. @@ -14961,7 +15810,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.DeleteWebhookRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this DeleteWebhookRequest to JSON. @@ -14977,19 +15826,19 @@ export namespace google { detectIntentResponseId?: (string|null); /** WebhookRequest fulfillmentInfo */ - fulfillmentInfo?: (google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IFulfillmentInfo|null); + fulfillmentInfo?: (google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo|null); /** WebhookRequest intentInfo */ - intentInfo?: (google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IIntentInfo|null); + intentInfo?: (google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo|null); /** WebhookRequest pageInfo */ - pageInfo?: (google.cloud.dialogflow.cx.v3beta1.IPageInfo|null); + pageInfo?: (google.cloud.dialogflow.cx.v3.IPageInfo|null); /** WebhookRequest sessionInfo */ - sessionInfo?: (google.cloud.dialogflow.cx.v3beta1.ISessionInfo|null); + sessionInfo?: (google.cloud.dialogflow.cx.v3.ISessionInfo|null); /** WebhookRequest messages */ - messages?: (google.cloud.dialogflow.cx.v3beta1.IResponseMessage[]|null); + messages?: (google.cloud.dialogflow.cx.v3.IResponseMessage[]|null); /** WebhookRequest payload */ payload?: (google.protobuf.IStruct|null); @@ -15002,25 +15851,25 @@ export namespace google { * Constructs a new WebhookRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IWebhookRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IWebhookRequest); /** WebhookRequest detectIntentResponseId. */ public detectIntentResponseId: string; /** WebhookRequest fulfillmentInfo. */ - public fulfillmentInfo?: (google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IFulfillmentInfo|null); + public fulfillmentInfo?: (google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo|null); /** WebhookRequest intentInfo. */ - public intentInfo?: (google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IIntentInfo|null); + public intentInfo?: (google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo|null); /** WebhookRequest pageInfo. */ - public pageInfo?: (google.cloud.dialogflow.cx.v3beta1.IPageInfo|null); + public pageInfo?: (google.cloud.dialogflow.cx.v3.IPageInfo|null); /** WebhookRequest sessionInfo. */ - public sessionInfo?: (google.cloud.dialogflow.cx.v3beta1.ISessionInfo|null); + public sessionInfo?: (google.cloud.dialogflow.cx.v3.ISessionInfo|null); /** WebhookRequest messages. */ - public messages: google.cloud.dialogflow.cx.v3beta1.IResponseMessage[]; + public messages: google.cloud.dialogflow.cx.v3.IResponseMessage[]; /** WebhookRequest payload. */ public payload?: (google.protobuf.IStruct|null); @@ -15030,23 +15879,23 @@ export namespace google { * @param [properties] Properties to set * @returns WebhookRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IWebhookRequest): google.cloud.dialogflow.cx.v3beta1.WebhookRequest; + 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.v3beta1.WebhookRequest.verify|verify} messages. + * 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.v3beta1.IWebhookRequest, writer?: $protobuf.Writer): $protobuf.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.v3beta1.WebhookRequest.verify|verify} messages. + * 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.v3beta1.IWebhookRequest, writer?: $protobuf.Writer): $protobuf.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. @@ -15056,7 +15905,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.WebhookRequest; + 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. @@ -15065,7 +15914,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.WebhookRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.WebhookRequest; /** * Verifies a WebhookRequest message. @@ -15079,7 +15928,7 @@ export namespace google { * @param object Plain object * @returns WebhookRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.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. @@ -15087,7 +15936,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.WebhookRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.WebhookRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this WebhookRequest to JSON. @@ -15112,7 +15961,7 @@ export namespace google { * Constructs a new FulfillmentInfo. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IFulfillmentInfo); + constructor(properties?: google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo); /** FulfillmentInfo tag. */ public tag: string; @@ -15122,23 +15971,23 @@ export namespace google { * @param [properties] Properties to set * @returns FulfillmentInfo instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IFulfillmentInfo): google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo; + public static create(properties?: google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo): google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo; /** - * Encodes the specified FulfillmentInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo.verify|verify} messages. + * 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.v3beta1.WebhookRequest.IFulfillmentInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FulfillmentInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo.verify|verify} messages. + * 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.v3beta1.WebhookRequest.IFulfillmentInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a FulfillmentInfo message from the specified reader or buffer. @@ -15148,7 +15997,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo; /** * Decodes a FulfillmentInfo message from the specified reader or buffer, length delimited. @@ -15157,7 +16006,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo; /** * Verifies a FulfillmentInfo message. @@ -15171,7 +16020,7 @@ export namespace google { * @param object Plain object * @returns FulfillmentInfo */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo; /** * Creates a plain object from a FulfillmentInfo message. Also converts values to other types if specified. @@ -15179,7 +16028,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo, 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 FulfillmentInfo to JSON. @@ -15195,7 +16044,7 @@ export namespace google { lastMatchedIntent?: (string|null); /** IntentInfo parameters */ - parameters?: ({ [k: string]: google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IIntentParameterValue }|null); + parameters?: ({ [k: string]: google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IIntentParameterValue }|null); } /** Represents an IntentInfo. */ @@ -15205,36 +16054,36 @@ export namespace google { * Constructs a new IntentInfo. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IIntentInfo); + constructor(properties?: google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo); /** IntentInfo lastMatchedIntent. */ public lastMatchedIntent: string; /** IntentInfo parameters. */ - public parameters: { [k: string]: google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IIntentParameterValue }; + public parameters: { [k: string]: google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IIntentParameterValue }; /** * 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.v3beta1.WebhookRequest.IIntentInfo): google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo; + public static create(properties?: google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo): google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo; /** - * Encodes the specified IntentInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.verify|verify} messages. + * 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.v3beta1.WebhookRequest.IIntentInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified IntentInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.verify|verify} messages. + * 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.v3beta1.WebhookRequest.IIntentInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an IntentInfo message from the specified reader or buffer. @@ -15244,7 +16093,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo; /** * Decodes an IntentInfo message from the specified reader or buffer, length delimited. @@ -15253,7 +16102,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo; /** * Verifies an IntentInfo message. @@ -15267,7 +16116,7 @@ export namespace google { * @param object Plain object * @returns IntentInfo */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo; /** * Creates a plain object from an IntentInfo message. Also converts values to other types if specified. @@ -15275,7 +16124,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this IntentInfo to JSON. @@ -15303,7 +16152,7 @@ export namespace google { * Constructs a new IntentParameterValue. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IIntentParameterValue); + constructor(properties?: google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IIntentParameterValue); /** IntentParameterValue originalValue. */ public originalValue: string; @@ -15316,23 +16165,23 @@ export namespace google { * @param [properties] Properties to set * @returns IntentParameterValue instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IIntentParameterValue): google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue; + public static create(properties?: google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IIntentParameterValue): google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue; /** - * Encodes the specified IntentParameterValue message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue.verify|verify} messages. + * 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.v3beta1.WebhookRequest.IntentInfo.IIntentParameterValue, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IIntentParameterValue, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified IntentParameterValue message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue.verify|verify} messages. + * Encodes the specified IntentParameterValue message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue.verify|verify} messages. * @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.v3beta1.WebhookRequest.IntentInfo.IIntentParameterValue, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IIntentParameterValue, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes an IntentParameterValue message from the specified reader or buffer. @@ -15342,7 +16191,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue; /** * Decodes an IntentParameterValue message from the specified reader or buffer, length delimited. @@ -15351,7 +16200,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue; /** * Verifies an IntentParameterValue message. @@ -15365,7 +16214,7 @@ export namespace google { * @param object Plain object * @returns IntentParameterValue */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue; /** * Creates a plain object from an IntentParameterValue message. Also converts values to other types if specified. @@ -15373,7 +16222,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this IntentParameterValue to JSON. @@ -15388,13 +16237,13 @@ export namespace google { interface IWebhookResponse { /** WebhookResponse fulfillmentResponse */ - fulfillmentResponse?: (google.cloud.dialogflow.cx.v3beta1.WebhookResponse.IFulfillmentResponse|null); + fulfillmentResponse?: (google.cloud.dialogflow.cx.v3.WebhookResponse.IFulfillmentResponse|null); /** WebhookResponse pageInfo */ - pageInfo?: (google.cloud.dialogflow.cx.v3beta1.IPageInfo|null); + pageInfo?: (google.cloud.dialogflow.cx.v3.IPageInfo|null); /** WebhookResponse sessionInfo */ - sessionInfo?: (google.cloud.dialogflow.cx.v3beta1.ISessionInfo|null); + sessionInfo?: (google.cloud.dialogflow.cx.v3.ISessionInfo|null); /** WebhookResponse payload */ payload?: (google.protobuf.IStruct|null); @@ -15413,16 +16262,16 @@ export namespace google { * Constructs a new WebhookResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IWebhookResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3.IWebhookResponse); /** WebhookResponse fulfillmentResponse. */ - public fulfillmentResponse?: (google.cloud.dialogflow.cx.v3beta1.WebhookResponse.IFulfillmentResponse|null); + public fulfillmentResponse?: (google.cloud.dialogflow.cx.v3.WebhookResponse.IFulfillmentResponse|null); /** WebhookResponse pageInfo. */ - public pageInfo?: (google.cloud.dialogflow.cx.v3beta1.IPageInfo|null); + public pageInfo?: (google.cloud.dialogflow.cx.v3.IPageInfo|null); /** WebhookResponse sessionInfo. */ - public sessionInfo?: (google.cloud.dialogflow.cx.v3beta1.ISessionInfo|null); + public sessionInfo?: (google.cloud.dialogflow.cx.v3.ISessionInfo|null); /** WebhookResponse payload. */ public payload?: (google.protobuf.IStruct|null); @@ -15441,23 +16290,23 @@ export namespace google { * @param [properties] Properties to set * @returns WebhookResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IWebhookResponse): google.cloud.dialogflow.cx.v3beta1.WebhookResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3.IWebhookResponse): google.cloud.dialogflow.cx.v3.WebhookResponse; /** - * Encodes the specified WebhookResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.WebhookResponse.verify|verify} messages. + * 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.v3beta1.IWebhookResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IWebhookResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified WebhookResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.WebhookResponse.verify|verify} messages. + * 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.v3beta1.IWebhookResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IWebhookResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a WebhookResponse message from the specified reader or buffer. @@ -15467,7 +16316,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.WebhookResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.WebhookResponse; /** * Decodes a WebhookResponse message from the specified reader or buffer, length delimited. @@ -15476,7 +16325,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.WebhookResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.WebhookResponse; /** * Verifies a WebhookResponse message. @@ -15490,7 +16339,7 @@ export namespace google { * @param object Plain object * @returns WebhookResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.WebhookResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.WebhookResponse; /** * Creates a plain object from a WebhookResponse message. Also converts values to other types if specified. @@ -15498,7 +16347,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.WebhookResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.WebhookResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this WebhookResponse to JSON. @@ -15513,10 +16362,10 @@ export namespace google { interface IFulfillmentResponse { /** FulfillmentResponse messages */ - messages?: (google.cloud.dialogflow.cx.v3beta1.IResponseMessage[]|null); + messages?: (google.cloud.dialogflow.cx.v3.IResponseMessage[]|null); /** FulfillmentResponse mergeBehavior */ - mergeBehavior?: (google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse.MergeBehavior|keyof typeof google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse.MergeBehavior|null); + mergeBehavior?: (google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.MergeBehavior|keyof typeof google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.MergeBehavior|null); } /** Represents a FulfillmentResponse. */ @@ -15526,36 +16375,36 @@ export namespace google { * Constructs a new FulfillmentResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.WebhookResponse.IFulfillmentResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3.WebhookResponse.IFulfillmentResponse); /** FulfillmentResponse messages. */ - public messages: google.cloud.dialogflow.cx.v3beta1.IResponseMessage[]; + public messages: google.cloud.dialogflow.cx.v3.IResponseMessage[]; /** FulfillmentResponse mergeBehavior. */ - public mergeBehavior: (google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse.MergeBehavior|keyof typeof google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse.MergeBehavior); + public mergeBehavior: (google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.MergeBehavior|keyof typeof google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.MergeBehavior); /** * Creates a new FulfillmentResponse instance using the specified properties. * @param [properties] Properties to set * @returns FulfillmentResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.WebhookResponse.IFulfillmentResponse): google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3.WebhookResponse.IFulfillmentResponse): google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse; /** - * Encodes the specified FulfillmentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse.verify|verify} messages. + * 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.v3beta1.WebhookResponse.IFulfillmentResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.WebhookResponse.IFulfillmentResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FulfillmentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse.verify|verify} messages. + * 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.v3beta1.WebhookResponse.IFulfillmentResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.WebhookResponse.IFulfillmentResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a FulfillmentResponse message from the specified reader or buffer. @@ -15565,7 +16414,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse; /** * Decodes a FulfillmentResponse message from the specified reader or buffer, length delimited. @@ -15574,7 +16423,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse; /** * Verifies a FulfillmentResponse message. @@ -15588,7 +16437,7 @@ export namespace google { * @param object Plain object * @returns FulfillmentResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.WebhookResponse.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. @@ -15596,7 +16445,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this FulfillmentResponse to JSON. @@ -15623,7 +16472,7 @@ export namespace google { currentPage?: (string|null); /** PageInfo formInfo */ - formInfo?: (google.cloud.dialogflow.cx.v3beta1.PageInfo.IFormInfo|null); + formInfo?: (google.cloud.dialogflow.cx.v3.PageInfo.IFormInfo|null); } /** Represents a PageInfo. */ @@ -15633,36 +16482,36 @@ export namespace google { * Constructs a new PageInfo. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IPageInfo); + constructor(properties?: google.cloud.dialogflow.cx.v3.IPageInfo); /** PageInfo currentPage. */ public currentPage: string; /** PageInfo formInfo. */ - public formInfo?: (google.cloud.dialogflow.cx.v3beta1.PageInfo.IFormInfo|null); + public formInfo?: (google.cloud.dialogflow.cx.v3.PageInfo.IFormInfo|null); /** * Creates a new PageInfo instance using the specified properties. * @param [properties] Properties to set * @returns PageInfo instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IPageInfo): google.cloud.dialogflow.cx.v3beta1.PageInfo; + public static create(properties?: google.cloud.dialogflow.cx.v3.IPageInfo): google.cloud.dialogflow.cx.v3.PageInfo; /** - * Encodes the specified PageInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.PageInfo.verify|verify} messages. + * 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.v3beta1.IPageInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IPageInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PageInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.PageInfo.verify|verify} messages. + * 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.v3beta1.IPageInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IPageInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a PageInfo message from the specified reader or buffer. @@ -15672,7 +16521,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.PageInfo; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.PageInfo; /** * Decodes a PageInfo message from the specified reader or buffer, length delimited. @@ -15681,7 +16530,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.PageInfo; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.PageInfo; /** * Verifies a PageInfo message. @@ -15695,7 +16544,7 @@ export namespace google { * @param object Plain object * @returns PageInfo */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.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. @@ -15703,7 +16552,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.PageInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.PageInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this PageInfo to JSON. @@ -15718,7 +16567,7 @@ export namespace google { interface IFormInfo { /** FormInfo parameterInfo */ - parameterInfo?: (google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.IParameterInfo[]|null); + parameterInfo?: (google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.IParameterInfo[]|null); } /** Represents a FormInfo. */ @@ -15728,33 +16577,33 @@ export namespace google { * Constructs a new FormInfo. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.PageInfo.IFormInfo); + constructor(properties?: google.cloud.dialogflow.cx.v3.PageInfo.IFormInfo); /** FormInfo parameterInfo. */ - public parameterInfo: google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.IParameterInfo[]; + 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.v3beta1.PageInfo.IFormInfo): google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo; + 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.v3beta1.PageInfo.FormInfo.verify|verify} messages. + * 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.v3beta1.PageInfo.IFormInfo, writer?: $protobuf.Writer): $protobuf.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.v3beta1.PageInfo.FormInfo.verify|verify} messages. + * 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.v3beta1.PageInfo.IFormInfo, writer?: $protobuf.Writer): $protobuf.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. @@ -15764,7 +16613,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo; + 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. @@ -15773,7 +16622,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.PageInfo.FormInfo; /** * Verifies a FormInfo message. @@ -15787,7 +16636,7 @@ export namespace google { * @param object Plain object * @returns FormInfo */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.PageInfo.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. @@ -15795,7 +16644,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.PageInfo.FormInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this FormInfo to JSON. @@ -15816,7 +16665,7 @@ export namespace google { required?: (boolean|null); /** ParameterInfo state */ - state?: (google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo.ParameterState|keyof typeof google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo.ParameterState|null); + 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); @@ -15832,7 +16681,7 @@ export namespace google { * Constructs a new ParameterInfo. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.IParameterInfo); + constructor(properties?: google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.IParameterInfo); /** ParameterInfo displayName. */ public displayName: string; @@ -15841,7 +16690,7 @@ export namespace google { public required: boolean; /** ParameterInfo state. */ - public state: (google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo.ParameterState|keyof typeof google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo.ParameterState); + 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); @@ -15854,23 +16703,23 @@ export namespace google { * @param [properties] Properties to set * @returns ParameterInfo instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.IParameterInfo): google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo; + 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.v3beta1.PageInfo.FormInfo.ParameterInfo.verify|verify} messages. + * 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.v3beta1.PageInfo.FormInfo.IParameterInfo, writer?: $protobuf.Writer): $protobuf.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.v3beta1.PageInfo.FormInfo.ParameterInfo.verify|verify} messages. + * 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.v3beta1.PageInfo.FormInfo.IParameterInfo, writer?: $protobuf.Writer): $protobuf.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. @@ -15880,7 +16729,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo; + 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. @@ -15889,7 +16738,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo; /** * Verifies a ParameterInfo message. @@ -15903,7 +16752,7 @@ export namespace google { * @param object Plain object * @returns ParameterInfo */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.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. @@ -15911,7 +16760,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this ParameterInfo to JSON. @@ -15950,7 +16799,7 @@ export namespace google { * Constructs a new SessionInfo. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ISessionInfo); + constructor(properties?: google.cloud.dialogflow.cx.v3.ISessionInfo); /** SessionInfo session. */ public session: string; @@ -15963,23 +16812,23 @@ export namespace google { * @param [properties] Properties to set * @returns SessionInfo instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ISessionInfo): google.cloud.dialogflow.cx.v3beta1.SessionInfo; + public static create(properties?: google.cloud.dialogflow.cx.v3.ISessionInfo): google.cloud.dialogflow.cx.v3.SessionInfo; /** - * Encodes the specified SessionInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SessionInfo.verify|verify} messages. + * 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.v3beta1.ISessionInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ISessionInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SessionInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SessionInfo.verify|verify} messages. + * 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.v3beta1.ISessionInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ISessionInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a SessionInfo message from the specified reader or buffer. @@ -15989,7 +16838,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.SessionInfo; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.SessionInfo; /** * Decodes a SessionInfo message from the specified reader or buffer, length delimited. @@ -15998,7 +16847,7 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.SessionInfo; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.SessionInfo; /** * Verifies a SessionInfo message. @@ -16012,7 +16861,7 @@ export namespace google { * @param object Plain object * @returns SessionInfo */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.SessionInfo; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.SessionInfo; /** * Creates a plain object from a SessionInfo message. Also converts values to other types if specified. @@ -16020,7 +16869,7 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.SessionInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.SessionInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this SessionInfo to JSON. diff --git a/protos/protos.js b/protos/protos.js index f303b5a8..ed45d180 100644 --- a/protos/protos.js +++ b/protos/protos.js @@ -66,20 +66,20 @@ */ var cx = {}; - cx.v3beta1 = (function() { + cx.v3 = (function() { /** - * Namespace v3beta1. + * Namespace v3. * @memberof google.cloud.dialogflow.cx * @namespace */ - var v3beta1 = {}; + var v3 = {}; - v3beta1.Agents = (function() { + v3.Agents = (function() { /** * Constructs a new Agents service. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents an Agents * @extends $protobuf.rpc.Service * @constructor @@ -96,7 +96,7 @@ /** * Creates new Agents service using the specified rpc implementation. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Agents + * @memberof google.cloud.dialogflow.cx.v3.Agents * @static * @param {$protobuf.RPCImpl} rpcImpl RPC implementation * @param {boolean} [requestDelimited=false] Whether requests are length-delimited @@ -108,140 +108,140 @@ }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Agents#listAgents}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Agents + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Agents#listAgents}. + * @memberof google.cloud.dialogflow.cx.v3.Agents * @typedef ListAgentsCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse} [response] ListAgentsResponse + * @param {google.cloud.dialogflow.cx.v3.ListAgentsResponse} [response] ListAgentsResponse */ /** * Calls ListAgents. * @function listAgents - * @memberof google.cloud.dialogflow.cx.v3beta1.Agents + * @memberof google.cloud.dialogflow.cx.v3.Agents * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IListAgentsRequest} request ListAgentsRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Agents.ListAgentsCallback} callback Node-style callback called with the error, if any, and ListAgentsResponse + * @param {google.cloud.dialogflow.cx.v3.IListAgentsRequest} request ListAgentsRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Agents.ListAgentsCallback} callback Node-style callback called with the error, if any, and ListAgentsResponse * @returns {undefined} * @variation 1 */ Object.defineProperty(Agents.prototype.listAgents = function listAgents(request, callback) { - return this.rpcCall(listAgents, $root.google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest, $root.google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse, request, callback); + return this.rpcCall(listAgents, $root.google.cloud.dialogflow.cx.v3.ListAgentsRequest, $root.google.cloud.dialogflow.cx.v3.ListAgentsResponse, request, callback); }, "name", { value: "ListAgents" }); /** * Calls ListAgents. * @function listAgents - * @memberof google.cloud.dialogflow.cx.v3beta1.Agents + * @memberof google.cloud.dialogflow.cx.v3.Agents * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IListAgentsRequest} request ListAgentsRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3.IListAgentsRequest} request ListAgentsRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Agents#getAgent}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Agents + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Agents#getAgent}. + * @memberof google.cloud.dialogflow.cx.v3.Agents * @typedef GetAgentCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.Agent} [response] Agent + * @param {google.cloud.dialogflow.cx.v3.Agent} [response] Agent */ /** * Calls GetAgent. * @function getAgent - * @memberof google.cloud.dialogflow.cx.v3beta1.Agents + * @memberof google.cloud.dialogflow.cx.v3.Agents * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetAgentRequest} request GetAgentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Agents.GetAgentCallback} callback Node-style callback called with the error, if any, and Agent + * @param {google.cloud.dialogflow.cx.v3.IGetAgentRequest} request GetAgentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Agents.GetAgentCallback} callback Node-style callback called with the error, if any, and Agent * @returns {undefined} * @variation 1 */ Object.defineProperty(Agents.prototype.getAgent = function getAgent(request, callback) { - return this.rpcCall(getAgent, $root.google.cloud.dialogflow.cx.v3beta1.GetAgentRequest, $root.google.cloud.dialogflow.cx.v3beta1.Agent, request, callback); + return this.rpcCall(getAgent, $root.google.cloud.dialogflow.cx.v3.GetAgentRequest, $root.google.cloud.dialogflow.cx.v3.Agent, request, callback); }, "name", { value: "GetAgent" }); /** * Calls GetAgent. * @function getAgent - * @memberof google.cloud.dialogflow.cx.v3beta1.Agents + * @memberof google.cloud.dialogflow.cx.v3.Agents * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetAgentRequest} request GetAgentRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3.IGetAgentRequest} request GetAgentRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Agents#createAgent}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Agents + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Agents#createAgent}. + * @memberof google.cloud.dialogflow.cx.v3.Agents * @typedef CreateAgentCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.Agent} [response] Agent + * @param {google.cloud.dialogflow.cx.v3.Agent} [response] Agent */ /** * Calls CreateAgent. * @function createAgent - * @memberof google.cloud.dialogflow.cx.v3beta1.Agents + * @memberof google.cloud.dialogflow.cx.v3.Agents * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateAgentRequest} request CreateAgentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Agents.CreateAgentCallback} callback Node-style callback called with the error, if any, and Agent + * @param {google.cloud.dialogflow.cx.v3.ICreateAgentRequest} request CreateAgentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Agents.CreateAgentCallback} callback Node-style callback called with the error, if any, and Agent * @returns {undefined} * @variation 1 */ Object.defineProperty(Agents.prototype.createAgent = function createAgent(request, callback) { - return this.rpcCall(createAgent, $root.google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest, $root.google.cloud.dialogflow.cx.v3beta1.Agent, request, callback); + return this.rpcCall(createAgent, $root.google.cloud.dialogflow.cx.v3.CreateAgentRequest, $root.google.cloud.dialogflow.cx.v3.Agent, request, callback); }, "name", { value: "CreateAgent" }); /** * Calls CreateAgent. * @function createAgent - * @memberof google.cloud.dialogflow.cx.v3beta1.Agents + * @memberof google.cloud.dialogflow.cx.v3.Agents * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateAgentRequest} request CreateAgentRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3.ICreateAgentRequest} request CreateAgentRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Agents#updateAgent}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Agents + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Agents#updateAgent}. + * @memberof google.cloud.dialogflow.cx.v3.Agents * @typedef UpdateAgentCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.Agent} [response] Agent + * @param {google.cloud.dialogflow.cx.v3.Agent} [response] Agent */ /** * Calls UpdateAgent. * @function updateAgent - * @memberof google.cloud.dialogflow.cx.v3beta1.Agents + * @memberof google.cloud.dialogflow.cx.v3.Agents * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateAgentRequest} request UpdateAgentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Agents.UpdateAgentCallback} callback Node-style callback called with the error, if any, and Agent + * @param {google.cloud.dialogflow.cx.v3.IUpdateAgentRequest} request UpdateAgentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Agents.UpdateAgentCallback} callback Node-style callback called with the error, if any, and Agent * @returns {undefined} * @variation 1 */ Object.defineProperty(Agents.prototype.updateAgent = function updateAgent(request, callback) { - return this.rpcCall(updateAgent, $root.google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest, $root.google.cloud.dialogflow.cx.v3beta1.Agent, request, callback); + return this.rpcCall(updateAgent, $root.google.cloud.dialogflow.cx.v3.UpdateAgentRequest, $root.google.cloud.dialogflow.cx.v3.Agent, request, callback); }, "name", { value: "UpdateAgent" }); /** * Calls UpdateAgent. * @function updateAgent - * @memberof google.cloud.dialogflow.cx.v3beta1.Agents + * @memberof google.cloud.dialogflow.cx.v3.Agents * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateAgentRequest} request UpdateAgentRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3.IUpdateAgentRequest} request UpdateAgentRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Agents#deleteAgent}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Agents + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Agents#deleteAgent}. + * @memberof google.cloud.dialogflow.cx.v3.Agents * @typedef DeleteAgentCallback * @type {function} * @param {Error|null} error Error, if any @@ -251,30 +251,30 @@ /** * Calls DeleteAgent. * @function deleteAgent - * @memberof google.cloud.dialogflow.cx.v3beta1.Agents + * @memberof google.cloud.dialogflow.cx.v3.Agents * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteAgentRequest} request DeleteAgentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Agents.DeleteAgentCallback} callback Node-style callback called with the error, if any, and Empty + * @param {google.cloud.dialogflow.cx.v3.IDeleteAgentRequest} request DeleteAgentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Agents.DeleteAgentCallback} callback Node-style callback called with the error, if any, and Empty * @returns {undefined} * @variation 1 */ Object.defineProperty(Agents.prototype.deleteAgent = function deleteAgent(request, callback) { - return this.rpcCall(deleteAgent, $root.google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest, $root.google.protobuf.Empty, request, callback); + return this.rpcCall(deleteAgent, $root.google.cloud.dialogflow.cx.v3.DeleteAgentRequest, $root.google.protobuf.Empty, request, callback); }, "name", { value: "DeleteAgent" }); /** * Calls DeleteAgent. * @function deleteAgent - * @memberof google.cloud.dialogflow.cx.v3beta1.Agents + * @memberof google.cloud.dialogflow.cx.v3.Agents * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteAgentRequest} request DeleteAgentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.IDeleteAgentRequest} request DeleteAgentRequest message or plain object * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Agents#exportAgent}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Agents + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Agents#exportAgent}. + * @memberof google.cloud.dialogflow.cx.v3.Agents * @typedef ExportAgentCallback * @type {function} * @param {Error|null} error Error, if any @@ -284,30 +284,30 @@ /** * Calls ExportAgent. * @function exportAgent - * @memberof google.cloud.dialogflow.cx.v3beta1.Agents + * @memberof google.cloud.dialogflow.cx.v3.Agents * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IExportAgentRequest} request ExportAgentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Agents.ExportAgentCallback} callback Node-style callback called with the error, if any, and Operation + * @param {google.cloud.dialogflow.cx.v3.IExportAgentRequest} request ExportAgentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Agents.ExportAgentCallback} callback Node-style callback called with the error, if any, and Operation * @returns {undefined} * @variation 1 */ Object.defineProperty(Agents.prototype.exportAgent = function exportAgent(request, callback) { - return this.rpcCall(exportAgent, $root.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest, $root.google.longrunning.Operation, request, callback); + return this.rpcCall(exportAgent, $root.google.cloud.dialogflow.cx.v3.ExportAgentRequest, $root.google.longrunning.Operation, request, callback); }, "name", { value: "ExportAgent" }); /** * Calls ExportAgent. * @function exportAgent - * @memberof google.cloud.dialogflow.cx.v3beta1.Agents + * @memberof google.cloud.dialogflow.cx.v3.Agents * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IExportAgentRequest} request ExportAgentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.IExportAgentRequest} request ExportAgentRequest message or plain object * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Agents#restoreAgent}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Agents + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Agents#restoreAgent}. + * @memberof google.cloud.dialogflow.cx.v3.Agents * @typedef RestoreAgentCallback * @type {function} * @param {Error|null} error Error, if any @@ -317,23 +317,23 @@ /** * Calls RestoreAgent. * @function restoreAgent - * @memberof google.cloud.dialogflow.cx.v3beta1.Agents + * @memberof google.cloud.dialogflow.cx.v3.Agents * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IRestoreAgentRequest} request RestoreAgentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Agents.RestoreAgentCallback} callback Node-style callback called with the error, if any, and Operation + * @param {google.cloud.dialogflow.cx.v3.IRestoreAgentRequest} request RestoreAgentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Agents.RestoreAgentCallback} callback Node-style callback called with the error, if any, and Operation * @returns {undefined} * @variation 1 */ Object.defineProperty(Agents.prototype.restoreAgent = function restoreAgent(request, callback) { - return this.rpcCall(restoreAgent, $root.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest, $root.google.longrunning.Operation, request, callback); + return this.rpcCall(restoreAgent, $root.google.cloud.dialogflow.cx.v3.RestoreAgentRequest, $root.google.longrunning.Operation, request, callback); }, "name", { value: "RestoreAgent" }); /** * Calls RestoreAgent. * @function restoreAgent - * @memberof google.cloud.dialogflow.cx.v3beta1.Agents + * @memberof google.cloud.dialogflow.cx.v3.Agents * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IRestoreAgentRequest} request RestoreAgentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.IRestoreAgentRequest} request RestoreAgentRequest message or plain object * @returns {Promise} Promise * @variation 2 */ @@ -341,22 +341,22 @@ return Agents; })(); - v3beta1.SpeechToTextSettings = (function() { + v3.SpeechToTextSettings = (function() { /** * Properties of a SpeechToTextSettings. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface ISpeechToTextSettings * @property {boolean|null} [enableSpeechAdaptation] SpeechToTextSettings enableSpeechAdaptation */ /** * Constructs a new SpeechToTextSettings. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a SpeechToTextSettings. * @implements ISpeechToTextSettings * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ISpeechToTextSettings=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ISpeechToTextSettings=} [properties] Properties to set */ function SpeechToTextSettings(properties) { if (properties) @@ -368,7 +368,7 @@ /** * SpeechToTextSettings enableSpeechAdaptation. * @member {boolean} enableSpeechAdaptation - * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings + * @memberof google.cloud.dialogflow.cx.v3.SpeechToTextSettings * @instance */ SpeechToTextSettings.prototype.enableSpeechAdaptation = false; @@ -376,21 +376,21 @@ /** * Creates a new SpeechToTextSettings instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings + * @memberof google.cloud.dialogflow.cx.v3.SpeechToTextSettings * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ISpeechToTextSettings=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings} SpeechToTextSettings instance + * @param {google.cloud.dialogflow.cx.v3.ISpeechToTextSettings=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.SpeechToTextSettings} SpeechToTextSettings instance */ SpeechToTextSettings.create = function create(properties) { return new SpeechToTextSettings(properties); }; /** - * Encodes the specified SpeechToTextSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings.verify|verify} messages. + * Encodes the specified SpeechToTextSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SpeechToTextSettings.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings + * @memberof google.cloud.dialogflow.cx.v3.SpeechToTextSettings * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ISpeechToTextSettings} message SpeechToTextSettings message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ISpeechToTextSettings} message SpeechToTextSettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -403,11 +403,11 @@ }; /** - * Encodes the specified SpeechToTextSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings.verify|verify} messages. + * Encodes the specified SpeechToTextSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SpeechToTextSettings.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings + * @memberof google.cloud.dialogflow.cx.v3.SpeechToTextSettings * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ISpeechToTextSettings} message SpeechToTextSettings message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ISpeechToTextSettings} message SpeechToTextSettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -418,18 +418,18 @@ /** * Decodes a SpeechToTextSettings message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings + * @memberof google.cloud.dialogflow.cx.v3.SpeechToTextSettings * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings} SpeechToTextSettings + * @returns {google.cloud.dialogflow.cx.v3.SpeechToTextSettings} SpeechToTextSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SpeechToTextSettings.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.SpeechToTextSettings(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -447,10 +447,10 @@ /** * Decodes a SpeechToTextSettings message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings + * @memberof google.cloud.dialogflow.cx.v3.SpeechToTextSettings * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings} SpeechToTextSettings + * @returns {google.cloud.dialogflow.cx.v3.SpeechToTextSettings} SpeechToTextSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -463,7 +463,7 @@ /** * Verifies a SpeechToTextSettings message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings + * @memberof google.cloud.dialogflow.cx.v3.SpeechToTextSettings * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -480,15 +480,15 @@ /** * Creates a SpeechToTextSettings message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings + * @memberof google.cloud.dialogflow.cx.v3.SpeechToTextSettings * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings} SpeechToTextSettings + * @returns {google.cloud.dialogflow.cx.v3.SpeechToTextSettings} SpeechToTextSettings */ SpeechToTextSettings.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.SpeechToTextSettings) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings(); + var message = new $root.google.cloud.dialogflow.cx.v3.SpeechToTextSettings(); if (object.enableSpeechAdaptation != null) message.enableSpeechAdaptation = Boolean(object.enableSpeechAdaptation); return message; @@ -497,9 +497,9 @@ /** * Creates a plain object from a SpeechToTextSettings message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings + * @memberof google.cloud.dialogflow.cx.v3.SpeechToTextSettings * @static - * @param {google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings} message SpeechToTextSettings + * @param {google.cloud.dialogflow.cx.v3.SpeechToTextSettings} message SpeechToTextSettings * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -517,7 +517,7 @@ /** * Converts this SpeechToTextSettings to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings + * @memberof google.cloud.dialogflow.cx.v3.SpeechToTextSettings * @instance * @returns {Object.} JSON object */ @@ -528,11 +528,11 @@ return SpeechToTextSettings; })(); - v3beta1.Agent = (function() { + v3.Agent = (function() { /** * Properties of an Agent. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface IAgent * @property {string|null} [name] Agent name * @property {string|null} [displayName] Agent displayName @@ -540,7 +540,7 @@ * @property {string|null} [timeZone] Agent timeZone * @property {string|null} [description] Agent description * @property {string|null} [avatarUri] Agent avatarUri - * @property {google.cloud.dialogflow.cx.v3beta1.ISpeechToTextSettings|null} [speechToTextSettings] Agent speechToTextSettings + * @property {google.cloud.dialogflow.cx.v3.ISpeechToTextSettings|null} [speechToTextSettings] Agent speechToTextSettings * @property {string|null} [startFlow] Agent startFlow * @property {boolean|null} [enableStackdriverLogging] Agent enableStackdriverLogging * @property {boolean|null} [enableSpellCorrection] Agent enableSpellCorrection @@ -548,11 +548,11 @@ /** * Constructs a new Agent. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents an Agent. * @implements IAgent * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IAgent=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IAgent=} [properties] Properties to set */ function Agent(properties) { if (properties) @@ -564,7 +564,7 @@ /** * Agent name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent + * @memberof google.cloud.dialogflow.cx.v3.Agent * @instance */ Agent.prototype.name = ""; @@ -572,7 +572,7 @@ /** * Agent displayName. * @member {string} displayName - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent + * @memberof google.cloud.dialogflow.cx.v3.Agent * @instance */ Agent.prototype.displayName = ""; @@ -580,7 +580,7 @@ /** * Agent defaultLanguageCode. * @member {string} defaultLanguageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent + * @memberof google.cloud.dialogflow.cx.v3.Agent * @instance */ Agent.prototype.defaultLanguageCode = ""; @@ -588,7 +588,7 @@ /** * Agent timeZone. * @member {string} timeZone - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent + * @memberof google.cloud.dialogflow.cx.v3.Agent * @instance */ Agent.prototype.timeZone = ""; @@ -596,7 +596,7 @@ /** * Agent description. * @member {string} description - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent + * @memberof google.cloud.dialogflow.cx.v3.Agent * @instance */ Agent.prototype.description = ""; @@ -604,15 +604,15 @@ /** * Agent avatarUri. * @member {string} avatarUri - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent + * @memberof google.cloud.dialogflow.cx.v3.Agent * @instance */ Agent.prototype.avatarUri = ""; /** * Agent speechToTextSettings. - * @member {google.cloud.dialogflow.cx.v3beta1.ISpeechToTextSettings|null|undefined} speechToTextSettings - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent + * @member {google.cloud.dialogflow.cx.v3.ISpeechToTextSettings|null|undefined} speechToTextSettings + * @memberof google.cloud.dialogflow.cx.v3.Agent * @instance */ Agent.prototype.speechToTextSettings = null; @@ -620,7 +620,7 @@ /** * Agent startFlow. * @member {string} startFlow - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent + * @memberof google.cloud.dialogflow.cx.v3.Agent * @instance */ Agent.prototype.startFlow = ""; @@ -628,7 +628,7 @@ /** * Agent enableStackdriverLogging. * @member {boolean} enableStackdriverLogging - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent + * @memberof google.cloud.dialogflow.cx.v3.Agent * @instance */ Agent.prototype.enableStackdriverLogging = false; @@ -636,7 +636,7 @@ /** * Agent enableSpellCorrection. * @member {boolean} enableSpellCorrection - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent + * @memberof google.cloud.dialogflow.cx.v3.Agent * @instance */ Agent.prototype.enableSpellCorrection = false; @@ -644,21 +644,21 @@ /** * Creates a new Agent instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent + * @memberof google.cloud.dialogflow.cx.v3.Agent * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IAgent=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Agent} Agent instance + * @param {google.cloud.dialogflow.cx.v3.IAgent=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.Agent} Agent instance */ Agent.create = function create(properties) { return new Agent(properties); }; /** - * Encodes the specified Agent message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Agent.verify|verify} messages. + * Encodes the specified Agent message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Agent.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent + * @memberof google.cloud.dialogflow.cx.v3.Agent * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IAgent} message Agent message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IAgent} message Agent message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -678,7 +678,7 @@ if (message.avatarUri != null && Object.hasOwnProperty.call(message, "avatarUri")) writer.uint32(/* id 7, wireType 2 =*/58).string(message.avatarUri); if (message.speechToTextSettings != null && Object.hasOwnProperty.call(message, "speechToTextSettings")) - $root.google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings.encode(message.speechToTextSettings, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.SpeechToTextSettings.encode(message.speechToTextSettings, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); if (message.startFlow != null && Object.hasOwnProperty.call(message, "startFlow")) writer.uint32(/* id 16, wireType 2 =*/130).string(message.startFlow); if (message.enableStackdriverLogging != null && Object.hasOwnProperty.call(message, "enableStackdriverLogging")) @@ -689,11 +689,11 @@ }; /** - * Encodes the specified Agent message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Agent.verify|verify} messages. + * Encodes the specified Agent message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Agent.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent + * @memberof google.cloud.dialogflow.cx.v3.Agent * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IAgent} message Agent message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IAgent} message Agent message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -704,18 +704,18 @@ /** * Decodes an Agent message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent + * @memberof google.cloud.dialogflow.cx.v3.Agent * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.Agent} Agent + * @returns {google.cloud.dialogflow.cx.v3.Agent} Agent * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Agent.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Agent(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Agent(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -738,7 +738,7 @@ message.avatarUri = reader.string(); break; case 13: - message.speechToTextSettings = $root.google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings.decode(reader, reader.uint32()); + message.speechToTextSettings = $root.google.cloud.dialogflow.cx.v3.SpeechToTextSettings.decode(reader, reader.uint32()); break; case 16: message.startFlow = reader.string(); @@ -760,10 +760,10 @@ /** * Decodes an Agent message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent + * @memberof google.cloud.dialogflow.cx.v3.Agent * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Agent} Agent + * @returns {google.cloud.dialogflow.cx.v3.Agent} Agent * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -776,7 +776,7 @@ /** * Verifies an Agent message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent + * @memberof google.cloud.dialogflow.cx.v3.Agent * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -803,7 +803,7 @@ if (!$util.isString(message.avatarUri)) return "avatarUri: string expected"; if (message.speechToTextSettings != null && message.hasOwnProperty("speechToTextSettings")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings.verify(message.speechToTextSettings); + var error = $root.google.cloud.dialogflow.cx.v3.SpeechToTextSettings.verify(message.speechToTextSettings); if (error) return "speechToTextSettings." + error; } @@ -822,15 +822,15 @@ /** * Creates an Agent message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent + * @memberof google.cloud.dialogflow.cx.v3.Agent * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Agent} Agent + * @returns {google.cloud.dialogflow.cx.v3.Agent} Agent */ Agent.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Agent) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.Agent) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Agent(); + var message = new $root.google.cloud.dialogflow.cx.v3.Agent(); if (object.name != null) message.name = String(object.name); if (object.displayName != null) @@ -845,8 +845,8 @@ message.avatarUri = String(object.avatarUri); if (object.speechToTextSettings != null) { if (typeof object.speechToTextSettings !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Agent.speechToTextSettings: object expected"); - message.speechToTextSettings = $root.google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings.fromObject(object.speechToTextSettings); + throw TypeError(".google.cloud.dialogflow.cx.v3.Agent.speechToTextSettings: object expected"); + message.speechToTextSettings = $root.google.cloud.dialogflow.cx.v3.SpeechToTextSettings.fromObject(object.speechToTextSettings); } if (object.startFlow != null) message.startFlow = String(object.startFlow); @@ -860,9 +860,9 @@ /** * Creates a plain object from an Agent message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent + * @memberof google.cloud.dialogflow.cx.v3.Agent * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Agent} message Agent + * @param {google.cloud.dialogflow.cx.v3.Agent} message Agent * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -895,7 +895,7 @@ if (message.avatarUri != null && message.hasOwnProperty("avatarUri")) object.avatarUri = message.avatarUri; if (message.speechToTextSettings != null && message.hasOwnProperty("speechToTextSettings")) - object.speechToTextSettings = $root.google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings.toObject(message.speechToTextSettings, options); + object.speechToTextSettings = $root.google.cloud.dialogflow.cx.v3.SpeechToTextSettings.toObject(message.speechToTextSettings, options); if (message.startFlow != null && message.hasOwnProperty("startFlow")) object.startFlow = message.startFlow; if (message.enableStackdriverLogging != null && message.hasOwnProperty("enableStackdriverLogging")) @@ -908,7 +908,7 @@ /** * Converts this Agent to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Agent + * @memberof google.cloud.dialogflow.cx.v3.Agent * @instance * @returns {Object.} JSON object */ @@ -919,11 +919,11 @@ return Agent; })(); - v3beta1.ListAgentsRequest = (function() { + v3.ListAgentsRequest = (function() { /** * Properties of a ListAgentsRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface IListAgentsRequest * @property {string|null} [parent] ListAgentsRequest parent * @property {number|null} [pageSize] ListAgentsRequest pageSize @@ -932,11 +932,11 @@ /** * Constructs a new ListAgentsRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a ListAgentsRequest. * @implements IListAgentsRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListAgentsRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IListAgentsRequest=} [properties] Properties to set */ function ListAgentsRequest(properties) { if (properties) @@ -948,7 +948,7 @@ /** * ListAgentsRequest parent. * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListAgentsRequest * @instance */ ListAgentsRequest.prototype.parent = ""; @@ -956,7 +956,7 @@ /** * ListAgentsRequest pageSize. * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListAgentsRequest * @instance */ ListAgentsRequest.prototype.pageSize = 0; @@ -964,7 +964,7 @@ /** * ListAgentsRequest pageToken. * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListAgentsRequest * @instance */ ListAgentsRequest.prototype.pageToken = ""; @@ -972,21 +972,21 @@ /** * Creates a new ListAgentsRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListAgentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListAgentsRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest} ListAgentsRequest instance + * @param {google.cloud.dialogflow.cx.v3.IListAgentsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListAgentsRequest} ListAgentsRequest instance */ ListAgentsRequest.create = function create(properties) { return new ListAgentsRequest(properties); }; /** - * Encodes the specified ListAgentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest.verify|verify} messages. + * Encodes the specified ListAgentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListAgentsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListAgentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListAgentsRequest} message ListAgentsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListAgentsRequest} message ListAgentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -1003,11 +1003,11 @@ }; /** - * Encodes the specified ListAgentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest.verify|verify} messages. + * Encodes the specified ListAgentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListAgentsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListAgentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListAgentsRequest} message ListAgentsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListAgentsRequest} message ListAgentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -1018,18 +1018,18 @@ /** * Decodes a ListAgentsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListAgentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest} ListAgentsRequest + * @returns {google.cloud.dialogflow.cx.v3.ListAgentsRequest} ListAgentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ListAgentsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListAgentsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -1053,10 +1053,10 @@ /** * Decodes a ListAgentsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListAgentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest} ListAgentsRequest + * @returns {google.cloud.dialogflow.cx.v3.ListAgentsRequest} ListAgentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -1069,7 +1069,7 @@ /** * Verifies a ListAgentsRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListAgentsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -1092,15 +1092,15 @@ /** * Creates a ListAgentsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListAgentsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest} ListAgentsRequest + * @returns {google.cloud.dialogflow.cx.v3.ListAgentsRequest} ListAgentsRequest */ ListAgentsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListAgentsRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.ListAgentsRequest(); if (object.parent != null) message.parent = String(object.parent); if (object.pageSize != null) @@ -1113,9 +1113,9 @@ /** * Creates a plain object from a ListAgentsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListAgentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest} message ListAgentsRequest + * @param {google.cloud.dialogflow.cx.v3.ListAgentsRequest} message ListAgentsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -1140,7 +1140,7 @@ /** * Converts this ListAgentsRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListAgentsRequest * @instance * @returns {Object.} JSON object */ @@ -1151,23 +1151,23 @@ return ListAgentsRequest; })(); - v3beta1.ListAgentsResponse = (function() { + v3.ListAgentsResponse = (function() { /** * Properties of a ListAgentsResponse. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface IListAgentsResponse - * @property {Array.|null} [agents] ListAgentsResponse agents + * @property {Array.|null} [agents] ListAgentsResponse agents * @property {string|null} [nextPageToken] ListAgentsResponse nextPageToken */ /** * Constructs a new ListAgentsResponse. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a ListAgentsResponse. * @implements IListAgentsResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListAgentsResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IListAgentsResponse=} [properties] Properties to set */ function ListAgentsResponse(properties) { this.agents = []; @@ -1179,8 +1179,8 @@ /** * ListAgentsResponse agents. - * @member {Array.} agents - * @memberof google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse + * @member {Array.} agents + * @memberof google.cloud.dialogflow.cx.v3.ListAgentsResponse * @instance */ ListAgentsResponse.prototype.agents = $util.emptyArray; @@ -1188,7 +1188,7 @@ /** * ListAgentsResponse nextPageToken. * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListAgentsResponse * @instance */ ListAgentsResponse.prototype.nextPageToken = ""; @@ -1196,21 +1196,21 @@ /** * Creates a new ListAgentsResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListAgentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListAgentsResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse} ListAgentsResponse instance + * @param {google.cloud.dialogflow.cx.v3.IListAgentsResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListAgentsResponse} ListAgentsResponse instance */ ListAgentsResponse.create = function create(properties) { return new ListAgentsResponse(properties); }; /** - * Encodes the specified ListAgentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse.verify|verify} messages. + * Encodes the specified ListAgentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListAgentsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListAgentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListAgentsResponse} message ListAgentsResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListAgentsResponse} message ListAgentsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -1219,18 +1219,18 @@ writer = $Writer.create(); if (message.agents != null && message.agents.length) for (var i = 0; i < message.agents.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.Agent.encode(message.agents[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.Agent.encode(message.agents[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified ListAgentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse.verify|verify} messages. + * Encodes the specified ListAgentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListAgentsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListAgentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListAgentsResponse} message ListAgentsResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListAgentsResponse} message ListAgentsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -1241,25 +1241,25 @@ /** * Decodes a ListAgentsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListAgentsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse} ListAgentsResponse + * @returns {google.cloud.dialogflow.cx.v3.ListAgentsResponse} ListAgentsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ListAgentsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListAgentsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: if (!(message.agents && message.agents.length)) message.agents = []; - message.agents.push($root.google.cloud.dialogflow.cx.v3beta1.Agent.decode(reader, reader.uint32())); + message.agents.push($root.google.cloud.dialogflow.cx.v3.Agent.decode(reader, reader.uint32())); break; case 2: message.nextPageToken = reader.string(); @@ -1275,10 +1275,10 @@ /** * Decodes a ListAgentsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListAgentsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse} ListAgentsResponse + * @returns {google.cloud.dialogflow.cx.v3.ListAgentsResponse} ListAgentsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -1291,7 +1291,7 @@ /** * Verifies a ListAgentsResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListAgentsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -1303,7 +1303,7 @@ if (!Array.isArray(message.agents)) return "agents: array expected"; for (var i = 0; i < message.agents.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Agent.verify(message.agents[i]); + var error = $root.google.cloud.dialogflow.cx.v3.Agent.verify(message.agents[i]); if (error) return "agents." + error; } @@ -1317,23 +1317,23 @@ /** * Creates a ListAgentsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListAgentsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse} ListAgentsResponse + * @returns {google.cloud.dialogflow.cx.v3.ListAgentsResponse} ListAgentsResponse */ ListAgentsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListAgentsResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse(); + var message = new $root.google.cloud.dialogflow.cx.v3.ListAgentsResponse(); if (object.agents) { if (!Array.isArray(object.agents)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse.agents: array expected"); + throw TypeError(".google.cloud.dialogflow.cx.v3.ListAgentsResponse.agents: array expected"); message.agents = []; for (var i = 0; i < object.agents.length; ++i) { if (typeof object.agents[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse.agents: object expected"); - message.agents[i] = $root.google.cloud.dialogflow.cx.v3beta1.Agent.fromObject(object.agents[i]); + throw TypeError(".google.cloud.dialogflow.cx.v3.ListAgentsResponse.agents: object expected"); + message.agents[i] = $root.google.cloud.dialogflow.cx.v3.Agent.fromObject(object.agents[i]); } } if (object.nextPageToken != null) @@ -1344,9 +1344,9 @@ /** * Creates a plain object from a ListAgentsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListAgentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse} message ListAgentsResponse + * @param {google.cloud.dialogflow.cx.v3.ListAgentsResponse} message ListAgentsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -1361,7 +1361,7 @@ if (message.agents && message.agents.length) { object.agents = []; for (var j = 0; j < message.agents.length; ++j) - object.agents[j] = $root.google.cloud.dialogflow.cx.v3beta1.Agent.toObject(message.agents[j], options); + object.agents[j] = $root.google.cloud.dialogflow.cx.v3.Agent.toObject(message.agents[j], options); } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) object.nextPageToken = message.nextPageToken; @@ -1371,7 +1371,7 @@ /** * Converts this ListAgentsResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListAgentsResponse * @instance * @returns {Object.} JSON object */ @@ -1382,22 +1382,22 @@ return ListAgentsResponse; })(); - v3beta1.GetAgentRequest = (function() { + v3.GetAgentRequest = (function() { /** * Properties of a GetAgentRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface IGetAgentRequest * @property {string|null} [name] GetAgentRequest name */ /** * Constructs a new GetAgentRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a GetAgentRequest. * @implements IGetAgentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IGetAgentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IGetAgentRequest=} [properties] Properties to set */ function GetAgentRequest(properties) { if (properties) @@ -1409,7 +1409,7 @@ /** * GetAgentRequest name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.GetAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.GetAgentRequest * @instance */ GetAgentRequest.prototype.name = ""; @@ -1417,21 +1417,21 @@ /** * Creates a new GetAgentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.GetAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.GetAgentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetAgentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.GetAgentRequest} GetAgentRequest instance + * @param {google.cloud.dialogflow.cx.v3.IGetAgentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.GetAgentRequest} GetAgentRequest instance */ GetAgentRequest.create = function create(properties) { return new GetAgentRequest(properties); }; /** - * Encodes the specified GetAgentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetAgentRequest.verify|verify} messages. + * Encodes the specified GetAgentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetAgentRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.GetAgentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetAgentRequest} message GetAgentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IGetAgentRequest} message GetAgentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -1444,11 +1444,11 @@ }; /** - * Encodes the specified GetAgentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetAgentRequest.verify|verify} messages. + * Encodes the specified GetAgentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetAgentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.GetAgentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetAgentRequest} message GetAgentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IGetAgentRequest} message GetAgentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -1459,18 +1459,18 @@ /** * Decodes a GetAgentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.GetAgentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.GetAgentRequest} GetAgentRequest + * @returns {google.cloud.dialogflow.cx.v3.GetAgentRequest} GetAgentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GetAgentRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.GetAgentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.GetAgentRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -1488,10 +1488,10 @@ /** * Decodes a GetAgentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.GetAgentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.GetAgentRequest} GetAgentRequest + * @returns {google.cloud.dialogflow.cx.v3.GetAgentRequest} GetAgentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -1504,7 +1504,7 @@ /** * Verifies a GetAgentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.GetAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.GetAgentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -1521,15 +1521,15 @@ /** * Creates a GetAgentRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.GetAgentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.GetAgentRequest} GetAgentRequest + * @returns {google.cloud.dialogflow.cx.v3.GetAgentRequest} GetAgentRequest */ GetAgentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GetAgentRequest) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.GetAgentRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.GetAgentRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.GetAgentRequest(); if (object.name != null) message.name = String(object.name); return message; @@ -1538,9 +1538,9 @@ /** * Creates a plain object from a GetAgentRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.GetAgentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.GetAgentRequest} message GetAgentRequest + * @param {google.cloud.dialogflow.cx.v3.GetAgentRequest} message GetAgentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -1558,7 +1558,7 @@ /** * Converts this GetAgentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.GetAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.GetAgentRequest * @instance * @returns {Object.} JSON object */ @@ -1569,23 +1569,23 @@ return GetAgentRequest; })(); - v3beta1.CreateAgentRequest = (function() { + v3.CreateAgentRequest = (function() { /** * Properties of a CreateAgentRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface ICreateAgentRequest * @property {string|null} [parent] CreateAgentRequest parent - * @property {google.cloud.dialogflow.cx.v3beta1.IAgent|null} [agent] CreateAgentRequest agent + * @property {google.cloud.dialogflow.cx.v3.IAgent|null} [agent] CreateAgentRequest agent */ /** * Constructs a new CreateAgentRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a CreateAgentRequest. * @implements ICreateAgentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateAgentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ICreateAgentRequest=} [properties] Properties to set */ function CreateAgentRequest(properties) { if (properties) @@ -1597,15 +1597,15 @@ /** * CreateAgentRequest parent. * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateAgentRequest * @instance */ CreateAgentRequest.prototype.parent = ""; /** * CreateAgentRequest agent. - * @member {google.cloud.dialogflow.cx.v3beta1.IAgent|null|undefined} agent - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest + * @member {google.cloud.dialogflow.cx.v3.IAgent|null|undefined} agent + * @memberof google.cloud.dialogflow.cx.v3.CreateAgentRequest * @instance */ CreateAgentRequest.prototype.agent = null; @@ -1613,21 +1613,21 @@ /** * Creates a new CreateAgentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateAgentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateAgentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest} CreateAgentRequest instance + * @param {google.cloud.dialogflow.cx.v3.ICreateAgentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.CreateAgentRequest} CreateAgentRequest instance */ CreateAgentRequest.create = function create(properties) { return new CreateAgentRequest(properties); }; /** - * Encodes the specified CreateAgentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest.verify|verify} messages. + * Encodes the specified CreateAgentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateAgentRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateAgentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateAgentRequest} message CreateAgentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ICreateAgentRequest} message CreateAgentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -1637,16 +1637,16 @@ if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); if (message.agent != null && Object.hasOwnProperty.call(message, "agent")) - $root.google.cloud.dialogflow.cx.v3beta1.Agent.encode(message.agent, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.Agent.encode(message.agent, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified CreateAgentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest.verify|verify} messages. + * Encodes the specified CreateAgentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateAgentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateAgentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateAgentRequest} message CreateAgentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ICreateAgentRequest} message CreateAgentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -1657,18 +1657,18 @@ /** * Decodes a CreateAgentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateAgentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest} CreateAgentRequest + * @returns {google.cloud.dialogflow.cx.v3.CreateAgentRequest} CreateAgentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ CreateAgentRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.CreateAgentRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -1676,7 +1676,7 @@ message.parent = reader.string(); break; case 2: - message.agent = $root.google.cloud.dialogflow.cx.v3beta1.Agent.decode(reader, reader.uint32()); + message.agent = $root.google.cloud.dialogflow.cx.v3.Agent.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -1689,10 +1689,10 @@ /** * Decodes a CreateAgentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateAgentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest} CreateAgentRequest + * @returns {google.cloud.dialogflow.cx.v3.CreateAgentRequest} CreateAgentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -1705,7 +1705,7 @@ /** * Verifies a CreateAgentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateAgentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -1717,7 +1717,7 @@ if (!$util.isString(message.parent)) return "parent: string expected"; if (message.agent != null && message.hasOwnProperty("agent")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Agent.verify(message.agent); + var error = $root.google.cloud.dialogflow.cx.v3.Agent.verify(message.agent); if (error) return "agent." + error; } @@ -1727,21 +1727,21 @@ /** * Creates a CreateAgentRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateAgentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest} CreateAgentRequest + * @returns {google.cloud.dialogflow.cx.v3.CreateAgentRequest} CreateAgentRequest */ CreateAgentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.CreateAgentRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.CreateAgentRequest(); if (object.parent != null) message.parent = String(object.parent); if (object.agent != null) { if (typeof object.agent !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest.agent: object expected"); - message.agent = $root.google.cloud.dialogflow.cx.v3beta1.Agent.fromObject(object.agent); + throw TypeError(".google.cloud.dialogflow.cx.v3.CreateAgentRequest.agent: object expected"); + message.agent = $root.google.cloud.dialogflow.cx.v3.Agent.fromObject(object.agent); } return message; }; @@ -1749,9 +1749,9 @@ /** * Creates a plain object from a CreateAgentRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateAgentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest} message CreateAgentRequest + * @param {google.cloud.dialogflow.cx.v3.CreateAgentRequest} message CreateAgentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -1766,14 +1766,14 @@ if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; if (message.agent != null && message.hasOwnProperty("agent")) - object.agent = $root.google.cloud.dialogflow.cx.v3beta1.Agent.toObject(message.agent, options); + object.agent = $root.google.cloud.dialogflow.cx.v3.Agent.toObject(message.agent, options); return object; }; /** * Converts this CreateAgentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateAgentRequest * @instance * @returns {Object.} JSON object */ @@ -1784,23 +1784,23 @@ return CreateAgentRequest; })(); - v3beta1.UpdateAgentRequest = (function() { + v3.UpdateAgentRequest = (function() { /** * Properties of an UpdateAgentRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface IUpdateAgentRequest - * @property {google.cloud.dialogflow.cx.v3beta1.IAgent|null} [agent] UpdateAgentRequest agent + * @property {google.cloud.dialogflow.cx.v3.IAgent|null} [agent] UpdateAgentRequest agent * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateAgentRequest updateMask */ /** * Constructs a new UpdateAgentRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents an UpdateAgentRequest. * @implements IUpdateAgentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateAgentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IUpdateAgentRequest=} [properties] Properties to set */ function UpdateAgentRequest(properties) { if (properties) @@ -1811,8 +1811,8 @@ /** * UpdateAgentRequest agent. - * @member {google.cloud.dialogflow.cx.v3beta1.IAgent|null|undefined} agent - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest + * @member {google.cloud.dialogflow.cx.v3.IAgent|null|undefined} agent + * @memberof google.cloud.dialogflow.cx.v3.UpdateAgentRequest * @instance */ UpdateAgentRequest.prototype.agent = null; @@ -1820,7 +1820,7 @@ /** * UpdateAgentRequest updateMask. * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateAgentRequest * @instance */ UpdateAgentRequest.prototype.updateMask = null; @@ -1828,21 +1828,21 @@ /** * Creates a new UpdateAgentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateAgentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateAgentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest} UpdateAgentRequest instance + * @param {google.cloud.dialogflow.cx.v3.IUpdateAgentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.UpdateAgentRequest} UpdateAgentRequest instance */ UpdateAgentRequest.create = function create(properties) { return new UpdateAgentRequest(properties); }; /** - * Encodes the specified UpdateAgentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest.verify|verify} messages. + * Encodes the specified UpdateAgentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateAgentRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateAgentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateAgentRequest} message UpdateAgentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IUpdateAgentRequest} message UpdateAgentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -1850,18 +1850,18 @@ if (!writer) writer = $Writer.create(); if (message.agent != null && Object.hasOwnProperty.call(message, "agent")) - $root.google.cloud.dialogflow.cx.v3beta1.Agent.encode(message.agent, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.Agent.encode(message.agent, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified UpdateAgentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest.verify|verify} messages. + * Encodes the specified UpdateAgentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateAgentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateAgentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateAgentRequest} message UpdateAgentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IUpdateAgentRequest} message UpdateAgentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -1872,23 +1872,23 @@ /** * Decodes an UpdateAgentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateAgentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest} UpdateAgentRequest + * @returns {google.cloud.dialogflow.cx.v3.UpdateAgentRequest} UpdateAgentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UpdateAgentRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.UpdateAgentRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.agent = $root.google.cloud.dialogflow.cx.v3beta1.Agent.decode(reader, reader.uint32()); + message.agent = $root.google.cloud.dialogflow.cx.v3.Agent.decode(reader, reader.uint32()); break; case 2: message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); @@ -1904,10 +1904,10 @@ /** * Decodes an UpdateAgentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateAgentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest} UpdateAgentRequest + * @returns {google.cloud.dialogflow.cx.v3.UpdateAgentRequest} UpdateAgentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -1920,7 +1920,7 @@ /** * Verifies an UpdateAgentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateAgentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -1929,7 +1929,7 @@ if (typeof message !== "object" || message === null) return "object expected"; if (message.agent != null && message.hasOwnProperty("agent")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Agent.verify(message.agent); + var error = $root.google.cloud.dialogflow.cx.v3.Agent.verify(message.agent); if (error) return "agent." + error; } @@ -1944,23 +1944,23 @@ /** * Creates an UpdateAgentRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateAgentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest} UpdateAgentRequest + * @returns {google.cloud.dialogflow.cx.v3.UpdateAgentRequest} UpdateAgentRequest */ UpdateAgentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.UpdateAgentRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.UpdateAgentRequest(); if (object.agent != null) { if (typeof object.agent !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest.agent: object expected"); - message.agent = $root.google.cloud.dialogflow.cx.v3beta1.Agent.fromObject(object.agent); + throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateAgentRequest.agent: object expected"); + message.agent = $root.google.cloud.dialogflow.cx.v3.Agent.fromObject(object.agent); } if (object.updateMask != null) { if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest.updateMask: object expected"); + throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateAgentRequest.updateMask: object expected"); message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } return message; @@ -1969,9 +1969,9 @@ /** * Creates a plain object from an UpdateAgentRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateAgentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest} message UpdateAgentRequest + * @param {google.cloud.dialogflow.cx.v3.UpdateAgentRequest} message UpdateAgentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -1984,7 +1984,7 @@ object.updateMask = null; } if (message.agent != null && message.hasOwnProperty("agent")) - object.agent = $root.google.cloud.dialogflow.cx.v3beta1.Agent.toObject(message.agent, options); + object.agent = $root.google.cloud.dialogflow.cx.v3.Agent.toObject(message.agent, options); if (message.updateMask != null && message.hasOwnProperty("updateMask")) object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; @@ -1993,7 +1993,7 @@ /** * Converts this UpdateAgentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateAgentRequest * @instance * @returns {Object.} JSON object */ @@ -2004,22 +2004,22 @@ return UpdateAgentRequest; })(); - v3beta1.DeleteAgentRequest = (function() { + v3.DeleteAgentRequest = (function() { /** * Properties of a DeleteAgentRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface IDeleteAgentRequest * @property {string|null} [name] DeleteAgentRequest name */ /** * Constructs a new DeleteAgentRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a DeleteAgentRequest. * @implements IDeleteAgentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteAgentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IDeleteAgentRequest=} [properties] Properties to set */ function DeleteAgentRequest(properties) { if (properties) @@ -2031,7 +2031,7 @@ /** * DeleteAgentRequest name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteAgentRequest * @instance */ DeleteAgentRequest.prototype.name = ""; @@ -2039,21 +2039,21 @@ /** * Creates a new DeleteAgentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteAgentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteAgentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest} DeleteAgentRequest instance + * @param {google.cloud.dialogflow.cx.v3.IDeleteAgentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.DeleteAgentRequest} DeleteAgentRequest instance */ DeleteAgentRequest.create = function create(properties) { return new DeleteAgentRequest(properties); }; /** - * Encodes the specified DeleteAgentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest.verify|verify} messages. + * Encodes the specified DeleteAgentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteAgentRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteAgentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteAgentRequest} message DeleteAgentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IDeleteAgentRequest} message DeleteAgentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -2066,11 +2066,11 @@ }; /** - * Encodes the specified DeleteAgentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest.verify|verify} messages. + * Encodes the specified DeleteAgentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteAgentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteAgentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteAgentRequest} message DeleteAgentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IDeleteAgentRequest} message DeleteAgentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -2081,18 +2081,18 @@ /** * Decodes a DeleteAgentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteAgentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest} DeleteAgentRequest + * @returns {google.cloud.dialogflow.cx.v3.DeleteAgentRequest} DeleteAgentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ DeleteAgentRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.DeleteAgentRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -2110,10 +2110,10 @@ /** * Decodes a DeleteAgentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteAgentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest} DeleteAgentRequest + * @returns {google.cloud.dialogflow.cx.v3.DeleteAgentRequest} DeleteAgentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -2126,7 +2126,7 @@ /** * Verifies a DeleteAgentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteAgentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -2143,15 +2143,15 @@ /** * Creates a DeleteAgentRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteAgentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest} DeleteAgentRequest + * @returns {google.cloud.dialogflow.cx.v3.DeleteAgentRequest} DeleteAgentRequest */ DeleteAgentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.DeleteAgentRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.DeleteAgentRequest(); if (object.name != null) message.name = String(object.name); return message; @@ -2160,9 +2160,9 @@ /** * Creates a plain object from a DeleteAgentRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteAgentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest} message DeleteAgentRequest + * @param {google.cloud.dialogflow.cx.v3.DeleteAgentRequest} message DeleteAgentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -2180,7 +2180,7 @@ /** * Converts this DeleteAgentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteAgentRequest * @instance * @returns {Object.} JSON object */ @@ -2191,11 +2191,11 @@ return DeleteAgentRequest; })(); - v3beta1.ExportAgentRequest = (function() { + v3.ExportAgentRequest = (function() { /** * Properties of an ExportAgentRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface IExportAgentRequest * @property {string|null} [name] ExportAgentRequest name * @property {string|null} [agentUri] ExportAgentRequest agentUri @@ -2203,11 +2203,11 @@ /** * Constructs a new ExportAgentRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents an ExportAgentRequest. * @implements IExportAgentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IExportAgentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IExportAgentRequest=} [properties] Properties to set */ function ExportAgentRequest(properties) { if (properties) @@ -2219,7 +2219,7 @@ /** * ExportAgentRequest name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.ExportAgentRequest * @instance */ ExportAgentRequest.prototype.name = ""; @@ -2227,7 +2227,7 @@ /** * ExportAgentRequest agentUri. * @member {string} agentUri - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.ExportAgentRequest * @instance */ ExportAgentRequest.prototype.agentUri = ""; @@ -2235,21 +2235,21 @@ /** * Creates a new ExportAgentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.ExportAgentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IExportAgentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest} ExportAgentRequest instance + * @param {google.cloud.dialogflow.cx.v3.IExportAgentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ExportAgentRequest} ExportAgentRequest instance */ ExportAgentRequest.create = function create(properties) { return new ExportAgentRequest(properties); }; /** - * Encodes the specified ExportAgentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.verify|verify} messages. + * Encodes the specified ExportAgentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportAgentRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.ExportAgentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IExportAgentRequest} message ExportAgentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IExportAgentRequest} message ExportAgentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -2264,11 +2264,11 @@ }; /** - * Encodes the specified ExportAgentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.verify|verify} messages. + * Encodes the specified ExportAgentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportAgentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.ExportAgentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IExportAgentRequest} message ExportAgentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IExportAgentRequest} message ExportAgentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -2279,18 +2279,18 @@ /** * Decodes an ExportAgentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.ExportAgentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest} ExportAgentRequest + * @returns {google.cloud.dialogflow.cx.v3.ExportAgentRequest} ExportAgentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ExportAgentRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ExportAgentRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -2311,10 +2311,10 @@ /** * Decodes an ExportAgentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.ExportAgentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest} ExportAgentRequest + * @returns {google.cloud.dialogflow.cx.v3.ExportAgentRequest} ExportAgentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -2327,7 +2327,7 @@ /** * Verifies an ExportAgentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.ExportAgentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -2347,15 +2347,15 @@ /** * Creates an ExportAgentRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.ExportAgentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest} ExportAgentRequest + * @returns {google.cloud.dialogflow.cx.v3.ExportAgentRequest} ExportAgentRequest */ ExportAgentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ExportAgentRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.ExportAgentRequest(); if (object.name != null) message.name = String(object.name); if (object.agentUri != null) @@ -2366,9 +2366,9 @@ /** * Creates a plain object from an ExportAgentRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.ExportAgentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest} message ExportAgentRequest + * @param {google.cloud.dialogflow.cx.v3.ExportAgentRequest} message ExportAgentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -2390,7 +2390,7 @@ /** * Converts this ExportAgentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.ExportAgentRequest * @instance * @returns {Object.} JSON object */ @@ -2401,11 +2401,11 @@ return ExportAgentRequest; })(); - v3beta1.ExportAgentResponse = (function() { + v3.ExportAgentResponse = (function() { /** * Properties of an ExportAgentResponse. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface IExportAgentResponse * @property {string|null} [agentUri] ExportAgentResponse agentUri * @property {Uint8Array|null} [agentContent] ExportAgentResponse agentContent @@ -2413,11 +2413,11 @@ /** * Constructs a new ExportAgentResponse. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents an ExportAgentResponse. * @implements IExportAgentResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IExportAgentResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IExportAgentResponse=} [properties] Properties to set */ function ExportAgentResponse(properties) { if (properties) @@ -2429,7 +2429,7 @@ /** * ExportAgentResponse agentUri. * @member {string} agentUri - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse + * @memberof google.cloud.dialogflow.cx.v3.ExportAgentResponse * @instance */ ExportAgentResponse.prototype.agentUri = ""; @@ -2437,7 +2437,7 @@ /** * ExportAgentResponse agentContent. * @member {Uint8Array} agentContent - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse + * @memberof google.cloud.dialogflow.cx.v3.ExportAgentResponse * @instance */ ExportAgentResponse.prototype.agentContent = $util.newBuffer([]); @@ -2448,7 +2448,7 @@ /** * ExportAgentResponse agent. * @member {"agentUri"|"agentContent"|undefined} agent - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse + * @memberof google.cloud.dialogflow.cx.v3.ExportAgentResponse * @instance */ Object.defineProperty(ExportAgentResponse.prototype, "agent", { @@ -2459,21 +2459,21 @@ /** * Creates a new ExportAgentResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse + * @memberof google.cloud.dialogflow.cx.v3.ExportAgentResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IExportAgentResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse} ExportAgentResponse instance + * @param {google.cloud.dialogflow.cx.v3.IExportAgentResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ExportAgentResponse} ExportAgentResponse instance */ ExportAgentResponse.create = function create(properties) { return new ExportAgentResponse(properties); }; /** - * Encodes the specified ExportAgentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse.verify|verify} messages. + * Encodes the specified ExportAgentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportAgentResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse + * @memberof google.cloud.dialogflow.cx.v3.ExportAgentResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IExportAgentResponse} message ExportAgentResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IExportAgentResponse} message ExportAgentResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -2488,11 +2488,11 @@ }; /** - * Encodes the specified ExportAgentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse.verify|verify} messages. + * Encodes the specified ExportAgentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportAgentResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse + * @memberof google.cloud.dialogflow.cx.v3.ExportAgentResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IExportAgentResponse} message ExportAgentResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IExportAgentResponse} message ExportAgentResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -2503,18 +2503,18 @@ /** * Decodes an ExportAgentResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse + * @memberof google.cloud.dialogflow.cx.v3.ExportAgentResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse} ExportAgentResponse + * @returns {google.cloud.dialogflow.cx.v3.ExportAgentResponse} ExportAgentResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ExportAgentResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ExportAgentResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -2535,10 +2535,10 @@ /** * Decodes an ExportAgentResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse + * @memberof google.cloud.dialogflow.cx.v3.ExportAgentResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse} ExportAgentResponse + * @returns {google.cloud.dialogflow.cx.v3.ExportAgentResponse} ExportAgentResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -2551,7 +2551,7 @@ /** * Verifies an ExportAgentResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse + * @memberof google.cloud.dialogflow.cx.v3.ExportAgentResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -2578,15 +2578,15 @@ /** * Creates an ExportAgentResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse + * @memberof google.cloud.dialogflow.cx.v3.ExportAgentResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse} ExportAgentResponse + * @returns {google.cloud.dialogflow.cx.v3.ExportAgentResponse} ExportAgentResponse */ ExportAgentResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ExportAgentResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse(); + var message = new $root.google.cloud.dialogflow.cx.v3.ExportAgentResponse(); if (object.agentUri != null) message.agentUri = String(object.agentUri); if (object.agentContent != null) @@ -2600,9 +2600,9 @@ /** * Creates a plain object from an ExportAgentResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse + * @memberof google.cloud.dialogflow.cx.v3.ExportAgentResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse} message ExportAgentResponse + * @param {google.cloud.dialogflow.cx.v3.ExportAgentResponse} message ExportAgentResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -2626,7 +2626,7 @@ /** * Converts this ExportAgentResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse + * @memberof google.cloud.dialogflow.cx.v3.ExportAgentResponse * @instance * @returns {Object.} JSON object */ @@ -2637,11 +2637,11 @@ return ExportAgentResponse; })(); - v3beta1.RestoreAgentRequest = (function() { + v3.RestoreAgentRequest = (function() { /** * Properties of a RestoreAgentRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface IRestoreAgentRequest * @property {string|null} [name] RestoreAgentRequest name * @property {string|null} [agentUri] RestoreAgentRequest agentUri @@ -2650,11 +2650,11 @@ /** * Constructs a new RestoreAgentRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a RestoreAgentRequest. * @implements IRestoreAgentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IRestoreAgentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IRestoreAgentRequest=} [properties] Properties to set */ function RestoreAgentRequest(properties) { if (properties) @@ -2666,7 +2666,7 @@ /** * RestoreAgentRequest name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.RestoreAgentRequest * @instance */ RestoreAgentRequest.prototype.name = ""; @@ -2674,7 +2674,7 @@ /** * RestoreAgentRequest agentUri. * @member {string} agentUri - * @memberof google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.RestoreAgentRequest * @instance */ RestoreAgentRequest.prototype.agentUri = ""; @@ -2682,7 +2682,7 @@ /** * RestoreAgentRequest agentContent. * @member {Uint8Array} agentContent - * @memberof google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.RestoreAgentRequest * @instance */ RestoreAgentRequest.prototype.agentContent = $util.newBuffer([]); @@ -2693,7 +2693,7 @@ /** * RestoreAgentRequest agent. * @member {"agentUri"|"agentContent"|undefined} agent - * @memberof google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.RestoreAgentRequest * @instance */ Object.defineProperty(RestoreAgentRequest.prototype, "agent", { @@ -2704,21 +2704,21 @@ /** * Creates a new RestoreAgentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.RestoreAgentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IRestoreAgentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest} RestoreAgentRequest instance + * @param {google.cloud.dialogflow.cx.v3.IRestoreAgentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.RestoreAgentRequest} RestoreAgentRequest instance */ RestoreAgentRequest.create = function create(properties) { return new RestoreAgentRequest(properties); }; /** - * Encodes the specified RestoreAgentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.verify|verify} messages. + * Encodes the specified RestoreAgentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RestoreAgentRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.RestoreAgentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IRestoreAgentRequest} message RestoreAgentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IRestoreAgentRequest} message RestoreAgentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -2735,11 +2735,11 @@ }; /** - * Encodes the specified RestoreAgentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.verify|verify} messages. + * Encodes the specified RestoreAgentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.RestoreAgentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.RestoreAgentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IRestoreAgentRequest} message RestoreAgentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IRestoreAgentRequest} message RestoreAgentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -2750,18 +2750,18 @@ /** * Decodes a RestoreAgentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.RestoreAgentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest} RestoreAgentRequest + * @returns {google.cloud.dialogflow.cx.v3.RestoreAgentRequest} RestoreAgentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RestoreAgentRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.RestoreAgentRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -2785,10 +2785,10 @@ /** * Decodes a RestoreAgentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.RestoreAgentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest} RestoreAgentRequest + * @returns {google.cloud.dialogflow.cx.v3.RestoreAgentRequest} RestoreAgentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -2801,7 +2801,7 @@ /** * Verifies a RestoreAgentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.RestoreAgentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -2831,15 +2831,15 @@ /** * Creates a RestoreAgentRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.RestoreAgentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest} RestoreAgentRequest + * @returns {google.cloud.dialogflow.cx.v3.RestoreAgentRequest} RestoreAgentRequest */ RestoreAgentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.RestoreAgentRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.RestoreAgentRequest(); if (object.name != null) message.name = String(object.name); if (object.agentUri != null) @@ -2855,9 +2855,9 @@ /** * Creates a plain object from a RestoreAgentRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.RestoreAgentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest} message RestoreAgentRequest + * @param {google.cloud.dialogflow.cx.v3.RestoreAgentRequest} message RestoreAgentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -2885,7 +2885,7 @@ /** * Converts this RestoreAgentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest + * @memberof google.cloud.dialogflow.cx.v3.RestoreAgentRequest * @instance * @returns {Object.} JSON object */ @@ -2896,11 +2896,11 @@ return RestoreAgentRequest; })(); - v3beta1.Flows = (function() { + v3.Flows = (function() { /** * Constructs a new Flows service. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a Flows * @extends $protobuf.rpc.Service * @constructor @@ -2917,7 +2917,7 @@ /** * Creates new Flows service using the specified rpc implementation. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Flows + * @memberof google.cloud.dialogflow.cx.v3.Flows * @static * @param {$protobuf.RPCImpl} rpcImpl RPC implementation * @param {boolean} [requestDelimited=false] Whether requests are length-delimited @@ -2929,41 +2929,41 @@ }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows#createFlow}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Flows + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Flows#createFlow}. + * @memberof google.cloud.dialogflow.cx.v3.Flows * @typedef CreateFlowCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.Flow} [response] Flow + * @param {google.cloud.dialogflow.cx.v3.Flow} [response] Flow */ /** * Calls CreateFlow. * @function createFlow - * @memberof google.cloud.dialogflow.cx.v3beta1.Flows + * @memberof google.cloud.dialogflow.cx.v3.Flows * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateFlowRequest} request CreateFlowRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Flows.CreateFlowCallback} callback Node-style callback called with the error, if any, and Flow + * @param {google.cloud.dialogflow.cx.v3.ICreateFlowRequest} request CreateFlowRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Flows.CreateFlowCallback} callback Node-style callback called with the error, if any, and Flow * @returns {undefined} * @variation 1 */ Object.defineProperty(Flows.prototype.createFlow = function createFlow(request, callback) { - return this.rpcCall(createFlow, $root.google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest, $root.google.cloud.dialogflow.cx.v3beta1.Flow, request, callback); + return this.rpcCall(createFlow, $root.google.cloud.dialogflow.cx.v3.CreateFlowRequest, $root.google.cloud.dialogflow.cx.v3.Flow, request, callback); }, "name", { value: "CreateFlow" }); /** * Calls CreateFlow. * @function createFlow - * @memberof google.cloud.dialogflow.cx.v3beta1.Flows + * @memberof google.cloud.dialogflow.cx.v3.Flows * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateFlowRequest} request CreateFlowRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3.ICreateFlowRequest} request CreateFlowRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows#deleteFlow}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Flows + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Flows#deleteFlow}. + * @memberof google.cloud.dialogflow.cx.v3.Flows * @typedef DeleteFlowCallback * @type {function} * @param {Error|null} error Error, if any @@ -2973,129 +2973,129 @@ /** * Calls DeleteFlow. * @function deleteFlow - * @memberof google.cloud.dialogflow.cx.v3beta1.Flows + * @memberof google.cloud.dialogflow.cx.v3.Flows * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteFlowRequest} request DeleteFlowRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Flows.DeleteFlowCallback} callback Node-style callback called with the error, if any, and Empty + * @param {google.cloud.dialogflow.cx.v3.IDeleteFlowRequest} request DeleteFlowRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Flows.DeleteFlowCallback} callback Node-style callback called with the error, if any, and Empty * @returns {undefined} * @variation 1 */ Object.defineProperty(Flows.prototype.deleteFlow = function deleteFlow(request, callback) { - return this.rpcCall(deleteFlow, $root.google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest, $root.google.protobuf.Empty, request, callback); + return this.rpcCall(deleteFlow, $root.google.cloud.dialogflow.cx.v3.DeleteFlowRequest, $root.google.protobuf.Empty, request, callback); }, "name", { value: "DeleteFlow" }); /** * Calls DeleteFlow. * @function deleteFlow - * @memberof google.cloud.dialogflow.cx.v3beta1.Flows + * @memberof google.cloud.dialogflow.cx.v3.Flows * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteFlowRequest} request DeleteFlowRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.IDeleteFlowRequest} request DeleteFlowRequest message or plain object * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows#listFlows}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Flows + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Flows#listFlows}. + * @memberof google.cloud.dialogflow.cx.v3.Flows * @typedef ListFlowsCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse} [response] ListFlowsResponse + * @param {google.cloud.dialogflow.cx.v3.ListFlowsResponse} [response] ListFlowsResponse */ /** * Calls ListFlows. * @function listFlows - * @memberof google.cloud.dialogflow.cx.v3beta1.Flows + * @memberof google.cloud.dialogflow.cx.v3.Flows * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest} request ListFlowsRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Flows.ListFlowsCallback} callback Node-style callback called with the error, if any, and ListFlowsResponse + * @param {google.cloud.dialogflow.cx.v3.IListFlowsRequest} request ListFlowsRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Flows.ListFlowsCallback} callback Node-style callback called with the error, if any, and ListFlowsResponse * @returns {undefined} * @variation 1 */ Object.defineProperty(Flows.prototype.listFlows = function listFlows(request, callback) { - return this.rpcCall(listFlows, $root.google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest, $root.google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse, request, callback); + return this.rpcCall(listFlows, $root.google.cloud.dialogflow.cx.v3.ListFlowsRequest, $root.google.cloud.dialogflow.cx.v3.ListFlowsResponse, request, callback); }, "name", { value: "ListFlows" }); /** * Calls ListFlows. * @function listFlows - * @memberof google.cloud.dialogflow.cx.v3beta1.Flows + * @memberof google.cloud.dialogflow.cx.v3.Flows * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest} request ListFlowsRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3.IListFlowsRequest} request ListFlowsRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows#getFlow}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Flows + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Flows#getFlow}. + * @memberof google.cloud.dialogflow.cx.v3.Flows * @typedef GetFlowCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.Flow} [response] Flow + * @param {google.cloud.dialogflow.cx.v3.Flow} [response] Flow */ /** * Calls GetFlow. * @function getFlow - * @memberof google.cloud.dialogflow.cx.v3beta1.Flows + * @memberof google.cloud.dialogflow.cx.v3.Flows * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetFlowRequest} request GetFlowRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Flows.GetFlowCallback} callback Node-style callback called with the error, if any, and Flow + * @param {google.cloud.dialogflow.cx.v3.IGetFlowRequest} request GetFlowRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Flows.GetFlowCallback} callback Node-style callback called with the error, if any, and Flow * @returns {undefined} * @variation 1 */ Object.defineProperty(Flows.prototype.getFlow = function getFlow(request, callback) { - return this.rpcCall(getFlow, $root.google.cloud.dialogflow.cx.v3beta1.GetFlowRequest, $root.google.cloud.dialogflow.cx.v3beta1.Flow, request, callback); + return this.rpcCall(getFlow, $root.google.cloud.dialogflow.cx.v3.GetFlowRequest, $root.google.cloud.dialogflow.cx.v3.Flow, request, callback); }, "name", { value: "GetFlow" }); /** * Calls GetFlow. * @function getFlow - * @memberof google.cloud.dialogflow.cx.v3beta1.Flows + * @memberof google.cloud.dialogflow.cx.v3.Flows * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetFlowRequest} request GetFlowRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3.IGetFlowRequest} request GetFlowRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows#updateFlow}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Flows + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Flows#updateFlow}. + * @memberof google.cloud.dialogflow.cx.v3.Flows * @typedef UpdateFlowCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.Flow} [response] Flow + * @param {google.cloud.dialogflow.cx.v3.Flow} [response] Flow */ /** * Calls UpdateFlow. * @function updateFlow - * @memberof google.cloud.dialogflow.cx.v3beta1.Flows + * @memberof google.cloud.dialogflow.cx.v3.Flows * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateFlowRequest} request UpdateFlowRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Flows.UpdateFlowCallback} callback Node-style callback called with the error, if any, and Flow + * @param {google.cloud.dialogflow.cx.v3.IUpdateFlowRequest} request UpdateFlowRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Flows.UpdateFlowCallback} callback Node-style callback called with the error, if any, and Flow * @returns {undefined} * @variation 1 */ Object.defineProperty(Flows.prototype.updateFlow = function updateFlow(request, callback) { - return this.rpcCall(updateFlow, $root.google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest, $root.google.cloud.dialogflow.cx.v3beta1.Flow, request, callback); + return this.rpcCall(updateFlow, $root.google.cloud.dialogflow.cx.v3.UpdateFlowRequest, $root.google.cloud.dialogflow.cx.v3.Flow, request, callback); }, "name", { value: "UpdateFlow" }); /** * Calls UpdateFlow. * @function updateFlow - * @memberof google.cloud.dialogflow.cx.v3beta1.Flows + * @memberof google.cloud.dialogflow.cx.v3.Flows * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateFlowRequest} request UpdateFlowRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3.IUpdateFlowRequest} request UpdateFlowRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows#trainFlow}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Flows + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Flows#trainFlow}. + * @memberof google.cloud.dialogflow.cx.v3.Flows * @typedef TrainFlowCallback * @type {function} * @param {Error|null} error Error, if any @@ -3105,23 +3105,23 @@ /** * Calls TrainFlow. * @function trainFlow - * @memberof google.cloud.dialogflow.cx.v3beta1.Flows + * @memberof google.cloud.dialogflow.cx.v3.Flows * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ITrainFlowRequest} request TrainFlowRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Flows.TrainFlowCallback} callback Node-style callback called with the error, if any, and Operation + * @param {google.cloud.dialogflow.cx.v3.ITrainFlowRequest} request TrainFlowRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Flows.TrainFlowCallback} callback Node-style callback called with the error, if any, and Operation * @returns {undefined} * @variation 1 */ Object.defineProperty(Flows.prototype.trainFlow = function trainFlow(request, callback) { - return this.rpcCall(trainFlow, $root.google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest, $root.google.longrunning.Operation, request, callback); + return this.rpcCall(trainFlow, $root.google.cloud.dialogflow.cx.v3.TrainFlowRequest, $root.google.longrunning.Operation, request, callback); }, "name", { value: "TrainFlow" }); /** * Calls TrainFlow. * @function trainFlow - * @memberof google.cloud.dialogflow.cx.v3beta1.Flows + * @memberof google.cloud.dialogflow.cx.v3.Flows * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ITrainFlowRequest} request TrainFlowRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.ITrainFlowRequest} request TrainFlowRequest message or plain object * @returns {Promise} Promise * @variation 2 */ @@ -3129,24 +3129,24 @@ return Flows; })(); - v3beta1.NluSettings = (function() { + v3.NluSettings = (function() { /** * Properties of a NluSettings. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface INluSettings - * @property {google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelType|null} [modelType] NluSettings modelType + * @property {google.cloud.dialogflow.cx.v3.NluSettings.ModelType|null} [modelType] NluSettings modelType * @property {number|null} [classificationThreshold] NluSettings classificationThreshold - * @property {google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelTrainingMode|null} [modelTrainingMode] NluSettings modelTrainingMode + * @property {google.cloud.dialogflow.cx.v3.NluSettings.ModelTrainingMode|null} [modelTrainingMode] NluSettings modelTrainingMode */ /** * Constructs a new NluSettings. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a NluSettings. * @implements INluSettings * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.INluSettings=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.INluSettings=} [properties] Properties to set */ function NluSettings(properties) { if (properties) @@ -3157,8 +3157,8 @@ /** * NluSettings modelType. - * @member {google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelType} modelType - * @memberof google.cloud.dialogflow.cx.v3beta1.NluSettings + * @member {google.cloud.dialogflow.cx.v3.NluSettings.ModelType} modelType + * @memberof google.cloud.dialogflow.cx.v3.NluSettings * @instance */ NluSettings.prototype.modelType = 0; @@ -3166,15 +3166,15 @@ /** * NluSettings classificationThreshold. * @member {number} classificationThreshold - * @memberof google.cloud.dialogflow.cx.v3beta1.NluSettings + * @memberof google.cloud.dialogflow.cx.v3.NluSettings * @instance */ NluSettings.prototype.classificationThreshold = 0; /** * NluSettings modelTrainingMode. - * @member {google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelTrainingMode} modelTrainingMode - * @memberof google.cloud.dialogflow.cx.v3beta1.NluSettings + * @member {google.cloud.dialogflow.cx.v3.NluSettings.ModelTrainingMode} modelTrainingMode + * @memberof google.cloud.dialogflow.cx.v3.NluSettings * @instance */ NluSettings.prototype.modelTrainingMode = 0; @@ -3182,21 +3182,21 @@ /** * Creates a new NluSettings instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.NluSettings + * @memberof google.cloud.dialogflow.cx.v3.NluSettings * @static - * @param {google.cloud.dialogflow.cx.v3beta1.INluSettings=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.NluSettings} NluSettings instance + * @param {google.cloud.dialogflow.cx.v3.INluSettings=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.NluSettings} NluSettings instance */ NluSettings.create = function create(properties) { return new NluSettings(properties); }; /** - * Encodes the specified NluSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.NluSettings.verify|verify} messages. + * Encodes the specified NluSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.NluSettings.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.NluSettings + * @memberof google.cloud.dialogflow.cx.v3.NluSettings * @static - * @param {google.cloud.dialogflow.cx.v3beta1.INluSettings} message NluSettings message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.INluSettings} message NluSettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -3213,11 +3213,11 @@ }; /** - * Encodes the specified NluSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.NluSettings.verify|verify} messages. + * Encodes the specified NluSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.NluSettings.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.NluSettings + * @memberof google.cloud.dialogflow.cx.v3.NluSettings * @static - * @param {google.cloud.dialogflow.cx.v3beta1.INluSettings} message NluSettings message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.INluSettings} message NluSettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -3228,18 +3228,18 @@ /** * Decodes a NluSettings message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.NluSettings + * @memberof google.cloud.dialogflow.cx.v3.NluSettings * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.NluSettings} NluSettings + * @returns {google.cloud.dialogflow.cx.v3.NluSettings} NluSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ NluSettings.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.NluSettings(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.NluSettings(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -3263,10 +3263,10 @@ /** * Decodes a NluSettings message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.NluSettings + * @memberof google.cloud.dialogflow.cx.v3.NluSettings * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.NluSettings} NluSettings + * @returns {google.cloud.dialogflow.cx.v3.NluSettings} NluSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -3279,7 +3279,7 @@ /** * Verifies a NluSettings message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.NluSettings + * @memberof google.cloud.dialogflow.cx.v3.NluSettings * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -3314,15 +3314,15 @@ /** * Creates a NluSettings message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.NluSettings + * @memberof google.cloud.dialogflow.cx.v3.NluSettings * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.NluSettings} NluSettings + * @returns {google.cloud.dialogflow.cx.v3.NluSettings} NluSettings */ NluSettings.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.NluSettings) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.NluSettings) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.NluSettings(); + var message = new $root.google.cloud.dialogflow.cx.v3.NluSettings(); switch (object.modelType) { case "MODEL_TYPE_UNSPECIFIED": case 0: @@ -3359,9 +3359,9 @@ /** * Creates a plain object from a NluSettings message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.NluSettings + * @memberof google.cloud.dialogflow.cx.v3.NluSettings * @static - * @param {google.cloud.dialogflow.cx.v3beta1.NluSettings} message NluSettings + * @param {google.cloud.dialogflow.cx.v3.NluSettings} message NluSettings * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -3375,18 +3375,18 @@ object.modelTrainingMode = options.enums === String ? "MODEL_TRAINING_MODE_UNSPECIFIED" : 0; } if (message.modelType != null && message.hasOwnProperty("modelType")) - object.modelType = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelType[message.modelType] : message.modelType; + object.modelType = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.NluSettings.ModelType[message.modelType] : message.modelType; if (message.classificationThreshold != null && message.hasOwnProperty("classificationThreshold")) object.classificationThreshold = options.json && !isFinite(message.classificationThreshold) ? String(message.classificationThreshold) : message.classificationThreshold; if (message.modelTrainingMode != null && message.hasOwnProperty("modelTrainingMode")) - object.modelTrainingMode = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelTrainingMode[message.modelTrainingMode] : message.modelTrainingMode; + object.modelTrainingMode = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.NluSettings.ModelTrainingMode[message.modelTrainingMode] : message.modelTrainingMode; return object; }; /** * Converts this NluSettings to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.NluSettings + * @memberof google.cloud.dialogflow.cx.v3.NluSettings * @instance * @returns {Object.} JSON object */ @@ -3396,7 +3396,7 @@ /** * ModelType enum. - * @name google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelType + * @name google.cloud.dialogflow.cx.v3.NluSettings.ModelType * @enum {number} * @property {number} MODEL_TYPE_UNSPECIFIED=0 MODEL_TYPE_UNSPECIFIED value * @property {number} MODEL_TYPE_STANDARD=1 MODEL_TYPE_STANDARD value @@ -3412,7 +3412,7 @@ /** * ModelTrainingMode enum. - * @name google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelTrainingMode + * @name google.cloud.dialogflow.cx.v3.NluSettings.ModelTrainingMode * @enum {number} * @property {number} MODEL_TRAINING_MODE_UNSPECIFIED=0 MODEL_TRAINING_MODE_UNSPECIFIED value * @property {number} MODEL_TRAINING_MODE_AUTOMATIC=1 MODEL_TRAINING_MODE_AUTOMATIC value @@ -3429,27 +3429,27 @@ return NluSettings; })(); - v3beta1.Flow = (function() { + v3.Flow = (function() { /** * Properties of a Flow. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface IFlow * @property {string|null} [name] Flow name * @property {string|null} [displayName] Flow displayName * @property {string|null} [description] Flow description - * @property {Array.|null} [transitionRoutes] Flow transitionRoutes - * @property {Array.|null} [eventHandlers] Flow eventHandlers - * @property {google.cloud.dialogflow.cx.v3beta1.INluSettings|null} [nluSettings] Flow nluSettings + * @property {Array.|null} [transitionRoutes] Flow transitionRoutes + * @property {Array.|null} [eventHandlers] Flow eventHandlers + * @property {google.cloud.dialogflow.cx.v3.INluSettings|null} [nluSettings] Flow nluSettings */ /** * Constructs a new Flow. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a Flow. * @implements IFlow * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IFlow=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IFlow=} [properties] Properties to set */ function Flow(properties) { this.transitionRoutes = []; @@ -3463,7 +3463,7 @@ /** * Flow name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.Flow + * @memberof google.cloud.dialogflow.cx.v3.Flow * @instance */ Flow.prototype.name = ""; @@ -3471,7 +3471,7 @@ /** * Flow displayName. * @member {string} displayName - * @memberof google.cloud.dialogflow.cx.v3beta1.Flow + * @memberof google.cloud.dialogflow.cx.v3.Flow * @instance */ Flow.prototype.displayName = ""; @@ -3479,31 +3479,31 @@ /** * Flow description. * @member {string} description - * @memberof google.cloud.dialogflow.cx.v3beta1.Flow + * @memberof google.cloud.dialogflow.cx.v3.Flow * @instance */ Flow.prototype.description = ""; /** * Flow transitionRoutes. - * @member {Array.} transitionRoutes - * @memberof google.cloud.dialogflow.cx.v3beta1.Flow + * @member {Array.} transitionRoutes + * @memberof google.cloud.dialogflow.cx.v3.Flow * @instance */ Flow.prototype.transitionRoutes = $util.emptyArray; /** * Flow eventHandlers. - * @member {Array.} eventHandlers - * @memberof google.cloud.dialogflow.cx.v3beta1.Flow + * @member {Array.} eventHandlers + * @memberof google.cloud.dialogflow.cx.v3.Flow * @instance */ Flow.prototype.eventHandlers = $util.emptyArray; /** * Flow nluSettings. - * @member {google.cloud.dialogflow.cx.v3beta1.INluSettings|null|undefined} nluSettings - * @memberof google.cloud.dialogflow.cx.v3beta1.Flow + * @member {google.cloud.dialogflow.cx.v3.INluSettings|null|undefined} nluSettings + * @memberof google.cloud.dialogflow.cx.v3.Flow * @instance */ Flow.prototype.nluSettings = null; @@ -3511,21 +3511,21 @@ /** * Creates a new Flow instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Flow + * @memberof google.cloud.dialogflow.cx.v3.Flow * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IFlow=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Flow} Flow instance + * @param {google.cloud.dialogflow.cx.v3.IFlow=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.Flow} Flow instance */ Flow.create = function create(properties) { return new Flow(properties); }; /** - * Encodes the specified Flow message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Flow.verify|verify} messages. + * Encodes the specified Flow message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Flow.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Flow + * @memberof google.cloud.dialogflow.cx.v3.Flow * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IFlow} message Flow message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IFlow} message Flow message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -3540,21 +3540,21 @@ writer.uint32(/* id 3, wireType 2 =*/26).string(message.description); if (message.transitionRoutes != null && message.transitionRoutes.length) for (var i = 0; i < message.transitionRoutes.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.encode(message.transitionRoutes[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.TransitionRoute.encode(message.transitionRoutes[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); if (message.eventHandlers != null && message.eventHandlers.length) for (var i = 0; i < message.eventHandlers.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.EventHandler.encode(message.eventHandlers[i], writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.EventHandler.encode(message.eventHandlers[i], writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); if (message.nluSettings != null && Object.hasOwnProperty.call(message, "nluSettings")) - $root.google.cloud.dialogflow.cx.v3beta1.NluSettings.encode(message.nluSettings, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.NluSettings.encode(message.nluSettings, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); return writer; }; /** - * Encodes the specified Flow message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Flow.verify|verify} messages. + * Encodes the specified Flow message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Flow.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Flow + * @memberof google.cloud.dialogflow.cx.v3.Flow * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IFlow} message Flow message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IFlow} message Flow message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -3565,18 +3565,18 @@ /** * Decodes a Flow message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Flow + * @memberof google.cloud.dialogflow.cx.v3.Flow * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.Flow} Flow + * @returns {google.cloud.dialogflow.cx.v3.Flow} Flow * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Flow.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Flow(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Flow(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -3592,15 +3592,15 @@ case 4: if (!(message.transitionRoutes && message.transitionRoutes.length)) message.transitionRoutes = []; - message.transitionRoutes.push($root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.decode(reader, reader.uint32())); + message.transitionRoutes.push($root.google.cloud.dialogflow.cx.v3.TransitionRoute.decode(reader, reader.uint32())); break; case 10: if (!(message.eventHandlers && message.eventHandlers.length)) message.eventHandlers = []; - message.eventHandlers.push($root.google.cloud.dialogflow.cx.v3beta1.EventHandler.decode(reader, reader.uint32())); + message.eventHandlers.push($root.google.cloud.dialogflow.cx.v3.EventHandler.decode(reader, reader.uint32())); break; case 11: - message.nluSettings = $root.google.cloud.dialogflow.cx.v3beta1.NluSettings.decode(reader, reader.uint32()); + message.nluSettings = $root.google.cloud.dialogflow.cx.v3.NluSettings.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -3613,10 +3613,10 @@ /** * Decodes a Flow message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Flow + * @memberof google.cloud.dialogflow.cx.v3.Flow * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Flow} Flow + * @returns {google.cloud.dialogflow.cx.v3.Flow} Flow * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -3629,7 +3629,7 @@ /** * Verifies a Flow message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Flow + * @memberof google.cloud.dialogflow.cx.v3.Flow * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -3650,7 +3650,7 @@ if (!Array.isArray(message.transitionRoutes)) return "transitionRoutes: array expected"; for (var i = 0; i < message.transitionRoutes.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.verify(message.transitionRoutes[i]); + var error = $root.google.cloud.dialogflow.cx.v3.TransitionRoute.verify(message.transitionRoutes[i]); if (error) return "transitionRoutes." + error; } @@ -3659,13 +3659,13 @@ if (!Array.isArray(message.eventHandlers)) return "eventHandlers: array expected"; for (var i = 0; i < message.eventHandlers.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.EventHandler.verify(message.eventHandlers[i]); + var error = $root.google.cloud.dialogflow.cx.v3.EventHandler.verify(message.eventHandlers[i]); if (error) return "eventHandlers." + error; } } if (message.nluSettings != null && message.hasOwnProperty("nluSettings")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.NluSettings.verify(message.nluSettings); + var error = $root.google.cloud.dialogflow.cx.v3.NluSettings.verify(message.nluSettings); if (error) return "nluSettings." + error; } @@ -3675,15 +3675,15 @@ /** * Creates a Flow message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Flow + * @memberof google.cloud.dialogflow.cx.v3.Flow * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Flow} Flow + * @returns {google.cloud.dialogflow.cx.v3.Flow} Flow */ Flow.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Flow) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.Flow) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Flow(); + var message = new $root.google.cloud.dialogflow.cx.v3.Flow(); if (object.name != null) message.name = String(object.name); if (object.displayName != null) @@ -3692,28 +3692,28 @@ message.description = String(object.description); if (object.transitionRoutes) { if (!Array.isArray(object.transitionRoutes)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Flow.transitionRoutes: array expected"); + throw TypeError(".google.cloud.dialogflow.cx.v3.Flow.transitionRoutes: array expected"); message.transitionRoutes = []; for (var i = 0; i < object.transitionRoutes.length; ++i) { if (typeof object.transitionRoutes[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Flow.transitionRoutes: object expected"); - message.transitionRoutes[i] = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.fromObject(object.transitionRoutes[i]); + throw TypeError(".google.cloud.dialogflow.cx.v3.Flow.transitionRoutes: object expected"); + message.transitionRoutes[i] = $root.google.cloud.dialogflow.cx.v3.TransitionRoute.fromObject(object.transitionRoutes[i]); } } if (object.eventHandlers) { if (!Array.isArray(object.eventHandlers)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Flow.eventHandlers: array expected"); + throw TypeError(".google.cloud.dialogflow.cx.v3.Flow.eventHandlers: array expected"); message.eventHandlers = []; for (var i = 0; i < object.eventHandlers.length; ++i) { if (typeof object.eventHandlers[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Flow.eventHandlers: object expected"); - message.eventHandlers[i] = $root.google.cloud.dialogflow.cx.v3beta1.EventHandler.fromObject(object.eventHandlers[i]); + throw TypeError(".google.cloud.dialogflow.cx.v3.Flow.eventHandlers: object expected"); + message.eventHandlers[i] = $root.google.cloud.dialogflow.cx.v3.EventHandler.fromObject(object.eventHandlers[i]); } } if (object.nluSettings != null) { if (typeof object.nluSettings !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Flow.nluSettings: object expected"); - message.nluSettings = $root.google.cloud.dialogflow.cx.v3beta1.NluSettings.fromObject(object.nluSettings); + throw TypeError(".google.cloud.dialogflow.cx.v3.Flow.nluSettings: object expected"); + message.nluSettings = $root.google.cloud.dialogflow.cx.v3.NluSettings.fromObject(object.nluSettings); } return message; }; @@ -3721,9 +3721,9 @@ /** * Creates a plain object from a Flow message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Flow + * @memberof google.cloud.dialogflow.cx.v3.Flow * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Flow} message Flow + * @param {google.cloud.dialogflow.cx.v3.Flow} message Flow * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -3750,22 +3750,22 @@ if (message.transitionRoutes && message.transitionRoutes.length) { object.transitionRoutes = []; for (var j = 0; j < message.transitionRoutes.length; ++j) - object.transitionRoutes[j] = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.toObject(message.transitionRoutes[j], options); + object.transitionRoutes[j] = $root.google.cloud.dialogflow.cx.v3.TransitionRoute.toObject(message.transitionRoutes[j], options); } if (message.eventHandlers && message.eventHandlers.length) { object.eventHandlers = []; for (var j = 0; j < message.eventHandlers.length; ++j) - object.eventHandlers[j] = $root.google.cloud.dialogflow.cx.v3beta1.EventHandler.toObject(message.eventHandlers[j], options); + object.eventHandlers[j] = $root.google.cloud.dialogflow.cx.v3.EventHandler.toObject(message.eventHandlers[j], options); } if (message.nluSettings != null && message.hasOwnProperty("nluSettings")) - object.nluSettings = $root.google.cloud.dialogflow.cx.v3beta1.NluSettings.toObject(message.nluSettings, options); + object.nluSettings = $root.google.cloud.dialogflow.cx.v3.NluSettings.toObject(message.nluSettings, options); return object; }; /** * Converts this Flow to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Flow + * @memberof google.cloud.dialogflow.cx.v3.Flow * @instance * @returns {Object.} JSON object */ @@ -3776,24 +3776,24 @@ return Flow; })(); - v3beta1.CreateFlowRequest = (function() { + v3.CreateFlowRequest = (function() { /** * Properties of a CreateFlowRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface ICreateFlowRequest * @property {string|null} [parent] CreateFlowRequest parent - * @property {google.cloud.dialogflow.cx.v3beta1.IFlow|null} [flow] CreateFlowRequest flow + * @property {google.cloud.dialogflow.cx.v3.IFlow|null} [flow] CreateFlowRequest flow * @property {string|null} [languageCode] CreateFlowRequest languageCode */ /** * Constructs a new CreateFlowRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a CreateFlowRequest. * @implements ICreateFlowRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateFlowRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ICreateFlowRequest=} [properties] Properties to set */ function CreateFlowRequest(properties) { if (properties) @@ -3805,15 +3805,15 @@ /** * CreateFlowRequest parent. * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateFlowRequest * @instance */ CreateFlowRequest.prototype.parent = ""; /** * CreateFlowRequest flow. - * @member {google.cloud.dialogflow.cx.v3beta1.IFlow|null|undefined} flow - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest + * @member {google.cloud.dialogflow.cx.v3.IFlow|null|undefined} flow + * @memberof google.cloud.dialogflow.cx.v3.CreateFlowRequest * @instance */ CreateFlowRequest.prototype.flow = null; @@ -3821,7 +3821,7 @@ /** * CreateFlowRequest languageCode. * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateFlowRequest * @instance */ CreateFlowRequest.prototype.languageCode = ""; @@ -3829,21 +3829,21 @@ /** * Creates a new CreateFlowRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateFlowRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest} CreateFlowRequest instance + * @param {google.cloud.dialogflow.cx.v3.ICreateFlowRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.CreateFlowRequest} CreateFlowRequest instance */ CreateFlowRequest.create = function create(properties) { return new CreateFlowRequest(properties); }; /** - * Encodes the specified CreateFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest.verify|verify} messages. + * Encodes the specified CreateFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateFlowRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateFlowRequest} message CreateFlowRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ICreateFlowRequest} message CreateFlowRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -3853,18 +3853,18 @@ if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); if (message.flow != null && Object.hasOwnProperty.call(message, "flow")) - $root.google.cloud.dialogflow.cx.v3beta1.Flow.encode(message.flow, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.Flow.encode(message.flow, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.languageCode); return writer; }; /** - * Encodes the specified CreateFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest.verify|verify} messages. + * Encodes the specified CreateFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateFlowRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateFlowRequest} message CreateFlowRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ICreateFlowRequest} message CreateFlowRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -3875,18 +3875,18 @@ /** * Decodes a CreateFlowRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateFlowRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest} CreateFlowRequest + * @returns {google.cloud.dialogflow.cx.v3.CreateFlowRequest} CreateFlowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ CreateFlowRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.CreateFlowRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -3894,7 +3894,7 @@ message.parent = reader.string(); break; case 2: - message.flow = $root.google.cloud.dialogflow.cx.v3beta1.Flow.decode(reader, reader.uint32()); + message.flow = $root.google.cloud.dialogflow.cx.v3.Flow.decode(reader, reader.uint32()); break; case 3: message.languageCode = reader.string(); @@ -3910,10 +3910,10 @@ /** * Decodes a CreateFlowRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateFlowRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest} CreateFlowRequest + * @returns {google.cloud.dialogflow.cx.v3.CreateFlowRequest} CreateFlowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -3926,7 +3926,7 @@ /** * Verifies a CreateFlowRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateFlowRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -3938,7 +3938,7 @@ if (!$util.isString(message.parent)) return "parent: string expected"; if (message.flow != null && message.hasOwnProperty("flow")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Flow.verify(message.flow); + var error = $root.google.cloud.dialogflow.cx.v3.Flow.verify(message.flow); if (error) return "flow." + error; } @@ -3951,21 +3951,21 @@ /** * Creates a CreateFlowRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateFlowRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest} CreateFlowRequest + * @returns {google.cloud.dialogflow.cx.v3.CreateFlowRequest} CreateFlowRequest */ CreateFlowRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.CreateFlowRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.CreateFlowRequest(); if (object.parent != null) message.parent = String(object.parent); if (object.flow != null) { if (typeof object.flow !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest.flow: object expected"); - message.flow = $root.google.cloud.dialogflow.cx.v3beta1.Flow.fromObject(object.flow); + throw TypeError(".google.cloud.dialogflow.cx.v3.CreateFlowRequest.flow: object expected"); + message.flow = $root.google.cloud.dialogflow.cx.v3.Flow.fromObject(object.flow); } if (object.languageCode != null) message.languageCode = String(object.languageCode); @@ -3975,9 +3975,9 @@ /** * Creates a plain object from a CreateFlowRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest} message CreateFlowRequest + * @param {google.cloud.dialogflow.cx.v3.CreateFlowRequest} message CreateFlowRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -3993,7 +3993,7 @@ if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; if (message.flow != null && message.hasOwnProperty("flow")) - object.flow = $root.google.cloud.dialogflow.cx.v3beta1.Flow.toObject(message.flow, options); + object.flow = $root.google.cloud.dialogflow.cx.v3.Flow.toObject(message.flow, options); if (message.languageCode != null && message.hasOwnProperty("languageCode")) object.languageCode = message.languageCode; return object; @@ -4002,7 +4002,7 @@ /** * Converts this CreateFlowRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateFlowRequest * @instance * @returns {Object.} JSON object */ @@ -4013,11 +4013,11 @@ return CreateFlowRequest; })(); - v3beta1.DeleteFlowRequest = (function() { + v3.DeleteFlowRequest = (function() { /** * Properties of a DeleteFlowRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface IDeleteFlowRequest * @property {string|null} [name] DeleteFlowRequest name * @property {boolean|null} [force] DeleteFlowRequest force @@ -4025,11 +4025,11 @@ /** * Constructs a new DeleteFlowRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a DeleteFlowRequest. * @implements IDeleteFlowRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteFlowRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IDeleteFlowRequest=} [properties] Properties to set */ function DeleteFlowRequest(properties) { if (properties) @@ -4041,7 +4041,7 @@ /** * DeleteFlowRequest name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteFlowRequest * @instance */ DeleteFlowRequest.prototype.name = ""; @@ -4049,7 +4049,7 @@ /** * DeleteFlowRequest force. * @member {boolean} force - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteFlowRequest * @instance */ DeleteFlowRequest.prototype.force = false; @@ -4057,21 +4057,21 @@ /** * Creates a new DeleteFlowRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteFlowRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest} DeleteFlowRequest instance + * @param {google.cloud.dialogflow.cx.v3.IDeleteFlowRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.DeleteFlowRequest} DeleteFlowRequest instance */ DeleteFlowRequest.create = function create(properties) { return new DeleteFlowRequest(properties); }; /** - * Encodes the specified DeleteFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest.verify|verify} messages. + * Encodes the specified DeleteFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteFlowRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteFlowRequest} message DeleteFlowRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IDeleteFlowRequest} message DeleteFlowRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -4086,11 +4086,11 @@ }; /** - * Encodes the specified DeleteFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest.verify|verify} messages. + * Encodes the specified DeleteFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteFlowRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteFlowRequest} message DeleteFlowRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IDeleteFlowRequest} message DeleteFlowRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -4101,18 +4101,18 @@ /** * Decodes a DeleteFlowRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteFlowRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest} DeleteFlowRequest + * @returns {google.cloud.dialogflow.cx.v3.DeleteFlowRequest} DeleteFlowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ DeleteFlowRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.DeleteFlowRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -4133,10 +4133,10 @@ /** * Decodes a DeleteFlowRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteFlowRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest} DeleteFlowRequest + * @returns {google.cloud.dialogflow.cx.v3.DeleteFlowRequest} DeleteFlowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -4149,7 +4149,7 @@ /** * Verifies a DeleteFlowRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteFlowRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -4169,15 +4169,15 @@ /** * Creates a DeleteFlowRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteFlowRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest} DeleteFlowRequest + * @returns {google.cloud.dialogflow.cx.v3.DeleteFlowRequest} DeleteFlowRequest */ DeleteFlowRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.DeleteFlowRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.DeleteFlowRequest(); if (object.name != null) message.name = String(object.name); if (object.force != null) @@ -4188,9 +4188,9 @@ /** * Creates a plain object from a DeleteFlowRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest} message DeleteFlowRequest + * @param {google.cloud.dialogflow.cx.v3.DeleteFlowRequest} message DeleteFlowRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -4212,7 +4212,7 @@ /** * Converts this DeleteFlowRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteFlowRequest * @instance * @returns {Object.} JSON object */ @@ -4223,11 +4223,11 @@ return DeleteFlowRequest; })(); - v3beta1.ListFlowsRequest = (function() { + v3.ListFlowsRequest = (function() { /** * Properties of a ListFlowsRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface IListFlowsRequest * @property {string|null} [parent] ListFlowsRequest parent * @property {number|null} [pageSize] ListFlowsRequest pageSize @@ -4237,11 +4237,11 @@ /** * Constructs a new ListFlowsRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a ListFlowsRequest. * @implements IListFlowsRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IListFlowsRequest=} [properties] Properties to set */ function ListFlowsRequest(properties) { if (properties) @@ -4253,7 +4253,7 @@ /** * ListFlowsRequest parent. * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListFlowsRequest * @instance */ ListFlowsRequest.prototype.parent = ""; @@ -4261,7 +4261,7 @@ /** * ListFlowsRequest pageSize. * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListFlowsRequest * @instance */ ListFlowsRequest.prototype.pageSize = 0; @@ -4269,7 +4269,7 @@ /** * ListFlowsRequest pageToken. * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListFlowsRequest * @instance */ ListFlowsRequest.prototype.pageToken = ""; @@ -4277,7 +4277,7 @@ /** * ListFlowsRequest languageCode. * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListFlowsRequest * @instance */ ListFlowsRequest.prototype.languageCode = ""; @@ -4285,21 +4285,21 @@ /** * Creates a new ListFlowsRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListFlowsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest} ListFlowsRequest instance + * @param {google.cloud.dialogflow.cx.v3.IListFlowsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListFlowsRequest} ListFlowsRequest instance */ ListFlowsRequest.create = function create(properties) { return new ListFlowsRequest(properties); }; /** - * Encodes the specified ListFlowsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest.verify|verify} messages. + * Encodes the specified ListFlowsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListFlowsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListFlowsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest} message ListFlowsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListFlowsRequest} message ListFlowsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -4318,11 +4318,11 @@ }; /** - * Encodes the specified ListFlowsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest.verify|verify} messages. + * Encodes the specified ListFlowsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListFlowsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListFlowsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest} message ListFlowsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListFlowsRequest} message ListFlowsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -4333,18 +4333,18 @@ /** * Decodes a ListFlowsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListFlowsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest} ListFlowsRequest + * @returns {google.cloud.dialogflow.cx.v3.ListFlowsRequest} ListFlowsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ListFlowsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListFlowsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -4371,10 +4371,10 @@ /** * Decodes a ListFlowsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListFlowsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest} ListFlowsRequest + * @returns {google.cloud.dialogflow.cx.v3.ListFlowsRequest} ListFlowsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -4387,7 +4387,7 @@ /** * Verifies a ListFlowsRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListFlowsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -4413,15 +4413,15 @@ /** * Creates a ListFlowsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListFlowsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest} ListFlowsRequest + * @returns {google.cloud.dialogflow.cx.v3.ListFlowsRequest} ListFlowsRequest */ ListFlowsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListFlowsRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.ListFlowsRequest(); if (object.parent != null) message.parent = String(object.parent); if (object.pageSize != null) @@ -4436,9 +4436,9 @@ /** * Creates a plain object from a ListFlowsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListFlowsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest} message ListFlowsRequest + * @param {google.cloud.dialogflow.cx.v3.ListFlowsRequest} message ListFlowsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -4466,7 +4466,7 @@ /** * Converts this ListFlowsRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListFlowsRequest * @instance * @returns {Object.} JSON object */ @@ -4477,23 +4477,23 @@ return ListFlowsRequest; })(); - v3beta1.ListFlowsResponse = (function() { + v3.ListFlowsResponse = (function() { /** * Properties of a ListFlowsResponse. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface IListFlowsResponse - * @property {Array.|null} [flows] ListFlowsResponse flows + * @property {Array.|null} [flows] ListFlowsResponse flows * @property {string|null} [nextPageToken] ListFlowsResponse nextPageToken */ /** * Constructs a new ListFlowsResponse. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a ListFlowsResponse. * @implements IListFlowsResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListFlowsResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IListFlowsResponse=} [properties] Properties to set */ function ListFlowsResponse(properties) { this.flows = []; @@ -4505,8 +4505,8 @@ /** * ListFlowsResponse flows. - * @member {Array.} flows - * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse + * @member {Array.} flows + * @memberof google.cloud.dialogflow.cx.v3.ListFlowsResponse * @instance */ ListFlowsResponse.prototype.flows = $util.emptyArray; @@ -4514,7 +4514,7 @@ /** * ListFlowsResponse nextPageToken. * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListFlowsResponse * @instance */ ListFlowsResponse.prototype.nextPageToken = ""; @@ -4522,21 +4522,21 @@ /** * Creates a new ListFlowsResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListFlowsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListFlowsResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse} ListFlowsResponse instance + * @param {google.cloud.dialogflow.cx.v3.IListFlowsResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListFlowsResponse} ListFlowsResponse instance */ ListFlowsResponse.create = function create(properties) { return new ListFlowsResponse(properties); }; /** - * Encodes the specified ListFlowsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse.verify|verify} messages. + * Encodes the specified ListFlowsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListFlowsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListFlowsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListFlowsResponse} message ListFlowsResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListFlowsResponse} message ListFlowsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -4545,18 +4545,18 @@ writer = $Writer.create(); if (message.flows != null && message.flows.length) for (var i = 0; i < message.flows.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.Flow.encode(message.flows[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.Flow.encode(message.flows[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified ListFlowsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse.verify|verify} messages. + * Encodes the specified ListFlowsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListFlowsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListFlowsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListFlowsResponse} message ListFlowsResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListFlowsResponse} message ListFlowsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -4567,25 +4567,25 @@ /** * Decodes a ListFlowsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListFlowsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse} ListFlowsResponse + * @returns {google.cloud.dialogflow.cx.v3.ListFlowsResponse} ListFlowsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ListFlowsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListFlowsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: if (!(message.flows && message.flows.length)) message.flows = []; - message.flows.push($root.google.cloud.dialogflow.cx.v3beta1.Flow.decode(reader, reader.uint32())); + message.flows.push($root.google.cloud.dialogflow.cx.v3.Flow.decode(reader, reader.uint32())); break; case 2: message.nextPageToken = reader.string(); @@ -4601,10 +4601,10 @@ /** * Decodes a ListFlowsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListFlowsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse} ListFlowsResponse + * @returns {google.cloud.dialogflow.cx.v3.ListFlowsResponse} ListFlowsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -4617,7 +4617,7 @@ /** * Verifies a ListFlowsResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListFlowsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -4629,7 +4629,7 @@ if (!Array.isArray(message.flows)) return "flows: array expected"; for (var i = 0; i < message.flows.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Flow.verify(message.flows[i]); + var error = $root.google.cloud.dialogflow.cx.v3.Flow.verify(message.flows[i]); if (error) return "flows." + error; } @@ -4643,23 +4643,23 @@ /** * Creates a ListFlowsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListFlowsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse} ListFlowsResponse + * @returns {google.cloud.dialogflow.cx.v3.ListFlowsResponse} ListFlowsResponse */ ListFlowsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListFlowsResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse(); + var message = new $root.google.cloud.dialogflow.cx.v3.ListFlowsResponse(); if (object.flows) { if (!Array.isArray(object.flows)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse.flows: array expected"); + throw TypeError(".google.cloud.dialogflow.cx.v3.ListFlowsResponse.flows: array expected"); message.flows = []; for (var i = 0; i < object.flows.length; ++i) { if (typeof object.flows[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse.flows: object expected"); - message.flows[i] = $root.google.cloud.dialogflow.cx.v3beta1.Flow.fromObject(object.flows[i]); + throw TypeError(".google.cloud.dialogflow.cx.v3.ListFlowsResponse.flows: object expected"); + message.flows[i] = $root.google.cloud.dialogflow.cx.v3.Flow.fromObject(object.flows[i]); } } if (object.nextPageToken != null) @@ -4670,9 +4670,9 @@ /** * Creates a plain object from a ListFlowsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListFlowsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse} message ListFlowsResponse + * @param {google.cloud.dialogflow.cx.v3.ListFlowsResponse} message ListFlowsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -4687,7 +4687,7 @@ if (message.flows && message.flows.length) { object.flows = []; for (var j = 0; j < message.flows.length; ++j) - object.flows[j] = $root.google.cloud.dialogflow.cx.v3beta1.Flow.toObject(message.flows[j], options); + object.flows[j] = $root.google.cloud.dialogflow.cx.v3.Flow.toObject(message.flows[j], options); } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) object.nextPageToken = message.nextPageToken; @@ -4697,7 +4697,7 @@ /** * Converts this ListFlowsResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListFlowsResponse * @instance * @returns {Object.} JSON object */ @@ -4708,11 +4708,11 @@ return ListFlowsResponse; })(); - v3beta1.GetFlowRequest = (function() { + v3.GetFlowRequest = (function() { /** * Properties of a GetFlowRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface IGetFlowRequest * @property {string|null} [name] GetFlowRequest name * @property {string|null} [languageCode] GetFlowRequest languageCode @@ -4720,11 +4720,11 @@ /** * Constructs a new GetFlowRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a GetFlowRequest. * @implements IGetFlowRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IGetFlowRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IGetFlowRequest=} [properties] Properties to set */ function GetFlowRequest(properties) { if (properties) @@ -4736,7 +4736,7 @@ /** * GetFlowRequest name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.GetFlowRequest * @instance */ GetFlowRequest.prototype.name = ""; @@ -4744,7 +4744,7 @@ /** * GetFlowRequest languageCode. * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.GetFlowRequest * @instance */ GetFlowRequest.prototype.languageCode = ""; @@ -4752,21 +4752,21 @@ /** * Creates a new GetFlowRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.GetFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetFlowRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.GetFlowRequest} GetFlowRequest instance + * @param {google.cloud.dialogflow.cx.v3.IGetFlowRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.GetFlowRequest} GetFlowRequest instance */ GetFlowRequest.create = function create(properties) { return new GetFlowRequest(properties); }; /** - * Encodes the specified GetFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetFlowRequest.verify|verify} messages. + * Encodes the specified GetFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetFlowRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.GetFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetFlowRequest} message GetFlowRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IGetFlowRequest} message GetFlowRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -4781,11 +4781,11 @@ }; /** - * Encodes the specified GetFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetFlowRequest.verify|verify} messages. + * Encodes the specified GetFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetFlowRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.GetFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetFlowRequest} message GetFlowRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IGetFlowRequest} message GetFlowRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -4796,18 +4796,18 @@ /** * Decodes a GetFlowRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.GetFlowRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.GetFlowRequest} GetFlowRequest + * @returns {google.cloud.dialogflow.cx.v3.GetFlowRequest} GetFlowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GetFlowRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.GetFlowRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.GetFlowRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -4828,10 +4828,10 @@ /** * Decodes a GetFlowRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.GetFlowRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.GetFlowRequest} GetFlowRequest + * @returns {google.cloud.dialogflow.cx.v3.GetFlowRequest} GetFlowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -4844,7 +4844,7 @@ /** * Verifies a GetFlowRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.GetFlowRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -4864,15 +4864,15 @@ /** * Creates a GetFlowRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.GetFlowRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.GetFlowRequest} GetFlowRequest + * @returns {google.cloud.dialogflow.cx.v3.GetFlowRequest} GetFlowRequest */ GetFlowRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GetFlowRequest) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.GetFlowRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.GetFlowRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.GetFlowRequest(); if (object.name != null) message.name = String(object.name); if (object.languageCode != null) @@ -4883,9 +4883,9 @@ /** * Creates a plain object from a GetFlowRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.GetFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.GetFlowRequest} message GetFlowRequest + * @param {google.cloud.dialogflow.cx.v3.GetFlowRequest} message GetFlowRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -4907,7 +4907,7 @@ /** * Converts this GetFlowRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.GetFlowRequest * @instance * @returns {Object.} JSON object */ @@ -4918,24 +4918,24 @@ return GetFlowRequest; })(); - v3beta1.UpdateFlowRequest = (function() { + v3.UpdateFlowRequest = (function() { /** * Properties of an UpdateFlowRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface IUpdateFlowRequest - * @property {google.cloud.dialogflow.cx.v3beta1.IFlow|null} [flow] UpdateFlowRequest flow + * @property {google.cloud.dialogflow.cx.v3.IFlow|null} [flow] UpdateFlowRequest flow * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateFlowRequest updateMask * @property {string|null} [languageCode] UpdateFlowRequest languageCode */ /** * Constructs a new UpdateFlowRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents an UpdateFlowRequest. * @implements IUpdateFlowRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateFlowRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IUpdateFlowRequest=} [properties] Properties to set */ function UpdateFlowRequest(properties) { if (properties) @@ -4946,8 +4946,8 @@ /** * UpdateFlowRequest flow. - * @member {google.cloud.dialogflow.cx.v3beta1.IFlow|null|undefined} flow - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest + * @member {google.cloud.dialogflow.cx.v3.IFlow|null|undefined} flow + * @memberof google.cloud.dialogflow.cx.v3.UpdateFlowRequest * @instance */ UpdateFlowRequest.prototype.flow = null; @@ -4955,7 +4955,7 @@ /** * UpdateFlowRequest updateMask. * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateFlowRequest * @instance */ UpdateFlowRequest.prototype.updateMask = null; @@ -4963,7 +4963,7 @@ /** * UpdateFlowRequest languageCode. * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateFlowRequest * @instance */ UpdateFlowRequest.prototype.languageCode = ""; @@ -4971,21 +4971,21 @@ /** * Creates a new UpdateFlowRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateFlowRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest} UpdateFlowRequest instance + * @param {google.cloud.dialogflow.cx.v3.IUpdateFlowRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.UpdateFlowRequest} UpdateFlowRequest instance */ UpdateFlowRequest.create = function create(properties) { return new UpdateFlowRequest(properties); }; /** - * Encodes the specified UpdateFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest.verify|verify} messages. + * Encodes the specified UpdateFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateFlowRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateFlowRequest} message UpdateFlowRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IUpdateFlowRequest} message UpdateFlowRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -4993,7 +4993,7 @@ if (!writer) writer = $Writer.create(); if (message.flow != null && Object.hasOwnProperty.call(message, "flow")) - $root.google.cloud.dialogflow.cx.v3beta1.Flow.encode(message.flow, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.Flow.encode(message.flow, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) @@ -5002,11 +5002,11 @@ }; /** - * Encodes the specified UpdateFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest.verify|verify} messages. + * Encodes the specified UpdateFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateFlowRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateFlowRequest} message UpdateFlowRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IUpdateFlowRequest} message UpdateFlowRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -5017,23 +5017,23 @@ /** * Decodes an UpdateFlowRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateFlowRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest} UpdateFlowRequest + * @returns {google.cloud.dialogflow.cx.v3.UpdateFlowRequest} UpdateFlowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UpdateFlowRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.UpdateFlowRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.flow = $root.google.cloud.dialogflow.cx.v3beta1.Flow.decode(reader, reader.uint32()); + message.flow = $root.google.cloud.dialogflow.cx.v3.Flow.decode(reader, reader.uint32()); break; case 2: message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); @@ -5052,10 +5052,10 @@ /** * Decodes an UpdateFlowRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateFlowRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest} UpdateFlowRequest + * @returns {google.cloud.dialogflow.cx.v3.UpdateFlowRequest} UpdateFlowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -5068,7 +5068,7 @@ /** * Verifies an UpdateFlowRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateFlowRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -5077,7 +5077,7 @@ if (typeof message !== "object" || message === null) return "object expected"; if (message.flow != null && message.hasOwnProperty("flow")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Flow.verify(message.flow); + var error = $root.google.cloud.dialogflow.cx.v3.Flow.verify(message.flow); if (error) return "flow." + error; } @@ -5095,23 +5095,23 @@ /** * Creates an UpdateFlowRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateFlowRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest} UpdateFlowRequest + * @returns {google.cloud.dialogflow.cx.v3.UpdateFlowRequest} UpdateFlowRequest */ UpdateFlowRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.UpdateFlowRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.UpdateFlowRequest(); if (object.flow != null) { if (typeof object.flow !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest.flow: object expected"); - message.flow = $root.google.cloud.dialogflow.cx.v3beta1.Flow.fromObject(object.flow); + throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateFlowRequest.flow: object expected"); + message.flow = $root.google.cloud.dialogflow.cx.v3.Flow.fromObject(object.flow); } if (object.updateMask != null) { if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest.updateMask: object expected"); + throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateFlowRequest.updateMask: object expected"); message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } if (object.languageCode != null) @@ -5122,9 +5122,9 @@ /** * Creates a plain object from an UpdateFlowRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest} message UpdateFlowRequest + * @param {google.cloud.dialogflow.cx.v3.UpdateFlowRequest} message UpdateFlowRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -5138,7 +5138,7 @@ object.languageCode = ""; } if (message.flow != null && message.hasOwnProperty("flow")) - object.flow = $root.google.cloud.dialogflow.cx.v3beta1.Flow.toObject(message.flow, options); + object.flow = $root.google.cloud.dialogflow.cx.v3.Flow.toObject(message.flow, options); if (message.updateMask != null && message.hasOwnProperty("updateMask")) object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); if (message.languageCode != null && message.hasOwnProperty("languageCode")) @@ -5149,7 +5149,7 @@ /** * Converts this UpdateFlowRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateFlowRequest * @instance * @returns {Object.} JSON object */ @@ -5160,22 +5160,22 @@ return UpdateFlowRequest; })(); - v3beta1.TrainFlowRequest = (function() { + v3.TrainFlowRequest = (function() { /** * Properties of a TrainFlowRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface ITrainFlowRequest * @property {string|null} [name] TrainFlowRequest name */ /** * Constructs a new TrainFlowRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a TrainFlowRequest. * @implements ITrainFlowRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ITrainFlowRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ITrainFlowRequest=} [properties] Properties to set */ function TrainFlowRequest(properties) { if (properties) @@ -5187,7 +5187,7 @@ /** * TrainFlowRequest name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.TrainFlowRequest * @instance */ TrainFlowRequest.prototype.name = ""; @@ -5195,21 +5195,21 @@ /** * Creates a new TrainFlowRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.TrainFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITrainFlowRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest} TrainFlowRequest instance + * @param {google.cloud.dialogflow.cx.v3.ITrainFlowRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.TrainFlowRequest} TrainFlowRequest instance */ TrainFlowRequest.create = function create(properties) { return new TrainFlowRequest(properties); }; /** - * Encodes the specified TrainFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest.verify|verify} messages. + * Encodes the specified TrainFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TrainFlowRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.TrainFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITrainFlowRequest} message TrainFlowRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ITrainFlowRequest} message TrainFlowRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -5222,11 +5222,11 @@ }; /** - * Encodes the specified TrainFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest.verify|verify} messages. + * Encodes the specified TrainFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TrainFlowRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.TrainFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITrainFlowRequest} message TrainFlowRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ITrainFlowRequest} message TrainFlowRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -5237,18 +5237,18 @@ /** * Decodes a TrainFlowRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.TrainFlowRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest} TrainFlowRequest + * @returns {google.cloud.dialogflow.cx.v3.TrainFlowRequest} TrainFlowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TrainFlowRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.TrainFlowRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -5266,10 +5266,10 @@ /** * Decodes a TrainFlowRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.TrainFlowRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest} TrainFlowRequest + * @returns {google.cloud.dialogflow.cx.v3.TrainFlowRequest} TrainFlowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -5282,7 +5282,7 @@ /** * Verifies a TrainFlowRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.TrainFlowRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -5299,15 +5299,15 @@ /** * Creates a TrainFlowRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.TrainFlowRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest} TrainFlowRequest + * @returns {google.cloud.dialogflow.cx.v3.TrainFlowRequest} TrainFlowRequest */ TrainFlowRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.TrainFlowRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.TrainFlowRequest(); if (object.name != null) message.name = String(object.name); return message; @@ -5316,9 +5316,9 @@ /** * Creates a plain object from a TrainFlowRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.TrainFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest} message TrainFlowRequest + * @param {google.cloud.dialogflow.cx.v3.TrainFlowRequest} message TrainFlowRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -5336,7 +5336,7 @@ /** * Converts this TrainFlowRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.TrainFlowRequest * @instance * @returns {Object.} JSON object */ @@ -5347,11 +5347,11 @@ return TrainFlowRequest; })(); - v3beta1.Pages = (function() { + v3.Pages = (function() { /** * Constructs a new Pages service. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a Pages * @extends $protobuf.rpc.Service * @constructor @@ -5368,7 +5368,7 @@ /** * Creates new Pages service using the specified rpc implementation. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Pages + * @memberof google.cloud.dialogflow.cx.v3.Pages * @static * @param {$protobuf.RPCImpl} rpcImpl RPC implementation * @param {boolean} [requestDelimited=false] Whether requests are length-delimited @@ -5380,140 +5380,140 @@ }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Pages#listPages}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Pages + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Pages#listPages}. + * @memberof google.cloud.dialogflow.cx.v3.Pages * @typedef ListPagesCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.ListPagesResponse} [response] ListPagesResponse + * @param {google.cloud.dialogflow.cx.v3.ListPagesResponse} [response] ListPagesResponse */ /** * Calls ListPages. * @function listPages - * @memberof google.cloud.dialogflow.cx.v3beta1.Pages + * @memberof google.cloud.dialogflow.cx.v3.Pages * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IListPagesRequest} request ListPagesRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Pages.ListPagesCallback} callback Node-style callback called with the error, if any, and ListPagesResponse + * @param {google.cloud.dialogflow.cx.v3.IListPagesRequest} request ListPagesRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Pages.ListPagesCallback} callback Node-style callback called with the error, if any, and ListPagesResponse * @returns {undefined} * @variation 1 */ Object.defineProperty(Pages.prototype.listPages = function listPages(request, callback) { - return this.rpcCall(listPages, $root.google.cloud.dialogflow.cx.v3beta1.ListPagesRequest, $root.google.cloud.dialogflow.cx.v3beta1.ListPagesResponse, request, callback); + return this.rpcCall(listPages, $root.google.cloud.dialogflow.cx.v3.ListPagesRequest, $root.google.cloud.dialogflow.cx.v3.ListPagesResponse, request, callback); }, "name", { value: "ListPages" }); /** * Calls ListPages. * @function listPages - * @memberof google.cloud.dialogflow.cx.v3beta1.Pages + * @memberof google.cloud.dialogflow.cx.v3.Pages * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IListPagesRequest} request ListPagesRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3.IListPagesRequest} request ListPagesRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Pages#getPage}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Pages + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Pages#getPage}. + * @memberof google.cloud.dialogflow.cx.v3.Pages * @typedef GetPageCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.Page} [response] Page + * @param {google.cloud.dialogflow.cx.v3.Page} [response] Page */ /** * Calls GetPage. * @function getPage - * @memberof google.cloud.dialogflow.cx.v3beta1.Pages + * @memberof google.cloud.dialogflow.cx.v3.Pages * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetPageRequest} request GetPageRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Pages.GetPageCallback} callback Node-style callback called with the error, if any, and Page + * @param {google.cloud.dialogflow.cx.v3.IGetPageRequest} request GetPageRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Pages.GetPageCallback} callback Node-style callback called with the error, if any, and Page * @returns {undefined} * @variation 1 */ Object.defineProperty(Pages.prototype.getPage = function getPage(request, callback) { - return this.rpcCall(getPage, $root.google.cloud.dialogflow.cx.v3beta1.GetPageRequest, $root.google.cloud.dialogflow.cx.v3beta1.Page, request, callback); + return this.rpcCall(getPage, $root.google.cloud.dialogflow.cx.v3.GetPageRequest, $root.google.cloud.dialogflow.cx.v3.Page, request, callback); }, "name", { value: "GetPage" }); /** * Calls GetPage. * @function getPage - * @memberof google.cloud.dialogflow.cx.v3beta1.Pages + * @memberof google.cloud.dialogflow.cx.v3.Pages * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetPageRequest} request GetPageRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3.IGetPageRequest} request GetPageRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Pages#createPage}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Pages + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Pages#createPage}. + * @memberof google.cloud.dialogflow.cx.v3.Pages * @typedef CreatePageCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.Page} [response] Page + * @param {google.cloud.dialogflow.cx.v3.Page} [response] Page */ /** * Calls CreatePage. * @function createPage - * @memberof google.cloud.dialogflow.cx.v3beta1.Pages + * @memberof google.cloud.dialogflow.cx.v3.Pages * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ICreatePageRequest} request CreatePageRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Pages.CreatePageCallback} callback Node-style callback called with the error, if any, and Page + * @param {google.cloud.dialogflow.cx.v3.ICreatePageRequest} request CreatePageRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Pages.CreatePageCallback} callback Node-style callback called with the error, if any, and Page * @returns {undefined} * @variation 1 */ Object.defineProperty(Pages.prototype.createPage = function createPage(request, callback) { - return this.rpcCall(createPage, $root.google.cloud.dialogflow.cx.v3beta1.CreatePageRequest, $root.google.cloud.dialogflow.cx.v3beta1.Page, request, callback); + return this.rpcCall(createPage, $root.google.cloud.dialogflow.cx.v3.CreatePageRequest, $root.google.cloud.dialogflow.cx.v3.Page, request, callback); }, "name", { value: "CreatePage" }); /** * Calls CreatePage. * @function createPage - * @memberof google.cloud.dialogflow.cx.v3beta1.Pages + * @memberof google.cloud.dialogflow.cx.v3.Pages * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ICreatePageRequest} request CreatePageRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3.ICreatePageRequest} request CreatePageRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Pages#updatePage}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Pages + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Pages#updatePage}. + * @memberof google.cloud.dialogflow.cx.v3.Pages * @typedef UpdatePageCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.Page} [response] Page + * @param {google.cloud.dialogflow.cx.v3.Page} [response] Page */ /** * Calls UpdatePage. * @function updatePage - * @memberof google.cloud.dialogflow.cx.v3beta1.Pages + * @memberof google.cloud.dialogflow.cx.v3.Pages * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdatePageRequest} request UpdatePageRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Pages.UpdatePageCallback} callback Node-style callback called with the error, if any, and Page + * @param {google.cloud.dialogflow.cx.v3.IUpdatePageRequest} request UpdatePageRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Pages.UpdatePageCallback} callback Node-style callback called with the error, if any, and Page * @returns {undefined} * @variation 1 */ Object.defineProperty(Pages.prototype.updatePage = function updatePage(request, callback) { - return this.rpcCall(updatePage, $root.google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest, $root.google.cloud.dialogflow.cx.v3beta1.Page, request, callback); + return this.rpcCall(updatePage, $root.google.cloud.dialogflow.cx.v3.UpdatePageRequest, $root.google.cloud.dialogflow.cx.v3.Page, request, callback); }, "name", { value: "UpdatePage" }); /** * Calls UpdatePage. * @function updatePage - * @memberof google.cloud.dialogflow.cx.v3beta1.Pages + * @memberof google.cloud.dialogflow.cx.v3.Pages * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdatePageRequest} request UpdatePageRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3.IUpdatePageRequest} request UpdatePageRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Pages#deletePage}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Pages + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Pages#deletePage}. + * @memberof google.cloud.dialogflow.cx.v3.Pages * @typedef DeletePageCallback * @type {function} * @param {Error|null} error Error, if any @@ -5523,23 +5523,23 @@ /** * Calls DeletePage. * @function deletePage - * @memberof google.cloud.dialogflow.cx.v3beta1.Pages + * @memberof google.cloud.dialogflow.cx.v3.Pages * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IDeletePageRequest} request DeletePageRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Pages.DeletePageCallback} callback Node-style callback called with the error, if any, and Empty + * @param {google.cloud.dialogflow.cx.v3.IDeletePageRequest} request DeletePageRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Pages.DeletePageCallback} callback Node-style callback called with the error, if any, and Empty * @returns {undefined} * @variation 1 */ Object.defineProperty(Pages.prototype.deletePage = function deletePage(request, callback) { - return this.rpcCall(deletePage, $root.google.cloud.dialogflow.cx.v3beta1.DeletePageRequest, $root.google.protobuf.Empty, request, callback); + return this.rpcCall(deletePage, $root.google.cloud.dialogflow.cx.v3.DeletePageRequest, $root.google.protobuf.Empty, request, callback); }, "name", { value: "DeletePage" }); /** * Calls DeletePage. * @function deletePage - * @memberof google.cloud.dialogflow.cx.v3beta1.Pages + * @memberof google.cloud.dialogflow.cx.v3.Pages * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IDeletePageRequest} request DeletePageRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.IDeletePageRequest} request DeletePageRequest message or plain object * @returns {Promise} Promise * @variation 2 */ @@ -5547,28 +5547,28 @@ return Pages; })(); - v3beta1.Page = (function() { + v3.Page = (function() { /** * Properties of a Page. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface IPage * @property {string|null} [name] Page name * @property {string|null} [displayName] Page displayName - * @property {google.cloud.dialogflow.cx.v3beta1.IFulfillment|null} [entryFulfillment] Page entryFulfillment - * @property {google.cloud.dialogflow.cx.v3beta1.IForm|null} [form] Page form + * @property {google.cloud.dialogflow.cx.v3.IFulfillment|null} [entryFulfillment] Page entryFulfillment + * @property {google.cloud.dialogflow.cx.v3.IForm|null} [form] Page form * @property {Array.|null} [transitionRouteGroups] Page transitionRouteGroups - * @property {Array.|null} [transitionRoutes] Page transitionRoutes - * @property {Array.|null} [eventHandlers] Page eventHandlers + * @property {Array.|null} [transitionRoutes] Page transitionRoutes + * @property {Array.|null} [eventHandlers] Page eventHandlers */ /** * Constructs a new Page. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a Page. * @implements IPage * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IPage=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IPage=} [properties] Properties to set */ function Page(properties) { this.transitionRouteGroups = []; @@ -5583,7 +5583,7 @@ /** * Page name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.Page + * @memberof google.cloud.dialogflow.cx.v3.Page * @instance */ Page.prototype.name = ""; @@ -5591,23 +5591,23 @@ /** * Page displayName. * @member {string} displayName - * @memberof google.cloud.dialogflow.cx.v3beta1.Page + * @memberof google.cloud.dialogflow.cx.v3.Page * @instance */ Page.prototype.displayName = ""; /** * Page entryFulfillment. - * @member {google.cloud.dialogflow.cx.v3beta1.IFulfillment|null|undefined} entryFulfillment - * @memberof google.cloud.dialogflow.cx.v3beta1.Page + * @member {google.cloud.dialogflow.cx.v3.IFulfillment|null|undefined} entryFulfillment + * @memberof google.cloud.dialogflow.cx.v3.Page * @instance */ Page.prototype.entryFulfillment = null; /** * Page form. - * @member {google.cloud.dialogflow.cx.v3beta1.IForm|null|undefined} form - * @memberof google.cloud.dialogflow.cx.v3beta1.Page + * @member {google.cloud.dialogflow.cx.v3.IForm|null|undefined} form + * @memberof google.cloud.dialogflow.cx.v3.Page * @instance */ Page.prototype.form = null; @@ -5615,23 +5615,23 @@ /** * Page transitionRouteGroups. * @member {Array.} transitionRouteGroups - * @memberof google.cloud.dialogflow.cx.v3beta1.Page + * @memberof google.cloud.dialogflow.cx.v3.Page * @instance */ Page.prototype.transitionRouteGroups = $util.emptyArray; /** * Page transitionRoutes. - * @member {Array.} transitionRoutes - * @memberof google.cloud.dialogflow.cx.v3beta1.Page + * @member {Array.} transitionRoutes + * @memberof google.cloud.dialogflow.cx.v3.Page * @instance */ Page.prototype.transitionRoutes = $util.emptyArray; /** * Page eventHandlers. - * @member {Array.} eventHandlers - * @memberof google.cloud.dialogflow.cx.v3beta1.Page + * @member {Array.} eventHandlers + * @memberof google.cloud.dialogflow.cx.v3.Page * @instance */ Page.prototype.eventHandlers = $util.emptyArray; @@ -5639,21 +5639,21 @@ /** * Creates a new Page instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Page + * @memberof google.cloud.dialogflow.cx.v3.Page * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IPage=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Page} Page instance + * @param {google.cloud.dialogflow.cx.v3.IPage=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.Page} Page instance */ Page.create = function create(properties) { return new Page(properties); }; /** - * Encodes the specified Page message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Page.verify|verify} messages. + * Encodes the specified Page message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Page.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Page + * @memberof google.cloud.dialogflow.cx.v3.Page * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IPage} message Page message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IPage} message Page message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -5665,15 +5665,15 @@ if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); if (message.form != null && Object.hasOwnProperty.call(message, "form")) - $root.google.cloud.dialogflow.cx.v3beta1.Form.encode(message.form, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.Form.encode(message.form, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); if (message.entryFulfillment != null && Object.hasOwnProperty.call(message, "entryFulfillment")) - $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.encode(message.entryFulfillment, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.Fulfillment.encode(message.entryFulfillment, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); if (message.transitionRoutes != null && message.transitionRoutes.length) for (var i = 0; i < message.transitionRoutes.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.encode(message.transitionRoutes[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.TransitionRoute.encode(message.transitionRoutes[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); if (message.eventHandlers != null && message.eventHandlers.length) for (var i = 0; i < message.eventHandlers.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.EventHandler.encode(message.eventHandlers[i], writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.EventHandler.encode(message.eventHandlers[i], writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); if (message.transitionRouteGroups != null && message.transitionRouteGroups.length) for (var i = 0; i < message.transitionRouteGroups.length; ++i) writer.uint32(/* id 11, wireType 2 =*/90).string(message.transitionRouteGroups[i]); @@ -5681,11 +5681,11 @@ }; /** - * Encodes the specified Page message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Page.verify|verify} messages. + * Encodes the specified Page message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Page.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Page + * @memberof google.cloud.dialogflow.cx.v3.Page * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IPage} message Page message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IPage} message Page message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -5696,18 +5696,18 @@ /** * Decodes a Page message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Page + * @memberof google.cloud.dialogflow.cx.v3.Page * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.Page} Page + * @returns {google.cloud.dialogflow.cx.v3.Page} Page * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Page.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Page(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Page(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -5718,10 +5718,10 @@ message.displayName = reader.string(); break; case 7: - message.entryFulfillment = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.decode(reader, reader.uint32()); + message.entryFulfillment = $root.google.cloud.dialogflow.cx.v3.Fulfillment.decode(reader, reader.uint32()); break; case 4: - message.form = $root.google.cloud.dialogflow.cx.v3beta1.Form.decode(reader, reader.uint32()); + message.form = $root.google.cloud.dialogflow.cx.v3.Form.decode(reader, reader.uint32()); break; case 11: if (!(message.transitionRouteGroups && message.transitionRouteGroups.length)) @@ -5731,12 +5731,12 @@ case 9: if (!(message.transitionRoutes && message.transitionRoutes.length)) message.transitionRoutes = []; - message.transitionRoutes.push($root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.decode(reader, reader.uint32())); + message.transitionRoutes.push($root.google.cloud.dialogflow.cx.v3.TransitionRoute.decode(reader, reader.uint32())); break; case 10: if (!(message.eventHandlers && message.eventHandlers.length)) message.eventHandlers = []; - message.eventHandlers.push($root.google.cloud.dialogflow.cx.v3beta1.EventHandler.decode(reader, reader.uint32())); + message.eventHandlers.push($root.google.cloud.dialogflow.cx.v3.EventHandler.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -5749,10 +5749,10 @@ /** * Decodes a Page message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Page + * @memberof google.cloud.dialogflow.cx.v3.Page * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Page} Page + * @returns {google.cloud.dialogflow.cx.v3.Page} Page * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -5765,7 +5765,7 @@ /** * Verifies a Page message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Page + * @memberof google.cloud.dialogflow.cx.v3.Page * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -5780,12 +5780,12 @@ if (!$util.isString(message.displayName)) return "displayName: string expected"; if (message.entryFulfillment != null && message.hasOwnProperty("entryFulfillment")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.verify(message.entryFulfillment); + var error = $root.google.cloud.dialogflow.cx.v3.Fulfillment.verify(message.entryFulfillment); if (error) return "entryFulfillment." + error; } if (message.form != null && message.hasOwnProperty("form")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Form.verify(message.form); + var error = $root.google.cloud.dialogflow.cx.v3.Form.verify(message.form); if (error) return "form." + error; } @@ -5800,7 +5800,7 @@ if (!Array.isArray(message.transitionRoutes)) return "transitionRoutes: array expected"; for (var i = 0; i < message.transitionRoutes.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.verify(message.transitionRoutes[i]); + var error = $root.google.cloud.dialogflow.cx.v3.TransitionRoute.verify(message.transitionRoutes[i]); if (error) return "transitionRoutes." + error; } @@ -5809,7 +5809,7 @@ if (!Array.isArray(message.eventHandlers)) return "eventHandlers: array expected"; for (var i = 0; i < message.eventHandlers.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.EventHandler.verify(message.eventHandlers[i]); + var error = $root.google.cloud.dialogflow.cx.v3.EventHandler.verify(message.eventHandlers[i]); if (error) return "eventHandlers." + error; } @@ -5820,54 +5820,54 @@ /** * Creates a Page message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Page + * @memberof google.cloud.dialogflow.cx.v3.Page * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Page} Page + * @returns {google.cloud.dialogflow.cx.v3.Page} Page */ Page.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Page) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.Page) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Page(); + var message = new $root.google.cloud.dialogflow.cx.v3.Page(); if (object.name != null) message.name = String(object.name); if (object.displayName != null) message.displayName = String(object.displayName); if (object.entryFulfillment != null) { if (typeof object.entryFulfillment !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Page.entryFulfillment: object expected"); - message.entryFulfillment = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.fromObject(object.entryFulfillment); + throw TypeError(".google.cloud.dialogflow.cx.v3.Page.entryFulfillment: object expected"); + message.entryFulfillment = $root.google.cloud.dialogflow.cx.v3.Fulfillment.fromObject(object.entryFulfillment); } if (object.form != null) { if (typeof object.form !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Page.form: object expected"); - message.form = $root.google.cloud.dialogflow.cx.v3beta1.Form.fromObject(object.form); + throw TypeError(".google.cloud.dialogflow.cx.v3.Page.form: object expected"); + message.form = $root.google.cloud.dialogflow.cx.v3.Form.fromObject(object.form); } if (object.transitionRouteGroups) { if (!Array.isArray(object.transitionRouteGroups)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Page.transitionRouteGroups: array expected"); + throw TypeError(".google.cloud.dialogflow.cx.v3.Page.transitionRouteGroups: array expected"); message.transitionRouteGroups = []; for (var i = 0; i < object.transitionRouteGroups.length; ++i) message.transitionRouteGroups[i] = String(object.transitionRouteGroups[i]); } if (object.transitionRoutes) { if (!Array.isArray(object.transitionRoutes)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Page.transitionRoutes: array expected"); + throw TypeError(".google.cloud.dialogflow.cx.v3.Page.transitionRoutes: array expected"); message.transitionRoutes = []; for (var i = 0; i < object.transitionRoutes.length; ++i) { if (typeof object.transitionRoutes[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Page.transitionRoutes: object expected"); - message.transitionRoutes[i] = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.fromObject(object.transitionRoutes[i]); + throw TypeError(".google.cloud.dialogflow.cx.v3.Page.transitionRoutes: object expected"); + message.transitionRoutes[i] = $root.google.cloud.dialogflow.cx.v3.TransitionRoute.fromObject(object.transitionRoutes[i]); } } if (object.eventHandlers) { if (!Array.isArray(object.eventHandlers)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Page.eventHandlers: array expected"); + throw TypeError(".google.cloud.dialogflow.cx.v3.Page.eventHandlers: array expected"); message.eventHandlers = []; for (var i = 0; i < object.eventHandlers.length; ++i) { if (typeof object.eventHandlers[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Page.eventHandlers: object expected"); - message.eventHandlers[i] = $root.google.cloud.dialogflow.cx.v3beta1.EventHandler.fromObject(object.eventHandlers[i]); + throw TypeError(".google.cloud.dialogflow.cx.v3.Page.eventHandlers: object expected"); + message.eventHandlers[i] = $root.google.cloud.dialogflow.cx.v3.EventHandler.fromObject(object.eventHandlers[i]); } } return message; @@ -5876,9 +5876,9 @@ /** * Creates a plain object from a Page message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Page + * @memberof google.cloud.dialogflow.cx.v3.Page * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Page} message Page + * @param {google.cloud.dialogflow.cx.v3.Page} message Page * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -5902,18 +5902,18 @@ if (message.displayName != null && message.hasOwnProperty("displayName")) object.displayName = message.displayName; if (message.form != null && message.hasOwnProperty("form")) - object.form = $root.google.cloud.dialogflow.cx.v3beta1.Form.toObject(message.form, options); + object.form = $root.google.cloud.dialogflow.cx.v3.Form.toObject(message.form, options); if (message.entryFulfillment != null && message.hasOwnProperty("entryFulfillment")) - object.entryFulfillment = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.toObject(message.entryFulfillment, options); + object.entryFulfillment = $root.google.cloud.dialogflow.cx.v3.Fulfillment.toObject(message.entryFulfillment, options); if (message.transitionRoutes && message.transitionRoutes.length) { object.transitionRoutes = []; for (var j = 0; j < message.transitionRoutes.length; ++j) - object.transitionRoutes[j] = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.toObject(message.transitionRoutes[j], options); + object.transitionRoutes[j] = $root.google.cloud.dialogflow.cx.v3.TransitionRoute.toObject(message.transitionRoutes[j], options); } if (message.eventHandlers && message.eventHandlers.length) { object.eventHandlers = []; for (var j = 0; j < message.eventHandlers.length; ++j) - object.eventHandlers[j] = $root.google.cloud.dialogflow.cx.v3beta1.EventHandler.toObject(message.eventHandlers[j], options); + object.eventHandlers[j] = $root.google.cloud.dialogflow.cx.v3.EventHandler.toObject(message.eventHandlers[j], options); } if (message.transitionRouteGroups && message.transitionRouteGroups.length) { object.transitionRouteGroups = []; @@ -5926,7 +5926,7 @@ /** * Converts this Page to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Page + * @memberof google.cloud.dialogflow.cx.v3.Page * @instance * @returns {Object.} JSON object */ @@ -5937,22 +5937,22 @@ return Page; })(); - v3beta1.Form = (function() { + v3.Form = (function() { /** * Properties of a Form. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface IForm - * @property {Array.|null} [parameters] Form parameters + * @property {Array.|null} [parameters] Form parameters */ /** * Constructs a new Form. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a Form. * @implements IForm * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IForm=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IForm=} [properties] Properties to set */ function Form(properties) { this.parameters = []; @@ -5964,8 +5964,8 @@ /** * Form parameters. - * @member {Array.} parameters - * @memberof google.cloud.dialogflow.cx.v3beta1.Form + * @member {Array.} parameters + * @memberof google.cloud.dialogflow.cx.v3.Form * @instance */ Form.prototype.parameters = $util.emptyArray; @@ -5973,21 +5973,21 @@ /** * Creates a new Form instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Form + * @memberof google.cloud.dialogflow.cx.v3.Form * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IForm=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Form} Form instance + * @param {google.cloud.dialogflow.cx.v3.IForm=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.Form} Form instance */ Form.create = function create(properties) { return new Form(properties); }; /** - * Encodes the specified Form message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Form.verify|verify} messages. + * Encodes the specified Form message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Form.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Form + * @memberof google.cloud.dialogflow.cx.v3.Form * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IForm} message Form message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IForm} message Form message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -5996,16 +5996,16 @@ writer = $Writer.create(); if (message.parameters != null && message.parameters.length) for (var i = 0; i < message.parameters.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.Form.Parameter.encode(message.parameters[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.Form.Parameter.encode(message.parameters[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified Form message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Form.verify|verify} messages. + * Encodes the specified Form message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Form.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Form + * @memberof google.cloud.dialogflow.cx.v3.Form * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IForm} message Form message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IForm} message Form message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -6016,25 +6016,25 @@ /** * Decodes a Form message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Form + * @memberof google.cloud.dialogflow.cx.v3.Form * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.Form} Form + * @returns {google.cloud.dialogflow.cx.v3.Form} Form * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Form.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Form(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Form(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: if (!(message.parameters && message.parameters.length)) message.parameters = []; - message.parameters.push($root.google.cloud.dialogflow.cx.v3beta1.Form.Parameter.decode(reader, reader.uint32())); + message.parameters.push($root.google.cloud.dialogflow.cx.v3.Form.Parameter.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -6047,10 +6047,10 @@ /** * Decodes a Form message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Form + * @memberof google.cloud.dialogflow.cx.v3.Form * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Form} Form + * @returns {google.cloud.dialogflow.cx.v3.Form} Form * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -6063,7 +6063,7 @@ /** * Verifies a Form message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Form + * @memberof google.cloud.dialogflow.cx.v3.Form * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -6075,7 +6075,7 @@ if (!Array.isArray(message.parameters)) return "parameters: array expected"; for (var i = 0; i < message.parameters.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Form.Parameter.verify(message.parameters[i]); + var error = $root.google.cloud.dialogflow.cx.v3.Form.Parameter.verify(message.parameters[i]); if (error) return "parameters." + error; } @@ -6086,23 +6086,23 @@ /** * Creates a Form message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Form + * @memberof google.cloud.dialogflow.cx.v3.Form * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Form} Form + * @returns {google.cloud.dialogflow.cx.v3.Form} Form */ Form.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Form) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.Form) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Form(); + var message = new $root.google.cloud.dialogflow.cx.v3.Form(); if (object.parameters) { if (!Array.isArray(object.parameters)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Form.parameters: array expected"); + throw TypeError(".google.cloud.dialogflow.cx.v3.Form.parameters: array expected"); message.parameters = []; for (var i = 0; i < object.parameters.length; ++i) { if (typeof object.parameters[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Form.parameters: object expected"); - message.parameters[i] = $root.google.cloud.dialogflow.cx.v3beta1.Form.Parameter.fromObject(object.parameters[i]); + throw TypeError(".google.cloud.dialogflow.cx.v3.Form.parameters: object expected"); + message.parameters[i] = $root.google.cloud.dialogflow.cx.v3.Form.Parameter.fromObject(object.parameters[i]); } } return message; @@ -6111,9 +6111,9 @@ /** * Creates a plain object from a Form message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Form + * @memberof google.cloud.dialogflow.cx.v3.Form * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Form} message Form + * @param {google.cloud.dialogflow.cx.v3.Form} message Form * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -6126,7 +6126,7 @@ if (message.parameters && message.parameters.length) { object.parameters = []; for (var j = 0; j < message.parameters.length; ++j) - object.parameters[j] = $root.google.cloud.dialogflow.cx.v3beta1.Form.Parameter.toObject(message.parameters[j], options); + object.parameters[j] = $root.google.cloud.dialogflow.cx.v3.Form.Parameter.toObject(message.parameters[j], options); } return object; }; @@ -6134,7 +6134,7 @@ /** * Converts this Form to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Form + * @memberof google.cloud.dialogflow.cx.v3.Form * @instance * @returns {Object.} JSON object */ @@ -6146,24 +6146,24 @@ /** * Properties of a Parameter. - * @memberof google.cloud.dialogflow.cx.v3beta1.Form + * @memberof google.cloud.dialogflow.cx.v3.Form * @interface IParameter * @property {string|null} [displayName] Parameter displayName * @property {boolean|null} [required] Parameter required * @property {string|null} [entityType] Parameter entityType * @property {boolean|null} [isList] Parameter isList - * @property {google.cloud.dialogflow.cx.v3beta1.Form.Parameter.IFillBehavior|null} [fillBehavior] Parameter fillBehavior + * @property {google.cloud.dialogflow.cx.v3.Form.Parameter.IFillBehavior|null} [fillBehavior] Parameter fillBehavior * @property {google.protobuf.IValue|null} [defaultValue] Parameter defaultValue * @property {boolean|null} [redact] Parameter redact */ /** * Constructs a new Parameter. - * @memberof google.cloud.dialogflow.cx.v3beta1.Form + * @memberof google.cloud.dialogflow.cx.v3.Form * @classdesc Represents a Parameter. * @implements IParameter * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.Form.IParameter=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.Form.IParameter=} [properties] Properties to set */ function Parameter(properties) { if (properties) @@ -6175,7 +6175,7 @@ /** * Parameter displayName. * @member {string} displayName - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter + * @memberof google.cloud.dialogflow.cx.v3.Form.Parameter * @instance */ Parameter.prototype.displayName = ""; @@ -6183,7 +6183,7 @@ /** * Parameter required. * @member {boolean} required - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter + * @memberof google.cloud.dialogflow.cx.v3.Form.Parameter * @instance */ Parameter.prototype.required = false; @@ -6191,7 +6191,7 @@ /** * Parameter entityType. * @member {string} entityType - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter + * @memberof google.cloud.dialogflow.cx.v3.Form.Parameter * @instance */ Parameter.prototype.entityType = ""; @@ -6199,15 +6199,15 @@ /** * Parameter isList. * @member {boolean} isList - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter + * @memberof google.cloud.dialogflow.cx.v3.Form.Parameter * @instance */ Parameter.prototype.isList = false; /** * Parameter fillBehavior. - * @member {google.cloud.dialogflow.cx.v3beta1.Form.Parameter.IFillBehavior|null|undefined} fillBehavior - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter + * @member {google.cloud.dialogflow.cx.v3.Form.Parameter.IFillBehavior|null|undefined} fillBehavior + * @memberof google.cloud.dialogflow.cx.v3.Form.Parameter * @instance */ Parameter.prototype.fillBehavior = null; @@ -6215,7 +6215,7 @@ /** * Parameter defaultValue. * @member {google.protobuf.IValue|null|undefined} defaultValue - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter + * @memberof google.cloud.dialogflow.cx.v3.Form.Parameter * @instance */ Parameter.prototype.defaultValue = null; @@ -6223,7 +6223,7 @@ /** * Parameter redact. * @member {boolean} redact - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter + * @memberof google.cloud.dialogflow.cx.v3.Form.Parameter * @instance */ Parameter.prototype.redact = false; @@ -6231,21 +6231,21 @@ /** * Creates a new Parameter instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter + * @memberof google.cloud.dialogflow.cx.v3.Form.Parameter * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Form.IParameter=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Form.Parameter} Parameter instance + * @param {google.cloud.dialogflow.cx.v3.Form.IParameter=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.Form.Parameter} Parameter instance */ Parameter.create = function create(properties) { return new Parameter(properties); }; /** - * Encodes the specified Parameter message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Form.Parameter.verify|verify} messages. + * Encodes the specified Parameter message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Form.Parameter.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter + * @memberof google.cloud.dialogflow.cx.v3.Form.Parameter * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Form.IParameter} message Parameter message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.Form.IParameter} message Parameter message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -6261,7 +6261,7 @@ if (message.isList != null && Object.hasOwnProperty.call(message, "isList")) writer.uint32(/* id 4, wireType 0 =*/32).bool(message.isList); if (message.fillBehavior != null && Object.hasOwnProperty.call(message, "fillBehavior")) - $root.google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior.encode(message.fillBehavior, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior.encode(message.fillBehavior, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); if (message.defaultValue != null && Object.hasOwnProperty.call(message, "defaultValue")) $root.google.protobuf.Value.encode(message.defaultValue, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); if (message.redact != null && Object.hasOwnProperty.call(message, "redact")) @@ -6270,11 +6270,11 @@ }; /** - * Encodes the specified Parameter message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Form.Parameter.verify|verify} messages. + * Encodes the specified Parameter message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Form.Parameter.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter + * @memberof google.cloud.dialogflow.cx.v3.Form.Parameter * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Form.IParameter} message Parameter message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.Form.IParameter} message Parameter message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -6285,18 +6285,18 @@ /** * Decodes a Parameter message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter + * @memberof google.cloud.dialogflow.cx.v3.Form.Parameter * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.Form.Parameter} Parameter + * @returns {google.cloud.dialogflow.cx.v3.Form.Parameter} Parameter * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Parameter.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Form.Parameter(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Form.Parameter(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -6313,7 +6313,7 @@ message.isList = reader.bool(); break; case 7: - message.fillBehavior = $root.google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior.decode(reader, reader.uint32()); + message.fillBehavior = $root.google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior.decode(reader, reader.uint32()); break; case 9: message.defaultValue = $root.google.protobuf.Value.decode(reader, reader.uint32()); @@ -6332,10 +6332,10 @@ /** * Decodes a Parameter message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter + * @memberof google.cloud.dialogflow.cx.v3.Form.Parameter * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Form.Parameter} Parameter + * @returns {google.cloud.dialogflow.cx.v3.Form.Parameter} Parameter * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -6348,7 +6348,7 @@ /** * Verifies a Parameter message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter + * @memberof google.cloud.dialogflow.cx.v3.Form.Parameter * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -6369,7 +6369,7 @@ if (typeof message.isList !== "boolean") return "isList: boolean expected"; if (message.fillBehavior != null && message.hasOwnProperty("fillBehavior")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior.verify(message.fillBehavior); + var error = $root.google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior.verify(message.fillBehavior); if (error) return "fillBehavior." + error; } @@ -6387,15 +6387,15 @@ /** * Creates a Parameter message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter + * @memberof google.cloud.dialogflow.cx.v3.Form.Parameter * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Form.Parameter} Parameter + * @returns {google.cloud.dialogflow.cx.v3.Form.Parameter} Parameter */ Parameter.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Form.Parameter) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.Form.Parameter) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Form.Parameter(); + var message = new $root.google.cloud.dialogflow.cx.v3.Form.Parameter(); if (object.displayName != null) message.displayName = String(object.displayName); if (object.required != null) @@ -6406,12 +6406,12 @@ message.isList = Boolean(object.isList); if (object.fillBehavior != null) { if (typeof object.fillBehavior !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Form.Parameter.fillBehavior: object expected"); - message.fillBehavior = $root.google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior.fromObject(object.fillBehavior); + throw TypeError(".google.cloud.dialogflow.cx.v3.Form.Parameter.fillBehavior: object expected"); + message.fillBehavior = $root.google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior.fromObject(object.fillBehavior); } if (object.defaultValue != null) { if (typeof object.defaultValue !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Form.Parameter.defaultValue: object expected"); + throw TypeError(".google.cloud.dialogflow.cx.v3.Form.Parameter.defaultValue: object expected"); message.defaultValue = $root.google.protobuf.Value.fromObject(object.defaultValue); } if (object.redact != null) @@ -6422,9 +6422,9 @@ /** * Creates a plain object from a Parameter message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter + * @memberof google.cloud.dialogflow.cx.v3.Form.Parameter * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Form.Parameter} message Parameter + * @param {google.cloud.dialogflow.cx.v3.Form.Parameter} message Parameter * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -6450,7 +6450,7 @@ if (message.isList != null && message.hasOwnProperty("isList")) object.isList = message.isList; if (message.fillBehavior != null && message.hasOwnProperty("fillBehavior")) - object.fillBehavior = $root.google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior.toObject(message.fillBehavior, options); + object.fillBehavior = $root.google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior.toObject(message.fillBehavior, options); if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) object.defaultValue = $root.google.protobuf.Value.toObject(message.defaultValue, options); if (message.redact != null && message.hasOwnProperty("redact")) @@ -6461,7 +6461,7 @@ /** * Converts this Parameter to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter + * @memberof google.cloud.dialogflow.cx.v3.Form.Parameter * @instance * @returns {Object.} JSON object */ @@ -6473,19 +6473,19 @@ /** * Properties of a FillBehavior. - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter + * @memberof google.cloud.dialogflow.cx.v3.Form.Parameter * @interface IFillBehavior - * @property {google.cloud.dialogflow.cx.v3beta1.IFulfillment|null} [initialPromptFulfillment] FillBehavior initialPromptFulfillment - * @property {Array.|null} [repromptEventHandlers] FillBehavior repromptEventHandlers + * @property {google.cloud.dialogflow.cx.v3.IFulfillment|null} [initialPromptFulfillment] FillBehavior initialPromptFulfillment + * @property {Array.|null} [repromptEventHandlers] FillBehavior repromptEventHandlers */ /** * Constructs a new FillBehavior. - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter + * @memberof google.cloud.dialogflow.cx.v3.Form.Parameter * @classdesc Represents a FillBehavior. * @implements IFillBehavior * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.Form.Parameter.IFillBehavior=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.Form.Parameter.IFillBehavior=} [properties] Properties to set */ function FillBehavior(properties) { this.repromptEventHandlers = []; @@ -6497,16 +6497,16 @@ /** * FillBehavior initialPromptFulfillment. - * @member {google.cloud.dialogflow.cx.v3beta1.IFulfillment|null|undefined} initialPromptFulfillment - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior + * @member {google.cloud.dialogflow.cx.v3.IFulfillment|null|undefined} initialPromptFulfillment + * @memberof google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior * @instance */ FillBehavior.prototype.initialPromptFulfillment = null; /** * FillBehavior repromptEventHandlers. - * @member {Array.} repromptEventHandlers - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior + * @member {Array.} repromptEventHandlers + * @memberof google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior * @instance */ FillBehavior.prototype.repromptEventHandlers = $util.emptyArray; @@ -6514,21 +6514,21 @@ /** * Creates a new FillBehavior instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior + * @memberof google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Form.Parameter.IFillBehavior=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior} FillBehavior instance + * @param {google.cloud.dialogflow.cx.v3.Form.Parameter.IFillBehavior=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior} FillBehavior instance */ FillBehavior.create = function create(properties) { return new FillBehavior(properties); }; /** - * Encodes the specified FillBehavior message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior.verify|verify} messages. + * Encodes the specified FillBehavior message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior + * @memberof google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Form.Parameter.IFillBehavior} message FillBehavior message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.Form.Parameter.IFillBehavior} message FillBehavior message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -6536,19 +6536,19 @@ if (!writer) writer = $Writer.create(); if (message.initialPromptFulfillment != null && Object.hasOwnProperty.call(message, "initialPromptFulfillment")) - $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.encode(message.initialPromptFulfillment, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.Fulfillment.encode(message.initialPromptFulfillment, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.repromptEventHandlers != null && message.repromptEventHandlers.length) for (var i = 0; i < message.repromptEventHandlers.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.EventHandler.encode(message.repromptEventHandlers[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.EventHandler.encode(message.repromptEventHandlers[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified FillBehavior message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior.verify|verify} messages. + * Encodes the specified FillBehavior message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior + * @memberof google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Form.Parameter.IFillBehavior} message FillBehavior message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.Form.Parameter.IFillBehavior} message FillBehavior message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -6559,28 +6559,28 @@ /** * Decodes a FillBehavior message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior + * @memberof google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior} FillBehavior + * @returns {google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior} FillBehavior * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ FillBehavior.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 3: - message.initialPromptFulfillment = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.decode(reader, reader.uint32()); + message.initialPromptFulfillment = $root.google.cloud.dialogflow.cx.v3.Fulfillment.decode(reader, reader.uint32()); break; case 5: if (!(message.repromptEventHandlers && message.repromptEventHandlers.length)) message.repromptEventHandlers = []; - message.repromptEventHandlers.push($root.google.cloud.dialogflow.cx.v3beta1.EventHandler.decode(reader, reader.uint32())); + message.repromptEventHandlers.push($root.google.cloud.dialogflow.cx.v3.EventHandler.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -6593,10 +6593,10 @@ /** * Decodes a FillBehavior message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior + * @memberof google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior} FillBehavior + * @returns {google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior} FillBehavior * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -6609,7 +6609,7 @@ /** * Verifies a FillBehavior message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior + * @memberof google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -6618,7 +6618,7 @@ if (typeof message !== "object" || message === null) return "object expected"; if (message.initialPromptFulfillment != null && message.hasOwnProperty("initialPromptFulfillment")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.verify(message.initialPromptFulfillment); + var error = $root.google.cloud.dialogflow.cx.v3.Fulfillment.verify(message.initialPromptFulfillment); if (error) return "initialPromptFulfillment." + error; } @@ -6626,7 +6626,7 @@ if (!Array.isArray(message.repromptEventHandlers)) return "repromptEventHandlers: array expected"; for (var i = 0; i < message.repromptEventHandlers.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.EventHandler.verify(message.repromptEventHandlers[i]); + var error = $root.google.cloud.dialogflow.cx.v3.EventHandler.verify(message.repromptEventHandlers[i]); if (error) return "repromptEventHandlers." + error; } @@ -6637,28 +6637,28 @@ /** * Creates a FillBehavior message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior + * @memberof google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior} FillBehavior + * @returns {google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior} FillBehavior */ FillBehavior.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior(); + var message = new $root.google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior(); if (object.initialPromptFulfillment != null) { if (typeof object.initialPromptFulfillment !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior.initialPromptFulfillment: object expected"); - message.initialPromptFulfillment = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.fromObject(object.initialPromptFulfillment); + throw TypeError(".google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior.initialPromptFulfillment: object expected"); + message.initialPromptFulfillment = $root.google.cloud.dialogflow.cx.v3.Fulfillment.fromObject(object.initialPromptFulfillment); } if (object.repromptEventHandlers) { if (!Array.isArray(object.repromptEventHandlers)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior.repromptEventHandlers: array expected"); + throw TypeError(".google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior.repromptEventHandlers: array expected"); message.repromptEventHandlers = []; for (var i = 0; i < object.repromptEventHandlers.length; ++i) { if (typeof object.repromptEventHandlers[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior.repromptEventHandlers: object expected"); - message.repromptEventHandlers[i] = $root.google.cloud.dialogflow.cx.v3beta1.EventHandler.fromObject(object.repromptEventHandlers[i]); + throw TypeError(".google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior.repromptEventHandlers: object expected"); + message.repromptEventHandlers[i] = $root.google.cloud.dialogflow.cx.v3.EventHandler.fromObject(object.repromptEventHandlers[i]); } } return message; @@ -6667,9 +6667,9 @@ /** * Creates a plain object from a FillBehavior message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior + * @memberof google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior} message FillBehavior + * @param {google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior} message FillBehavior * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -6682,11 +6682,11 @@ if (options.defaults) object.initialPromptFulfillment = null; if (message.initialPromptFulfillment != null && message.hasOwnProperty("initialPromptFulfillment")) - object.initialPromptFulfillment = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.toObject(message.initialPromptFulfillment, options); + object.initialPromptFulfillment = $root.google.cloud.dialogflow.cx.v3.Fulfillment.toObject(message.initialPromptFulfillment, options); if (message.repromptEventHandlers && message.repromptEventHandlers.length) { object.repromptEventHandlers = []; for (var j = 0; j < message.repromptEventHandlers.length; ++j) - object.repromptEventHandlers[j] = $root.google.cloud.dialogflow.cx.v3beta1.EventHandler.toObject(message.repromptEventHandlers[j], options); + object.repromptEventHandlers[j] = $root.google.cloud.dialogflow.cx.v3.EventHandler.toObject(message.repromptEventHandlers[j], options); } return object; }; @@ -6694,7 +6694,7 @@ /** * Converts this FillBehavior to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior + * @memberof google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior * @instance * @returns {Object.} JSON object */ @@ -6711,26 +6711,26 @@ return Form; })(); - v3beta1.EventHandler = (function() { + v3.EventHandler = (function() { /** * Properties of an EventHandler. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface IEventHandler * @property {string|null} [name] EventHandler name * @property {string|null} [event] EventHandler event - * @property {google.cloud.dialogflow.cx.v3beta1.IFulfillment|null} [triggerFulfillment] EventHandler triggerFulfillment + * @property {google.cloud.dialogflow.cx.v3.IFulfillment|null} [triggerFulfillment] EventHandler triggerFulfillment * @property {string|null} [targetPage] EventHandler targetPage * @property {string|null} [targetFlow] EventHandler targetFlow */ /** * Constructs a new EventHandler. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents an EventHandler. * @implements IEventHandler * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IEventHandler=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IEventHandler=} [properties] Properties to set */ function EventHandler(properties) { if (properties) @@ -6742,7 +6742,7 @@ /** * EventHandler name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.EventHandler + * @memberof google.cloud.dialogflow.cx.v3.EventHandler * @instance */ EventHandler.prototype.name = ""; @@ -6750,15 +6750,15 @@ /** * EventHandler event. * @member {string} event - * @memberof google.cloud.dialogflow.cx.v3beta1.EventHandler + * @memberof google.cloud.dialogflow.cx.v3.EventHandler * @instance */ EventHandler.prototype.event = ""; /** * EventHandler triggerFulfillment. - * @member {google.cloud.dialogflow.cx.v3beta1.IFulfillment|null|undefined} triggerFulfillment - * @memberof google.cloud.dialogflow.cx.v3beta1.EventHandler + * @member {google.cloud.dialogflow.cx.v3.IFulfillment|null|undefined} triggerFulfillment + * @memberof google.cloud.dialogflow.cx.v3.EventHandler * @instance */ EventHandler.prototype.triggerFulfillment = null; @@ -6766,7 +6766,7 @@ /** * EventHandler targetPage. * @member {string} targetPage - * @memberof google.cloud.dialogflow.cx.v3beta1.EventHandler + * @memberof google.cloud.dialogflow.cx.v3.EventHandler * @instance */ EventHandler.prototype.targetPage = ""; @@ -6774,7 +6774,7 @@ /** * EventHandler targetFlow. * @member {string} targetFlow - * @memberof google.cloud.dialogflow.cx.v3beta1.EventHandler + * @memberof google.cloud.dialogflow.cx.v3.EventHandler * @instance */ EventHandler.prototype.targetFlow = ""; @@ -6785,7 +6785,7 @@ /** * EventHandler target. * @member {"targetPage"|"targetFlow"|undefined} target - * @memberof google.cloud.dialogflow.cx.v3beta1.EventHandler + * @memberof google.cloud.dialogflow.cx.v3.EventHandler * @instance */ Object.defineProperty(EventHandler.prototype, "target", { @@ -6796,21 +6796,21 @@ /** * Creates a new EventHandler instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.EventHandler + * @memberof google.cloud.dialogflow.cx.v3.EventHandler * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IEventHandler=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.EventHandler} EventHandler instance + * @param {google.cloud.dialogflow.cx.v3.IEventHandler=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.EventHandler} EventHandler instance */ EventHandler.create = function create(properties) { return new EventHandler(properties); }; /** - * Encodes the specified EventHandler message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EventHandler.verify|verify} messages. + * Encodes the specified EventHandler message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.EventHandler.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.EventHandler + * @memberof google.cloud.dialogflow.cx.v3.EventHandler * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IEventHandler} message EventHandler message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IEventHandler} message EventHandler message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -6824,18 +6824,18 @@ if (message.event != null && Object.hasOwnProperty.call(message, "event")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.event); if (message.triggerFulfillment != null && Object.hasOwnProperty.call(message, "triggerFulfillment")) - $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.encode(message.triggerFulfillment, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.Fulfillment.encode(message.triggerFulfillment, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); return writer; }; /** - * Encodes the specified EventHandler message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EventHandler.verify|verify} messages. + * Encodes the specified EventHandler message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.EventHandler.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.EventHandler + * @memberof google.cloud.dialogflow.cx.v3.EventHandler * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IEventHandler} message EventHandler message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IEventHandler} message EventHandler message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -6846,18 +6846,18 @@ /** * Decodes an EventHandler message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.EventHandler + * @memberof google.cloud.dialogflow.cx.v3.EventHandler * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.EventHandler} EventHandler + * @returns {google.cloud.dialogflow.cx.v3.EventHandler} EventHandler * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EventHandler.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.EventHandler(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.EventHandler(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -6868,7 +6868,7 @@ message.event = reader.string(); break; case 5: - message.triggerFulfillment = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.decode(reader, reader.uint32()); + message.triggerFulfillment = $root.google.cloud.dialogflow.cx.v3.Fulfillment.decode(reader, reader.uint32()); break; case 2: message.targetPage = reader.string(); @@ -6887,10 +6887,10 @@ /** * Decodes an EventHandler message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.EventHandler + * @memberof google.cloud.dialogflow.cx.v3.EventHandler * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.EventHandler} EventHandler + * @returns {google.cloud.dialogflow.cx.v3.EventHandler} EventHandler * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -6903,7 +6903,7 @@ /** * Verifies an EventHandler message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.EventHandler + * @memberof google.cloud.dialogflow.cx.v3.EventHandler * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -6919,7 +6919,7 @@ if (!$util.isString(message.event)) return "event: string expected"; if (message.triggerFulfillment != null && message.hasOwnProperty("triggerFulfillment")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.verify(message.triggerFulfillment); + var error = $root.google.cloud.dialogflow.cx.v3.Fulfillment.verify(message.triggerFulfillment); if (error) return "triggerFulfillment." + error; } @@ -6941,23 +6941,23 @@ /** * Creates an EventHandler message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.EventHandler + * @memberof google.cloud.dialogflow.cx.v3.EventHandler * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.EventHandler} EventHandler + * @returns {google.cloud.dialogflow.cx.v3.EventHandler} EventHandler */ EventHandler.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.EventHandler) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.EventHandler) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.EventHandler(); + var message = new $root.google.cloud.dialogflow.cx.v3.EventHandler(); if (object.name != null) message.name = String(object.name); if (object.event != null) message.event = String(object.event); if (object.triggerFulfillment != null) { if (typeof object.triggerFulfillment !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.EventHandler.triggerFulfillment: object expected"); - message.triggerFulfillment = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.fromObject(object.triggerFulfillment); + throw TypeError(".google.cloud.dialogflow.cx.v3.EventHandler.triggerFulfillment: object expected"); + message.triggerFulfillment = $root.google.cloud.dialogflow.cx.v3.Fulfillment.fromObject(object.triggerFulfillment); } if (object.targetPage != null) message.targetPage = String(object.targetPage); @@ -6969,9 +6969,9 @@ /** * Creates a plain object from an EventHandler message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.EventHandler + * @memberof google.cloud.dialogflow.cx.v3.EventHandler * @static - * @param {google.cloud.dialogflow.cx.v3beta1.EventHandler} message EventHandler + * @param {google.cloud.dialogflow.cx.v3.EventHandler} message EventHandler * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -6997,7 +6997,7 @@ if (message.event != null && message.hasOwnProperty("event")) object.event = message.event; if (message.triggerFulfillment != null && message.hasOwnProperty("triggerFulfillment")) - object.triggerFulfillment = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.toObject(message.triggerFulfillment, options); + object.triggerFulfillment = $root.google.cloud.dialogflow.cx.v3.Fulfillment.toObject(message.triggerFulfillment, options); if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; return object; @@ -7006,7 +7006,7 @@ /** * Converts this EventHandler to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.EventHandler + * @memberof google.cloud.dialogflow.cx.v3.EventHandler * @instance * @returns {Object.} JSON object */ @@ -7017,27 +7017,27 @@ return EventHandler; })(); - v3beta1.TransitionRoute = (function() { + v3.TransitionRoute = (function() { /** * Properties of a TransitionRoute. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface ITransitionRoute * @property {string|null} [name] TransitionRoute name * @property {string|null} [intent] TransitionRoute intent * @property {string|null} [condition] TransitionRoute condition - * @property {google.cloud.dialogflow.cx.v3beta1.IFulfillment|null} [triggerFulfillment] TransitionRoute triggerFulfillment + * @property {google.cloud.dialogflow.cx.v3.IFulfillment|null} [triggerFulfillment] TransitionRoute triggerFulfillment * @property {string|null} [targetPage] TransitionRoute targetPage * @property {string|null} [targetFlow] TransitionRoute targetFlow */ /** * Constructs a new TransitionRoute. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a TransitionRoute. * @implements ITransitionRoute * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionRoute=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ITransitionRoute=} [properties] Properties to set */ function TransitionRoute(properties) { if (properties) @@ -7049,7 +7049,7 @@ /** * TransitionRoute name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute + * @memberof google.cloud.dialogflow.cx.v3.TransitionRoute * @instance */ TransitionRoute.prototype.name = ""; @@ -7057,7 +7057,7 @@ /** * TransitionRoute intent. * @member {string} intent - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute + * @memberof google.cloud.dialogflow.cx.v3.TransitionRoute * @instance */ TransitionRoute.prototype.intent = ""; @@ -7065,15 +7065,15 @@ /** * TransitionRoute condition. * @member {string} condition - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute + * @memberof google.cloud.dialogflow.cx.v3.TransitionRoute * @instance */ TransitionRoute.prototype.condition = ""; /** * TransitionRoute triggerFulfillment. - * @member {google.cloud.dialogflow.cx.v3beta1.IFulfillment|null|undefined} triggerFulfillment - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute + * @member {google.cloud.dialogflow.cx.v3.IFulfillment|null|undefined} triggerFulfillment + * @memberof google.cloud.dialogflow.cx.v3.TransitionRoute * @instance */ TransitionRoute.prototype.triggerFulfillment = null; @@ -7081,7 +7081,7 @@ /** * TransitionRoute targetPage. * @member {string} targetPage - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute + * @memberof google.cloud.dialogflow.cx.v3.TransitionRoute * @instance */ TransitionRoute.prototype.targetPage = ""; @@ -7089,7 +7089,7 @@ /** * TransitionRoute targetFlow. * @member {string} targetFlow - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute + * @memberof google.cloud.dialogflow.cx.v3.TransitionRoute * @instance */ TransitionRoute.prototype.targetFlow = ""; @@ -7100,7 +7100,7 @@ /** * TransitionRoute target. * @member {"targetPage"|"targetFlow"|undefined} target - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute + * @memberof google.cloud.dialogflow.cx.v3.TransitionRoute * @instance */ Object.defineProperty(TransitionRoute.prototype, "target", { @@ -7111,21 +7111,21 @@ /** * Creates a new TransitionRoute instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute + * @memberof google.cloud.dialogflow.cx.v3.TransitionRoute * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionRoute=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRoute} TransitionRoute instance + * @param {google.cloud.dialogflow.cx.v3.ITransitionRoute=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.TransitionRoute} TransitionRoute instance */ TransitionRoute.create = function create(properties) { return new TransitionRoute(properties); }; /** - * Encodes the specified TransitionRoute message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRoute.verify|verify} messages. + * Encodes the specified TransitionRoute message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRoute.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute + * @memberof google.cloud.dialogflow.cx.v3.TransitionRoute * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionRoute} message TransitionRoute message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ITransitionRoute} message TransitionRoute message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -7137,7 +7137,7 @@ if (message.condition != null && Object.hasOwnProperty.call(message, "condition")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.condition); if (message.triggerFulfillment != null && Object.hasOwnProperty.call(message, "triggerFulfillment")) - $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.encode(message.triggerFulfillment, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.Fulfillment.encode(message.triggerFulfillment, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.targetPage != null && Object.hasOwnProperty.call(message, "targetPage")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.targetPage); if (message.targetFlow != null && Object.hasOwnProperty.call(message, "targetFlow")) @@ -7148,11 +7148,11 @@ }; /** - * Encodes the specified TransitionRoute message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRoute.verify|verify} messages. + * Encodes the specified TransitionRoute message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRoute.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute + * @memberof google.cloud.dialogflow.cx.v3.TransitionRoute * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionRoute} message TransitionRoute message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ITransitionRoute} message TransitionRoute message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -7163,18 +7163,18 @@ /** * Decodes a TransitionRoute message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute + * @memberof google.cloud.dialogflow.cx.v3.TransitionRoute * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRoute} TransitionRoute + * @returns {google.cloud.dialogflow.cx.v3.TransitionRoute} TransitionRoute * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TransitionRoute.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.TransitionRoute(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -7188,7 +7188,7 @@ message.condition = reader.string(); break; case 3: - message.triggerFulfillment = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.decode(reader, reader.uint32()); + message.triggerFulfillment = $root.google.cloud.dialogflow.cx.v3.Fulfillment.decode(reader, reader.uint32()); break; case 4: message.targetPage = reader.string(); @@ -7207,10 +7207,10 @@ /** * Decodes a TransitionRoute message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute + * @memberof google.cloud.dialogflow.cx.v3.TransitionRoute * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRoute} TransitionRoute + * @returns {google.cloud.dialogflow.cx.v3.TransitionRoute} TransitionRoute * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -7223,7 +7223,7 @@ /** * Verifies a TransitionRoute message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute + * @memberof google.cloud.dialogflow.cx.v3.TransitionRoute * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -7242,7 +7242,7 @@ if (!$util.isString(message.condition)) return "condition: string expected"; if (message.triggerFulfillment != null && message.hasOwnProperty("triggerFulfillment")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.verify(message.triggerFulfillment); + var error = $root.google.cloud.dialogflow.cx.v3.Fulfillment.verify(message.triggerFulfillment); if (error) return "triggerFulfillment." + error; } @@ -7264,15 +7264,15 @@ /** * Creates a TransitionRoute message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute + * @memberof google.cloud.dialogflow.cx.v3.TransitionRoute * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRoute} TransitionRoute + * @returns {google.cloud.dialogflow.cx.v3.TransitionRoute} TransitionRoute */ TransitionRoute.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.TransitionRoute) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute(); + var message = new $root.google.cloud.dialogflow.cx.v3.TransitionRoute(); if (object.name != null) message.name = String(object.name); if (object.intent != null) @@ -7281,8 +7281,8 @@ message.condition = String(object.condition); if (object.triggerFulfillment != null) { if (typeof object.triggerFulfillment !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TransitionRoute.triggerFulfillment: object expected"); - message.triggerFulfillment = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.fromObject(object.triggerFulfillment); + throw TypeError(".google.cloud.dialogflow.cx.v3.TransitionRoute.triggerFulfillment: object expected"); + message.triggerFulfillment = $root.google.cloud.dialogflow.cx.v3.Fulfillment.fromObject(object.triggerFulfillment); } if (object.targetPage != null) message.targetPage = String(object.targetPage); @@ -7294,9 +7294,9 @@ /** * Creates a plain object from a TransitionRoute message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute + * @memberof google.cloud.dialogflow.cx.v3.TransitionRoute * @static - * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRoute} message TransitionRoute + * @param {google.cloud.dialogflow.cx.v3.TransitionRoute} message TransitionRoute * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -7315,7 +7315,7 @@ if (message.condition != null && message.hasOwnProperty("condition")) object.condition = message.condition; if (message.triggerFulfillment != null && message.hasOwnProperty("triggerFulfillment")) - object.triggerFulfillment = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.toObject(message.triggerFulfillment, options); + object.triggerFulfillment = $root.google.cloud.dialogflow.cx.v3.Fulfillment.toObject(message.triggerFulfillment, options); if (message.targetPage != null && message.hasOwnProperty("targetPage")) { object.targetPage = message.targetPage; if (options.oneofs) @@ -7334,7 +7334,7 @@ /** * Converts this TransitionRoute to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute + * @memberof google.cloud.dialogflow.cx.v3.TransitionRoute * @instance * @returns {Object.} JSON object */ @@ -7345,11 +7345,11 @@ return TransitionRoute; })(); - v3beta1.ListPagesRequest = (function() { + v3.ListPagesRequest = (function() { /** * Properties of a ListPagesRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface IListPagesRequest * @property {string|null} [parent] ListPagesRequest parent * @property {string|null} [languageCode] ListPagesRequest languageCode @@ -7359,11 +7359,11 @@ /** * Constructs a new ListPagesRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a ListPagesRequest. * @implements IListPagesRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListPagesRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IListPagesRequest=} [properties] Properties to set */ function ListPagesRequest(properties) { if (properties) @@ -7375,7 +7375,7 @@ /** * ListPagesRequest parent. * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesRequest + * @memberof google.cloud.dialogflow.cx.v3.ListPagesRequest * @instance */ ListPagesRequest.prototype.parent = ""; @@ -7383,7 +7383,7 @@ /** * ListPagesRequest languageCode. * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesRequest + * @memberof google.cloud.dialogflow.cx.v3.ListPagesRequest * @instance */ ListPagesRequest.prototype.languageCode = ""; @@ -7391,7 +7391,7 @@ /** * ListPagesRequest pageSize. * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesRequest + * @memberof google.cloud.dialogflow.cx.v3.ListPagesRequest * @instance */ ListPagesRequest.prototype.pageSize = 0; @@ -7399,7 +7399,7 @@ /** * ListPagesRequest pageToken. * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesRequest + * @memberof google.cloud.dialogflow.cx.v3.ListPagesRequest * @instance */ ListPagesRequest.prototype.pageToken = ""; @@ -7407,21 +7407,21 @@ /** * Creates a new ListPagesRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesRequest + * @memberof google.cloud.dialogflow.cx.v3.ListPagesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListPagesRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListPagesRequest} ListPagesRequest instance + * @param {google.cloud.dialogflow.cx.v3.IListPagesRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListPagesRequest} ListPagesRequest instance */ ListPagesRequest.create = function create(properties) { return new ListPagesRequest(properties); }; /** - * Encodes the specified ListPagesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListPagesRequest.verify|verify} messages. + * Encodes the specified ListPagesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListPagesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesRequest + * @memberof google.cloud.dialogflow.cx.v3.ListPagesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListPagesRequest} message ListPagesRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListPagesRequest} message ListPagesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -7440,11 +7440,11 @@ }; /** - * Encodes the specified ListPagesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListPagesRequest.verify|verify} messages. + * Encodes the specified ListPagesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListPagesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesRequest + * @memberof google.cloud.dialogflow.cx.v3.ListPagesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListPagesRequest} message ListPagesRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListPagesRequest} message ListPagesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -7455,18 +7455,18 @@ /** * Decodes a ListPagesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesRequest + * @memberof google.cloud.dialogflow.cx.v3.ListPagesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ListPagesRequest} ListPagesRequest + * @returns {google.cloud.dialogflow.cx.v3.ListPagesRequest} ListPagesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ListPagesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListPagesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListPagesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -7493,10 +7493,10 @@ /** * Decodes a ListPagesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesRequest + * @memberof google.cloud.dialogflow.cx.v3.ListPagesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ListPagesRequest} ListPagesRequest + * @returns {google.cloud.dialogflow.cx.v3.ListPagesRequest} ListPagesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -7509,7 +7509,7 @@ /** * Verifies a ListPagesRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesRequest + * @memberof google.cloud.dialogflow.cx.v3.ListPagesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -7535,15 +7535,15 @@ /** * Creates a ListPagesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesRequest + * @memberof google.cloud.dialogflow.cx.v3.ListPagesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListPagesRequest} ListPagesRequest + * @returns {google.cloud.dialogflow.cx.v3.ListPagesRequest} ListPagesRequest */ ListPagesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListPagesRequest) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListPagesRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListPagesRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.ListPagesRequest(); if (object.parent != null) message.parent = String(object.parent); if (object.languageCode != null) @@ -7558,9 +7558,9 @@ /** * Creates a plain object from a ListPagesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesRequest + * @memberof google.cloud.dialogflow.cx.v3.ListPagesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListPagesRequest} message ListPagesRequest + * @param {google.cloud.dialogflow.cx.v3.ListPagesRequest} message ListPagesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -7588,7 +7588,7 @@ /** * Converts this ListPagesRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesRequest + * @memberof google.cloud.dialogflow.cx.v3.ListPagesRequest * @instance * @returns {Object.} JSON object */ @@ -7599,23 +7599,23 @@ return ListPagesRequest; })(); - v3beta1.ListPagesResponse = (function() { + v3.ListPagesResponse = (function() { /** * Properties of a ListPagesResponse. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface IListPagesResponse - * @property {Array.|null} [pages] ListPagesResponse pages + * @property {Array.|null} [pages] ListPagesResponse pages * @property {string|null} [nextPageToken] ListPagesResponse nextPageToken */ /** * Constructs a new ListPagesResponse. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a ListPagesResponse. * @implements IListPagesResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListPagesResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IListPagesResponse=} [properties] Properties to set */ function ListPagesResponse(properties) { this.pages = []; @@ -7627,8 +7627,8 @@ /** * ListPagesResponse pages. - * @member {Array.} pages - * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesResponse + * @member {Array.} pages + * @memberof google.cloud.dialogflow.cx.v3.ListPagesResponse * @instance */ ListPagesResponse.prototype.pages = $util.emptyArray; @@ -7636,7 +7636,7 @@ /** * ListPagesResponse nextPageToken. * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesResponse + * @memberof google.cloud.dialogflow.cx.v3.ListPagesResponse * @instance */ ListPagesResponse.prototype.nextPageToken = ""; @@ -7644,21 +7644,21 @@ /** * Creates a new ListPagesResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesResponse + * @memberof google.cloud.dialogflow.cx.v3.ListPagesResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListPagesResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListPagesResponse} ListPagesResponse instance + * @param {google.cloud.dialogflow.cx.v3.IListPagesResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListPagesResponse} ListPagesResponse instance */ ListPagesResponse.create = function create(properties) { return new ListPagesResponse(properties); }; /** - * Encodes the specified ListPagesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListPagesResponse.verify|verify} messages. + * Encodes the specified ListPagesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListPagesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesResponse + * @memberof google.cloud.dialogflow.cx.v3.ListPagesResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListPagesResponse} message ListPagesResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListPagesResponse} message ListPagesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -7667,18 +7667,18 @@ writer = $Writer.create(); if (message.pages != null && message.pages.length) for (var i = 0; i < message.pages.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.Page.encode(message.pages[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.Page.encode(message.pages[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified ListPagesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListPagesResponse.verify|verify} messages. + * Encodes the specified ListPagesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListPagesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesResponse + * @memberof google.cloud.dialogflow.cx.v3.ListPagesResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListPagesResponse} message ListPagesResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListPagesResponse} message ListPagesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -7689,25 +7689,25 @@ /** * Decodes a ListPagesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesResponse + * @memberof google.cloud.dialogflow.cx.v3.ListPagesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ListPagesResponse} ListPagesResponse + * @returns {google.cloud.dialogflow.cx.v3.ListPagesResponse} ListPagesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ListPagesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListPagesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListPagesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: if (!(message.pages && message.pages.length)) message.pages = []; - message.pages.push($root.google.cloud.dialogflow.cx.v3beta1.Page.decode(reader, reader.uint32())); + message.pages.push($root.google.cloud.dialogflow.cx.v3.Page.decode(reader, reader.uint32())); break; case 2: message.nextPageToken = reader.string(); @@ -7723,10 +7723,10 @@ /** * Decodes a ListPagesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesResponse + * @memberof google.cloud.dialogflow.cx.v3.ListPagesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ListPagesResponse} ListPagesResponse + * @returns {google.cloud.dialogflow.cx.v3.ListPagesResponse} ListPagesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -7739,7 +7739,7 @@ /** * Verifies a ListPagesResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesResponse + * @memberof google.cloud.dialogflow.cx.v3.ListPagesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -7751,7 +7751,7 @@ if (!Array.isArray(message.pages)) return "pages: array expected"; for (var i = 0; i < message.pages.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Page.verify(message.pages[i]); + var error = $root.google.cloud.dialogflow.cx.v3.Page.verify(message.pages[i]); if (error) return "pages." + error; } @@ -7765,23 +7765,23 @@ /** * Creates a ListPagesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesResponse + * @memberof google.cloud.dialogflow.cx.v3.ListPagesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListPagesResponse} ListPagesResponse + * @returns {google.cloud.dialogflow.cx.v3.ListPagesResponse} ListPagesResponse */ ListPagesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListPagesResponse) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListPagesResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListPagesResponse(); + var message = new $root.google.cloud.dialogflow.cx.v3.ListPagesResponse(); if (object.pages) { if (!Array.isArray(object.pages)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListPagesResponse.pages: array expected"); + throw TypeError(".google.cloud.dialogflow.cx.v3.ListPagesResponse.pages: array expected"); message.pages = []; for (var i = 0; i < object.pages.length; ++i) { if (typeof object.pages[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListPagesResponse.pages: object expected"); - message.pages[i] = $root.google.cloud.dialogflow.cx.v3beta1.Page.fromObject(object.pages[i]); + throw TypeError(".google.cloud.dialogflow.cx.v3.ListPagesResponse.pages: object expected"); + message.pages[i] = $root.google.cloud.dialogflow.cx.v3.Page.fromObject(object.pages[i]); } } if (object.nextPageToken != null) @@ -7792,9 +7792,9 @@ /** * Creates a plain object from a ListPagesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesResponse + * @memberof google.cloud.dialogflow.cx.v3.ListPagesResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListPagesResponse} message ListPagesResponse + * @param {google.cloud.dialogflow.cx.v3.ListPagesResponse} message ListPagesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -7809,7 +7809,7 @@ if (message.pages && message.pages.length) { object.pages = []; for (var j = 0; j < message.pages.length; ++j) - object.pages[j] = $root.google.cloud.dialogflow.cx.v3beta1.Page.toObject(message.pages[j], options); + object.pages[j] = $root.google.cloud.dialogflow.cx.v3.Page.toObject(message.pages[j], options); } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) object.nextPageToken = message.nextPageToken; @@ -7819,7 +7819,7 @@ /** * Converts this ListPagesResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesResponse + * @memberof google.cloud.dialogflow.cx.v3.ListPagesResponse * @instance * @returns {Object.} JSON object */ @@ -7830,11 +7830,11 @@ return ListPagesResponse; })(); - v3beta1.GetPageRequest = (function() { + v3.GetPageRequest = (function() { /** * Properties of a GetPageRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface IGetPageRequest * @property {string|null} [name] GetPageRequest name * @property {string|null} [languageCode] GetPageRequest languageCode @@ -7842,11 +7842,11 @@ /** * Constructs a new GetPageRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a GetPageRequest. * @implements IGetPageRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IGetPageRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IGetPageRequest=} [properties] Properties to set */ function GetPageRequest(properties) { if (properties) @@ -7858,7 +7858,7 @@ /** * GetPageRequest name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.GetPageRequest + * @memberof google.cloud.dialogflow.cx.v3.GetPageRequest * @instance */ GetPageRequest.prototype.name = ""; @@ -7866,7 +7866,7 @@ /** * GetPageRequest languageCode. * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetPageRequest + * @memberof google.cloud.dialogflow.cx.v3.GetPageRequest * @instance */ GetPageRequest.prototype.languageCode = ""; @@ -7874,21 +7874,21 @@ /** * Creates a new GetPageRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.GetPageRequest + * @memberof google.cloud.dialogflow.cx.v3.GetPageRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetPageRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.GetPageRequest} GetPageRequest instance + * @param {google.cloud.dialogflow.cx.v3.IGetPageRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.GetPageRequest} GetPageRequest instance */ GetPageRequest.create = function create(properties) { return new GetPageRequest(properties); }; /** - * Encodes the specified GetPageRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetPageRequest.verify|verify} messages. + * Encodes the specified GetPageRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetPageRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetPageRequest + * @memberof google.cloud.dialogflow.cx.v3.GetPageRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetPageRequest} message GetPageRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IGetPageRequest} message GetPageRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -7903,11 +7903,11 @@ }; /** - * Encodes the specified GetPageRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetPageRequest.verify|verify} messages. + * Encodes the specified GetPageRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetPageRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetPageRequest + * @memberof google.cloud.dialogflow.cx.v3.GetPageRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetPageRequest} message GetPageRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IGetPageRequest} message GetPageRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -7918,18 +7918,18 @@ /** * Decodes a GetPageRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetPageRequest + * @memberof google.cloud.dialogflow.cx.v3.GetPageRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.GetPageRequest} GetPageRequest + * @returns {google.cloud.dialogflow.cx.v3.GetPageRequest} GetPageRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GetPageRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.GetPageRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.GetPageRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -7950,10 +7950,10 @@ /** * Decodes a GetPageRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetPageRequest + * @memberof google.cloud.dialogflow.cx.v3.GetPageRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.GetPageRequest} GetPageRequest + * @returns {google.cloud.dialogflow.cx.v3.GetPageRequest} GetPageRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -7966,7 +7966,7 @@ /** * Verifies a GetPageRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.GetPageRequest + * @memberof google.cloud.dialogflow.cx.v3.GetPageRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -7986,15 +7986,15 @@ /** * Creates a GetPageRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetPageRequest + * @memberof google.cloud.dialogflow.cx.v3.GetPageRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.GetPageRequest} GetPageRequest + * @returns {google.cloud.dialogflow.cx.v3.GetPageRequest} GetPageRequest */ GetPageRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GetPageRequest) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.GetPageRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.GetPageRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.GetPageRequest(); if (object.name != null) message.name = String(object.name); if (object.languageCode != null) @@ -8005,9 +8005,9 @@ /** * Creates a plain object from a GetPageRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetPageRequest + * @memberof google.cloud.dialogflow.cx.v3.GetPageRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.GetPageRequest} message GetPageRequest + * @param {google.cloud.dialogflow.cx.v3.GetPageRequest} message GetPageRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -8029,7 +8029,7 @@ /** * Converts this GetPageRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.GetPageRequest + * @memberof google.cloud.dialogflow.cx.v3.GetPageRequest * @instance * @returns {Object.} JSON object */ @@ -8040,24 +8040,24 @@ return GetPageRequest; })(); - v3beta1.CreatePageRequest = (function() { + v3.CreatePageRequest = (function() { /** * Properties of a CreatePageRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface ICreatePageRequest * @property {string|null} [parent] CreatePageRequest parent - * @property {google.cloud.dialogflow.cx.v3beta1.IPage|null} [page] CreatePageRequest page + * @property {google.cloud.dialogflow.cx.v3.IPage|null} [page] CreatePageRequest page * @property {string|null} [languageCode] CreatePageRequest languageCode */ /** * Constructs a new CreatePageRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a CreatePageRequest. * @implements ICreatePageRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ICreatePageRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ICreatePageRequest=} [properties] Properties to set */ function CreatePageRequest(properties) { if (properties) @@ -8069,15 +8069,15 @@ /** * CreatePageRequest parent. * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.CreatePageRequest + * @memberof google.cloud.dialogflow.cx.v3.CreatePageRequest * @instance */ CreatePageRequest.prototype.parent = ""; /** * CreatePageRequest page. - * @member {google.cloud.dialogflow.cx.v3beta1.IPage|null|undefined} page - * @memberof google.cloud.dialogflow.cx.v3beta1.CreatePageRequest + * @member {google.cloud.dialogflow.cx.v3.IPage|null|undefined} page + * @memberof google.cloud.dialogflow.cx.v3.CreatePageRequest * @instance */ CreatePageRequest.prototype.page = null; @@ -8085,7 +8085,7 @@ /** * CreatePageRequest languageCode. * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreatePageRequest + * @memberof google.cloud.dialogflow.cx.v3.CreatePageRequest * @instance */ CreatePageRequest.prototype.languageCode = ""; @@ -8093,21 +8093,21 @@ /** * Creates a new CreatePageRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.CreatePageRequest + * @memberof google.cloud.dialogflow.cx.v3.CreatePageRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreatePageRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.CreatePageRequest} CreatePageRequest instance + * @param {google.cloud.dialogflow.cx.v3.ICreatePageRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.CreatePageRequest} CreatePageRequest instance */ CreatePageRequest.create = function create(properties) { return new CreatePageRequest(properties); }; /** - * Encodes the specified CreatePageRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreatePageRequest.verify|verify} messages. + * Encodes the specified CreatePageRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreatePageRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreatePageRequest + * @memberof google.cloud.dialogflow.cx.v3.CreatePageRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreatePageRequest} message CreatePageRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ICreatePageRequest} message CreatePageRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -8117,18 +8117,18 @@ if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); if (message.page != null && Object.hasOwnProperty.call(message, "page")) - $root.google.cloud.dialogflow.cx.v3beta1.Page.encode(message.page, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.Page.encode(message.page, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.languageCode); return writer; }; /** - * Encodes the specified CreatePageRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreatePageRequest.verify|verify} messages. + * Encodes the specified CreatePageRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreatePageRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.CreatePageRequest + * @memberof google.cloud.dialogflow.cx.v3.CreatePageRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreatePageRequest} message CreatePageRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ICreatePageRequest} message CreatePageRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -8139,18 +8139,18 @@ /** * Decodes a CreatePageRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreatePageRequest + * @memberof google.cloud.dialogflow.cx.v3.CreatePageRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.CreatePageRequest} CreatePageRequest + * @returns {google.cloud.dialogflow.cx.v3.CreatePageRequest} CreatePageRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ CreatePageRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.CreatePageRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.CreatePageRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -8158,7 +8158,7 @@ message.parent = reader.string(); break; case 2: - message.page = $root.google.cloud.dialogflow.cx.v3beta1.Page.decode(reader, reader.uint32()); + message.page = $root.google.cloud.dialogflow.cx.v3.Page.decode(reader, reader.uint32()); break; case 3: message.languageCode = reader.string(); @@ -8174,10 +8174,10 @@ /** * Decodes a CreatePageRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.CreatePageRequest + * @memberof google.cloud.dialogflow.cx.v3.CreatePageRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.CreatePageRequest} CreatePageRequest + * @returns {google.cloud.dialogflow.cx.v3.CreatePageRequest} CreatePageRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -8190,7 +8190,7 @@ /** * Verifies a CreatePageRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.CreatePageRequest + * @memberof google.cloud.dialogflow.cx.v3.CreatePageRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -8202,7 +8202,7 @@ if (!$util.isString(message.parent)) return "parent: string expected"; if (message.page != null && message.hasOwnProperty("page")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Page.verify(message.page); + var error = $root.google.cloud.dialogflow.cx.v3.Page.verify(message.page); if (error) return "page." + error; } @@ -8215,21 +8215,21 @@ /** * Creates a CreatePageRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.CreatePageRequest + * @memberof google.cloud.dialogflow.cx.v3.CreatePageRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.CreatePageRequest} CreatePageRequest + * @returns {google.cloud.dialogflow.cx.v3.CreatePageRequest} CreatePageRequest */ CreatePageRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.CreatePageRequest) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.CreatePageRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.CreatePageRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.CreatePageRequest(); if (object.parent != null) message.parent = String(object.parent); if (object.page != null) { if (typeof object.page !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.CreatePageRequest.page: object expected"); - message.page = $root.google.cloud.dialogflow.cx.v3beta1.Page.fromObject(object.page); + throw TypeError(".google.cloud.dialogflow.cx.v3.CreatePageRequest.page: object expected"); + message.page = $root.google.cloud.dialogflow.cx.v3.Page.fromObject(object.page); } if (object.languageCode != null) message.languageCode = String(object.languageCode); @@ -8239,9 +8239,9 @@ /** * Creates a plain object from a CreatePageRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.CreatePageRequest + * @memberof google.cloud.dialogflow.cx.v3.CreatePageRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.CreatePageRequest} message CreatePageRequest + * @param {google.cloud.dialogflow.cx.v3.CreatePageRequest} message CreatePageRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -8257,7 +8257,7 @@ if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; if (message.page != null && message.hasOwnProperty("page")) - object.page = $root.google.cloud.dialogflow.cx.v3beta1.Page.toObject(message.page, options); + object.page = $root.google.cloud.dialogflow.cx.v3.Page.toObject(message.page, options); if (message.languageCode != null && message.hasOwnProperty("languageCode")) object.languageCode = message.languageCode; return object; @@ -8266,7 +8266,7 @@ /** * Converts this CreatePageRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.CreatePageRequest + * @memberof google.cloud.dialogflow.cx.v3.CreatePageRequest * @instance * @returns {Object.} JSON object */ @@ -8277,24 +8277,24 @@ return CreatePageRequest; })(); - v3beta1.UpdatePageRequest = (function() { + v3.UpdatePageRequest = (function() { /** * Properties of an UpdatePageRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface IUpdatePageRequest - * @property {google.cloud.dialogflow.cx.v3beta1.IPage|null} [page] UpdatePageRequest page + * @property {google.cloud.dialogflow.cx.v3.IPage|null} [page] UpdatePageRequest page * @property {string|null} [languageCode] UpdatePageRequest languageCode * @property {google.protobuf.IFieldMask|null} [updateMask] UpdatePageRequest updateMask */ /** * Constructs a new UpdatePageRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents an UpdatePageRequest. * @implements IUpdatePageRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdatePageRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IUpdatePageRequest=} [properties] Properties to set */ function UpdatePageRequest(properties) { if (properties) @@ -8305,8 +8305,8 @@ /** * UpdatePageRequest page. - * @member {google.cloud.dialogflow.cx.v3beta1.IPage|null|undefined} page - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest + * @member {google.cloud.dialogflow.cx.v3.IPage|null|undefined} page + * @memberof google.cloud.dialogflow.cx.v3.UpdatePageRequest * @instance */ UpdatePageRequest.prototype.page = null; @@ -8314,7 +8314,7 @@ /** * UpdatePageRequest languageCode. * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdatePageRequest * @instance */ UpdatePageRequest.prototype.languageCode = ""; @@ -8322,7 +8322,7 @@ /** * UpdatePageRequest updateMask. * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdatePageRequest * @instance */ UpdatePageRequest.prototype.updateMask = null; @@ -8330,21 +8330,21 @@ /** * Creates a new UpdatePageRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdatePageRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdatePageRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest} UpdatePageRequest instance + * @param {google.cloud.dialogflow.cx.v3.IUpdatePageRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.UpdatePageRequest} UpdatePageRequest instance */ UpdatePageRequest.create = function create(properties) { return new UpdatePageRequest(properties); }; /** - * Encodes the specified UpdatePageRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest.verify|verify} messages. + * Encodes the specified UpdatePageRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdatePageRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdatePageRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdatePageRequest} message UpdatePageRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IUpdatePageRequest} message UpdatePageRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -8352,7 +8352,7 @@ if (!writer) writer = $Writer.create(); if (message.page != null && Object.hasOwnProperty.call(message, "page")) - $root.google.cloud.dialogflow.cx.v3beta1.Page.encode(message.page, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.Page.encode(message.page, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) @@ -8361,11 +8361,11 @@ }; /** - * Encodes the specified UpdatePageRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest.verify|verify} messages. + * Encodes the specified UpdatePageRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdatePageRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdatePageRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdatePageRequest} message UpdatePageRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IUpdatePageRequest} message UpdatePageRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -8376,23 +8376,23 @@ /** * Decodes an UpdatePageRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdatePageRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest} UpdatePageRequest + * @returns {google.cloud.dialogflow.cx.v3.UpdatePageRequest} UpdatePageRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UpdatePageRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.UpdatePageRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.page = $root.google.cloud.dialogflow.cx.v3beta1.Page.decode(reader, reader.uint32()); + message.page = $root.google.cloud.dialogflow.cx.v3.Page.decode(reader, reader.uint32()); break; case 2: message.languageCode = reader.string(); @@ -8411,10 +8411,10 @@ /** * Decodes an UpdatePageRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdatePageRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest} UpdatePageRequest + * @returns {google.cloud.dialogflow.cx.v3.UpdatePageRequest} UpdatePageRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -8427,7 +8427,7 @@ /** * Verifies an UpdatePageRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdatePageRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -8436,7 +8436,7 @@ if (typeof message !== "object" || message === null) return "object expected"; if (message.page != null && message.hasOwnProperty("page")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Page.verify(message.page); + var error = $root.google.cloud.dialogflow.cx.v3.Page.verify(message.page); if (error) return "page." + error; } @@ -8454,25 +8454,25 @@ /** * Creates an UpdatePageRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdatePageRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest} UpdatePageRequest + * @returns {google.cloud.dialogflow.cx.v3.UpdatePageRequest} UpdatePageRequest */ UpdatePageRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.UpdatePageRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.UpdatePageRequest(); if (object.page != null) { if (typeof object.page !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest.page: object expected"); - message.page = $root.google.cloud.dialogflow.cx.v3beta1.Page.fromObject(object.page); + throw TypeError(".google.cloud.dialogflow.cx.v3.UpdatePageRequest.page: object expected"); + message.page = $root.google.cloud.dialogflow.cx.v3.Page.fromObject(object.page); } if (object.languageCode != null) message.languageCode = String(object.languageCode); if (object.updateMask != null) { if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest.updateMask: object expected"); + throw TypeError(".google.cloud.dialogflow.cx.v3.UpdatePageRequest.updateMask: object expected"); message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } return message; @@ -8481,9 +8481,9 @@ /** * Creates a plain object from an UpdatePageRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdatePageRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest} message UpdatePageRequest + * @param {google.cloud.dialogflow.cx.v3.UpdatePageRequest} message UpdatePageRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -8497,7 +8497,7 @@ object.updateMask = null; } if (message.page != null && message.hasOwnProperty("page")) - object.page = $root.google.cloud.dialogflow.cx.v3beta1.Page.toObject(message.page, options); + object.page = $root.google.cloud.dialogflow.cx.v3.Page.toObject(message.page, options); if (message.languageCode != null && message.hasOwnProperty("languageCode")) object.languageCode = message.languageCode; if (message.updateMask != null && message.hasOwnProperty("updateMask")) @@ -8508,7 +8508,7 @@ /** * Converts this UpdatePageRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdatePageRequest * @instance * @returns {Object.} JSON object */ @@ -8519,11 +8519,11 @@ return UpdatePageRequest; })(); - v3beta1.DeletePageRequest = (function() { + v3.DeletePageRequest = (function() { /** * Properties of a DeletePageRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface IDeletePageRequest * @property {string|null} [name] DeletePageRequest name * @property {boolean|null} [force] DeletePageRequest force @@ -8531,11 +8531,11 @@ /** * Constructs a new DeletePageRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a DeletePageRequest. * @implements IDeletePageRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IDeletePageRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IDeletePageRequest=} [properties] Properties to set */ function DeletePageRequest(properties) { if (properties) @@ -8547,7 +8547,7 @@ /** * DeletePageRequest name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.DeletePageRequest + * @memberof google.cloud.dialogflow.cx.v3.DeletePageRequest * @instance */ DeletePageRequest.prototype.name = ""; @@ -8555,7 +8555,7 @@ /** * DeletePageRequest force. * @member {boolean} force - * @memberof google.cloud.dialogflow.cx.v3beta1.DeletePageRequest + * @memberof google.cloud.dialogflow.cx.v3.DeletePageRequest * @instance */ DeletePageRequest.prototype.force = false; @@ -8563,21 +8563,21 @@ /** * Creates a new DeletePageRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.DeletePageRequest + * @memberof google.cloud.dialogflow.cx.v3.DeletePageRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeletePageRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.DeletePageRequest} DeletePageRequest instance + * @param {google.cloud.dialogflow.cx.v3.IDeletePageRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.DeletePageRequest} DeletePageRequest instance */ DeletePageRequest.create = function create(properties) { return new DeletePageRequest(properties); }; /** - * Encodes the specified DeletePageRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeletePageRequest.verify|verify} messages. + * Encodes the specified DeletePageRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeletePageRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.DeletePageRequest + * @memberof google.cloud.dialogflow.cx.v3.DeletePageRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeletePageRequest} message DeletePageRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IDeletePageRequest} message DeletePageRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -8592,11 +8592,11 @@ }; /** - * Encodes the specified DeletePageRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeletePageRequest.verify|verify} messages. + * Encodes the specified DeletePageRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeletePageRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DeletePageRequest + * @memberof google.cloud.dialogflow.cx.v3.DeletePageRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeletePageRequest} message DeletePageRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IDeletePageRequest} message DeletePageRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -8607,18 +8607,18 @@ /** * Decodes a DeletePageRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.DeletePageRequest + * @memberof google.cloud.dialogflow.cx.v3.DeletePageRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.DeletePageRequest} DeletePageRequest + * @returns {google.cloud.dialogflow.cx.v3.DeletePageRequest} DeletePageRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ DeletePageRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.DeletePageRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.DeletePageRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -8639,10 +8639,10 @@ /** * Decodes a DeletePageRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DeletePageRequest + * @memberof google.cloud.dialogflow.cx.v3.DeletePageRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.DeletePageRequest} DeletePageRequest + * @returns {google.cloud.dialogflow.cx.v3.DeletePageRequest} DeletePageRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -8655,7 +8655,7 @@ /** * Verifies a DeletePageRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.DeletePageRequest + * @memberof google.cloud.dialogflow.cx.v3.DeletePageRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -8675,15 +8675,15 @@ /** * Creates a DeletePageRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DeletePageRequest + * @memberof google.cloud.dialogflow.cx.v3.DeletePageRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.DeletePageRequest} DeletePageRequest + * @returns {google.cloud.dialogflow.cx.v3.DeletePageRequest} DeletePageRequest */ DeletePageRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.DeletePageRequest) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.DeletePageRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.DeletePageRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.DeletePageRequest(); if (object.name != null) message.name = String(object.name); if (object.force != null) @@ -8694,9 +8694,9 @@ /** * Creates a plain object from a DeletePageRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DeletePageRequest + * @memberof google.cloud.dialogflow.cx.v3.DeletePageRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.DeletePageRequest} message DeletePageRequest + * @param {google.cloud.dialogflow.cx.v3.DeletePageRequest} message DeletePageRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -8718,7 +8718,7 @@ /** * Converts this DeletePageRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.DeletePageRequest + * @memberof google.cloud.dialogflow.cx.v3.DeletePageRequest * @instance * @returns {Object.} JSON object */ @@ -8729,26 +8729,26 @@ return DeletePageRequest; })(); - v3beta1.Fulfillment = (function() { + v3.Fulfillment = (function() { /** * Properties of a Fulfillment. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface IFulfillment - * @property {Array.|null} [messages] Fulfillment messages + * @property {Array.|null} [messages] Fulfillment messages * @property {string|null} [webhook] Fulfillment webhook * @property {string|null} [tag] Fulfillment tag - * @property {Array.|null} [setParameterActions] Fulfillment setParameterActions - * @property {Array.|null} [conditionalCases] Fulfillment conditionalCases + * @property {Array.|null} [setParameterActions] Fulfillment setParameterActions + * @property {Array.|null} [conditionalCases] Fulfillment conditionalCases */ /** * Constructs a new Fulfillment. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a Fulfillment. * @implements IFulfillment * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IFulfillment=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IFulfillment=} [properties] Properties to set */ function Fulfillment(properties) { this.messages = []; @@ -8762,8 +8762,8 @@ /** * Fulfillment messages. - * @member {Array.} messages - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment + * @member {Array.} messages + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment * @instance */ Fulfillment.prototype.messages = $util.emptyArray; @@ -8771,7 +8771,7 @@ /** * Fulfillment webhook. * @member {string} webhook - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment * @instance */ Fulfillment.prototype.webhook = ""; @@ -8779,23 +8779,23 @@ /** * Fulfillment tag. * @member {string} tag - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment * @instance */ Fulfillment.prototype.tag = ""; /** * Fulfillment setParameterActions. - * @member {Array.} setParameterActions - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment + * @member {Array.} setParameterActions + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment * @instance */ Fulfillment.prototype.setParameterActions = $util.emptyArray; /** * Fulfillment conditionalCases. - * @member {Array.} conditionalCases - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment + * @member {Array.} conditionalCases + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment * @instance */ Fulfillment.prototype.conditionalCases = $util.emptyArray; @@ -8803,21 +8803,21 @@ /** * Creates a new Fulfillment instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IFulfillment=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment} Fulfillment instance + * @param {google.cloud.dialogflow.cx.v3.IFulfillment=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.Fulfillment} Fulfillment instance */ Fulfillment.create = function create(properties) { return new Fulfillment(properties); }; /** - * Encodes the specified Fulfillment message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Fulfillment.verify|verify} messages. + * Encodes the specified Fulfillment message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Fulfillment.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IFulfillment} message Fulfillment message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IFulfillment} message Fulfillment message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -8826,26 +8826,26 @@ writer = $Writer.create(); if (message.messages != null && message.messages.length) for (var i = 0; i < message.messages.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.encode(message.messages[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.ResponseMessage.encode(message.messages[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.webhook != null && Object.hasOwnProperty.call(message, "webhook")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.webhook); if (message.tag != null && Object.hasOwnProperty.call(message, "tag")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.tag); if (message.setParameterActions != null && message.setParameterActions.length) for (var i = 0; i < message.setParameterActions.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction.encode(message.setParameterActions[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction.encode(message.setParameterActions[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); if (message.conditionalCases != null && message.conditionalCases.length) for (var i = 0; i < message.conditionalCases.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.encode(message.conditionalCases[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.encode(message.conditionalCases[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified Fulfillment message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Fulfillment.verify|verify} messages. + * Encodes the specified Fulfillment message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Fulfillment.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IFulfillment} message Fulfillment message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IFulfillment} message Fulfillment message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -8856,25 +8856,25 @@ /** * Decodes a Fulfillment message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment} Fulfillment + * @returns {google.cloud.dialogflow.cx.v3.Fulfillment} Fulfillment * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Fulfillment.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Fulfillment(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: if (!(message.messages && message.messages.length)) message.messages = []; - message.messages.push($root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.decode(reader, reader.uint32())); + message.messages.push($root.google.cloud.dialogflow.cx.v3.ResponseMessage.decode(reader, reader.uint32())); break; case 2: message.webhook = reader.string(); @@ -8885,12 +8885,12 @@ case 4: if (!(message.setParameterActions && message.setParameterActions.length)) message.setParameterActions = []; - message.setParameterActions.push($root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction.decode(reader, reader.uint32())); + message.setParameterActions.push($root.google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction.decode(reader, reader.uint32())); break; case 5: if (!(message.conditionalCases && message.conditionalCases.length)) message.conditionalCases = []; - message.conditionalCases.push($root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.decode(reader, reader.uint32())); + message.conditionalCases.push($root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -8903,10 +8903,10 @@ /** * Decodes a Fulfillment message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment} Fulfillment + * @returns {google.cloud.dialogflow.cx.v3.Fulfillment} Fulfillment * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -8919,7 +8919,7 @@ /** * Verifies a Fulfillment message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -8931,7 +8931,7 @@ if (!Array.isArray(message.messages)) return "messages: array expected"; for (var i = 0; i < message.messages.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.verify(message.messages[i]); + var error = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.verify(message.messages[i]); if (error) return "messages." + error; } @@ -8946,7 +8946,7 @@ if (!Array.isArray(message.setParameterActions)) return "setParameterActions: array expected"; for (var i = 0; i < message.setParameterActions.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction.verify(message.setParameterActions[i]); + var error = $root.google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction.verify(message.setParameterActions[i]); if (error) return "setParameterActions." + error; } @@ -8955,7 +8955,7 @@ if (!Array.isArray(message.conditionalCases)) return "conditionalCases: array expected"; for (var i = 0; i < message.conditionalCases.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.verify(message.conditionalCases[i]); + var error = $root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.verify(message.conditionalCases[i]); if (error) return "conditionalCases." + error; } @@ -8966,23 +8966,23 @@ /** * Creates a Fulfillment message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment} Fulfillment + * @returns {google.cloud.dialogflow.cx.v3.Fulfillment} Fulfillment */ Fulfillment.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.Fulfillment) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment(); + var message = new $root.google.cloud.dialogflow.cx.v3.Fulfillment(); if (object.messages) { if (!Array.isArray(object.messages)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Fulfillment.messages: array expected"); + throw TypeError(".google.cloud.dialogflow.cx.v3.Fulfillment.messages: array expected"); message.messages = []; for (var i = 0; i < object.messages.length; ++i) { if (typeof object.messages[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Fulfillment.messages: object expected"); - message.messages[i] = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.fromObject(object.messages[i]); + throw TypeError(".google.cloud.dialogflow.cx.v3.Fulfillment.messages: object expected"); + message.messages[i] = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.fromObject(object.messages[i]); } } if (object.webhook != null) @@ -8991,22 +8991,22 @@ message.tag = String(object.tag); if (object.setParameterActions) { if (!Array.isArray(object.setParameterActions)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Fulfillment.setParameterActions: array expected"); + throw TypeError(".google.cloud.dialogflow.cx.v3.Fulfillment.setParameterActions: array expected"); message.setParameterActions = []; for (var i = 0; i < object.setParameterActions.length; ++i) { if (typeof object.setParameterActions[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Fulfillment.setParameterActions: object expected"); - message.setParameterActions[i] = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction.fromObject(object.setParameterActions[i]); + throw TypeError(".google.cloud.dialogflow.cx.v3.Fulfillment.setParameterActions: object expected"); + message.setParameterActions[i] = $root.google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction.fromObject(object.setParameterActions[i]); } } if (object.conditionalCases) { if (!Array.isArray(object.conditionalCases)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Fulfillment.conditionalCases: array expected"); + throw TypeError(".google.cloud.dialogflow.cx.v3.Fulfillment.conditionalCases: array expected"); message.conditionalCases = []; for (var i = 0; i < object.conditionalCases.length; ++i) { if (typeof object.conditionalCases[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Fulfillment.conditionalCases: object expected"); - message.conditionalCases[i] = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.fromObject(object.conditionalCases[i]); + throw TypeError(".google.cloud.dialogflow.cx.v3.Fulfillment.conditionalCases: object expected"); + message.conditionalCases[i] = $root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.fromObject(object.conditionalCases[i]); } } return message; @@ -9015,9 +9015,9 @@ /** * Creates a plain object from a Fulfillment message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment} message Fulfillment + * @param {google.cloud.dialogflow.cx.v3.Fulfillment} message Fulfillment * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -9037,7 +9037,7 @@ if (message.messages && message.messages.length) { object.messages = []; for (var j = 0; j < message.messages.length; ++j) - object.messages[j] = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.toObject(message.messages[j], options); + object.messages[j] = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.toObject(message.messages[j], options); } if (message.webhook != null && message.hasOwnProperty("webhook")) object.webhook = message.webhook; @@ -9046,12 +9046,12 @@ if (message.setParameterActions && message.setParameterActions.length) { object.setParameterActions = []; for (var j = 0; j < message.setParameterActions.length; ++j) - object.setParameterActions[j] = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction.toObject(message.setParameterActions[j], options); + object.setParameterActions[j] = $root.google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction.toObject(message.setParameterActions[j], options); } if (message.conditionalCases && message.conditionalCases.length) { object.conditionalCases = []; for (var j = 0; j < message.conditionalCases.length; ++j) - object.conditionalCases[j] = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.toObject(message.conditionalCases[j], options); + object.conditionalCases[j] = $root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.toObject(message.conditionalCases[j], options); } return object; }; @@ -9059,7 +9059,7 @@ /** * Converts this Fulfillment to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment * @instance * @returns {Object.} JSON object */ @@ -9071,7 +9071,7 @@ /** * Properties of a SetParameterAction. - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment * @interface ISetParameterAction * @property {string|null} [parameter] SetParameterAction parameter * @property {google.protobuf.IValue|null} [value] SetParameterAction value @@ -9079,11 +9079,11 @@ /** * Constructs a new SetParameterAction. - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment * @classdesc Represents a SetParameterAction. * @implements ISetParameterAction * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ISetParameterAction=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.Fulfillment.ISetParameterAction=} [properties] Properties to set */ function SetParameterAction(properties) { if (properties) @@ -9095,7 +9095,7 @@ /** * SetParameterAction parameter. * @member {string} parameter - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction * @instance */ SetParameterAction.prototype.parameter = ""; @@ -9103,7 +9103,7 @@ /** * SetParameterAction value. * @member {google.protobuf.IValue|null|undefined} value - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction * @instance */ SetParameterAction.prototype.value = null; @@ -9111,21 +9111,21 @@ /** * Creates a new SetParameterAction instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ISetParameterAction=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction} SetParameterAction instance + * @param {google.cloud.dialogflow.cx.v3.Fulfillment.ISetParameterAction=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction} SetParameterAction instance */ SetParameterAction.create = function create(properties) { return new SetParameterAction(properties); }; /** - * Encodes the specified SetParameterAction message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction.verify|verify} messages. + * Encodes the specified SetParameterAction message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ISetParameterAction} message SetParameterAction message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.Fulfillment.ISetParameterAction} message SetParameterAction message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -9140,11 +9140,11 @@ }; /** - * Encodes the specified SetParameterAction message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction.verify|verify} messages. + * Encodes the specified SetParameterAction message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ISetParameterAction} message SetParameterAction message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.Fulfillment.ISetParameterAction} message SetParameterAction message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -9155,18 +9155,18 @@ /** * Decodes a SetParameterAction message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction} SetParameterAction + * @returns {google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction} SetParameterAction * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SetParameterAction.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -9187,10 +9187,10 @@ /** * Decodes a SetParameterAction message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction} SetParameterAction + * @returns {google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction} SetParameterAction * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -9203,7 +9203,7 @@ /** * Verifies a SetParameterAction message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -9225,20 +9225,20 @@ /** * Creates a SetParameterAction message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction} SetParameterAction + * @returns {google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction} SetParameterAction */ SetParameterAction.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction(); + var message = new $root.google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction(); if (object.parameter != null) message.parameter = String(object.parameter); if (object.value != null) { if (typeof object.value !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction.value: object expected"); + throw TypeError(".google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction.value: object expected"); message.value = $root.google.protobuf.Value.fromObject(object.value); } return message; @@ -9247,9 +9247,9 @@ /** * Creates a plain object from a SetParameterAction message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction} message SetParameterAction + * @param {google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction} message SetParameterAction * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -9271,7 +9271,7 @@ /** * Converts this SetParameterAction to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction * @instance * @returns {Object.} JSON object */ @@ -9286,18 +9286,18 @@ /** * Properties of a ConditionalCases. - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment * @interface IConditionalCases - * @property {Array.|null} [cases] ConditionalCases cases + * @property {Array.|null} [cases] ConditionalCases cases */ /** * Constructs a new ConditionalCases. - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment * @classdesc Represents a ConditionalCases. * @implements IConditionalCases * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.IConditionalCases=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.Fulfillment.IConditionalCases=} [properties] Properties to set */ function ConditionalCases(properties) { this.cases = []; @@ -9309,8 +9309,8 @@ /** * ConditionalCases cases. - * @member {Array.} cases - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases + * @member {Array.} cases + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases * @instance */ ConditionalCases.prototype.cases = $util.emptyArray; @@ -9318,21 +9318,21 @@ /** * Creates a new ConditionalCases instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.IConditionalCases=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases} ConditionalCases instance + * @param {google.cloud.dialogflow.cx.v3.Fulfillment.IConditionalCases=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases} ConditionalCases instance */ ConditionalCases.create = function create(properties) { return new ConditionalCases(properties); }; /** - * Encodes the specified ConditionalCases message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.verify|verify} messages. + * Encodes the specified ConditionalCases message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.IConditionalCases} message ConditionalCases message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.Fulfillment.IConditionalCases} message ConditionalCases message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -9341,16 +9341,16 @@ writer = $Writer.create(); if (message.cases != null && message.cases.length) for (var i = 0; i < message.cases.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.encode(message.cases[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.encode(message.cases[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified ConditionalCases message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.verify|verify} messages. + * Encodes the specified ConditionalCases message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.IConditionalCases} message ConditionalCases message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.Fulfillment.IConditionalCases} message ConditionalCases message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -9361,25 +9361,25 @@ /** * Decodes a ConditionalCases message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases} ConditionalCases + * @returns {google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases} ConditionalCases * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ConditionalCases.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: if (!(message.cases && message.cases.length)) message.cases = []; - message.cases.push($root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.decode(reader, reader.uint32())); + message.cases.push($root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -9392,10 +9392,10 @@ /** * Decodes a ConditionalCases message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases} ConditionalCases + * @returns {google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases} ConditionalCases * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -9408,7 +9408,7 @@ /** * Verifies a ConditionalCases message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -9420,7 +9420,7 @@ if (!Array.isArray(message.cases)) return "cases: array expected"; for (var i = 0; i < message.cases.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.verify(message.cases[i]); + var error = $root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.verify(message.cases[i]); if (error) return "cases." + error; } @@ -9431,23 +9431,23 @@ /** * Creates a ConditionalCases message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases} ConditionalCases + * @returns {google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases} ConditionalCases */ ConditionalCases.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases(); + var message = new $root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases(); if (object.cases) { if (!Array.isArray(object.cases)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.cases: array expected"); + throw TypeError(".google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.cases: array expected"); message.cases = []; for (var i = 0; i < object.cases.length; ++i) { if (typeof object.cases[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.cases: object expected"); - message.cases[i] = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.fromObject(object.cases[i]); + throw TypeError(".google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.cases: object expected"); + message.cases[i] = $root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.fromObject(object.cases[i]); } } return message; @@ -9456,9 +9456,9 @@ /** * Creates a plain object from a ConditionalCases message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases} message ConditionalCases + * @param {google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases} message ConditionalCases * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -9471,7 +9471,7 @@ if (message.cases && message.cases.length) { object.cases = []; for (var j = 0; j < message.cases.length; ++j) - object.cases[j] = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.toObject(message.cases[j], options); + object.cases[j] = $root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.toObject(message.cases[j], options); } return object; }; @@ -9479,7 +9479,7 @@ /** * Converts this ConditionalCases to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases * @instance * @returns {Object.} JSON object */ @@ -9491,19 +9491,19 @@ /** * Properties of a Case. - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases * @interface ICase * @property {string|null} [condition] Case condition - * @property {Array.|null} [caseContent] Case caseContent + * @property {Array.|null} [caseContent] Case caseContent */ /** * Constructs a new Case. - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases * @classdesc Represents a Case. * @implements ICase * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.ICase=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.ICase=} [properties] Properties to set */ function Case(properties) { this.caseContent = []; @@ -9516,15 +9516,15 @@ /** * Case condition. * @member {string} condition - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case * @instance */ Case.prototype.condition = ""; /** * Case caseContent. - * @member {Array.} caseContent - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case + * @member {Array.} caseContent + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case * @instance */ Case.prototype.caseContent = $util.emptyArray; @@ -9532,21 +9532,21 @@ /** * Creates a new Case instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.ICase=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case} Case instance + * @param {google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.ICase=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case} Case instance */ Case.create = function create(properties) { return new Case(properties); }; /** - * Encodes the specified Case message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.verify|verify} messages. + * Encodes the specified Case message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.ICase} message Case message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.ICase} message Case message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -9557,16 +9557,16 @@ writer.uint32(/* id 1, wireType 2 =*/10).string(message.condition); if (message.caseContent != null && message.caseContent.length) for (var i = 0; i < message.caseContent.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent.encode(message.caseContent[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent.encode(message.caseContent[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified Case message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.verify|verify} messages. + * Encodes the specified Case message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.ICase} message Case message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.ICase} message Case message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -9577,18 +9577,18 @@ /** * Decodes a Case message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case} Case + * @returns {google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case} Case * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Case.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -9598,7 +9598,7 @@ case 2: if (!(message.caseContent && message.caseContent.length)) message.caseContent = []; - message.caseContent.push($root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent.decode(reader, reader.uint32())); + message.caseContent.push($root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -9611,10 +9611,10 @@ /** * Decodes a Case message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case} Case + * @returns {google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case} Case * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -9627,7 +9627,7 @@ /** * Verifies a Case message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -9642,7 +9642,7 @@ if (!Array.isArray(message.caseContent)) return "caseContent: array expected"; for (var i = 0; i < message.caseContent.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent.verify(message.caseContent[i]); + var error = $root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent.verify(message.caseContent[i]); if (error) return "caseContent." + error; } @@ -9653,25 +9653,25 @@ /** * Creates a Case message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case} Case + * @returns {google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case} Case */ Case.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case(); + var message = new $root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case(); if (object.condition != null) message.condition = String(object.condition); if (object.caseContent) { if (!Array.isArray(object.caseContent)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.caseContent: array expected"); + throw TypeError(".google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.caseContent: array expected"); message.caseContent = []; for (var i = 0; i < object.caseContent.length; ++i) { if (typeof object.caseContent[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.caseContent: object expected"); - message.caseContent[i] = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent.fromObject(object.caseContent[i]); + throw TypeError(".google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.caseContent: object expected"); + message.caseContent[i] = $root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent.fromObject(object.caseContent[i]); } } return message; @@ -9680,9 +9680,9 @@ /** * Creates a plain object from a Case message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case} message Case + * @param {google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case} message Case * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -9699,7 +9699,7 @@ if (message.caseContent && message.caseContent.length) { object.caseContent = []; for (var j = 0; j < message.caseContent.length; ++j) - object.caseContent[j] = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent.toObject(message.caseContent[j], options); + object.caseContent[j] = $root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent.toObject(message.caseContent[j], options); } return object; }; @@ -9707,7 +9707,7 @@ /** * Converts this Case to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case * @instance * @returns {Object.} JSON object */ @@ -9719,19 +9719,19 @@ /** * Properties of a CaseContent. - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case * @interface ICaseContent - * @property {google.cloud.dialogflow.cx.v3beta1.IResponseMessage|null} [message] CaseContent message - * @property {google.cloud.dialogflow.cx.v3beta1.Fulfillment.IConditionalCases|null} [additionalCases] CaseContent additionalCases + * @property {google.cloud.dialogflow.cx.v3.IResponseMessage|null} [message] CaseContent message + * @property {google.cloud.dialogflow.cx.v3.Fulfillment.IConditionalCases|null} [additionalCases] CaseContent additionalCases */ /** * Constructs a new CaseContent. - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case * @classdesc Represents a CaseContent. * @implements ICaseContent * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.ICaseContent=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.ICaseContent=} [properties] Properties to set */ function CaseContent(properties) { if (properties) @@ -9742,16 +9742,16 @@ /** * CaseContent message. - * @member {google.cloud.dialogflow.cx.v3beta1.IResponseMessage|null|undefined} message - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent + * @member {google.cloud.dialogflow.cx.v3.IResponseMessage|null|undefined} message + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent * @instance */ CaseContent.prototype.message = null; /** * CaseContent additionalCases. - * @member {google.cloud.dialogflow.cx.v3beta1.Fulfillment.IConditionalCases|null|undefined} additionalCases - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent + * @member {google.cloud.dialogflow.cx.v3.Fulfillment.IConditionalCases|null|undefined} additionalCases + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent * @instance */ CaseContent.prototype.additionalCases = null; @@ -9762,7 +9762,7 @@ /** * CaseContent casesOrMessage. * @member {"message"|"additionalCases"|undefined} casesOrMessage - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent * @instance */ Object.defineProperty(CaseContent.prototype, "casesOrMessage", { @@ -9773,21 +9773,21 @@ /** * Creates a new CaseContent instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.ICaseContent=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent} CaseContent instance + * @param {google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.ICaseContent=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent} CaseContent instance */ CaseContent.create = function create(properties) { return new CaseContent(properties); }; /** - * Encodes the specified CaseContent message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent.verify|verify} messages. + * Encodes the specified CaseContent message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.ICaseContent} message CaseContent message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.ICaseContent} message CaseContent message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -9795,18 +9795,18 @@ if (!writer) writer = $Writer.create(); if (message.message != null && Object.hasOwnProperty.call(message, "message")) - $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.encode(message.message, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.ResponseMessage.encode(message.message, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.additionalCases != null && Object.hasOwnProperty.call(message, "additionalCases")) - $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.encode(message.additionalCases, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.encode(message.additionalCases, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified CaseContent message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent.verify|verify} messages. + * Encodes the specified CaseContent message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.ICaseContent} message CaseContent message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.ICaseContent} message CaseContent message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -9817,26 +9817,26 @@ /** * Decodes a CaseContent message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent} CaseContent + * @returns {google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent} CaseContent * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ CaseContent.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.message = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.decode(reader, reader.uint32()); + message.message = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.decode(reader, reader.uint32()); break; case 2: - message.additionalCases = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.decode(reader, reader.uint32()); + message.additionalCases = $root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -9849,10 +9849,10 @@ /** * Decodes a CaseContent message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent} CaseContent + * @returns {google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent} CaseContent * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -9865,7 +9865,7 @@ /** * Verifies a CaseContent message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -9877,7 +9877,7 @@ if (message.message != null && message.hasOwnProperty("message")) { properties.casesOrMessage = 1; { - var error = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.verify(message.message); + var error = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.verify(message.message); if (error) return "message." + error; } @@ -9887,7 +9887,7 @@ return "casesOrMessage: multiple values"; properties.casesOrMessage = 1; { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.verify(message.additionalCases); + var error = $root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.verify(message.additionalCases); if (error) return "additionalCases." + error; } @@ -9898,24 +9898,24 @@ /** * Creates a CaseContent message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent} CaseContent + * @returns {google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent} CaseContent */ CaseContent.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent(); + var message = new $root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent(); if (object.message != null) { if (typeof object.message !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent.message: object expected"); - message.message = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.fromObject(object.message); + throw TypeError(".google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent.message: object expected"); + message.message = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.fromObject(object.message); } if (object.additionalCases != null) { if (typeof object.additionalCases !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent.additionalCases: object expected"); - message.additionalCases = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.fromObject(object.additionalCases); + throw TypeError(".google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent.additionalCases: object expected"); + message.additionalCases = $root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.fromObject(object.additionalCases); } return message; }; @@ -9923,9 +9923,9 @@ /** * Creates a plain object from a CaseContent message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent} message CaseContent + * @param {google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent} message CaseContent * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -9934,12 +9934,12 @@ options = {}; var object = {}; if (message.message != null && message.hasOwnProperty("message")) { - object.message = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.toObject(message.message, options); + object.message = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.toObject(message.message, options); if (options.oneofs) object.casesOrMessage = "message"; } if (message.additionalCases != null && message.hasOwnProperty("additionalCases")) { - object.additionalCases = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.toObject(message.additionalCases, options); + object.additionalCases = $root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.toObject(message.additionalCases, options); if (options.oneofs) object.casesOrMessage = "additionalCases"; } @@ -9949,7 +9949,7 @@ /** * Converts this CaseContent to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent * @instance * @returns {Object.} JSON object */ @@ -9969,29 +9969,29 @@ return Fulfillment; })(); - v3beta1.ResponseMessage = (function() { + v3.ResponseMessage = (function() { /** * Properties of a ResponseMessage. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface IResponseMessage - * @property {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IText|null} [text] ResponseMessage text + * @property {google.cloud.dialogflow.cx.v3.ResponseMessage.IText|null} [text] ResponseMessage text * @property {google.protobuf.IStruct|null} [payload] ResponseMessage payload - * @property {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IConversationSuccess|null} [conversationSuccess] ResponseMessage conversationSuccess - * @property {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IOutputAudioText|null} [outputAudioText] ResponseMessage outputAudioText - * @property {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ILiveAgentHandoff|null} [liveAgentHandoff] ResponseMessage liveAgentHandoff - * @property {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IEndInteraction|null} [endInteraction] ResponseMessage endInteraction - * @property {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IPlayAudio|null} [playAudio] ResponseMessage playAudio - * @property {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IMixedAudio|null} [mixedAudio] ResponseMessage mixedAudio + * @property {google.cloud.dialogflow.cx.v3.ResponseMessage.IConversationSuccess|null} [conversationSuccess] ResponseMessage conversationSuccess + * @property {google.cloud.dialogflow.cx.v3.ResponseMessage.IOutputAudioText|null} [outputAudioText] ResponseMessage outputAudioText + * @property {google.cloud.dialogflow.cx.v3.ResponseMessage.ILiveAgentHandoff|null} [liveAgentHandoff] ResponseMessage liveAgentHandoff + * @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 */ /** * Constructs a new ResponseMessage. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a ResponseMessage. * @implements IResponseMessage * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IResponseMessage=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IResponseMessage=} [properties] Properties to set */ function ResponseMessage(properties) { if (properties) @@ -10002,8 +10002,8 @@ /** * ResponseMessage text. - * @member {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IText|null|undefined} text - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @member {google.cloud.dialogflow.cx.v3.ResponseMessage.IText|null|undefined} text + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage * @instance */ ResponseMessage.prototype.text = null; @@ -10011,55 +10011,55 @@ /** * ResponseMessage payload. * @member {google.protobuf.IStruct|null|undefined} payload - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage * @instance */ ResponseMessage.prototype.payload = null; /** * ResponseMessage conversationSuccess. - * @member {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IConversationSuccess|null|undefined} conversationSuccess - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @member {google.cloud.dialogflow.cx.v3.ResponseMessage.IConversationSuccess|null|undefined} conversationSuccess + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage * @instance */ ResponseMessage.prototype.conversationSuccess = null; /** * ResponseMessage outputAudioText. - * @member {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IOutputAudioText|null|undefined} outputAudioText - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @member {google.cloud.dialogflow.cx.v3.ResponseMessage.IOutputAudioText|null|undefined} outputAudioText + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage * @instance */ ResponseMessage.prototype.outputAudioText = null; /** * ResponseMessage liveAgentHandoff. - * @member {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ILiveAgentHandoff|null|undefined} liveAgentHandoff - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @member {google.cloud.dialogflow.cx.v3.ResponseMessage.ILiveAgentHandoff|null|undefined} liveAgentHandoff + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage * @instance */ ResponseMessage.prototype.liveAgentHandoff = null; /** * ResponseMessage endInteraction. - * @member {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IEndInteraction|null|undefined} endInteraction - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @member {google.cloud.dialogflow.cx.v3.ResponseMessage.IEndInteraction|null|undefined} endInteraction + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage * @instance */ ResponseMessage.prototype.endInteraction = null; /** * ResponseMessage playAudio. - * @member {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IPlayAudio|null|undefined} playAudio - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @member {google.cloud.dialogflow.cx.v3.ResponseMessage.IPlayAudio|null|undefined} playAudio + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage * @instance */ ResponseMessage.prototype.playAudio = null; /** * ResponseMessage mixedAudio. - * @member {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IMixedAudio|null|undefined} mixedAudio - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @member {google.cloud.dialogflow.cx.v3.ResponseMessage.IMixedAudio|null|undefined} mixedAudio + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage * @instance */ ResponseMessage.prototype.mixedAudio = null; @@ -10070,7 +10070,7 @@ /** * ResponseMessage message. * @member {"text"|"payload"|"conversationSuccess"|"outputAudioText"|"liveAgentHandoff"|"endInteraction"|"playAudio"|"mixedAudio"|undefined} message - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage * @instance */ Object.defineProperty(ResponseMessage.prototype, "message", { @@ -10081,21 +10081,21 @@ /** * Creates a new ResponseMessage instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IResponseMessage=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage} ResponseMessage instance + * @param {google.cloud.dialogflow.cx.v3.IResponseMessage=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ResponseMessage} ResponseMessage instance */ ResponseMessage.create = function create(properties) { return new ResponseMessage(properties); }; /** - * Encodes the specified ResponseMessage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.verify|verify} messages. + * Encodes the specified ResponseMessage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ResponseMessage.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IResponseMessage} message ResponseMessage message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IResponseMessage} message ResponseMessage message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -10103,30 +10103,30 @@ if (!writer) writer = $Writer.create(); if (message.text != null && Object.hasOwnProperty.call(message, "text")) - $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text.encode(message.text, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.ResponseMessage.Text.encode(message.text, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.payload != null && Object.hasOwnProperty.call(message, "payload")) $root.google.protobuf.Struct.encode(message.payload, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.outputAudioText != null && Object.hasOwnProperty.call(message, "outputAudioText")) - $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText.encode(message.outputAudioText, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText.encode(message.outputAudioText, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); if (message.conversationSuccess != null && Object.hasOwnProperty.call(message, "conversationSuccess")) - $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess.encode(message.conversationSuccess, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess.encode(message.conversationSuccess, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); if (message.liveAgentHandoff != null && Object.hasOwnProperty.call(message, "liveAgentHandoff")) - $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff.encode(message.liveAgentHandoff, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff.encode(message.liveAgentHandoff, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); if (message.endInteraction != null && Object.hasOwnProperty.call(message, "endInteraction")) - $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction.encode(message.endInteraction, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction.encode(message.endInteraction, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); if (message.playAudio != null && Object.hasOwnProperty.call(message, "playAudio")) - $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio.encode(message.playAudio, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + $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.v3beta1.ResponseMessage.MixedAudio.encode(message.mixedAudio, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.encode(message.mixedAudio, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); return writer; }; /** - * Encodes the specified ResponseMessage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.verify|verify} messages. + * Encodes the specified ResponseMessage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ResponseMessage.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IResponseMessage} message ResponseMessage message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IResponseMessage} message ResponseMessage message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -10137,44 +10137,44 @@ /** * Decodes a ResponseMessage message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage} ResponseMessage + * @returns {google.cloud.dialogflow.cx.v3.ResponseMessage} ResponseMessage * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ResponseMessage.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ResponseMessage(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.text = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text.decode(reader, reader.uint32()); + message.text = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.Text.decode(reader, reader.uint32()); break; case 2: message.payload = $root.google.protobuf.Struct.decode(reader, reader.uint32()); break; case 9: - message.conversationSuccess = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess.decode(reader, reader.uint32()); + message.conversationSuccess = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess.decode(reader, reader.uint32()); break; case 8: - message.outputAudioText = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText.decode(reader, reader.uint32()); + message.outputAudioText = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText.decode(reader, reader.uint32()); break; case 10: - message.liveAgentHandoff = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff.decode(reader, reader.uint32()); + message.liveAgentHandoff = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff.decode(reader, reader.uint32()); break; case 11: - message.endInteraction = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction.decode(reader, reader.uint32()); + message.endInteraction = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction.decode(reader, reader.uint32()); break; case 12: - message.playAudio = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio.decode(reader, reader.uint32()); + message.playAudio = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio.decode(reader, reader.uint32()); break; case 13: - message.mixedAudio = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.decode(reader, reader.uint32()); + message.mixedAudio = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -10187,10 +10187,10 @@ /** * Decodes a ResponseMessage message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage} ResponseMessage + * @returns {google.cloud.dialogflow.cx.v3.ResponseMessage} ResponseMessage * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -10203,7 +10203,7 @@ /** * Verifies a ResponseMessage message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -10215,7 +10215,7 @@ if (message.text != null && message.hasOwnProperty("text")) { properties.message = 1; { - var error = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text.verify(message.text); + var error = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.Text.verify(message.text); if (error) return "text." + error; } @@ -10235,7 +10235,7 @@ return "message: multiple values"; properties.message = 1; { - var error = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess.verify(message.conversationSuccess); + var error = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess.verify(message.conversationSuccess); if (error) return "conversationSuccess." + error; } @@ -10245,7 +10245,7 @@ return "message: multiple values"; properties.message = 1; { - var error = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText.verify(message.outputAudioText); + var error = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText.verify(message.outputAudioText); if (error) return "outputAudioText." + error; } @@ -10255,7 +10255,7 @@ return "message: multiple values"; properties.message = 1; { - var error = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff.verify(message.liveAgentHandoff); + var error = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff.verify(message.liveAgentHandoff); if (error) return "liveAgentHandoff." + error; } @@ -10265,7 +10265,7 @@ return "message: multiple values"; properties.message = 1; { - var error = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction.verify(message.endInteraction); + var error = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction.verify(message.endInteraction); if (error) return "endInteraction." + error; } @@ -10275,7 +10275,7 @@ return "message: multiple values"; properties.message = 1; { - var error = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio.verify(message.playAudio); + var error = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio.verify(message.playAudio); if (error) return "playAudio." + error; } @@ -10285,7 +10285,7 @@ return "message: multiple values"; properties.message = 1; { - var error = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.verify(message.mixedAudio); + var error = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.verify(message.mixedAudio); if (error) return "mixedAudio." + error; } @@ -10296,54 +10296,54 @@ /** * Creates a ResponseMessage message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage} ResponseMessage + * @returns {google.cloud.dialogflow.cx.v3.ResponseMessage} ResponseMessage */ ResponseMessage.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ResponseMessage) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage(); + var message = new $root.google.cloud.dialogflow.cx.v3.ResponseMessage(); if (object.text != null) { if (typeof object.text !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ResponseMessage.text: object expected"); - message.text = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text.fromObject(object.text); + throw TypeError(".google.cloud.dialogflow.cx.v3.ResponseMessage.text: object expected"); + message.text = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.Text.fromObject(object.text); } if (object.payload != null) { if (typeof object.payload !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ResponseMessage.payload: object expected"); + throw TypeError(".google.cloud.dialogflow.cx.v3.ResponseMessage.payload: object expected"); message.payload = $root.google.protobuf.Struct.fromObject(object.payload); } if (object.conversationSuccess != null) { if (typeof object.conversationSuccess !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ResponseMessage.conversationSuccess: object expected"); - message.conversationSuccess = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess.fromObject(object.conversationSuccess); + throw TypeError(".google.cloud.dialogflow.cx.v3.ResponseMessage.conversationSuccess: object expected"); + message.conversationSuccess = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess.fromObject(object.conversationSuccess); } if (object.outputAudioText != null) { if (typeof object.outputAudioText !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ResponseMessage.outputAudioText: object expected"); - message.outputAudioText = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText.fromObject(object.outputAudioText); + throw TypeError(".google.cloud.dialogflow.cx.v3.ResponseMessage.outputAudioText: object expected"); + message.outputAudioText = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText.fromObject(object.outputAudioText); } if (object.liveAgentHandoff != null) { if (typeof object.liveAgentHandoff !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ResponseMessage.liveAgentHandoff: object expected"); - message.liveAgentHandoff = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff.fromObject(object.liveAgentHandoff); + throw TypeError(".google.cloud.dialogflow.cx.v3.ResponseMessage.liveAgentHandoff: object expected"); + message.liveAgentHandoff = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff.fromObject(object.liveAgentHandoff); } if (object.endInteraction != null) { if (typeof object.endInteraction !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ResponseMessage.endInteraction: object expected"); - message.endInteraction = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction.fromObject(object.endInteraction); + throw TypeError(".google.cloud.dialogflow.cx.v3.ResponseMessage.endInteraction: object expected"); + message.endInteraction = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction.fromObject(object.endInteraction); } if (object.playAudio != null) { if (typeof object.playAudio !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ResponseMessage.playAudio: object expected"); - message.playAudio = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio.fromObject(object.playAudio); + throw TypeError(".google.cloud.dialogflow.cx.v3.ResponseMessage.playAudio: object expected"); + message.playAudio = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio.fromObject(object.playAudio); } if (object.mixedAudio != null) { if (typeof object.mixedAudio !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ResponseMessage.mixedAudio: object expected"); - message.mixedAudio = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.fromObject(object.mixedAudio); + throw TypeError(".google.cloud.dialogflow.cx.v3.ResponseMessage.mixedAudio: object expected"); + message.mixedAudio = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.fromObject(object.mixedAudio); } return message; }; @@ -10351,9 +10351,9 @@ /** * Creates a plain object from a ResponseMessage message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage} message ResponseMessage + * @param {google.cloud.dialogflow.cx.v3.ResponseMessage} message ResponseMessage * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -10362,7 +10362,7 @@ options = {}; var object = {}; if (message.text != null && message.hasOwnProperty("text")) { - object.text = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text.toObject(message.text, options); + object.text = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.Text.toObject(message.text, options); if (options.oneofs) object.message = "text"; } @@ -10372,32 +10372,32 @@ object.message = "payload"; } if (message.outputAudioText != null && message.hasOwnProperty("outputAudioText")) { - object.outputAudioText = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText.toObject(message.outputAudioText, options); + object.outputAudioText = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText.toObject(message.outputAudioText, options); if (options.oneofs) object.message = "outputAudioText"; } if (message.conversationSuccess != null && message.hasOwnProperty("conversationSuccess")) { - object.conversationSuccess = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess.toObject(message.conversationSuccess, options); + object.conversationSuccess = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess.toObject(message.conversationSuccess, options); if (options.oneofs) object.message = "conversationSuccess"; } if (message.liveAgentHandoff != null && message.hasOwnProperty("liveAgentHandoff")) { - object.liveAgentHandoff = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff.toObject(message.liveAgentHandoff, options); + object.liveAgentHandoff = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff.toObject(message.liveAgentHandoff, options); if (options.oneofs) object.message = "liveAgentHandoff"; } if (message.endInteraction != null && message.hasOwnProperty("endInteraction")) { - object.endInteraction = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction.toObject(message.endInteraction, options); + object.endInteraction = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction.toObject(message.endInteraction, options); if (options.oneofs) object.message = "endInteraction"; } if (message.playAudio != null && message.hasOwnProperty("playAudio")) { - object.playAudio = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio.toObject(message.playAudio, options); + object.playAudio = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio.toObject(message.playAudio, options); if (options.oneofs) object.message = "playAudio"; } if (message.mixedAudio != null && message.hasOwnProperty("mixedAudio")) { - object.mixedAudio = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.toObject(message.mixedAudio, options); + object.mixedAudio = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.toObject(message.mixedAudio, options); if (options.oneofs) object.message = "mixedAudio"; } @@ -10407,7 +10407,7 @@ /** * Converts this ResponseMessage to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage * @instance * @returns {Object.} JSON object */ @@ -10419,7 +10419,7 @@ /** * Properties of a Text. - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage * @interface IText * @property {Array.|null} [text] Text text * @property {boolean|null} [allowPlaybackInterruption] Text allowPlaybackInterruption @@ -10427,11 +10427,11 @@ /** * Constructs a new Text. - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage * @classdesc Represents a Text. * @implements IText * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IText=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.IText=} [properties] Properties to set */ function Text(properties) { this.text = []; @@ -10444,7 +10444,7 @@ /** * Text text. * @member {Array.} text - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.Text * @instance */ Text.prototype.text = $util.emptyArray; @@ -10452,7 +10452,7 @@ /** * Text allowPlaybackInterruption. * @member {boolean} allowPlaybackInterruption - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.Text * @instance */ Text.prototype.allowPlaybackInterruption = false; @@ -10460,21 +10460,21 @@ /** * Creates a new Text instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.Text * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IText=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text} Text instance + * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.IText=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ResponseMessage.Text} Text instance */ Text.create = function create(properties) { return new Text(properties); }; /** - * Encodes the specified Text message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text.verify|verify} messages. + * Encodes the specified Text message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ResponseMessage.Text.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.Text * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IText} message Text message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.IText} message Text message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -10490,11 +10490,11 @@ }; /** - * Encodes the specified Text message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text.verify|verify} messages. + * Encodes the specified Text message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ResponseMessage.Text.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.Text * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IText} message Text message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.IText} message Text message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -10505,18 +10505,18 @@ /** * Decodes a Text message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.Text * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text} Text + * @returns {google.cloud.dialogflow.cx.v3.ResponseMessage.Text} Text * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Text.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ResponseMessage.Text(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -10539,10 +10539,10 @@ /** * Decodes a Text message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.Text * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text} Text + * @returns {google.cloud.dialogflow.cx.v3.ResponseMessage.Text} Text * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -10555,7 +10555,7 @@ /** * Verifies a Text message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.Text * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -10579,18 +10579,18 @@ /** * Creates a Text message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.Text * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text} Text + * @returns {google.cloud.dialogflow.cx.v3.ResponseMessage.Text} Text */ Text.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ResponseMessage.Text) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text(); + var message = new $root.google.cloud.dialogflow.cx.v3.ResponseMessage.Text(); if (object.text) { if (!Array.isArray(object.text)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text.text: array expected"); + throw TypeError(".google.cloud.dialogflow.cx.v3.ResponseMessage.Text.text: array expected"); message.text = []; for (var i = 0; i < object.text.length; ++i) message.text[i] = String(object.text[i]); @@ -10603,9 +10603,9 @@ /** * Creates a plain object from a Text message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.Text * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text} message Text + * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.Text} message Text * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -10630,7 +10630,7 @@ /** * Converts this Text to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.Text * @instance * @returns {Object.} JSON object */ @@ -10645,18 +10645,18 @@ /** * Properties of a LiveAgentHandoff. - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage * @interface ILiveAgentHandoff * @property {google.protobuf.IStruct|null} [metadata] LiveAgentHandoff metadata */ /** * Constructs a new LiveAgentHandoff. - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage * @classdesc Represents a LiveAgentHandoff. * @implements ILiveAgentHandoff * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ILiveAgentHandoff=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.ILiveAgentHandoff=} [properties] Properties to set */ function LiveAgentHandoff(properties) { if (properties) @@ -10668,7 +10668,7 @@ /** * LiveAgentHandoff metadata. * @member {google.protobuf.IStruct|null|undefined} metadata - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff * @instance */ LiveAgentHandoff.prototype.metadata = null; @@ -10676,21 +10676,21 @@ /** * Creates a new LiveAgentHandoff instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ILiveAgentHandoff=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff} LiveAgentHandoff instance + * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.ILiveAgentHandoff=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff} LiveAgentHandoff instance */ LiveAgentHandoff.create = function create(properties) { return new LiveAgentHandoff(properties); }; /** - * Encodes the specified LiveAgentHandoff message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff.verify|verify} messages. + * Encodes the specified LiveAgentHandoff message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ILiveAgentHandoff} message LiveAgentHandoff message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.ILiveAgentHandoff} message LiveAgentHandoff message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -10703,11 +10703,11 @@ }; /** - * Encodes the specified LiveAgentHandoff message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff.verify|verify} messages. + * Encodes the specified LiveAgentHandoff message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ILiveAgentHandoff} message LiveAgentHandoff message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.ILiveAgentHandoff} message LiveAgentHandoff message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -10718,18 +10718,18 @@ /** * Decodes a LiveAgentHandoff message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff} LiveAgentHandoff + * @returns {google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff} LiveAgentHandoff * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ LiveAgentHandoff.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -10747,10 +10747,10 @@ /** * Decodes a LiveAgentHandoff message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff} LiveAgentHandoff + * @returns {google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff} LiveAgentHandoff * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -10763,7 +10763,7 @@ /** * Verifies a LiveAgentHandoff message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -10782,18 +10782,18 @@ /** * Creates a LiveAgentHandoff message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff} LiveAgentHandoff + * @returns {google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff} LiveAgentHandoff */ LiveAgentHandoff.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff(); + var message = new $root.google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff(); if (object.metadata != null) { if (typeof object.metadata !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff.metadata: object expected"); + throw TypeError(".google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff.metadata: object expected"); message.metadata = $root.google.protobuf.Struct.fromObject(object.metadata); } return message; @@ -10802,9 +10802,9 @@ /** * Creates a plain object from a LiveAgentHandoff message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff} message LiveAgentHandoff + * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff} message LiveAgentHandoff * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -10822,7 +10822,7 @@ /** * Converts this LiveAgentHandoff to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff * @instance * @returns {Object.} JSON object */ @@ -10837,18 +10837,18 @@ /** * Properties of a ConversationSuccess. - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage * @interface IConversationSuccess * @property {google.protobuf.IStruct|null} [metadata] ConversationSuccess metadata */ /** * Constructs a new ConversationSuccess. - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage * @classdesc Represents a ConversationSuccess. * @implements IConversationSuccess * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IConversationSuccess=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.IConversationSuccess=} [properties] Properties to set */ function ConversationSuccess(properties) { if (properties) @@ -10860,7 +10860,7 @@ /** * ConversationSuccess metadata. * @member {google.protobuf.IStruct|null|undefined} metadata - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess * @instance */ ConversationSuccess.prototype.metadata = null; @@ -10868,21 +10868,21 @@ /** * Creates a new ConversationSuccess instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IConversationSuccess=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess} ConversationSuccess instance + * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.IConversationSuccess=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess} ConversationSuccess instance */ ConversationSuccess.create = function create(properties) { return new ConversationSuccess(properties); }; /** - * Encodes the specified ConversationSuccess message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess.verify|verify} messages. + * Encodes the specified ConversationSuccess message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IConversationSuccess} message ConversationSuccess message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.IConversationSuccess} message ConversationSuccess message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -10895,11 +10895,11 @@ }; /** - * Encodes the specified ConversationSuccess message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess.verify|verify} messages. + * Encodes the specified ConversationSuccess message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IConversationSuccess} message ConversationSuccess message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.IConversationSuccess} message ConversationSuccess message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -10910,18 +10910,18 @@ /** * Decodes a ConversationSuccess message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess} ConversationSuccess + * @returns {google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess} ConversationSuccess * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ConversationSuccess.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -10939,10 +10939,10 @@ /** * Decodes a ConversationSuccess message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess} ConversationSuccess + * @returns {google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess} ConversationSuccess * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -10955,7 +10955,7 @@ /** * Verifies a ConversationSuccess message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -10974,18 +10974,18 @@ /** * Creates a ConversationSuccess message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess} ConversationSuccess + * @returns {google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess} ConversationSuccess */ ConversationSuccess.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess(); + var message = new $root.google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess(); if (object.metadata != null) { if (typeof object.metadata !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess.metadata: object expected"); + throw TypeError(".google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess.metadata: object expected"); message.metadata = $root.google.protobuf.Struct.fromObject(object.metadata); } return message; @@ -10994,9 +10994,9 @@ /** * Creates a plain object from a ConversationSuccess message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess} message ConversationSuccess + * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess} message ConversationSuccess * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -11014,7 +11014,7 @@ /** * Converts this ConversationSuccess to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess * @instance * @returns {Object.} JSON object */ @@ -11029,7 +11029,7 @@ /** * Properties of an OutputAudioText. - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage * @interface IOutputAudioText * @property {string|null} [text] OutputAudioText text * @property {string|null} [ssml] OutputAudioText ssml @@ -11038,11 +11038,11 @@ /** * Constructs a new OutputAudioText. - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage * @classdesc Represents an OutputAudioText. * @implements IOutputAudioText * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IOutputAudioText=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.IOutputAudioText=} [properties] Properties to set */ function OutputAudioText(properties) { if (properties) @@ -11054,7 +11054,7 @@ /** * OutputAudioText text. * @member {string} text - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText * @instance */ OutputAudioText.prototype.text = ""; @@ -11062,7 +11062,7 @@ /** * OutputAudioText ssml. * @member {string} ssml - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText * @instance */ OutputAudioText.prototype.ssml = ""; @@ -11070,7 +11070,7 @@ /** * OutputAudioText allowPlaybackInterruption. * @member {boolean} allowPlaybackInterruption - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText * @instance */ OutputAudioText.prototype.allowPlaybackInterruption = false; @@ -11081,7 +11081,7 @@ /** * OutputAudioText source. * @member {"text"|"ssml"|undefined} source - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText * @instance */ Object.defineProperty(OutputAudioText.prototype, "source", { @@ -11092,21 +11092,21 @@ /** * Creates a new OutputAudioText instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IOutputAudioText=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText} OutputAudioText instance + * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.IOutputAudioText=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText} OutputAudioText instance */ OutputAudioText.create = function create(properties) { return new OutputAudioText(properties); }; /** - * Encodes the specified OutputAudioText message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText.verify|verify} messages. + * Encodes the specified OutputAudioText message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IOutputAudioText} message OutputAudioText message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.IOutputAudioText} message OutputAudioText message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -11123,11 +11123,11 @@ }; /** - * Encodes the specified OutputAudioText message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText.verify|verify} messages. + * Encodes the specified OutputAudioText message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IOutputAudioText} message OutputAudioText message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.IOutputAudioText} message OutputAudioText message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -11138,18 +11138,18 @@ /** * Decodes an OutputAudioText message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText} OutputAudioText + * @returns {google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText} OutputAudioText * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ OutputAudioText.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -11173,10 +11173,10 @@ /** * Decodes an OutputAudioText message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText} OutputAudioText + * @returns {google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText} OutputAudioText * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -11189,7 +11189,7 @@ /** * Verifies an OutputAudioText message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -11219,15 +11219,15 @@ /** * Creates an OutputAudioText message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText} OutputAudioText + * @returns {google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText} OutputAudioText */ OutputAudioText.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText(); + var message = new $root.google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText(); if (object.text != null) message.text = String(object.text); if (object.ssml != null) @@ -11240,9 +11240,9 @@ /** * Creates a plain object from an OutputAudioText message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText} message OutputAudioText + * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText} message OutputAudioText * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -11270,7 +11270,7 @@ /** * Converts this OutputAudioText to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText * @instance * @returns {Object.} JSON object */ @@ -11281,25 +11281,23 @@ return OutputAudioText; })(); - ResponseMessage.MixedAudio = (function() { + ResponseMessage.EndInteraction = (function() { /** - * Properties of a MixedAudio. - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage - * @interface IMixedAudio - * @property {Array.|null} [segments] MixedAudio segments + * Properties of an EndInteraction. + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage + * @interface IEndInteraction */ /** - * Constructs a new MixedAudio. - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage - * @classdesc Represents a MixedAudio. - * @implements IMixedAudio + * Constructs a new EndInteraction. + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage + * @classdesc Represents an EndInteraction. + * @implements IEndInteraction * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IMixedAudio=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.IEndInteraction=} [properties] Properties to set */ - function MixedAudio(properties) { - this.segments = []; + function EndInteraction(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -11307,78 +11305,250 @@ } /** - * MixedAudio segments. - * @member {Array.} segments - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio + * Creates a new EndInteraction instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction + * @static + * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.IEndInteraction=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction} EndInteraction instance + */ + EndInteraction.create = function create(properties) { + return new EndInteraction(properties); + }; + + /** + * Encodes the specified EndInteraction message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction + * @static + * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.IEndInteraction} message EndInteraction message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EndInteraction.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Encodes the specified EndInteraction message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction + * @static + * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.IEndInteraction} message EndInteraction message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EndInteraction.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an EndInteraction message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction} EndInteraction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EndInteraction.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an EndInteraction message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction} EndInteraction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EndInteraction.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an EndInteraction message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EndInteraction.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Creates an EndInteraction message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction} EndInteraction + */ + EndInteraction.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction) + return object; + return new $root.google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction(); + }; + + /** + * Creates a plain object from an EndInteraction message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction + * @static + * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction} message EndInteraction + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EndInteraction.toObject = function toObject() { + return {}; + }; + + /** + * Converts this EndInteraction to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction * @instance + * @returns {Object.} JSON object */ - MixedAudio.prototype.segments = $util.emptyArray; + EndInteraction.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return EndInteraction; + })(); + + ResponseMessage.PlayAudio = (function() { /** - * Creates a new MixedAudio instance using the specified properties. + * Properties of a PlayAudio. + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage + * @interface IPlayAudio + * @property {string|null} [audioUri] PlayAudio audioUri + * @property {boolean|null} [allowPlaybackInterruption] PlayAudio allowPlaybackInterruption + */ + + /** + * Constructs a new PlayAudio. + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage + * @classdesc Represents a PlayAudio. + * @implements IPlayAudio + * @constructor + * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.IPlayAudio=} [properties] Properties to set + */ + function PlayAudio(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * PlayAudio audioUri. + * @member {string} audioUri + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio + * @instance + */ + PlayAudio.prototype.audioUri = ""; + + /** + * PlayAudio allowPlaybackInterruption. + * @member {boolean} allowPlaybackInterruption + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio + * @instance + */ + PlayAudio.prototype.allowPlaybackInterruption = false; + + /** + * Creates a new PlayAudio instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IMixedAudio=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio} MixedAudio instance + * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.IPlayAudio=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio} PlayAudio instance */ - MixedAudio.create = function create(properties) { - return new MixedAudio(properties); + PlayAudio.create = function create(properties) { + return new PlayAudio(properties); }; /** - * Encodes the specified MixedAudio message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.verify|verify} messages. + * Encodes the specified PlayAudio message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IMixedAudio} message MixedAudio message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.IPlayAudio} message PlayAudio message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MixedAudio.encode = function encode(message, writer) { + PlayAudio.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.segments != null && message.segments.length) - for (var i = 0; i < message.segments.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment.encode(message.segments[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.audioUri != null && Object.hasOwnProperty.call(message, "audioUri")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.audioUri); + if (message.allowPlaybackInterruption != null && Object.hasOwnProperty.call(message, "allowPlaybackInterruption")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.allowPlaybackInterruption); return writer; }; /** - * Encodes the specified MixedAudio message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.verify|verify} messages. + * Encodes the specified PlayAudio message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IMixedAudio} message MixedAudio message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.IPlayAudio} message PlayAudio message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MixedAudio.encodeDelimited = function encodeDelimited(message, writer) { + PlayAudio.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MixedAudio message from the specified reader or buffer. + * Decodes a PlayAudio message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio} MixedAudio + * @returns {google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio} PlayAudio * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MixedAudio.decode = function decode(reader, length) { + PlayAudio.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.segments && message.segments.length)) - message.segments = []; - message.segments.push($root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment.decode(reader, reader.uint32())); + message.audioUri = reader.string(); + break; + case 2: + message.allowPlaybackInterruption = reader.bool(); break; default: reader.skipType(tag & 7); @@ -11389,121 +11559,321 @@ }; /** - * Decodes a MixedAudio message from the specified reader or buffer, length delimited. + * Decodes a PlayAudio message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio} MixedAudio + * @returns {google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio} PlayAudio * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MixedAudio.decodeDelimited = function decodeDelimited(reader) { + PlayAudio.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MixedAudio message. + * Verifies a PlayAudio message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MixedAudio.verify = function verify(message) { + PlayAudio.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.segments != null && message.hasOwnProperty("segments")) { - if (!Array.isArray(message.segments)) - return "segments: array expected"; - for (var i = 0; i < message.segments.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment.verify(message.segments[i]); - if (error) - return "segments." + error; - } - } + if (message.audioUri != null && message.hasOwnProperty("audioUri")) + if (!$util.isString(message.audioUri)) + return "audioUri: string expected"; + if (message.allowPlaybackInterruption != null && message.hasOwnProperty("allowPlaybackInterruption")) + if (typeof message.allowPlaybackInterruption !== "boolean") + return "allowPlaybackInterruption: boolean expected"; return null; }; /** - * Creates a MixedAudio message from a plain object. Also converts values to their respective internal types. + * Creates a PlayAudio message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio} MixedAudio + * @returns {google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio} PlayAudio */ - MixedAudio.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio) + PlayAudio.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio(); - if (object.segments) { - if (!Array.isArray(object.segments)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.segments: array expected"); - message.segments = []; - for (var i = 0; i < object.segments.length; ++i) { - if (typeof object.segments[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.segments: object expected"); - message.segments[i] = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment.fromObject(object.segments[i]); - } - } + var message = new $root.google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio(); + if (object.audioUri != null) + message.audioUri = String(object.audioUri); + if (object.allowPlaybackInterruption != null) + message.allowPlaybackInterruption = Boolean(object.allowPlaybackInterruption); return message; }; /** - * Creates a plain object from a MixedAudio message. Also converts values to other types if specified. + * Creates a plain object from a PlayAudio message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio} message MixedAudio + * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio} message PlayAudio * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MixedAudio.toObject = function toObject(message, options) { + PlayAudio.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.segments = []; - if (message.segments && message.segments.length) { - object.segments = []; - for (var j = 0; j < message.segments.length; ++j) - object.segments[j] = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment.toObject(message.segments[j], options); + if (options.defaults) { + object.audioUri = ""; + object.allowPlaybackInterruption = false; } + if (message.audioUri != null && message.hasOwnProperty("audioUri")) + object.audioUri = message.audioUri; + if (message.allowPlaybackInterruption != null && message.hasOwnProperty("allowPlaybackInterruption")) + object.allowPlaybackInterruption = message.allowPlaybackInterruption; return object; }; /** - * Converts this MixedAudio to JSON. + * Converts this PlayAudio to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio * @instance * @returns {Object.} JSON object */ - MixedAudio.prototype.toJSON = function toJSON() { + PlayAudio.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - MixedAudio.Segment = (function() { + return PlayAudio; + })(); - /** - * Properties of a Segment. - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio - * @interface ISegment - * @property {Uint8Array|null} [audio] Segment audio - * @property {string|null} [uri] Segment uri - * @property {boolean|null} [allowPlaybackInterruption] Segment allowPlaybackInterruption + ResponseMessage.MixedAudio = (function() { + + /** + * Properties of a MixedAudio. + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage + * @interface IMixedAudio + * @property {Array.|null} [segments] MixedAudio segments + */ + + /** + * Constructs a new MixedAudio. + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage + * @classdesc Represents a MixedAudio. + * @implements IMixedAudio + * @constructor + * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.IMixedAudio=} [properties] Properties to set + */ + function MixedAudio(properties) { + this.segments = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * MixedAudio segments. + * @member {Array.} segments + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio + * @instance + */ + MixedAudio.prototype.segments = $util.emptyArray; + + /** + * Creates a new MixedAudio instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio + * @static + * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.IMixedAudio=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio} MixedAudio instance + */ + MixedAudio.create = function create(properties) { + return new MixedAudio(properties); + }; + + /** + * Encodes the specified MixedAudio message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio + * @static + * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.IMixedAudio} message MixedAudio message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MixedAudio.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.segments != null && message.segments.length) + for (var i = 0; i < message.segments.length; ++i) + $root.google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment.encode(message.segments[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified MixedAudio message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio + * @static + * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.IMixedAudio} message MixedAudio message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MixedAudio.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MixedAudio message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio} MixedAudio + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MixedAudio.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.segments && message.segments.length)) + message.segments = []; + message.segments.push($root.google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MixedAudio message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio} MixedAudio + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MixedAudio.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MixedAudio message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MixedAudio.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.segments != null && message.hasOwnProperty("segments")) { + if (!Array.isArray(message.segments)) + return "segments: array expected"; + for (var i = 0; i < message.segments.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment.verify(message.segments[i]); + if (error) + return "segments." + error; + } + } + return null; + }; + + /** + * Creates a MixedAudio message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio} MixedAudio + */ + MixedAudio.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio(); + if (object.segments) { + if (!Array.isArray(object.segments)) + throw TypeError(".google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.segments: array expected"); + message.segments = []; + for (var i = 0; i < object.segments.length; ++i) { + if (typeof object.segments[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.segments: object expected"); + message.segments[i] = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment.fromObject(object.segments[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a MixedAudio message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio + * @static + * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio} message MixedAudio + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MixedAudio.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.segments = []; + if (message.segments && message.segments.length) { + object.segments = []; + for (var j = 0; j < message.segments.length; ++j) + object.segments[j] = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment.toObject(message.segments[j], options); + } + return object; + }; + + /** + * Converts this MixedAudio to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio + * @instance + * @returns {Object.} JSON object + */ + MixedAudio.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + MixedAudio.Segment = (function() { + + /** + * Properties of a Segment. + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio + * @interface ISegment + * @property {Uint8Array|null} [audio] Segment audio + * @property {string|null} [uri] Segment uri + * @property {boolean|null} [allowPlaybackInterruption] Segment allowPlaybackInterruption */ /** * Constructs a new Segment. - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio * @classdesc Represents a Segment. * @implements ISegment * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.ISegment=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.ISegment=} [properties] Properties to set */ function Segment(properties) { if (properties) @@ -11515,7 +11885,7 @@ /** * Segment audio. * @member {Uint8Array} audio - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment * @instance */ Segment.prototype.audio = $util.newBuffer([]); @@ -11523,7 +11893,7 @@ /** * Segment uri. * @member {string} uri - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment * @instance */ Segment.prototype.uri = ""; @@ -11531,7 +11901,7 @@ /** * Segment allowPlaybackInterruption. * @member {boolean} allowPlaybackInterruption - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment * @instance */ Segment.prototype.allowPlaybackInterruption = false; @@ -11542,7 +11912,7 @@ /** * Segment content. * @member {"audio"|"uri"|undefined} content - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment * @instance */ Object.defineProperty(Segment.prototype, "content", { @@ -11553,21 +11923,21 @@ /** * Creates a new Segment instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.ISegment=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment} Segment instance + * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.ISegment=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment} Segment instance */ Segment.create = function create(properties) { return new Segment(properties); }; /** - * Encodes the specified Segment message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment.verify|verify} messages. + * Encodes the specified Segment message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.ISegment} message Segment message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.ISegment} message Segment message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -11584,11 +11954,11 @@ }; /** - * Encodes the specified Segment message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment.verify|verify} messages. + * Encodes the specified Segment message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.ISegment} message Segment message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.ISegment} message Segment message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -11599,18 +11969,18 @@ /** * Decodes a Segment message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment} Segment + * @returns {google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment} Segment * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Segment.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -11634,10 +12004,10 @@ /** * Decodes a Segment message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment} Segment + * @returns {google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment} Segment * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -11650,7 +12020,7 @@ /** * Verifies a Segment message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -11680,15 +12050,15 @@ /** * Creates a Segment message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment} Segment + * @returns {google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment} Segment */ Segment.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment(); + var message = new $root.google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment(); if (object.audio != null) if (typeof object.audio === "string") $util.base64.decode(object.audio, message.audio = $util.newBuffer($util.base64.length(object.audio)), 0); @@ -11704,9 +12074,9 @@ /** * Creates a plain object from a Segment message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment} message Segment + * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment} message Segment * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -11734,7 +12104,7 @@ /** * Converts this Segment to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment * @instance * @returns {Object.} JSON object */ @@ -11748,400 +12118,324 @@ return MixedAudio; })(); - ResponseMessage.EndInteraction = (function() { - - /** - * Properties of an EndInteraction. - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage - * @interface IEndInteraction - */ + return ResponseMessage; + })(); - /** - * Constructs a new EndInteraction. - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage - * @classdesc Represents an EndInteraction. - * @implements IEndInteraction - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IEndInteraction=} [properties] Properties to set - */ - function EndInteraction(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + v3.SpeechWordInfo = (function() { - /** - * Creates a new EndInteraction instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IEndInteraction=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction} EndInteraction instance - */ - EndInteraction.create = function create(properties) { - return new EndInteraction(properties); - }; + /** + * 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 + */ - /** - * Encodes the specified EndInteraction message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IEndInteraction} message EndInteraction message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EndInteraction.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; + /** + * 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]]; + } - /** - * Encodes the specified EndInteraction message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IEndInteraction} message EndInteraction message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EndInteraction.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * SpeechWordInfo word. + * @member {string} word + * @memberof google.cloud.dialogflow.cx.v3.SpeechWordInfo + * @instance + */ + SpeechWordInfo.prototype.word = ""; - /** - * Decodes an EndInteraction message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction} EndInteraction - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EndInteraction.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an EndInteraction message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction} EndInteraction - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EndInteraction.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * SpeechWordInfo startOffset. + * @member {google.protobuf.IDuration|null|undefined} startOffset + * @memberof google.cloud.dialogflow.cx.v3.SpeechWordInfo + * @instance + */ + SpeechWordInfo.prototype.startOffset = null; - /** - * Verifies an EndInteraction message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - EndInteraction.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; + /** + * SpeechWordInfo endOffset. + * @member {google.protobuf.IDuration|null|undefined} endOffset + * @memberof google.cloud.dialogflow.cx.v3.SpeechWordInfo + * @instance + */ + SpeechWordInfo.prototype.endOffset = null; - /** - * Creates an EndInteraction message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction} EndInteraction - */ - EndInteraction.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction) - return object; - return new $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction(); - }; + /** + * SpeechWordInfo confidence. + * @member {number} confidence + * @memberof google.cloud.dialogflow.cx.v3.SpeechWordInfo + * @instance + */ + SpeechWordInfo.prototype.confidence = 0; - /** - * Creates a plain object from an EndInteraction message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction} message EndInteraction - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - EndInteraction.toObject = function toObject() { - return {}; - }; + /** + * 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); + }; - /** - * Converts this EndInteraction to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction - * @instance - * @returns {Object.} JSON object - */ - EndInteraction.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * 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; + }; - return EndInteraction; - })(); + /** + * 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(); + }; - ResponseMessage.PlayAudio = (function() { + /** + * 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; + }; - /** - * Properties of a PlayAudio. - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage - * @interface IPlayAudio - * @property {string|null} [audioUri] PlayAudio audioUri - * @property {boolean|null} [allowPlaybackInterruption] PlayAudio allowPlaybackInterruption - */ + /** + * 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()); + }; - /** - * Constructs a new PlayAudio. - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage - * @classdesc Represents a PlayAudio. - * @implements IPlayAudio - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IPlayAudio=} [properties] Properties to set - */ - function PlayAudio(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + /** + * 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; + }; - /** - * PlayAudio audioUri. - * @member {string} audioUri - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio - * @instance - */ - PlayAudio.prototype.audioUri = ""; - - /** - * PlayAudio allowPlaybackInterruption. - * @member {boolean} allowPlaybackInterruption - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio - * @instance - */ - PlayAudio.prototype.allowPlaybackInterruption = false; + /** + * Creates a 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 new PlayAudio instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IPlayAudio=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio} PlayAudio instance - */ - PlayAudio.create = function create(properties) { - return new PlayAudio(properties); - }; - - /** - * Encodes the specified PlayAudio message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IPlayAudio} message PlayAudio message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PlayAudio.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.audioUri != null && Object.hasOwnProperty.call(message, "audioUri")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.audioUri); - if (message.allowPlaybackInterruption != null && Object.hasOwnProperty.call(message, "allowPlaybackInterruption")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.allowPlaybackInterruption); - return writer; - }; - - /** - * Encodes the specified PlayAudio message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IPlayAudio} message PlayAudio message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PlayAudio.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a PlayAudio message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio} PlayAudio - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PlayAudio.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.audioUri = reader.string(); - break; - case 2: - message.allowPlaybackInterruption = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a PlayAudio message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio} PlayAudio - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PlayAudio.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PlayAudio message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - PlayAudio.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.audioUri != null && message.hasOwnProperty("audioUri")) - if (!$util.isString(message.audioUri)) - return "audioUri: string expected"; - if (message.allowPlaybackInterruption != null && message.hasOwnProperty("allowPlaybackInterruption")) - if (typeof message.allowPlaybackInterruption !== "boolean") - return "allowPlaybackInterruption: boolean expected"; - return null; - }; - - /** - * Creates a PlayAudio message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio} PlayAudio - */ - PlayAudio.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio(); - if (object.audioUri != null) - message.audioUri = String(object.audioUri); - if (object.allowPlaybackInterruption != null) - message.allowPlaybackInterruption = Boolean(object.allowPlaybackInterruption); - return message; - }; - - /** - * Creates a plain object from a PlayAudio message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio} message PlayAudio - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - PlayAudio.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.audioUri = ""; - object.allowPlaybackInterruption = false; - } - if (message.audioUri != null && message.hasOwnProperty("audioUri")) - object.audioUri = message.audioUri; - if (message.allowPlaybackInterruption != null && message.hasOwnProperty("allowPlaybackInterruption")) - object.allowPlaybackInterruption = message.allowPlaybackInterruption; - return object; - }; + /** + * 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 PlayAudio to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio - * @instance - * @returns {Object.} JSON object - */ - PlayAudio.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * 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 PlayAudio; - })(); + return SpeechWordInfo; + })(); - return ResponseMessage; + /** + * AudioEncoding enum. + * @name google.cloud.dialogflow.cx.v3.AudioEncoding + * @enum {number} + * @property {number} AUDIO_ENCODING_UNSPECIFIED=0 AUDIO_ENCODING_UNSPECIFIED value + * @property {number} AUDIO_ENCODING_LINEAR_16=1 AUDIO_ENCODING_LINEAR_16 value + * @property {number} AUDIO_ENCODING_FLAC=2 AUDIO_ENCODING_FLAC value + * @property {number} AUDIO_ENCODING_MULAW=3 AUDIO_ENCODING_MULAW value + * @property {number} AUDIO_ENCODING_AMR=4 AUDIO_ENCODING_AMR value + * @property {number} AUDIO_ENCODING_AMR_WB=5 AUDIO_ENCODING_AMR_WB value + * @property {number} AUDIO_ENCODING_OGG_OPUS=6 AUDIO_ENCODING_OGG_OPUS value + * @property {number} AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE=7 AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE value + */ + v3.AudioEncoding = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "AUDIO_ENCODING_UNSPECIFIED"] = 0; + values[valuesById[1] = "AUDIO_ENCODING_LINEAR_16"] = 1; + values[valuesById[2] = "AUDIO_ENCODING_FLAC"] = 2; + values[valuesById[3] = "AUDIO_ENCODING_MULAW"] = 3; + values[valuesById[4] = "AUDIO_ENCODING_AMR"] = 4; + values[valuesById[5] = "AUDIO_ENCODING_AMR_WB"] = 5; + values[valuesById[6] = "AUDIO_ENCODING_OGG_OPUS"] = 6; + values[valuesById[7] = "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE"] = 7; + return values; })(); - v3beta1.SpeechWordInfo = (function() { + v3.InputAudioConfig = (function() { /** - * Properties of a SpeechWordInfo. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface ISpeechWordInfo - * @property {string|null} [word] SpeechWordInfo word - * @property {google.protobuf.IDuration|null} [startOffset] SpeechWordInfo startOffset - * @property {google.protobuf.IDuration|null} [endOffset] SpeechWordInfo endOffset - * @property {number|null} [confidence] SpeechWordInfo confidence + * Properties of an InputAudioConfig. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface IInputAudioConfig + * @property {google.cloud.dialogflow.cx.v3.AudioEncoding|null} [audioEncoding] InputAudioConfig audioEncoding + * @property {number|null} [sampleRateHertz] InputAudioConfig sampleRateHertz + * @property {boolean|null} [enableWordInfo] InputAudioConfig enableWordInfo + * @property {Array.|null} [phraseHints] InputAudioConfig phraseHints + * @property {string|null} [model] InputAudioConfig model + * @property {google.cloud.dialogflow.cx.v3.SpeechModelVariant|null} [modelVariant] InputAudioConfig modelVariant + * @property {boolean|null} [singleUtterance] InputAudioConfig singleUtterance */ /** - * Constructs a new SpeechWordInfo. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a SpeechWordInfo. - * @implements ISpeechWordInfo + * Constructs a new InputAudioConfig. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents an InputAudioConfig. + * @implements IInputAudioConfig * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ISpeechWordInfo=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IInputAudioConfig=} [properties] Properties to set */ - function SpeechWordInfo(properties) { + function InputAudioConfig(properties) { + this.phraseHints = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -12149,343 +12443,49 @@ } /** - * SpeechWordInfo word. - * @member {string} word - * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo + * InputAudioConfig audioEncoding. + * @member {google.cloud.dialogflow.cx.v3.AudioEncoding} audioEncoding + * @memberof google.cloud.dialogflow.cx.v3.InputAudioConfig * @instance */ - SpeechWordInfo.prototype.word = ""; + InputAudioConfig.prototype.audioEncoding = 0; /** - * SpeechWordInfo startOffset. - * @member {google.protobuf.IDuration|null|undefined} startOffset - * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo + * InputAudioConfig sampleRateHertz. + * @member {number} sampleRateHertz + * @memberof google.cloud.dialogflow.cx.v3.InputAudioConfig * @instance */ - SpeechWordInfo.prototype.startOffset = null; + InputAudioConfig.prototype.sampleRateHertz = 0; /** - * SpeechWordInfo endOffset. - * @member {google.protobuf.IDuration|null|undefined} endOffset - * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo + * InputAudioConfig enableWordInfo. + * @member {boolean} enableWordInfo + * @memberof google.cloud.dialogflow.cx.v3.InputAudioConfig * @instance */ - SpeechWordInfo.prototype.endOffset = null; + InputAudioConfig.prototype.enableWordInfo = false; /** - * SpeechWordInfo confidence. - * @member {number} confidence - * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo + * InputAudioConfig phraseHints. + * @member {Array.} phraseHints + * @memberof google.cloud.dialogflow.cx.v3.InputAudioConfig * @instance */ - SpeechWordInfo.prototype.confidence = 0; + InputAudioConfig.prototype.phraseHints = $util.emptyArray; /** - * Creates a new SpeechWordInfo instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ISpeechWordInfo=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.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.v3beta1.SpeechWordInfo.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ISpeechWordInfo} message SpeechWordInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - 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.v3beta1.SpeechWordInfo.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ISpeechWordInfo} message SpeechWordInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - 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.v3beta1.SpeechWordInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.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.v3beta1.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.v3beta1.SpeechWordInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo} SpeechWordInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - 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.v3beta1.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.v3beta1.SpeechWordInfo - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo} SpeechWordInfo - */ - SpeechWordInfo.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo(); - if (object.word != null) - message.word = String(object.word); - if (object.startOffset != null) { - if (typeof object.startOffset !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo.startOffset: object expected"); - message.startOffset = $root.google.protobuf.Duration.fromObject(object.startOffset); - } - if (object.endOffset != null) { - if (typeof object.endOffset !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo.endOffset: object expected"); - message.endOffset = $root.google.protobuf.Duration.fromObject(object.endOffset); - } - if (object.confidence != null) - message.confidence = Number(object.confidence); - return message; - }; - - /** - * Creates a plain object from a SpeechWordInfo message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.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.v3beta1.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.v3beta1.AudioEncoding - * @enum {number} - * @property {number} AUDIO_ENCODING_UNSPECIFIED=0 AUDIO_ENCODING_UNSPECIFIED value - * @property {number} AUDIO_ENCODING_LINEAR_16=1 AUDIO_ENCODING_LINEAR_16 value - * @property {number} AUDIO_ENCODING_FLAC=2 AUDIO_ENCODING_FLAC value - * @property {number} AUDIO_ENCODING_MULAW=3 AUDIO_ENCODING_MULAW value - * @property {number} AUDIO_ENCODING_AMR=4 AUDIO_ENCODING_AMR value - * @property {number} AUDIO_ENCODING_AMR_WB=5 AUDIO_ENCODING_AMR_WB value - * @property {number} AUDIO_ENCODING_OGG_OPUS=6 AUDIO_ENCODING_OGG_OPUS value - * @property {number} AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE=7 AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE value - */ - v3beta1.AudioEncoding = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "AUDIO_ENCODING_UNSPECIFIED"] = 0; - values[valuesById[1] = "AUDIO_ENCODING_LINEAR_16"] = 1; - values[valuesById[2] = "AUDIO_ENCODING_FLAC"] = 2; - values[valuesById[3] = "AUDIO_ENCODING_MULAW"] = 3; - values[valuesById[4] = "AUDIO_ENCODING_AMR"] = 4; - values[valuesById[5] = "AUDIO_ENCODING_AMR_WB"] = 5; - values[valuesById[6] = "AUDIO_ENCODING_OGG_OPUS"] = 6; - values[valuesById[7] = "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE"] = 7; - return values; - })(); - - v3beta1.InputAudioConfig = (function() { - - /** - * Properties of an InputAudioConfig. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IInputAudioConfig - * @property {google.cloud.dialogflow.cx.v3beta1.AudioEncoding|null} [audioEncoding] InputAudioConfig audioEncoding - * @property {number|null} [sampleRateHertz] InputAudioConfig sampleRateHertz - * @property {boolean|null} [enableWordInfo] InputAudioConfig enableWordInfo - * @property {Array.|null} [phraseHints] InputAudioConfig phraseHints - * @property {string|null} [model] InputAudioConfig model - * @property {google.cloud.dialogflow.cx.v3beta1.SpeechModelVariant|null} [modelVariant] InputAudioConfig modelVariant - * @property {boolean|null} [singleUtterance] InputAudioConfig singleUtterance - */ - - /** - * Constructs a new InputAudioConfig. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an InputAudioConfig. - * @implements IInputAudioConfig - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IInputAudioConfig=} [properties] Properties to set - */ - function InputAudioConfig(properties) { - this.phraseHints = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * InputAudioConfig audioEncoding. - * @member {google.cloud.dialogflow.cx.v3beta1.AudioEncoding} audioEncoding - * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig - * @instance - */ - InputAudioConfig.prototype.audioEncoding = 0; - - /** - * InputAudioConfig sampleRateHertz. - * @member {number} sampleRateHertz - * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig - * @instance - */ - InputAudioConfig.prototype.sampleRateHertz = 0; - - /** - * InputAudioConfig enableWordInfo. - * @member {boolean} enableWordInfo - * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig - * @instance - */ - InputAudioConfig.prototype.enableWordInfo = false; - - /** - * InputAudioConfig phraseHints. - * @member {Array.} phraseHints - * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig - * @instance - */ - InputAudioConfig.prototype.phraseHints = $util.emptyArray; - - /** - * InputAudioConfig model. - * @member {string} model - * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig - * @instance + * InputAudioConfig model. + * @member {string} model + * @memberof google.cloud.dialogflow.cx.v3.InputAudioConfig + * @instance */ InputAudioConfig.prototype.model = ""; /** * InputAudioConfig modelVariant. - * @member {google.cloud.dialogflow.cx.v3beta1.SpeechModelVariant} modelVariant - * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig + * @member {google.cloud.dialogflow.cx.v3.SpeechModelVariant} modelVariant + * @memberof google.cloud.dialogflow.cx.v3.InputAudioConfig * @instance */ InputAudioConfig.prototype.modelVariant = 0; @@ -12493,7 +12493,7 @@ /** * InputAudioConfig singleUtterance. * @member {boolean} singleUtterance - * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3.InputAudioConfig * @instance */ InputAudioConfig.prototype.singleUtterance = false; @@ -12501,21 +12501,21 @@ /** * Creates a new InputAudioConfig instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3.InputAudioConfig * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IInputAudioConfig=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.InputAudioConfig} InputAudioConfig instance + * @param {google.cloud.dialogflow.cx.v3.IInputAudioConfig=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.InputAudioConfig} InputAudioConfig instance */ InputAudioConfig.create = function create(properties) { return new InputAudioConfig(properties); }; /** - * Encodes the specified InputAudioConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.InputAudioConfig.verify|verify} messages. + * Encodes the specified InputAudioConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.InputAudioConfig.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3.InputAudioConfig * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IInputAudioConfig} message InputAudioConfig message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IInputAudioConfig} message InputAudioConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -12541,11 +12541,11 @@ }; /** - * Encodes the specified InputAudioConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.InputAudioConfig.verify|verify} messages. + * Encodes the specified InputAudioConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.InputAudioConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3.InputAudioConfig * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IInputAudioConfig} message InputAudioConfig message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IInputAudioConfig} message InputAudioConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -12556,18 +12556,18 @@ /** * Decodes an InputAudioConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3.InputAudioConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.InputAudioConfig} InputAudioConfig + * @returns {google.cloud.dialogflow.cx.v3.InputAudioConfig} InputAudioConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ InputAudioConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.InputAudioConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.InputAudioConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -12605,10 +12605,10 @@ /** * Decodes an InputAudioConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3.InputAudioConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.InputAudioConfig} InputAudioConfig + * @returns {google.cloud.dialogflow.cx.v3.InputAudioConfig} InputAudioConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -12621,7 +12621,7 @@ /** * Verifies an InputAudioConfig message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3.InputAudioConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -12678,15 +12678,15 @@ /** * Creates an InputAudioConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3.InputAudioConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.InputAudioConfig} InputAudioConfig + * @returns {google.cloud.dialogflow.cx.v3.InputAudioConfig} InputAudioConfig */ InputAudioConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.InputAudioConfig) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.InputAudioConfig) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.InputAudioConfig(); + var message = new $root.google.cloud.dialogflow.cx.v3.InputAudioConfig(); switch (object.audioEncoding) { case "AUDIO_ENCODING_UNSPECIFIED": case 0: @@ -12727,7 +12727,7 @@ message.enableWordInfo = Boolean(object.enableWordInfo); if (object.phraseHints) { if (!Array.isArray(object.phraseHints)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.InputAudioConfig.phraseHints: array expected"); + throw TypeError(".google.cloud.dialogflow.cx.v3.InputAudioConfig.phraseHints: array expected"); message.phraseHints = []; for (var i = 0; i < object.phraseHints.length; ++i) message.phraseHints[i] = String(object.phraseHints[i]); @@ -12760,9 +12760,9 @@ /** * Creates a plain object from an InputAudioConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3.InputAudioConfig * @static - * @param {google.cloud.dialogflow.cx.v3beta1.InputAudioConfig} message InputAudioConfig + * @param {google.cloud.dialogflow.cx.v3.InputAudioConfig} message InputAudioConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -12781,7 +12781,7 @@ object.enableWordInfo = false; } if (message.audioEncoding != null && message.hasOwnProperty("audioEncoding")) - object.audioEncoding = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.AudioEncoding[message.audioEncoding] : message.audioEncoding; + object.audioEncoding = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.AudioEncoding[message.audioEncoding] : message.audioEncoding; if (message.sampleRateHertz != null && message.hasOwnProperty("sampleRateHertz")) object.sampleRateHertz = message.sampleRateHertz; if (message.phraseHints && message.phraseHints.length) { @@ -12794,7 +12794,7 @@ if (message.singleUtterance != null && message.hasOwnProperty("singleUtterance")) object.singleUtterance = message.singleUtterance; if (message.modelVariant != null && message.hasOwnProperty("modelVariant")) - object.modelVariant = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.SpeechModelVariant[message.modelVariant] : message.modelVariant; + object.modelVariant = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.SpeechModelVariant[message.modelVariant] : message.modelVariant; if (message.enableWordInfo != null && message.hasOwnProperty("enableWordInfo")) object.enableWordInfo = message.enableWordInfo; return object; @@ -12803,7 +12803,7 @@ /** * Converts this InputAudioConfig to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3.InputAudioConfig * @instance * @returns {Object.} JSON object */ @@ -12816,14 +12816,14 @@ /** * SpeechModelVariant enum. - * @name google.cloud.dialogflow.cx.v3beta1.SpeechModelVariant + * @name google.cloud.dialogflow.cx.v3.SpeechModelVariant * @enum {number} * @property {number} SPEECH_MODEL_VARIANT_UNSPECIFIED=0 SPEECH_MODEL_VARIANT_UNSPECIFIED value * @property {number} USE_BEST_AVAILABLE=1 USE_BEST_AVAILABLE value * @property {number} USE_STANDARD=2 USE_STANDARD value * @property {number} USE_ENHANCED=3 USE_ENHANCED value */ - v3beta1.SpeechModelVariant = (function() { + v3.SpeechModelVariant = (function() { var valuesById = {}, values = Object.create(valuesById); values[valuesById[0] = "SPEECH_MODEL_VARIANT_UNSPECIFIED"] = 0; values[valuesById[1] = "USE_BEST_AVAILABLE"] = 1; @@ -12832,23 +12832,23 @@ return values; })(); - v3beta1.VoiceSelectionParams = (function() { + v3.VoiceSelectionParams = (function() { /** * Properties of a VoiceSelectionParams. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface IVoiceSelectionParams * @property {string|null} [name] VoiceSelectionParams name - * @property {google.cloud.dialogflow.cx.v3beta1.SsmlVoiceGender|null} [ssmlGender] VoiceSelectionParams ssmlGender + * @property {google.cloud.dialogflow.cx.v3.SsmlVoiceGender|null} [ssmlGender] VoiceSelectionParams ssmlGender */ /** * Constructs a new VoiceSelectionParams. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a VoiceSelectionParams. * @implements IVoiceSelectionParams * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IVoiceSelectionParams=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IVoiceSelectionParams=} [properties] Properties to set */ function VoiceSelectionParams(properties) { if (properties) @@ -12860,15 +12860,15 @@ /** * VoiceSelectionParams name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams + * @memberof google.cloud.dialogflow.cx.v3.VoiceSelectionParams * @instance */ VoiceSelectionParams.prototype.name = ""; /** * VoiceSelectionParams ssmlGender. - * @member {google.cloud.dialogflow.cx.v3beta1.SsmlVoiceGender} ssmlGender - * @memberof google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams + * @member {google.cloud.dialogflow.cx.v3.SsmlVoiceGender} ssmlGender + * @memberof google.cloud.dialogflow.cx.v3.VoiceSelectionParams * @instance */ VoiceSelectionParams.prototype.ssmlGender = 0; @@ -12876,21 +12876,21 @@ /** * Creates a new VoiceSelectionParams instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams + * @memberof google.cloud.dialogflow.cx.v3.VoiceSelectionParams * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IVoiceSelectionParams=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams} VoiceSelectionParams instance + * @param {google.cloud.dialogflow.cx.v3.IVoiceSelectionParams=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.VoiceSelectionParams} VoiceSelectionParams instance */ VoiceSelectionParams.create = function create(properties) { return new VoiceSelectionParams(properties); }; /** - * Encodes the specified VoiceSelectionParams message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams.verify|verify} messages. + * Encodes the specified VoiceSelectionParams message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.VoiceSelectionParams.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams + * @memberof google.cloud.dialogflow.cx.v3.VoiceSelectionParams * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IVoiceSelectionParams} message VoiceSelectionParams message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IVoiceSelectionParams} message VoiceSelectionParams message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -12905,11 +12905,11 @@ }; /** - * Encodes the specified VoiceSelectionParams message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams.verify|verify} messages. + * Encodes the specified VoiceSelectionParams message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.VoiceSelectionParams.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams + * @memberof google.cloud.dialogflow.cx.v3.VoiceSelectionParams * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IVoiceSelectionParams} message VoiceSelectionParams message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IVoiceSelectionParams} message VoiceSelectionParams message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -12920,18 +12920,18 @@ /** * Decodes a VoiceSelectionParams message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams + * @memberof google.cloud.dialogflow.cx.v3.VoiceSelectionParams * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams} VoiceSelectionParams + * @returns {google.cloud.dialogflow.cx.v3.VoiceSelectionParams} VoiceSelectionParams * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ VoiceSelectionParams.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.VoiceSelectionParams(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -12952,10 +12952,10 @@ /** * Decodes a VoiceSelectionParams message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams + * @memberof google.cloud.dialogflow.cx.v3.VoiceSelectionParams * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams} VoiceSelectionParams + * @returns {google.cloud.dialogflow.cx.v3.VoiceSelectionParams} VoiceSelectionParams * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -12968,7 +12968,7 @@ /** * Verifies a VoiceSelectionParams message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams + * @memberof google.cloud.dialogflow.cx.v3.VoiceSelectionParams * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -12995,15 +12995,15 @@ /** * Creates a VoiceSelectionParams message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams + * @memberof google.cloud.dialogflow.cx.v3.VoiceSelectionParams * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams} VoiceSelectionParams + * @returns {google.cloud.dialogflow.cx.v3.VoiceSelectionParams} VoiceSelectionParams */ VoiceSelectionParams.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.VoiceSelectionParams) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams(); + var message = new $root.google.cloud.dialogflow.cx.v3.VoiceSelectionParams(); if (object.name != null) message.name = String(object.name); switch (object.ssmlGender) { @@ -13030,9 +13030,9 @@ /** * Creates a plain object from a VoiceSelectionParams message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams + * @memberof google.cloud.dialogflow.cx.v3.VoiceSelectionParams * @static - * @param {google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams} message VoiceSelectionParams + * @param {google.cloud.dialogflow.cx.v3.VoiceSelectionParams} message VoiceSelectionParams * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -13047,14 +13047,14 @@ if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; if (message.ssmlGender != null && message.hasOwnProperty("ssmlGender")) - object.ssmlGender = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.SsmlVoiceGender[message.ssmlGender] : message.ssmlGender; + object.ssmlGender = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.SsmlVoiceGender[message.ssmlGender] : message.ssmlGender; return object; }; /** * Converts this VoiceSelectionParams to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams + * @memberof google.cloud.dialogflow.cx.v3.VoiceSelectionParams * @instance * @returns {Object.} JSON object */ @@ -13065,26 +13065,26 @@ return VoiceSelectionParams; })(); - v3beta1.SynthesizeSpeechConfig = (function() { + v3.SynthesizeSpeechConfig = (function() { /** * Properties of a SynthesizeSpeechConfig. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface ISynthesizeSpeechConfig * @property {number|null} [speakingRate] SynthesizeSpeechConfig speakingRate * @property {number|null} [pitch] SynthesizeSpeechConfig pitch * @property {number|null} [volumeGainDb] SynthesizeSpeechConfig volumeGainDb * @property {Array.|null} [effectsProfileId] SynthesizeSpeechConfig effectsProfileId - * @property {google.cloud.dialogflow.cx.v3beta1.IVoiceSelectionParams|null} [voice] SynthesizeSpeechConfig voice + * @property {google.cloud.dialogflow.cx.v3.IVoiceSelectionParams|null} [voice] SynthesizeSpeechConfig voice */ /** * Constructs a new SynthesizeSpeechConfig. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a SynthesizeSpeechConfig. * @implements ISynthesizeSpeechConfig * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ISynthesizeSpeechConfig=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ISynthesizeSpeechConfig=} [properties] Properties to set */ function SynthesizeSpeechConfig(properties) { this.effectsProfileId = []; @@ -13097,7 +13097,7 @@ /** * SynthesizeSpeechConfig speakingRate. * @member {number} speakingRate - * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig + * @memberof google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig * @instance */ SynthesizeSpeechConfig.prototype.speakingRate = 0; @@ -13105,7 +13105,7 @@ /** * SynthesizeSpeechConfig pitch. * @member {number} pitch - * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig + * @memberof google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig * @instance */ SynthesizeSpeechConfig.prototype.pitch = 0; @@ -13113,7 +13113,7 @@ /** * SynthesizeSpeechConfig volumeGainDb. * @member {number} volumeGainDb - * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig + * @memberof google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig * @instance */ SynthesizeSpeechConfig.prototype.volumeGainDb = 0; @@ -13121,15 +13121,15 @@ /** * SynthesizeSpeechConfig effectsProfileId. * @member {Array.} effectsProfileId - * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig + * @memberof google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig * @instance */ SynthesizeSpeechConfig.prototype.effectsProfileId = $util.emptyArray; /** * SynthesizeSpeechConfig voice. - * @member {google.cloud.dialogflow.cx.v3beta1.IVoiceSelectionParams|null|undefined} voice - * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig + * @member {google.cloud.dialogflow.cx.v3.IVoiceSelectionParams|null|undefined} voice + * @memberof google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig * @instance */ SynthesizeSpeechConfig.prototype.voice = null; @@ -13137,21 +13137,21 @@ /** * Creates a new SynthesizeSpeechConfig instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig + * @memberof google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ISynthesizeSpeechConfig=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig} SynthesizeSpeechConfig instance + * @param {google.cloud.dialogflow.cx.v3.ISynthesizeSpeechConfig=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig} SynthesizeSpeechConfig instance */ SynthesizeSpeechConfig.create = function create(properties) { return new SynthesizeSpeechConfig(properties); }; /** - * Encodes the specified SynthesizeSpeechConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig.verify|verify} messages. + * Encodes the specified SynthesizeSpeechConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig + * @memberof google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ISynthesizeSpeechConfig} message SynthesizeSpeechConfig message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ISynthesizeSpeechConfig} message SynthesizeSpeechConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -13165,7 +13165,7 @@ if (message.volumeGainDb != null && Object.hasOwnProperty.call(message, "volumeGainDb")) writer.uint32(/* id 3, wireType 1 =*/25).double(message.volumeGainDb); if (message.voice != null && Object.hasOwnProperty.call(message, "voice")) - $root.google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams.encode(message.voice, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.VoiceSelectionParams.encode(message.voice, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); if (message.effectsProfileId != null && message.effectsProfileId.length) for (var i = 0; i < message.effectsProfileId.length; ++i) writer.uint32(/* id 5, wireType 2 =*/42).string(message.effectsProfileId[i]); @@ -13173,11 +13173,11 @@ }; /** - * Encodes the specified SynthesizeSpeechConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig.verify|verify} messages. + * Encodes the specified SynthesizeSpeechConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig + * @memberof google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ISynthesizeSpeechConfig} message SynthesizeSpeechConfig message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ISynthesizeSpeechConfig} message SynthesizeSpeechConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -13188,18 +13188,18 @@ /** * Decodes a SynthesizeSpeechConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig + * @memberof google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig} SynthesizeSpeechConfig + * @returns {google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig} SynthesizeSpeechConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SynthesizeSpeechConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -13218,7 +13218,7 @@ message.effectsProfileId.push(reader.string()); break; case 4: - message.voice = $root.google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams.decode(reader, reader.uint32()); + message.voice = $root.google.cloud.dialogflow.cx.v3.VoiceSelectionParams.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -13231,10 +13231,10 @@ /** * Decodes a SynthesizeSpeechConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig + * @memberof google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig} SynthesizeSpeechConfig + * @returns {google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig} SynthesizeSpeechConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -13247,7 +13247,7 @@ /** * Verifies a SynthesizeSpeechConfig message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig + * @memberof google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -13272,7 +13272,7 @@ return "effectsProfileId: string[] expected"; } if (message.voice != null && message.hasOwnProperty("voice")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams.verify(message.voice); + var error = $root.google.cloud.dialogflow.cx.v3.VoiceSelectionParams.verify(message.voice); if (error) return "voice." + error; } @@ -13282,15 +13282,15 @@ /** * Creates a SynthesizeSpeechConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig + * @memberof google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig} SynthesizeSpeechConfig + * @returns {google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig} SynthesizeSpeechConfig */ SynthesizeSpeechConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig(); + var message = new $root.google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig(); if (object.speakingRate != null) message.speakingRate = Number(object.speakingRate); if (object.pitch != null) @@ -13299,15 +13299,15 @@ message.volumeGainDb = Number(object.volumeGainDb); if (object.effectsProfileId) { if (!Array.isArray(object.effectsProfileId)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig.effectsProfileId: array expected"); + throw TypeError(".google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig.effectsProfileId: array expected"); message.effectsProfileId = []; for (var i = 0; i < object.effectsProfileId.length; ++i) message.effectsProfileId[i] = String(object.effectsProfileId[i]); } if (object.voice != null) { if (typeof object.voice !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig.voice: object expected"); - message.voice = $root.google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams.fromObject(object.voice); + throw TypeError(".google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig.voice: object expected"); + message.voice = $root.google.cloud.dialogflow.cx.v3.VoiceSelectionParams.fromObject(object.voice); } return message; }; @@ -13315,9 +13315,9 @@ /** * Creates a plain object from a SynthesizeSpeechConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig + * @memberof google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig * @static - * @param {google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig} message SynthesizeSpeechConfig + * @param {google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig} message SynthesizeSpeechConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -13340,7 +13340,7 @@ if (message.volumeGainDb != null && message.hasOwnProperty("volumeGainDb")) object.volumeGainDb = options.json && !isFinite(message.volumeGainDb) ? String(message.volumeGainDb) : message.volumeGainDb; if (message.voice != null && message.hasOwnProperty("voice")) - object.voice = $root.google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams.toObject(message.voice, options); + object.voice = $root.google.cloud.dialogflow.cx.v3.VoiceSelectionParams.toObject(message.voice, options); if (message.effectsProfileId && message.effectsProfileId.length) { object.effectsProfileId = []; for (var j = 0; j < message.effectsProfileId.length; ++j) @@ -13352,7 +13352,7 @@ /** * Converts this SynthesizeSpeechConfig to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig + * @memberof google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig * @instance * @returns {Object.} JSON object */ @@ -13365,14 +13365,14 @@ /** * SsmlVoiceGender enum. - * @name google.cloud.dialogflow.cx.v3beta1.SsmlVoiceGender + * @name google.cloud.dialogflow.cx.v3.SsmlVoiceGender * @enum {number} * @property {number} SSML_VOICE_GENDER_UNSPECIFIED=0 SSML_VOICE_GENDER_UNSPECIFIED value * @property {number} SSML_VOICE_GENDER_MALE=1 SSML_VOICE_GENDER_MALE value * @property {number} SSML_VOICE_GENDER_FEMALE=2 SSML_VOICE_GENDER_FEMALE value * @property {number} SSML_VOICE_GENDER_NEUTRAL=3 SSML_VOICE_GENDER_NEUTRAL value */ - v3beta1.SsmlVoiceGender = (function() { + v3.SsmlVoiceGender = (function() { var valuesById = {}, values = Object.create(valuesById); values[valuesById[0] = "SSML_VOICE_GENDER_UNSPECIFIED"] = 0; values[valuesById[1] = "SSML_VOICE_GENDER_MALE"] = 1; @@ -13381,24 +13381,24 @@ return values; })(); - v3beta1.OutputAudioConfig = (function() { + v3.OutputAudioConfig = (function() { /** * Properties of an OutputAudioConfig. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface IOutputAudioConfig - * @property {google.cloud.dialogflow.cx.v3beta1.OutputAudioEncoding|null} [audioEncoding] OutputAudioConfig audioEncoding + * @property {google.cloud.dialogflow.cx.v3.OutputAudioEncoding|null} [audioEncoding] OutputAudioConfig audioEncoding * @property {number|null} [sampleRateHertz] OutputAudioConfig sampleRateHertz - * @property {google.cloud.dialogflow.cx.v3beta1.ISynthesizeSpeechConfig|null} [synthesizeSpeechConfig] OutputAudioConfig synthesizeSpeechConfig + * @property {google.cloud.dialogflow.cx.v3.ISynthesizeSpeechConfig|null} [synthesizeSpeechConfig] OutputAudioConfig synthesizeSpeechConfig */ /** * Constructs a new OutputAudioConfig. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents an OutputAudioConfig. * @implements IOutputAudioConfig * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IOutputAudioConfig=} [properties] Properties to set */ function OutputAudioConfig(properties) { if (properties) @@ -13409,8 +13409,8 @@ /** * OutputAudioConfig audioEncoding. - * @member {google.cloud.dialogflow.cx.v3beta1.OutputAudioEncoding} audioEncoding - * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig + * @member {google.cloud.dialogflow.cx.v3.OutputAudioEncoding} audioEncoding + * @memberof google.cloud.dialogflow.cx.v3.OutputAudioConfig * @instance */ OutputAudioConfig.prototype.audioEncoding = 0; @@ -13418,15 +13418,15 @@ /** * OutputAudioConfig sampleRateHertz. * @member {number} sampleRateHertz - * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3.OutputAudioConfig * @instance */ OutputAudioConfig.prototype.sampleRateHertz = 0; /** * OutputAudioConfig synthesizeSpeechConfig. - * @member {google.cloud.dialogflow.cx.v3beta1.ISynthesizeSpeechConfig|null|undefined} synthesizeSpeechConfig - * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig + * @member {google.cloud.dialogflow.cx.v3.ISynthesizeSpeechConfig|null|undefined} synthesizeSpeechConfig + * @memberof google.cloud.dialogflow.cx.v3.OutputAudioConfig * @instance */ OutputAudioConfig.prototype.synthesizeSpeechConfig = null; @@ -13434,21 +13434,21 @@ /** * Creates a new OutputAudioConfig instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3.OutputAudioConfig * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig} OutputAudioConfig instance + * @param {google.cloud.dialogflow.cx.v3.IOutputAudioConfig=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.OutputAudioConfig} OutputAudioConfig instance */ OutputAudioConfig.create = function create(properties) { return new OutputAudioConfig(properties); }; /** - * Encodes the specified OutputAudioConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.verify|verify} messages. + * Encodes the specified OutputAudioConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.OutputAudioConfig.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3.OutputAudioConfig * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig} message OutputAudioConfig message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IOutputAudioConfig} message OutputAudioConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -13460,16 +13460,16 @@ if (message.sampleRateHertz != null && Object.hasOwnProperty.call(message, "sampleRateHertz")) writer.uint32(/* id 2, wireType 0 =*/16).int32(message.sampleRateHertz); if (message.synthesizeSpeechConfig != null && Object.hasOwnProperty.call(message, "synthesizeSpeechConfig")) - $root.google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig.encode(message.synthesizeSpeechConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig.encode(message.synthesizeSpeechConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified OutputAudioConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.verify|verify} messages. + * Encodes the specified OutputAudioConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.OutputAudioConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3.OutputAudioConfig * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig} message OutputAudioConfig message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IOutputAudioConfig} message OutputAudioConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -13480,18 +13480,18 @@ /** * Decodes an OutputAudioConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3.OutputAudioConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig} OutputAudioConfig + * @returns {google.cloud.dialogflow.cx.v3.OutputAudioConfig} OutputAudioConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ OutputAudioConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -13502,7 +13502,7 @@ message.sampleRateHertz = reader.int32(); break; case 3: - message.synthesizeSpeechConfig = $root.google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig.decode(reader, reader.uint32()); + message.synthesizeSpeechConfig = $root.google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -13515,10 +13515,10 @@ /** * Decodes an OutputAudioConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3.OutputAudioConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig} OutputAudioConfig + * @returns {google.cloud.dialogflow.cx.v3.OutputAudioConfig} OutputAudioConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -13531,7 +13531,7 @@ /** * Verifies an OutputAudioConfig message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3.OutputAudioConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -13555,7 +13555,7 @@ if (!$util.isInteger(message.sampleRateHertz)) return "sampleRateHertz: integer expected"; if (message.synthesizeSpeechConfig != null && message.hasOwnProperty("synthesizeSpeechConfig")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig.verify(message.synthesizeSpeechConfig); + var error = $root.google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig.verify(message.synthesizeSpeechConfig); if (error) return "synthesizeSpeechConfig." + error; } @@ -13565,15 +13565,15 @@ /** * Creates an OutputAudioConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3.OutputAudioConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig} OutputAudioConfig + * @returns {google.cloud.dialogflow.cx.v3.OutputAudioConfig} OutputAudioConfig */ OutputAudioConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig(); + var message = new $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig(); switch (object.audioEncoding) { case "OUTPUT_AUDIO_ENCODING_UNSPECIFIED": case 0: @@ -13604,8 +13604,8 @@ message.sampleRateHertz = object.sampleRateHertz | 0; if (object.synthesizeSpeechConfig != null) { if (typeof object.synthesizeSpeechConfig !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.synthesizeSpeechConfig: object expected"); - message.synthesizeSpeechConfig = $root.google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig.fromObject(object.synthesizeSpeechConfig); + throw TypeError(".google.cloud.dialogflow.cx.v3.OutputAudioConfig.synthesizeSpeechConfig: object expected"); + message.synthesizeSpeechConfig = $root.google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig.fromObject(object.synthesizeSpeechConfig); } return message; }; @@ -13613,9 +13613,9 @@ /** * Creates a plain object from an OutputAudioConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3.OutputAudioConfig * @static - * @param {google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig} message OutputAudioConfig + * @param {google.cloud.dialogflow.cx.v3.OutputAudioConfig} message OutputAudioConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -13629,18 +13629,18 @@ object.synthesizeSpeechConfig = null; } if (message.audioEncoding != null && message.hasOwnProperty("audioEncoding")) - object.audioEncoding = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioEncoding[message.audioEncoding] : message.audioEncoding; + object.audioEncoding = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.OutputAudioEncoding[message.audioEncoding] : message.audioEncoding; if (message.sampleRateHertz != null && message.hasOwnProperty("sampleRateHertz")) object.sampleRateHertz = message.sampleRateHertz; if (message.synthesizeSpeechConfig != null && message.hasOwnProperty("synthesizeSpeechConfig")) - object.synthesizeSpeechConfig = $root.google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig.toObject(message.synthesizeSpeechConfig, options); + object.synthesizeSpeechConfig = $root.google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig.toObject(message.synthesizeSpeechConfig, options); return object; }; /** * Converts this OutputAudioConfig to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3.OutputAudioConfig * @instance * @returns {Object.} JSON object */ @@ -13653,7 +13653,7 @@ /** * OutputAudioEncoding enum. - * @name google.cloud.dialogflow.cx.v3beta1.OutputAudioEncoding + * @name google.cloud.dialogflow.cx.v3.OutputAudioEncoding * @enum {number} * @property {number} OUTPUT_AUDIO_ENCODING_UNSPECIFIED=0 OUTPUT_AUDIO_ENCODING_UNSPECIFIED value * @property {number} OUTPUT_AUDIO_ENCODING_LINEAR_16=1 OUTPUT_AUDIO_ENCODING_LINEAR_16 value @@ -13662,7 +13662,7 @@ * @property {number} OUTPUT_AUDIO_ENCODING_OGG_OPUS=3 OUTPUT_AUDIO_ENCODING_OGG_OPUS value * @property {number} OUTPUT_AUDIO_ENCODING_MULAW=5 OUTPUT_AUDIO_ENCODING_MULAW value */ - v3beta1.OutputAudioEncoding = (function() { + v3.OutputAudioEncoding = (function() { var valuesById = {}, values = Object.create(valuesById); values[valuesById[0] = "OUTPUT_AUDIO_ENCODING_UNSPECIFIED"] = 0; values[valuesById[1] = "OUTPUT_AUDIO_ENCODING_LINEAR_16"] = 1; @@ -13673,11 +13673,11 @@ return values; })(); - v3beta1.EntityTypes = (function() { + v3.EntityTypes = (function() { /** * Constructs a new EntityTypes service. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents an EntityTypes * @extends $protobuf.rpc.Service * @constructor @@ -13694,7 +13694,7 @@ /** * Creates new EntityTypes service using the specified rpc implementation. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes + * @memberof google.cloud.dialogflow.cx.v3.EntityTypes * @static * @param {$protobuf.RPCImpl} rpcImpl RPC implementation * @param {boolean} [requestDelimited=false] Whether requests are length-delimited @@ -13706,140 +13706,140 @@ }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.EntityTypes#listEntityTypes}. - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes + * Callback as used by {@link google.cloud.dialogflow.cx.v3.EntityTypes#listEntityTypes}. + * @memberof google.cloud.dialogflow.cx.v3.EntityTypes * @typedef ListEntityTypesCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse} [response] ListEntityTypesResponse + * @param {google.cloud.dialogflow.cx.v3.ListEntityTypesResponse} [response] ListEntityTypesResponse */ /** * Calls ListEntityTypes. * @function listEntityTypes - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes + * @memberof google.cloud.dialogflow.cx.v3.EntityTypes * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IListEntityTypesRequest} request ListEntityTypesRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.EntityTypes.ListEntityTypesCallback} callback Node-style callback called with the error, if any, and ListEntityTypesResponse + * @param {google.cloud.dialogflow.cx.v3.IListEntityTypesRequest} request ListEntityTypesRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.EntityTypes.ListEntityTypesCallback} callback Node-style callback called with the error, if any, and ListEntityTypesResponse * @returns {undefined} * @variation 1 */ Object.defineProperty(EntityTypes.prototype.listEntityTypes = function listEntityTypes(request, callback) { - return this.rpcCall(listEntityTypes, $root.google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest, $root.google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse, request, callback); + return this.rpcCall(listEntityTypes, $root.google.cloud.dialogflow.cx.v3.ListEntityTypesRequest, $root.google.cloud.dialogflow.cx.v3.ListEntityTypesResponse, request, callback); }, "name", { value: "ListEntityTypes" }); /** * Calls ListEntityTypes. * @function listEntityTypes - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes + * @memberof google.cloud.dialogflow.cx.v3.EntityTypes * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IListEntityTypesRequest} request ListEntityTypesRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3.IListEntityTypesRequest} request ListEntityTypesRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.EntityTypes#getEntityType}. - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes + * Callback as used by {@link google.cloud.dialogflow.cx.v3.EntityTypes#getEntityType}. + * @memberof google.cloud.dialogflow.cx.v3.EntityTypes * @typedef GetEntityTypeCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.EntityType} [response] EntityType + * @param {google.cloud.dialogflow.cx.v3.EntityType} [response] EntityType */ /** * Calls GetEntityType. * @function getEntityType - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes + * @memberof google.cloud.dialogflow.cx.v3.EntityTypes * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetEntityTypeRequest} request GetEntityTypeRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.EntityTypes.GetEntityTypeCallback} callback Node-style callback called with the error, if any, and EntityType + * @param {google.cloud.dialogflow.cx.v3.IGetEntityTypeRequest} request GetEntityTypeRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.EntityTypes.GetEntityTypeCallback} callback Node-style callback called with the error, if any, and EntityType * @returns {undefined} * @variation 1 */ Object.defineProperty(EntityTypes.prototype.getEntityType = function getEntityType(request, callback) { - return this.rpcCall(getEntityType, $root.google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest, $root.google.cloud.dialogflow.cx.v3beta1.EntityType, request, callback); + return this.rpcCall(getEntityType, $root.google.cloud.dialogflow.cx.v3.GetEntityTypeRequest, $root.google.cloud.dialogflow.cx.v3.EntityType, request, callback); }, "name", { value: "GetEntityType" }); /** * Calls GetEntityType. * @function getEntityType - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes + * @memberof google.cloud.dialogflow.cx.v3.EntityTypes * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetEntityTypeRequest} request GetEntityTypeRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3.IGetEntityTypeRequest} request GetEntityTypeRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.EntityTypes#createEntityType}. - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes + * Callback as used by {@link google.cloud.dialogflow.cx.v3.EntityTypes#createEntityType}. + * @memberof google.cloud.dialogflow.cx.v3.EntityTypes * @typedef CreateEntityTypeCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.EntityType} [response] EntityType + * @param {google.cloud.dialogflow.cx.v3.EntityType} [response] EntityType */ /** * Calls CreateEntityType. * @function createEntityType - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes + * @memberof google.cloud.dialogflow.cx.v3.EntityTypes * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateEntityTypeRequest} request CreateEntityTypeRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.EntityTypes.CreateEntityTypeCallback} callback Node-style callback called with the error, if any, and EntityType + * @param {google.cloud.dialogflow.cx.v3.ICreateEntityTypeRequest} request CreateEntityTypeRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.EntityTypes.CreateEntityTypeCallback} callback Node-style callback called with the error, if any, and EntityType * @returns {undefined} * @variation 1 */ Object.defineProperty(EntityTypes.prototype.createEntityType = function createEntityType(request, callback) { - return this.rpcCall(createEntityType, $root.google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest, $root.google.cloud.dialogflow.cx.v3beta1.EntityType, request, callback); + return this.rpcCall(createEntityType, $root.google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest, $root.google.cloud.dialogflow.cx.v3.EntityType, request, callback); }, "name", { value: "CreateEntityType" }); /** * Calls CreateEntityType. * @function createEntityType - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes + * @memberof google.cloud.dialogflow.cx.v3.EntityTypes * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateEntityTypeRequest} request CreateEntityTypeRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3.ICreateEntityTypeRequest} request CreateEntityTypeRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.EntityTypes#updateEntityType}. - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes + * Callback as used by {@link google.cloud.dialogflow.cx.v3.EntityTypes#updateEntityType}. + * @memberof google.cloud.dialogflow.cx.v3.EntityTypes * @typedef UpdateEntityTypeCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.EntityType} [response] EntityType + * @param {google.cloud.dialogflow.cx.v3.EntityType} [response] EntityType */ /** * Calls UpdateEntityType. * @function updateEntityType - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes + * @memberof google.cloud.dialogflow.cx.v3.EntityTypes * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateEntityTypeRequest} request UpdateEntityTypeRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.EntityTypes.UpdateEntityTypeCallback} callback Node-style callback called with the error, if any, and EntityType + * @param {google.cloud.dialogflow.cx.v3.IUpdateEntityTypeRequest} request UpdateEntityTypeRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.EntityTypes.UpdateEntityTypeCallback} callback Node-style callback called with the error, if any, and EntityType * @returns {undefined} * @variation 1 */ Object.defineProperty(EntityTypes.prototype.updateEntityType = function updateEntityType(request, callback) { - return this.rpcCall(updateEntityType, $root.google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest, $root.google.cloud.dialogflow.cx.v3beta1.EntityType, request, callback); + return this.rpcCall(updateEntityType, $root.google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest, $root.google.cloud.dialogflow.cx.v3.EntityType, request, callback); }, "name", { value: "UpdateEntityType" }); /** * Calls UpdateEntityType. * @function updateEntityType - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes + * @memberof google.cloud.dialogflow.cx.v3.EntityTypes * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateEntityTypeRequest} request UpdateEntityTypeRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3.IUpdateEntityTypeRequest} request UpdateEntityTypeRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.EntityTypes#deleteEntityType}. - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes + * Callback as used by {@link google.cloud.dialogflow.cx.v3.EntityTypes#deleteEntityType}. + * @memberof google.cloud.dialogflow.cx.v3.EntityTypes * @typedef DeleteEntityTypeCallback * @type {function} * @param {Error|null} error Error, if any @@ -13849,23 +13849,23 @@ /** * Calls DeleteEntityType. * @function deleteEntityType - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes + * @memberof google.cloud.dialogflow.cx.v3.EntityTypes * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteEntityTypeRequest} request DeleteEntityTypeRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.EntityTypes.DeleteEntityTypeCallback} callback Node-style callback called with the error, if any, and Empty + * @param {google.cloud.dialogflow.cx.v3.IDeleteEntityTypeRequest} request DeleteEntityTypeRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.EntityTypes.DeleteEntityTypeCallback} callback Node-style callback called with the error, if any, and Empty * @returns {undefined} * @variation 1 */ Object.defineProperty(EntityTypes.prototype.deleteEntityType = function deleteEntityType(request, callback) { - return this.rpcCall(deleteEntityType, $root.google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest, $root.google.protobuf.Empty, request, callback); + return this.rpcCall(deleteEntityType, $root.google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest, $root.google.protobuf.Empty, request, callback); }, "name", { value: "DeleteEntityType" }); /** * Calls DeleteEntityType. * @function deleteEntityType - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityTypes + * @memberof google.cloud.dialogflow.cx.v3.EntityTypes * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteEntityTypeRequest} request DeleteEntityTypeRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.IDeleteEntityTypeRequest} request DeleteEntityTypeRequest message or plain object * @returns {Promise} Promise * @variation 2 */ @@ -13873,28 +13873,28 @@ return EntityTypes; })(); - v3beta1.EntityType = (function() { + v3.EntityType = (function() { /** * Properties of an EntityType. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface IEntityType * @property {string|null} [name] EntityType name * @property {string|null} [displayName] EntityType displayName - * @property {google.cloud.dialogflow.cx.v3beta1.EntityType.Kind|null} [kind] EntityType kind - * @property {google.cloud.dialogflow.cx.v3beta1.EntityType.AutoExpansionMode|null} [autoExpansionMode] EntityType autoExpansionMode - * @property {Array.|null} [entities] EntityType entities - * @property {Array.|null} [excludedPhrases] EntityType excludedPhrases + * @property {google.cloud.dialogflow.cx.v3.EntityType.Kind|null} [kind] EntityType kind + * @property {google.cloud.dialogflow.cx.v3.EntityType.AutoExpansionMode|null} [autoExpansionMode] EntityType autoExpansionMode + * @property {Array.|null} [entities] EntityType entities + * @property {Array.|null} [excludedPhrases] EntityType excludedPhrases * @property {boolean|null} [enableFuzzyExtraction] EntityType enableFuzzyExtraction */ /** * Constructs a new EntityType. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents an EntityType. * @implements IEntityType * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IEntityType=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IEntityType=} [properties] Properties to set */ function EntityType(properties) { this.entities = []; @@ -13908,7 +13908,7 @@ /** * EntityType name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType + * @memberof google.cloud.dialogflow.cx.v3.EntityType * @instance */ EntityType.prototype.name = ""; @@ -13916,39 +13916,39 @@ /** * EntityType displayName. * @member {string} displayName - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType + * @memberof google.cloud.dialogflow.cx.v3.EntityType * @instance */ EntityType.prototype.displayName = ""; /** * EntityType kind. - * @member {google.cloud.dialogflow.cx.v3beta1.EntityType.Kind} kind - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType + * @member {google.cloud.dialogflow.cx.v3.EntityType.Kind} kind + * @memberof google.cloud.dialogflow.cx.v3.EntityType * @instance */ EntityType.prototype.kind = 0; /** * EntityType autoExpansionMode. - * @member {google.cloud.dialogflow.cx.v3beta1.EntityType.AutoExpansionMode} autoExpansionMode - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType + * @member {google.cloud.dialogflow.cx.v3.EntityType.AutoExpansionMode} autoExpansionMode + * @memberof google.cloud.dialogflow.cx.v3.EntityType * @instance */ EntityType.prototype.autoExpansionMode = 0; /** * EntityType entities. - * @member {Array.} entities - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType + * @member {Array.} entities + * @memberof google.cloud.dialogflow.cx.v3.EntityType * @instance */ EntityType.prototype.entities = $util.emptyArray; /** * EntityType excludedPhrases. - * @member {Array.} excludedPhrases - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType + * @member {Array.} excludedPhrases + * @memberof google.cloud.dialogflow.cx.v3.EntityType * @instance */ EntityType.prototype.excludedPhrases = $util.emptyArray; @@ -13956,7 +13956,7 @@ /** * EntityType enableFuzzyExtraction. * @member {boolean} enableFuzzyExtraction - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType + * @memberof google.cloud.dialogflow.cx.v3.EntityType * @instance */ EntityType.prototype.enableFuzzyExtraction = false; @@ -13964,21 +13964,21 @@ /** * Creates a new EntityType instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType + * @memberof google.cloud.dialogflow.cx.v3.EntityType * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IEntityType=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.EntityType} EntityType instance + * @param {google.cloud.dialogflow.cx.v3.IEntityType=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.EntityType} EntityType instance */ EntityType.create = function create(properties) { return new EntityType(properties); }; /** - * Encodes the specified EntityType message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EntityType.verify|verify} messages. + * Encodes the specified EntityType message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.EntityType.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType + * @memberof google.cloud.dialogflow.cx.v3.EntityType * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IEntityType} message EntityType message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IEntityType} message EntityType message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -13995,21 +13995,21 @@ writer.uint32(/* id 4, wireType 0 =*/32).int32(message.autoExpansionMode); if (message.entities != null && message.entities.length) for (var i = 0; i < message.entities.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.encode(message.entities[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.EntityType.Entity.encode(message.entities[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); if (message.excludedPhrases != null && message.excludedPhrases.length) for (var i = 0; i < message.excludedPhrases.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase.encode(message.excludedPhrases[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase.encode(message.excludedPhrases[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); if (message.enableFuzzyExtraction != null && Object.hasOwnProperty.call(message, "enableFuzzyExtraction")) writer.uint32(/* id 7, wireType 0 =*/56).bool(message.enableFuzzyExtraction); return writer; }; /** - * Encodes the specified EntityType message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EntityType.verify|verify} messages. + * Encodes the specified EntityType message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.EntityType.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType + * @memberof google.cloud.dialogflow.cx.v3.EntityType * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IEntityType} message EntityType message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IEntityType} message EntityType message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -14020,18 +14020,18 @@ /** * Decodes an EntityType message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType + * @memberof google.cloud.dialogflow.cx.v3.EntityType * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.EntityType} EntityType + * @returns {google.cloud.dialogflow.cx.v3.EntityType} EntityType * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EntityType.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.EntityType(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.EntityType(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -14050,12 +14050,12 @@ case 5: if (!(message.entities && message.entities.length)) message.entities = []; - message.entities.push($root.google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.decode(reader, reader.uint32())); + message.entities.push($root.google.cloud.dialogflow.cx.v3.EntityType.Entity.decode(reader, reader.uint32())); break; case 6: if (!(message.excludedPhrases && message.excludedPhrases.length)) message.excludedPhrases = []; - message.excludedPhrases.push($root.google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase.decode(reader, reader.uint32())); + message.excludedPhrases.push($root.google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase.decode(reader, reader.uint32())); break; case 7: message.enableFuzzyExtraction = reader.bool(); @@ -14071,10 +14071,10 @@ /** * Decodes an EntityType message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType + * @memberof google.cloud.dialogflow.cx.v3.EntityType * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.EntityType} EntityType + * @returns {google.cloud.dialogflow.cx.v3.EntityType} EntityType * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -14087,7 +14087,7 @@ /** * Verifies an EntityType message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType + * @memberof google.cloud.dialogflow.cx.v3.EntityType * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -14123,7 +14123,7 @@ if (!Array.isArray(message.entities)) return "entities: array expected"; for (var i = 0; i < message.entities.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.verify(message.entities[i]); + var error = $root.google.cloud.dialogflow.cx.v3.EntityType.Entity.verify(message.entities[i]); if (error) return "entities." + error; } @@ -14132,7 +14132,7 @@ if (!Array.isArray(message.excludedPhrases)) return "excludedPhrases: array expected"; for (var i = 0; i < message.excludedPhrases.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase.verify(message.excludedPhrases[i]); + var error = $root.google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase.verify(message.excludedPhrases[i]); if (error) return "excludedPhrases." + error; } @@ -14146,15 +14146,15 @@ /** * Creates an EntityType message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType + * @memberof google.cloud.dialogflow.cx.v3.EntityType * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.EntityType} EntityType + * @returns {google.cloud.dialogflow.cx.v3.EntityType} EntityType */ EntityType.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.EntityType) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.EntityType) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.EntityType(); + var message = new $root.google.cloud.dialogflow.cx.v3.EntityType(); if (object.name != null) message.name = String(object.name); if (object.displayName != null) @@ -14189,22 +14189,22 @@ } if (object.entities) { if (!Array.isArray(object.entities)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.EntityType.entities: array expected"); + throw TypeError(".google.cloud.dialogflow.cx.v3.EntityType.entities: array expected"); message.entities = []; for (var i = 0; i < object.entities.length; ++i) { if (typeof object.entities[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.EntityType.entities: object expected"); - message.entities[i] = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.fromObject(object.entities[i]); + throw TypeError(".google.cloud.dialogflow.cx.v3.EntityType.entities: object expected"); + message.entities[i] = $root.google.cloud.dialogflow.cx.v3.EntityType.Entity.fromObject(object.entities[i]); } } if (object.excludedPhrases) { if (!Array.isArray(object.excludedPhrases)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.EntityType.excludedPhrases: array expected"); + throw TypeError(".google.cloud.dialogflow.cx.v3.EntityType.excludedPhrases: array expected"); message.excludedPhrases = []; for (var i = 0; i < object.excludedPhrases.length; ++i) { if (typeof object.excludedPhrases[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.EntityType.excludedPhrases: object expected"); - message.excludedPhrases[i] = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase.fromObject(object.excludedPhrases[i]); + throw TypeError(".google.cloud.dialogflow.cx.v3.EntityType.excludedPhrases: object expected"); + message.excludedPhrases[i] = $root.google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase.fromObject(object.excludedPhrases[i]); } } if (object.enableFuzzyExtraction != null) @@ -14215,9 +14215,9 @@ /** * Creates a plain object from an EntityType message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType + * @memberof google.cloud.dialogflow.cx.v3.EntityType * @static - * @param {google.cloud.dialogflow.cx.v3beta1.EntityType} message EntityType + * @param {google.cloud.dialogflow.cx.v3.EntityType} message EntityType * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -14241,18 +14241,18 @@ if (message.displayName != null && message.hasOwnProperty("displayName")) object.displayName = message.displayName; if (message.kind != null && message.hasOwnProperty("kind")) - object.kind = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.EntityType.Kind[message.kind] : message.kind; + object.kind = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.EntityType.Kind[message.kind] : message.kind; if (message.autoExpansionMode != null && message.hasOwnProperty("autoExpansionMode")) - object.autoExpansionMode = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.EntityType.AutoExpansionMode[message.autoExpansionMode] : message.autoExpansionMode; + object.autoExpansionMode = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.EntityType.AutoExpansionMode[message.autoExpansionMode] : message.autoExpansionMode; if (message.entities && message.entities.length) { object.entities = []; for (var j = 0; j < message.entities.length; ++j) - object.entities[j] = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.toObject(message.entities[j], options); + object.entities[j] = $root.google.cloud.dialogflow.cx.v3.EntityType.Entity.toObject(message.entities[j], options); } if (message.excludedPhrases && message.excludedPhrases.length) { object.excludedPhrases = []; for (var j = 0; j < message.excludedPhrases.length; ++j) - object.excludedPhrases[j] = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase.toObject(message.excludedPhrases[j], options); + object.excludedPhrases[j] = $root.google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase.toObject(message.excludedPhrases[j], options); } if (message.enableFuzzyExtraction != null && message.hasOwnProperty("enableFuzzyExtraction")) object.enableFuzzyExtraction = message.enableFuzzyExtraction; @@ -14262,7 +14262,7 @@ /** * Converts this EntityType to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType + * @memberof google.cloud.dialogflow.cx.v3.EntityType * @instance * @returns {Object.} JSON object */ @@ -14274,7 +14274,7 @@ /** * Properties of an Entity. - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType + * @memberof google.cloud.dialogflow.cx.v3.EntityType * @interface IEntity * @property {string|null} [value] Entity value * @property {Array.|null} [synonyms] Entity synonyms @@ -14282,11 +14282,11 @@ /** * Constructs a new Entity. - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType + * @memberof google.cloud.dialogflow.cx.v3.EntityType * @classdesc Represents an Entity. * @implements IEntity * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.EntityType.IEntity=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.EntityType.IEntity=} [properties] Properties to set */ function Entity(properties) { this.synonyms = []; @@ -14299,7 +14299,7 @@ /** * Entity value. * @member {string} value - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.Entity + * @memberof google.cloud.dialogflow.cx.v3.EntityType.Entity * @instance */ Entity.prototype.value = ""; @@ -14307,7 +14307,7 @@ /** * Entity synonyms. * @member {Array.} synonyms - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.Entity + * @memberof google.cloud.dialogflow.cx.v3.EntityType.Entity * @instance */ Entity.prototype.synonyms = $util.emptyArray; @@ -14315,21 +14315,21 @@ /** * Creates a new Entity instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.Entity + * @memberof google.cloud.dialogflow.cx.v3.EntityType.Entity * @static - * @param {google.cloud.dialogflow.cx.v3beta1.EntityType.IEntity=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.EntityType.Entity} Entity instance + * @param {google.cloud.dialogflow.cx.v3.EntityType.IEntity=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.EntityType.Entity} Entity instance */ Entity.create = function create(properties) { return new Entity(properties); }; /** - * Encodes the specified Entity message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.verify|verify} messages. + * Encodes the specified Entity message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.EntityType.Entity.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.Entity + * @memberof google.cloud.dialogflow.cx.v3.EntityType.Entity * @static - * @param {google.cloud.dialogflow.cx.v3beta1.EntityType.IEntity} message Entity message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.EntityType.IEntity} message Entity message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -14345,11 +14345,11 @@ }; /** - * Encodes the specified Entity message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.verify|verify} messages. + * Encodes the specified Entity message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.EntityType.Entity.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.Entity + * @memberof google.cloud.dialogflow.cx.v3.EntityType.Entity * @static - * @param {google.cloud.dialogflow.cx.v3beta1.EntityType.IEntity} message Entity message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.EntityType.IEntity} message Entity message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -14360,18 +14360,18 @@ /** * Decodes an Entity message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.Entity + * @memberof google.cloud.dialogflow.cx.v3.EntityType.Entity * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.EntityType.Entity} Entity + * @returns {google.cloud.dialogflow.cx.v3.EntityType.Entity} Entity * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Entity.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.EntityType.Entity(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.EntityType.Entity(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -14394,10 +14394,10 @@ /** * Decodes an Entity message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.Entity + * @memberof google.cloud.dialogflow.cx.v3.EntityType.Entity * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.EntityType.Entity} Entity + * @returns {google.cloud.dialogflow.cx.v3.EntityType.Entity} Entity * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -14410,7 +14410,7 @@ /** * Verifies an Entity message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.Entity + * @memberof google.cloud.dialogflow.cx.v3.EntityType.Entity * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -14434,20 +14434,20 @@ /** * Creates an Entity message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.Entity + * @memberof google.cloud.dialogflow.cx.v3.EntityType.Entity * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.EntityType.Entity} Entity + * @returns {google.cloud.dialogflow.cx.v3.EntityType.Entity} Entity */ Entity.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.EntityType.Entity) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.EntityType.Entity) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.EntityType.Entity(); + var message = new $root.google.cloud.dialogflow.cx.v3.EntityType.Entity(); if (object.value != null) message.value = String(object.value); if (object.synonyms) { if (!Array.isArray(object.synonyms)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.synonyms: array expected"); + throw TypeError(".google.cloud.dialogflow.cx.v3.EntityType.Entity.synonyms: array expected"); message.synonyms = []; for (var i = 0; i < object.synonyms.length; ++i) message.synonyms[i] = String(object.synonyms[i]); @@ -14458,9 +14458,9 @@ /** * Creates a plain object from an Entity message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.Entity + * @memberof google.cloud.dialogflow.cx.v3.EntityType.Entity * @static - * @param {google.cloud.dialogflow.cx.v3beta1.EntityType.Entity} message Entity + * @param {google.cloud.dialogflow.cx.v3.EntityType.Entity} message Entity * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -14485,7 +14485,7 @@ /** * Converts this Entity to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.Entity + * @memberof google.cloud.dialogflow.cx.v3.EntityType.Entity * @instance * @returns {Object.} JSON object */ @@ -14500,18 +14500,18 @@ /** * Properties of an ExcludedPhrase. - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType + * @memberof google.cloud.dialogflow.cx.v3.EntityType * @interface IExcludedPhrase * @property {string|null} [value] ExcludedPhrase value */ /** * Constructs a new ExcludedPhrase. - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType + * @memberof google.cloud.dialogflow.cx.v3.EntityType * @classdesc Represents an ExcludedPhrase. * @implements IExcludedPhrase * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.EntityType.IExcludedPhrase=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.EntityType.IExcludedPhrase=} [properties] Properties to set */ function ExcludedPhrase(properties) { if (properties) @@ -14523,7 +14523,7 @@ /** * ExcludedPhrase value. * @member {string} value - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase + * @memberof google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase * @instance */ ExcludedPhrase.prototype.value = ""; @@ -14531,21 +14531,21 @@ /** * Creates a new ExcludedPhrase instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase + * @memberof google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase * @static - * @param {google.cloud.dialogflow.cx.v3beta1.EntityType.IExcludedPhrase=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase} ExcludedPhrase instance + * @param {google.cloud.dialogflow.cx.v3.EntityType.IExcludedPhrase=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase} ExcludedPhrase instance */ ExcludedPhrase.create = function create(properties) { return new ExcludedPhrase(properties); }; /** - * Encodes the specified ExcludedPhrase message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase.verify|verify} messages. + * Encodes the specified ExcludedPhrase message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase + * @memberof google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase * @static - * @param {google.cloud.dialogflow.cx.v3beta1.EntityType.IExcludedPhrase} message ExcludedPhrase message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.EntityType.IExcludedPhrase} message ExcludedPhrase message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -14558,11 +14558,11 @@ }; /** - * Encodes the specified ExcludedPhrase message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase.verify|verify} messages. + * Encodes the specified ExcludedPhrase message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase + * @memberof google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase * @static - * @param {google.cloud.dialogflow.cx.v3beta1.EntityType.IExcludedPhrase} message ExcludedPhrase message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.EntityType.IExcludedPhrase} message ExcludedPhrase message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -14573,18 +14573,18 @@ /** * Decodes an ExcludedPhrase message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase + * @memberof google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase} ExcludedPhrase + * @returns {google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase} ExcludedPhrase * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ExcludedPhrase.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -14602,10 +14602,10 @@ /** * Decodes an ExcludedPhrase message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase + * @memberof google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase} ExcludedPhrase + * @returns {google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase} ExcludedPhrase * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -14618,7 +14618,7 @@ /** * Verifies an ExcludedPhrase message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase + * @memberof google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -14635,15 +14635,15 @@ /** * Creates an ExcludedPhrase message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase + * @memberof google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase} ExcludedPhrase + * @returns {google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase} ExcludedPhrase */ ExcludedPhrase.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase(); + var message = new $root.google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase(); if (object.value != null) message.value = String(object.value); return message; @@ -14652,9 +14652,9 @@ /** * Creates a plain object from an ExcludedPhrase message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase + * @memberof google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase * @static - * @param {google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase} message ExcludedPhrase + * @param {google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase} message ExcludedPhrase * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -14672,7 +14672,7 @@ /** * Converts this ExcludedPhrase to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase + * @memberof google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase * @instance * @returns {Object.} JSON object */ @@ -14685,7 +14685,7 @@ /** * Kind enum. - * @name google.cloud.dialogflow.cx.v3beta1.EntityType.Kind + * @name google.cloud.dialogflow.cx.v3.EntityType.Kind * @enum {number} * @property {number} KIND_UNSPECIFIED=0 KIND_UNSPECIFIED value * @property {number} KIND_MAP=1 KIND_MAP value @@ -14703,7 +14703,7 @@ /** * AutoExpansionMode enum. - * @name google.cloud.dialogflow.cx.v3beta1.EntityType.AutoExpansionMode + * @name google.cloud.dialogflow.cx.v3.EntityType.AutoExpansionMode * @enum {number} * @property {number} AUTO_EXPANSION_MODE_UNSPECIFIED=0 AUTO_EXPANSION_MODE_UNSPECIFIED value * @property {number} AUTO_EXPANSION_MODE_DEFAULT=1 AUTO_EXPANSION_MODE_DEFAULT value @@ -14718,11 +14718,11 @@ return EntityType; })(); - v3beta1.ListEntityTypesRequest = (function() { + v3.ListEntityTypesRequest = (function() { /** * Properties of a ListEntityTypesRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface IListEntityTypesRequest * @property {string|null} [parent] ListEntityTypesRequest parent * @property {string|null} [languageCode] ListEntityTypesRequest languageCode @@ -14732,11 +14732,11 @@ /** * Constructs a new ListEntityTypesRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a ListEntityTypesRequest. * @implements IListEntityTypesRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListEntityTypesRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IListEntityTypesRequest=} [properties] Properties to set */ function ListEntityTypesRequest(properties) { if (properties) @@ -14748,7 +14748,7 @@ /** * ListEntityTypesRequest parent. * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesRequest * @instance */ ListEntityTypesRequest.prototype.parent = ""; @@ -14756,7 +14756,7 @@ /** * ListEntityTypesRequest languageCode. * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesRequest * @instance */ ListEntityTypesRequest.prototype.languageCode = ""; @@ -14764,7 +14764,7 @@ /** * ListEntityTypesRequest pageSize. * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesRequest * @instance */ ListEntityTypesRequest.prototype.pageSize = 0; @@ -14772,7 +14772,7 @@ /** * ListEntityTypesRequest pageToken. * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesRequest * @instance */ ListEntityTypesRequest.prototype.pageToken = ""; @@ -14780,21 +14780,21 @@ /** * Creates a new ListEntityTypesRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListEntityTypesRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest} ListEntityTypesRequest instance + * @param {google.cloud.dialogflow.cx.v3.IListEntityTypesRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListEntityTypesRequest} ListEntityTypesRequest instance */ ListEntityTypesRequest.create = function create(properties) { return new ListEntityTypesRequest(properties); }; /** - * Encodes the specified ListEntityTypesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest.verify|verify} messages. + * Encodes the specified ListEntityTypesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListEntityTypesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListEntityTypesRequest} message ListEntityTypesRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListEntityTypesRequest} message ListEntityTypesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -14813,11 +14813,11 @@ }; /** - * Encodes the specified ListEntityTypesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest.verify|verify} messages. + * Encodes the specified ListEntityTypesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListEntityTypesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListEntityTypesRequest} message ListEntityTypesRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListEntityTypesRequest} message ListEntityTypesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -14828,18 +14828,18 @@ /** * Decodes a ListEntityTypesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest} ListEntityTypesRequest + * @returns {google.cloud.dialogflow.cx.v3.ListEntityTypesRequest} ListEntityTypesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ListEntityTypesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListEntityTypesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -14866,10 +14866,10 @@ /** * Decodes a ListEntityTypesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest} ListEntityTypesRequest + * @returns {google.cloud.dialogflow.cx.v3.ListEntityTypesRequest} ListEntityTypesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -14882,7 +14882,7 @@ /** * Verifies a ListEntityTypesRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -14908,15 +14908,15 @@ /** * Creates a ListEntityTypesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest} ListEntityTypesRequest + * @returns {google.cloud.dialogflow.cx.v3.ListEntityTypesRequest} ListEntityTypesRequest */ ListEntityTypesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListEntityTypesRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.ListEntityTypesRequest(); if (object.parent != null) message.parent = String(object.parent); if (object.languageCode != null) @@ -14931,9 +14931,9 @@ /** * Creates a plain object from a ListEntityTypesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest} message ListEntityTypesRequest + * @param {google.cloud.dialogflow.cx.v3.ListEntityTypesRequest} message ListEntityTypesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -14961,7 +14961,7 @@ /** * Converts this ListEntityTypesRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesRequest * @instance * @returns {Object.} JSON object */ @@ -14972,23 +14972,23 @@ return ListEntityTypesRequest; })(); - v3beta1.ListEntityTypesResponse = (function() { + v3.ListEntityTypesResponse = (function() { /** * Properties of a ListEntityTypesResponse. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface IListEntityTypesResponse - * @property {Array.|null} [entityTypes] ListEntityTypesResponse entityTypes + * @property {Array.|null} [entityTypes] ListEntityTypesResponse entityTypes * @property {string|null} [nextPageToken] ListEntityTypesResponse nextPageToken */ /** * Constructs a new ListEntityTypesResponse. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a ListEntityTypesResponse. * @implements IListEntityTypesResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListEntityTypesResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IListEntityTypesResponse=} [properties] Properties to set */ function ListEntityTypesResponse(properties) { this.entityTypes = []; @@ -15000,8 +15000,8 @@ /** * ListEntityTypesResponse entityTypes. - * @member {Array.} entityTypes - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse + * @member {Array.} entityTypes + * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesResponse * @instance */ ListEntityTypesResponse.prototype.entityTypes = $util.emptyArray; @@ -15009,7 +15009,7 @@ /** * ListEntityTypesResponse nextPageToken. * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesResponse * @instance */ ListEntityTypesResponse.prototype.nextPageToken = ""; @@ -15017,21 +15017,21 @@ /** * Creates a new ListEntityTypesResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListEntityTypesResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse} ListEntityTypesResponse instance + * @param {google.cloud.dialogflow.cx.v3.IListEntityTypesResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListEntityTypesResponse} ListEntityTypesResponse instance */ ListEntityTypesResponse.create = function create(properties) { return new ListEntityTypesResponse(properties); }; /** - * Encodes the specified ListEntityTypesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse.verify|verify} messages. + * Encodes the specified ListEntityTypesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListEntityTypesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListEntityTypesResponse} message ListEntityTypesResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListEntityTypesResponse} message ListEntityTypesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -15040,18 +15040,18 @@ writer = $Writer.create(); if (message.entityTypes != null && message.entityTypes.length) for (var i = 0; i < message.entityTypes.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.EntityType.encode(message.entityTypes[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.EntityType.encode(message.entityTypes[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified ListEntityTypesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse.verify|verify} messages. + * Encodes the specified ListEntityTypesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListEntityTypesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListEntityTypesResponse} message ListEntityTypesResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListEntityTypesResponse} message ListEntityTypesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -15062,25 +15062,25 @@ /** * Decodes a ListEntityTypesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse} ListEntityTypesResponse + * @returns {google.cloud.dialogflow.cx.v3.ListEntityTypesResponse} ListEntityTypesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ListEntityTypesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListEntityTypesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: if (!(message.entityTypes && message.entityTypes.length)) message.entityTypes = []; - message.entityTypes.push($root.google.cloud.dialogflow.cx.v3beta1.EntityType.decode(reader, reader.uint32())); + message.entityTypes.push($root.google.cloud.dialogflow.cx.v3.EntityType.decode(reader, reader.uint32())); break; case 2: message.nextPageToken = reader.string(); @@ -15096,10 +15096,10 @@ /** * Decodes a ListEntityTypesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse} ListEntityTypesResponse + * @returns {google.cloud.dialogflow.cx.v3.ListEntityTypesResponse} ListEntityTypesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -15112,7 +15112,7 @@ /** * Verifies a ListEntityTypesResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -15124,7 +15124,7 @@ if (!Array.isArray(message.entityTypes)) return "entityTypes: array expected"; for (var i = 0; i < message.entityTypes.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.verify(message.entityTypes[i]); + var error = $root.google.cloud.dialogflow.cx.v3.EntityType.verify(message.entityTypes[i]); if (error) return "entityTypes." + error; } @@ -15138,23 +15138,23 @@ /** * Creates a ListEntityTypesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse} ListEntityTypesResponse + * @returns {google.cloud.dialogflow.cx.v3.ListEntityTypesResponse} ListEntityTypesResponse */ ListEntityTypesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListEntityTypesResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse(); + var message = new $root.google.cloud.dialogflow.cx.v3.ListEntityTypesResponse(); if (object.entityTypes) { if (!Array.isArray(object.entityTypes)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse.entityTypes: array expected"); + throw TypeError(".google.cloud.dialogflow.cx.v3.ListEntityTypesResponse.entityTypes: array expected"); message.entityTypes = []; for (var i = 0; i < object.entityTypes.length; ++i) { if (typeof object.entityTypes[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse.entityTypes: object expected"); - message.entityTypes[i] = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.fromObject(object.entityTypes[i]); + throw TypeError(".google.cloud.dialogflow.cx.v3.ListEntityTypesResponse.entityTypes: object expected"); + message.entityTypes[i] = $root.google.cloud.dialogflow.cx.v3.EntityType.fromObject(object.entityTypes[i]); } } if (object.nextPageToken != null) @@ -15165,9 +15165,9 @@ /** * Creates a plain object from a ListEntityTypesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse} message ListEntityTypesResponse + * @param {google.cloud.dialogflow.cx.v3.ListEntityTypesResponse} message ListEntityTypesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -15182,7 +15182,7 @@ if (message.entityTypes && message.entityTypes.length) { object.entityTypes = []; for (var j = 0; j < message.entityTypes.length; ++j) - object.entityTypes[j] = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.toObject(message.entityTypes[j], options); + object.entityTypes[j] = $root.google.cloud.dialogflow.cx.v3.EntityType.toObject(message.entityTypes[j], options); } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) object.nextPageToken = message.nextPageToken; @@ -15192,7 +15192,7 @@ /** * Converts this ListEntityTypesResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesResponse * @instance * @returns {Object.} JSON object */ @@ -15203,11 +15203,11 @@ return ListEntityTypesResponse; })(); - v3beta1.GetEntityTypeRequest = (function() { + v3.GetEntityTypeRequest = (function() { /** * Properties of a GetEntityTypeRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface IGetEntityTypeRequest * @property {string|null} [name] GetEntityTypeRequest name * @property {string|null} [languageCode] GetEntityTypeRequest languageCode @@ -15215,11 +15215,11 @@ /** * Constructs a new GetEntityTypeRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a GetEntityTypeRequest. * @implements IGetEntityTypeRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IGetEntityTypeRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IGetEntityTypeRequest=} [properties] Properties to set */ function GetEntityTypeRequest(properties) { if (properties) @@ -15231,7 +15231,7 @@ /** * GetEntityTypeRequest name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.GetEntityTypeRequest * @instance */ GetEntityTypeRequest.prototype.name = ""; @@ -15239,7 +15239,7 @@ /** * GetEntityTypeRequest languageCode. * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.GetEntityTypeRequest * @instance */ GetEntityTypeRequest.prototype.languageCode = ""; @@ -15247,21 +15247,21 @@ /** * Creates a new GetEntityTypeRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.GetEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetEntityTypeRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest} GetEntityTypeRequest instance + * @param {google.cloud.dialogflow.cx.v3.IGetEntityTypeRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.GetEntityTypeRequest} GetEntityTypeRequest instance */ GetEntityTypeRequest.create = function create(properties) { return new GetEntityTypeRequest(properties); }; /** - * Encodes the specified GetEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest.verify|verify} messages. + * Encodes the specified GetEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetEntityTypeRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.GetEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetEntityTypeRequest} message GetEntityTypeRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IGetEntityTypeRequest} message GetEntityTypeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -15276,11 +15276,11 @@ }; /** - * Encodes the specified GetEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest.verify|verify} messages. + * Encodes the specified GetEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetEntityTypeRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.GetEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetEntityTypeRequest} message GetEntityTypeRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IGetEntityTypeRequest} message GetEntityTypeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -15291,18 +15291,18 @@ /** * Decodes a GetEntityTypeRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.GetEntityTypeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest} GetEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3.GetEntityTypeRequest} GetEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GetEntityTypeRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.GetEntityTypeRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -15323,10 +15323,10 @@ /** * Decodes a GetEntityTypeRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.GetEntityTypeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest} GetEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3.GetEntityTypeRequest} GetEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -15339,7 +15339,7 @@ /** * Verifies a GetEntityTypeRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.GetEntityTypeRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -15359,15 +15359,15 @@ /** * Creates a GetEntityTypeRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.GetEntityTypeRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest} GetEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3.GetEntityTypeRequest} GetEntityTypeRequest */ GetEntityTypeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.GetEntityTypeRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.GetEntityTypeRequest(); if (object.name != null) message.name = String(object.name); if (object.languageCode != null) @@ -15378,9 +15378,9 @@ /** * Creates a plain object from a GetEntityTypeRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.GetEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest} message GetEntityTypeRequest + * @param {google.cloud.dialogflow.cx.v3.GetEntityTypeRequest} message GetEntityTypeRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -15402,7 +15402,7 @@ /** * Converts this GetEntityTypeRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.GetEntityTypeRequest * @instance * @returns {Object.} JSON object */ @@ -15413,24 +15413,24 @@ return GetEntityTypeRequest; })(); - v3beta1.CreateEntityTypeRequest = (function() { + v3.CreateEntityTypeRequest = (function() { /** * Properties of a CreateEntityTypeRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface ICreateEntityTypeRequest * @property {string|null} [parent] CreateEntityTypeRequest parent - * @property {google.cloud.dialogflow.cx.v3beta1.IEntityType|null} [entityType] CreateEntityTypeRequest entityType + * @property {google.cloud.dialogflow.cx.v3.IEntityType|null} [entityType] CreateEntityTypeRequest entityType * @property {string|null} [languageCode] CreateEntityTypeRequest languageCode */ /** * Constructs a new CreateEntityTypeRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a CreateEntityTypeRequest. * @implements ICreateEntityTypeRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateEntityTypeRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ICreateEntityTypeRequest=} [properties] Properties to set */ function CreateEntityTypeRequest(properties) { if (properties) @@ -15442,15 +15442,15 @@ /** * CreateEntityTypeRequest parent. * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest * @instance */ CreateEntityTypeRequest.prototype.parent = ""; /** * CreateEntityTypeRequest entityType. - * @member {google.cloud.dialogflow.cx.v3beta1.IEntityType|null|undefined} entityType - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest + * @member {google.cloud.dialogflow.cx.v3.IEntityType|null|undefined} entityType + * @memberof google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest * @instance */ CreateEntityTypeRequest.prototype.entityType = null; @@ -15458,7 +15458,7 @@ /** * CreateEntityTypeRequest languageCode. * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest * @instance */ CreateEntityTypeRequest.prototype.languageCode = ""; @@ -15466,21 +15466,21 @@ /** * Creates a new CreateEntityTypeRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateEntityTypeRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest} CreateEntityTypeRequest instance + * @param {google.cloud.dialogflow.cx.v3.ICreateEntityTypeRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest} CreateEntityTypeRequest instance */ CreateEntityTypeRequest.create = function create(properties) { return new CreateEntityTypeRequest(properties); }; /** - * Encodes the specified CreateEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest.verify|verify} messages. + * Encodes the specified CreateEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateEntityTypeRequest} message CreateEntityTypeRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ICreateEntityTypeRequest} message CreateEntityTypeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -15490,18 +15490,18 @@ if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); if (message.entityType != null && Object.hasOwnProperty.call(message, "entityType")) - $root.google.cloud.dialogflow.cx.v3beta1.EntityType.encode(message.entityType, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.EntityType.encode(message.entityType, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.languageCode); return writer; }; /** - * Encodes the specified CreateEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest.verify|verify} messages. + * Encodes the specified CreateEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateEntityTypeRequest} message CreateEntityTypeRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ICreateEntityTypeRequest} message CreateEntityTypeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -15512,18 +15512,18 @@ /** * Decodes a CreateEntityTypeRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest} CreateEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest} CreateEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ CreateEntityTypeRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -15531,7 +15531,7 @@ message.parent = reader.string(); break; case 2: - message.entityType = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.decode(reader, reader.uint32()); + message.entityType = $root.google.cloud.dialogflow.cx.v3.EntityType.decode(reader, reader.uint32()); break; case 3: message.languageCode = reader.string(); @@ -15547,10 +15547,10 @@ /** * Decodes a CreateEntityTypeRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest} CreateEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest} CreateEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -15563,7 +15563,7 @@ /** * Verifies a CreateEntityTypeRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -15575,7 +15575,7 @@ if (!$util.isString(message.parent)) return "parent: string expected"; if (message.entityType != null && message.hasOwnProperty("entityType")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.verify(message.entityType); + var error = $root.google.cloud.dialogflow.cx.v3.EntityType.verify(message.entityType); if (error) return "entityType." + error; } @@ -15588,21 +15588,21 @@ /** * Creates a CreateEntityTypeRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest} CreateEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest} CreateEntityTypeRequest */ CreateEntityTypeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest(); if (object.parent != null) message.parent = String(object.parent); if (object.entityType != null) { if (typeof object.entityType !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest.entityType: object expected"); - message.entityType = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.fromObject(object.entityType); + throw TypeError(".google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest.entityType: object expected"); + message.entityType = $root.google.cloud.dialogflow.cx.v3.EntityType.fromObject(object.entityType); } if (object.languageCode != null) message.languageCode = String(object.languageCode); @@ -15612,9 +15612,9 @@ /** * Creates a plain object from a CreateEntityTypeRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest} message CreateEntityTypeRequest + * @param {google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest} message CreateEntityTypeRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -15630,7 +15630,7 @@ if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; if (message.entityType != null && message.hasOwnProperty("entityType")) - object.entityType = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.toObject(message.entityType, options); + object.entityType = $root.google.cloud.dialogflow.cx.v3.EntityType.toObject(message.entityType, options); if (message.languageCode != null && message.hasOwnProperty("languageCode")) object.languageCode = message.languageCode; return object; @@ -15639,7 +15639,7 @@ /** * Converts this CreateEntityTypeRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest * @instance * @returns {Object.} JSON object */ @@ -15650,24 +15650,24 @@ return CreateEntityTypeRequest; })(); - v3beta1.UpdateEntityTypeRequest = (function() { + v3.UpdateEntityTypeRequest = (function() { /** * Properties of an UpdateEntityTypeRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface IUpdateEntityTypeRequest - * @property {google.cloud.dialogflow.cx.v3beta1.IEntityType|null} [entityType] UpdateEntityTypeRequest entityType + * @property {google.cloud.dialogflow.cx.v3.IEntityType|null} [entityType] UpdateEntityTypeRequest entityType * @property {string|null} [languageCode] UpdateEntityTypeRequest languageCode * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateEntityTypeRequest updateMask */ /** * Constructs a new UpdateEntityTypeRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents an UpdateEntityTypeRequest. * @implements IUpdateEntityTypeRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateEntityTypeRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IUpdateEntityTypeRequest=} [properties] Properties to set */ function UpdateEntityTypeRequest(properties) { if (properties) @@ -15678,8 +15678,8 @@ /** * UpdateEntityTypeRequest entityType. - * @member {google.cloud.dialogflow.cx.v3beta1.IEntityType|null|undefined} entityType - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest + * @member {google.cloud.dialogflow.cx.v3.IEntityType|null|undefined} entityType + * @memberof google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest * @instance */ UpdateEntityTypeRequest.prototype.entityType = null; @@ -15687,7 +15687,7 @@ /** * UpdateEntityTypeRequest languageCode. * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest * @instance */ UpdateEntityTypeRequest.prototype.languageCode = ""; @@ -15695,7 +15695,7 @@ /** * UpdateEntityTypeRequest updateMask. * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest * @instance */ UpdateEntityTypeRequest.prototype.updateMask = null; @@ -15703,21 +15703,21 @@ /** * Creates a new UpdateEntityTypeRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateEntityTypeRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest} UpdateEntityTypeRequest instance + * @param {google.cloud.dialogflow.cx.v3.IUpdateEntityTypeRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest} UpdateEntityTypeRequest instance */ UpdateEntityTypeRequest.create = function create(properties) { return new UpdateEntityTypeRequest(properties); }; /** - * Encodes the specified UpdateEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest.verify|verify} messages. + * Encodes the specified UpdateEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateEntityTypeRequest} message UpdateEntityTypeRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IUpdateEntityTypeRequest} message UpdateEntityTypeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -15725,7 +15725,7 @@ if (!writer) writer = $Writer.create(); if (message.entityType != null && Object.hasOwnProperty.call(message, "entityType")) - $root.google.cloud.dialogflow.cx.v3beta1.EntityType.encode(message.entityType, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.EntityType.encode(message.entityType, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) @@ -15734,11 +15734,11 @@ }; /** - * Encodes the specified UpdateEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest.verify|verify} messages. + * Encodes the specified UpdateEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateEntityTypeRequest} message UpdateEntityTypeRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IUpdateEntityTypeRequest} message UpdateEntityTypeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -15749,23 +15749,23 @@ /** * Decodes an UpdateEntityTypeRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest} UpdateEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest} UpdateEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UpdateEntityTypeRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.entityType = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.decode(reader, reader.uint32()); + message.entityType = $root.google.cloud.dialogflow.cx.v3.EntityType.decode(reader, reader.uint32()); break; case 2: message.languageCode = reader.string(); @@ -15784,10 +15784,10 @@ /** * Decodes an UpdateEntityTypeRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest} UpdateEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest} UpdateEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -15800,7 +15800,7 @@ /** * Verifies an UpdateEntityTypeRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -15809,7 +15809,7 @@ if (typeof message !== "object" || message === null) return "object expected"; if (message.entityType != null && message.hasOwnProperty("entityType")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.verify(message.entityType); + var error = $root.google.cloud.dialogflow.cx.v3.EntityType.verify(message.entityType); if (error) return "entityType." + error; } @@ -15827,25 +15827,25 @@ /** * Creates an UpdateEntityTypeRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest} UpdateEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest} UpdateEntityTypeRequest */ UpdateEntityTypeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest(); if (object.entityType != null) { if (typeof object.entityType !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest.entityType: object expected"); - message.entityType = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.fromObject(object.entityType); + throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest.entityType: object expected"); + message.entityType = $root.google.cloud.dialogflow.cx.v3.EntityType.fromObject(object.entityType); } if (object.languageCode != null) message.languageCode = String(object.languageCode); if (object.updateMask != null) { if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest.updateMask: object expected"); + throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest.updateMask: object expected"); message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } return message; @@ -15854,9 +15854,9 @@ /** * Creates a plain object from an UpdateEntityTypeRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest} message UpdateEntityTypeRequest + * @param {google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest} message UpdateEntityTypeRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -15870,7 +15870,7 @@ object.updateMask = null; } if (message.entityType != null && message.hasOwnProperty("entityType")) - object.entityType = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.toObject(message.entityType, options); + object.entityType = $root.google.cloud.dialogflow.cx.v3.EntityType.toObject(message.entityType, options); if (message.languageCode != null && message.hasOwnProperty("languageCode")) object.languageCode = message.languageCode; if (message.updateMask != null && message.hasOwnProperty("updateMask")) @@ -15881,7 +15881,7 @@ /** * Converts this UpdateEntityTypeRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest * @instance * @returns {Object.} JSON object */ @@ -15892,11 +15892,11 @@ return UpdateEntityTypeRequest; })(); - v3beta1.DeleteEntityTypeRequest = (function() { + v3.DeleteEntityTypeRequest = (function() { /** * Properties of a DeleteEntityTypeRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface IDeleteEntityTypeRequest * @property {string|null} [name] DeleteEntityTypeRequest name * @property {boolean|null} [force] DeleteEntityTypeRequest force @@ -15904,11 +15904,11 @@ /** * Constructs a new DeleteEntityTypeRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a DeleteEntityTypeRequest. * @implements IDeleteEntityTypeRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteEntityTypeRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IDeleteEntityTypeRequest=} [properties] Properties to set */ function DeleteEntityTypeRequest(properties) { if (properties) @@ -15920,7 +15920,7 @@ /** * DeleteEntityTypeRequest name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest * @instance */ DeleteEntityTypeRequest.prototype.name = ""; @@ -15928,7 +15928,7 @@ /** * DeleteEntityTypeRequest force. * @member {boolean} force - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest * @instance */ DeleteEntityTypeRequest.prototype.force = false; @@ -15936,21 +15936,21 @@ /** * Creates a new DeleteEntityTypeRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteEntityTypeRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest} DeleteEntityTypeRequest instance + * @param {google.cloud.dialogflow.cx.v3.IDeleteEntityTypeRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest} DeleteEntityTypeRequest instance */ DeleteEntityTypeRequest.create = function create(properties) { return new DeleteEntityTypeRequest(properties); }; /** - * Encodes the specified DeleteEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest.verify|verify} messages. + * Encodes the specified DeleteEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteEntityTypeRequest} message DeleteEntityTypeRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IDeleteEntityTypeRequest} message DeleteEntityTypeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -15965,11 +15965,11 @@ }; /** - * Encodes the specified DeleteEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest.verify|verify} messages. + * Encodes the specified DeleteEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteEntityTypeRequest} message DeleteEntityTypeRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IDeleteEntityTypeRequest} message DeleteEntityTypeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -15980,18 +15980,18 @@ /** * Decodes a DeleteEntityTypeRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest} DeleteEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest} DeleteEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ DeleteEntityTypeRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -16012,10 +16012,10 @@ /** * Decodes a DeleteEntityTypeRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest} DeleteEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest} DeleteEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -16028,7 +16028,7 @@ /** * Verifies a DeleteEntityTypeRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -16048,15 +16048,15 @@ /** * Creates a DeleteEntityTypeRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest} DeleteEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest} DeleteEntityTypeRequest */ DeleteEntityTypeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest(); if (object.name != null) message.name = String(object.name); if (object.force != null) @@ -16067,9 +16067,9 @@ /** * Creates a plain object from a DeleteEntityTypeRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest} message DeleteEntityTypeRequest + * @param {google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest} message DeleteEntityTypeRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -16091,7 +16091,7 @@ /** * Converts this DeleteEntityTypeRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest * @instance * @returns {Object.} JSON object */ @@ -16102,11 +16102,11 @@ return DeleteEntityTypeRequest; })(); - v3beta1.Environments = (function() { + v3.Environments = (function() { /** * Constructs a new Environments service. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents an Environments * @extends $protobuf.rpc.Service * @constructor @@ -16123,7 +16123,7 @@ /** * Creates new Environments service using the specified rpc implementation. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Environments + * @memberof google.cloud.dialogflow.cx.v3.Environments * @static * @param {$protobuf.RPCImpl} rpcImpl RPC implementation * @param {boolean} [requestDelimited=false] Whether requests are length-delimited @@ -16135,74 +16135,74 @@ }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments#listEnvironments}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Environments + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Environments#listEnvironments}. + * @memberof google.cloud.dialogflow.cx.v3.Environments * @typedef ListEnvironmentsCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse} [response] ListEnvironmentsResponse + * @param {google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse} [response] ListEnvironmentsResponse */ /** * Calls ListEnvironments. * @function listEnvironments - * @memberof google.cloud.dialogflow.cx.v3beta1.Environments + * @memberof google.cloud.dialogflow.cx.v3.Environments * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsRequest} request ListEnvironmentsRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Environments.ListEnvironmentsCallback} callback Node-style callback called with the error, if any, and ListEnvironmentsResponse + * @param {google.cloud.dialogflow.cx.v3.IListEnvironmentsRequest} request ListEnvironmentsRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Environments.ListEnvironmentsCallback} callback Node-style callback called with the error, if any, and ListEnvironmentsResponse * @returns {undefined} * @variation 1 */ Object.defineProperty(Environments.prototype.listEnvironments = function listEnvironments(request, callback) { - return this.rpcCall(listEnvironments, $root.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest, $root.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse, request, callback); + return this.rpcCall(listEnvironments, $root.google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest, $root.google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse, request, callback); }, "name", { value: "ListEnvironments" }); /** * Calls ListEnvironments. * @function listEnvironments - * @memberof google.cloud.dialogflow.cx.v3beta1.Environments + * @memberof google.cloud.dialogflow.cx.v3.Environments * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsRequest} request ListEnvironmentsRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3.IListEnvironmentsRequest} request ListEnvironmentsRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments#getEnvironment}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Environments + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Environments#getEnvironment}. + * @memberof google.cloud.dialogflow.cx.v3.Environments * @typedef GetEnvironmentCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.Environment} [response] Environment + * @param {google.cloud.dialogflow.cx.v3.Environment} [response] Environment */ /** * Calls GetEnvironment. * @function getEnvironment - * @memberof google.cloud.dialogflow.cx.v3beta1.Environments + * @memberof google.cloud.dialogflow.cx.v3.Environments * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetEnvironmentRequest} request GetEnvironmentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Environments.GetEnvironmentCallback} callback Node-style callback called with the error, if any, and Environment + * @param {google.cloud.dialogflow.cx.v3.IGetEnvironmentRequest} request GetEnvironmentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Environments.GetEnvironmentCallback} callback Node-style callback called with the error, if any, and Environment * @returns {undefined} * @variation 1 */ Object.defineProperty(Environments.prototype.getEnvironment = function getEnvironment(request, callback) { - return this.rpcCall(getEnvironment, $root.google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest, $root.google.cloud.dialogflow.cx.v3beta1.Environment, request, callback); + return this.rpcCall(getEnvironment, $root.google.cloud.dialogflow.cx.v3.GetEnvironmentRequest, $root.google.cloud.dialogflow.cx.v3.Environment, request, callback); }, "name", { value: "GetEnvironment" }); /** * Calls GetEnvironment. * @function getEnvironment - * @memberof google.cloud.dialogflow.cx.v3beta1.Environments + * @memberof google.cloud.dialogflow.cx.v3.Environments * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetEnvironmentRequest} request GetEnvironmentRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3.IGetEnvironmentRequest} request GetEnvironmentRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments#createEnvironment}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Environments + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Environments#createEnvironment}. + * @memberof google.cloud.dialogflow.cx.v3.Environments * @typedef CreateEnvironmentCallback * @type {function} * @param {Error|null} error Error, if any @@ -16212,30 +16212,30 @@ /** * Calls CreateEnvironment. * @function createEnvironment - * @memberof google.cloud.dialogflow.cx.v3beta1.Environments + * @memberof google.cloud.dialogflow.cx.v3.Environments * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateEnvironmentRequest} request CreateEnvironmentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Environments.CreateEnvironmentCallback} callback Node-style callback called with the error, if any, and Operation + * @param {google.cloud.dialogflow.cx.v3.ICreateEnvironmentRequest} request CreateEnvironmentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Environments.CreateEnvironmentCallback} callback Node-style callback called with the error, if any, and Operation * @returns {undefined} * @variation 1 */ Object.defineProperty(Environments.prototype.createEnvironment = function createEnvironment(request, callback) { - return this.rpcCall(createEnvironment, $root.google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest, $root.google.longrunning.Operation, request, callback); + return this.rpcCall(createEnvironment, $root.google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest, $root.google.longrunning.Operation, request, callback); }, "name", { value: "CreateEnvironment" }); /** * Calls CreateEnvironment. * @function createEnvironment - * @memberof google.cloud.dialogflow.cx.v3beta1.Environments + * @memberof google.cloud.dialogflow.cx.v3.Environments * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateEnvironmentRequest} request CreateEnvironmentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.ICreateEnvironmentRequest} request CreateEnvironmentRequest message or plain object * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments#updateEnvironment}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Environments + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Environments#updateEnvironment}. + * @memberof google.cloud.dialogflow.cx.v3.Environments * @typedef UpdateEnvironmentCallback * @type {function} * @param {Error|null} error Error, if any @@ -16245,30 +16245,30 @@ /** * Calls UpdateEnvironment. * @function updateEnvironment - * @memberof google.cloud.dialogflow.cx.v3beta1.Environments + * @memberof google.cloud.dialogflow.cx.v3.Environments * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateEnvironmentRequest} request UpdateEnvironmentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Environments.UpdateEnvironmentCallback} callback Node-style callback called with the error, if any, and Operation + * @param {google.cloud.dialogflow.cx.v3.IUpdateEnvironmentRequest} request UpdateEnvironmentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Environments.UpdateEnvironmentCallback} callback Node-style callback called with the error, if any, and Operation * @returns {undefined} * @variation 1 */ Object.defineProperty(Environments.prototype.updateEnvironment = function updateEnvironment(request, callback) { - return this.rpcCall(updateEnvironment, $root.google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest, $root.google.longrunning.Operation, request, callback); + return this.rpcCall(updateEnvironment, $root.google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest, $root.google.longrunning.Operation, request, callback); }, "name", { value: "UpdateEnvironment" }); /** * Calls UpdateEnvironment. * @function updateEnvironment - * @memberof google.cloud.dialogflow.cx.v3beta1.Environments + * @memberof google.cloud.dialogflow.cx.v3.Environments * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateEnvironmentRequest} request UpdateEnvironmentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.IUpdateEnvironmentRequest} request UpdateEnvironmentRequest message or plain object * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments#deleteEnvironment}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Environments + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Environments#deleteEnvironment}. + * @memberof google.cloud.dialogflow.cx.v3.Environments * @typedef DeleteEnvironmentCallback * @type {function} * @param {Error|null} error Error, if any @@ -16278,83 +16278,83 @@ /** * Calls DeleteEnvironment. * @function deleteEnvironment - * @memberof google.cloud.dialogflow.cx.v3beta1.Environments + * @memberof google.cloud.dialogflow.cx.v3.Environments * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteEnvironmentRequest} request DeleteEnvironmentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Environments.DeleteEnvironmentCallback} callback Node-style callback called with the error, if any, and Empty + * @param {google.cloud.dialogflow.cx.v3.IDeleteEnvironmentRequest} request DeleteEnvironmentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Environments.DeleteEnvironmentCallback} callback Node-style callback called with the error, if any, and Empty * @returns {undefined} * @variation 1 */ Object.defineProperty(Environments.prototype.deleteEnvironment = function deleteEnvironment(request, callback) { - return this.rpcCall(deleteEnvironment, $root.google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest, $root.google.protobuf.Empty, request, callback); + return this.rpcCall(deleteEnvironment, $root.google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest, $root.google.protobuf.Empty, request, callback); }, "name", { value: "DeleteEnvironment" }); /** * Calls DeleteEnvironment. * @function deleteEnvironment - * @memberof google.cloud.dialogflow.cx.v3beta1.Environments + * @memberof google.cloud.dialogflow.cx.v3.Environments * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteEnvironmentRequest} request DeleteEnvironmentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.IDeleteEnvironmentRequest} request DeleteEnvironmentRequest message or plain object * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Environments#lookupEnvironmentHistory}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Environments + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Environments#lookupEnvironmentHistory}. + * @memberof google.cloud.dialogflow.cx.v3.Environments * @typedef LookupEnvironmentHistoryCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse} [response] LookupEnvironmentHistoryResponse + * @param {google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse} [response] LookupEnvironmentHistoryResponse */ /** * Calls LookupEnvironmentHistory. * @function lookupEnvironmentHistory - * @memberof google.cloud.dialogflow.cx.v3beta1.Environments + * @memberof google.cloud.dialogflow.cx.v3.Environments * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryRequest} request LookupEnvironmentHistoryRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Environments.LookupEnvironmentHistoryCallback} callback Node-style callback called with the error, if any, and LookupEnvironmentHistoryResponse + * @param {google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryRequest} request LookupEnvironmentHistoryRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Environments.LookupEnvironmentHistoryCallback} callback Node-style callback called with the error, if any, and LookupEnvironmentHistoryResponse * @returns {undefined} * @variation 1 */ Object.defineProperty(Environments.prototype.lookupEnvironmentHistory = function lookupEnvironmentHistory(request, callback) { - return this.rpcCall(lookupEnvironmentHistory, $root.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest, $root.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse, request, callback); + return this.rpcCall(lookupEnvironmentHistory, $root.google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest, $root.google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse, request, callback); }, "name", { value: "LookupEnvironmentHistory" }); /** * Calls LookupEnvironmentHistory. * @function lookupEnvironmentHistory - * @memberof google.cloud.dialogflow.cx.v3beta1.Environments + * @memberof google.cloud.dialogflow.cx.v3.Environments * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryRequest} request LookupEnvironmentHistoryRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryRequest} request LookupEnvironmentHistoryRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ return Environments; })(); - v3beta1.Environment = (function() { + v3.Environment = (function() { /** * Properties of an Environment. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface IEnvironment * @property {string|null} [name] Environment name * @property {string|null} [displayName] Environment displayName * @property {string|null} [description] Environment description - * @property {Array.|null} [versionConfigs] Environment versionConfigs + * @property {Array.|null} [versionConfigs] Environment versionConfigs * @property {google.protobuf.ITimestamp|null} [updateTime] Environment updateTime */ /** * Constructs a new Environment. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents an Environment. * @implements IEnvironment * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IEnvironment=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IEnvironment=} [properties] Properties to set */ function Environment(properties) { this.versionConfigs = []; @@ -16367,7 +16367,7 @@ /** * Environment name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment + * @memberof google.cloud.dialogflow.cx.v3.Environment * @instance */ Environment.prototype.name = ""; @@ -16375,7 +16375,7 @@ /** * Environment displayName. * @member {string} displayName - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment + * @memberof google.cloud.dialogflow.cx.v3.Environment * @instance */ Environment.prototype.displayName = ""; @@ -16383,15 +16383,15 @@ /** * Environment description. * @member {string} description - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment + * @memberof google.cloud.dialogflow.cx.v3.Environment * @instance */ Environment.prototype.description = ""; /** * Environment versionConfigs. - * @member {Array.} versionConfigs - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment + * @member {Array.} versionConfigs + * @memberof google.cloud.dialogflow.cx.v3.Environment * @instance */ Environment.prototype.versionConfigs = $util.emptyArray; @@ -16399,7 +16399,7 @@ /** * Environment updateTime. * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment + * @memberof google.cloud.dialogflow.cx.v3.Environment * @instance */ Environment.prototype.updateTime = null; @@ -16407,21 +16407,21 @@ /** * Creates a new Environment instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment + * @memberof google.cloud.dialogflow.cx.v3.Environment * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IEnvironment=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Environment} Environment instance + * @param {google.cloud.dialogflow.cx.v3.IEnvironment=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.Environment} Environment instance */ Environment.create = function create(properties) { return new Environment(properties); }; /** - * Encodes the specified Environment message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Environment.verify|verify} messages. + * Encodes the specified Environment message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Environment.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment + * @memberof google.cloud.dialogflow.cx.v3.Environment * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IEnvironment} message Environment message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IEnvironment} message Environment message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -16438,16 +16438,16 @@ $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); if (message.versionConfigs != null && message.versionConfigs.length) for (var i = 0; i < message.versionConfigs.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig.encode(message.versionConfigs[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.Environment.VersionConfig.encode(message.versionConfigs[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); return writer; }; /** - * Encodes the specified Environment message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Environment.verify|verify} messages. + * Encodes the specified Environment message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Environment.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment + * @memberof google.cloud.dialogflow.cx.v3.Environment * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IEnvironment} message Environment message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IEnvironment} message Environment message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -16458,18 +16458,18 @@ /** * Decodes an Environment message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment + * @memberof google.cloud.dialogflow.cx.v3.Environment * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.Environment} Environment + * @returns {google.cloud.dialogflow.cx.v3.Environment} Environment * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Environment.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Environment(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Environment(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -16485,7 +16485,7 @@ case 6: if (!(message.versionConfigs && message.versionConfigs.length)) message.versionConfigs = []; - message.versionConfigs.push($root.google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig.decode(reader, reader.uint32())); + message.versionConfigs.push($root.google.cloud.dialogflow.cx.v3.Environment.VersionConfig.decode(reader, reader.uint32())); break; case 5: message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); @@ -16501,10 +16501,10 @@ /** * Decodes an Environment message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment + * @memberof google.cloud.dialogflow.cx.v3.Environment * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Environment} Environment + * @returns {google.cloud.dialogflow.cx.v3.Environment} Environment * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -16517,7 +16517,7 @@ /** * Verifies an Environment message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment + * @memberof google.cloud.dialogflow.cx.v3.Environment * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -16538,7 +16538,7 @@ if (!Array.isArray(message.versionConfigs)) return "versionConfigs: array expected"; for (var i = 0; i < message.versionConfigs.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig.verify(message.versionConfigs[i]); + var error = $root.google.cloud.dialogflow.cx.v3.Environment.VersionConfig.verify(message.versionConfigs[i]); if (error) return "versionConfigs." + error; } @@ -16554,15 +16554,15 @@ /** * Creates an Environment message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment + * @memberof google.cloud.dialogflow.cx.v3.Environment * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Environment} Environment + * @returns {google.cloud.dialogflow.cx.v3.Environment} Environment */ Environment.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Environment) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.Environment) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Environment(); + var message = new $root.google.cloud.dialogflow.cx.v3.Environment(); if (object.name != null) message.name = String(object.name); if (object.displayName != null) @@ -16571,17 +16571,17 @@ message.description = String(object.description); if (object.versionConfigs) { if (!Array.isArray(object.versionConfigs)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Environment.versionConfigs: array expected"); + throw TypeError(".google.cloud.dialogflow.cx.v3.Environment.versionConfigs: array expected"); message.versionConfigs = []; for (var i = 0; i < object.versionConfigs.length; ++i) { if (typeof object.versionConfigs[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Environment.versionConfigs: object expected"); - message.versionConfigs[i] = $root.google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig.fromObject(object.versionConfigs[i]); + throw TypeError(".google.cloud.dialogflow.cx.v3.Environment.versionConfigs: object expected"); + message.versionConfigs[i] = $root.google.cloud.dialogflow.cx.v3.Environment.VersionConfig.fromObject(object.versionConfigs[i]); } } if (object.updateTime != null) { if (typeof object.updateTime !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Environment.updateTime: object expected"); + throw TypeError(".google.cloud.dialogflow.cx.v3.Environment.updateTime: object expected"); message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); } return message; @@ -16590,9 +16590,9 @@ /** * Creates a plain object from an Environment message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment + * @memberof google.cloud.dialogflow.cx.v3.Environment * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Environment} message Environment + * @param {google.cloud.dialogflow.cx.v3.Environment} message Environment * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -16619,7 +16619,7 @@ if (message.versionConfigs && message.versionConfigs.length) { object.versionConfigs = []; for (var j = 0; j < message.versionConfigs.length; ++j) - object.versionConfigs[j] = $root.google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig.toObject(message.versionConfigs[j], options); + object.versionConfigs[j] = $root.google.cloud.dialogflow.cx.v3.Environment.VersionConfig.toObject(message.versionConfigs[j], options); } return object; }; @@ -16627,7 +16627,7 @@ /** * Converts this Environment to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment + * @memberof google.cloud.dialogflow.cx.v3.Environment * @instance * @returns {Object.} JSON object */ @@ -16639,18 +16639,18 @@ /** * Properties of a VersionConfig. - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment + * @memberof google.cloud.dialogflow.cx.v3.Environment * @interface IVersionConfig * @property {string|null} [version] VersionConfig version */ /** * Constructs a new VersionConfig. - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment + * @memberof google.cloud.dialogflow.cx.v3.Environment * @classdesc Represents a VersionConfig. * @implements IVersionConfig * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.Environment.IVersionConfig=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.Environment.IVersionConfig=} [properties] Properties to set */ function VersionConfig(properties) { if (properties) @@ -16662,7 +16662,7 @@ /** * VersionConfig version. * @member {string} version - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig + * @memberof google.cloud.dialogflow.cx.v3.Environment.VersionConfig * @instance */ VersionConfig.prototype.version = ""; @@ -16670,21 +16670,21 @@ /** * Creates a new VersionConfig instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig + * @memberof google.cloud.dialogflow.cx.v3.Environment.VersionConfig * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Environment.IVersionConfig=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig} VersionConfig instance + * @param {google.cloud.dialogflow.cx.v3.Environment.IVersionConfig=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.Environment.VersionConfig} VersionConfig instance */ VersionConfig.create = function create(properties) { return new VersionConfig(properties); }; /** - * Encodes the specified VersionConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig.verify|verify} messages. + * Encodes the specified VersionConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Environment.VersionConfig.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig + * @memberof google.cloud.dialogflow.cx.v3.Environment.VersionConfig * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Environment.IVersionConfig} message VersionConfig message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.Environment.IVersionConfig} message VersionConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -16697,11 +16697,11 @@ }; /** - * Encodes the specified VersionConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig.verify|verify} messages. + * Encodes the specified VersionConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Environment.VersionConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig + * @memberof google.cloud.dialogflow.cx.v3.Environment.VersionConfig * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Environment.IVersionConfig} message VersionConfig message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.Environment.IVersionConfig} message VersionConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -16712,18 +16712,18 @@ /** * Decodes a VersionConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig + * @memberof google.cloud.dialogflow.cx.v3.Environment.VersionConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig} VersionConfig + * @returns {google.cloud.dialogflow.cx.v3.Environment.VersionConfig} VersionConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ VersionConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Environment.VersionConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -16741,10 +16741,10 @@ /** * Decodes a VersionConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig + * @memberof google.cloud.dialogflow.cx.v3.Environment.VersionConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig} VersionConfig + * @returns {google.cloud.dialogflow.cx.v3.Environment.VersionConfig} VersionConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -16757,7 +16757,7 @@ /** * Verifies a VersionConfig message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig + * @memberof google.cloud.dialogflow.cx.v3.Environment.VersionConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -16774,15 +16774,15 @@ /** * Creates a VersionConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig + * @memberof google.cloud.dialogflow.cx.v3.Environment.VersionConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig} VersionConfig + * @returns {google.cloud.dialogflow.cx.v3.Environment.VersionConfig} VersionConfig */ VersionConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.Environment.VersionConfig) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig(); + var message = new $root.google.cloud.dialogflow.cx.v3.Environment.VersionConfig(); if (object.version != null) message.version = String(object.version); return message; @@ -16791,9 +16791,9 @@ /** * Creates a plain object from a VersionConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig + * @memberof google.cloud.dialogflow.cx.v3.Environment.VersionConfig * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig} message VersionConfig + * @param {google.cloud.dialogflow.cx.v3.Environment.VersionConfig} message VersionConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -16811,7 +16811,7 @@ /** * Converts this VersionConfig to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig + * @memberof google.cloud.dialogflow.cx.v3.Environment.VersionConfig * @instance * @returns {Object.} JSON object */ @@ -16825,11 +16825,11 @@ return Environment; })(); - v3beta1.ListEnvironmentsRequest = (function() { + v3.ListEnvironmentsRequest = (function() { /** * Properties of a ListEnvironmentsRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface IListEnvironmentsRequest * @property {string|null} [parent] ListEnvironmentsRequest parent * @property {number|null} [pageSize] ListEnvironmentsRequest pageSize @@ -16838,11 +16838,11 @@ /** * Constructs a new ListEnvironmentsRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a ListEnvironmentsRequest. * @implements IListEnvironmentsRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IListEnvironmentsRequest=} [properties] Properties to set */ function ListEnvironmentsRequest(properties) { if (properties) @@ -16854,7 +16854,7 @@ /** * ListEnvironmentsRequest parent. * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest * @instance */ ListEnvironmentsRequest.prototype.parent = ""; @@ -16862,7 +16862,7 @@ /** * ListEnvironmentsRequest pageSize. * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest * @instance */ ListEnvironmentsRequest.prototype.pageSize = 0; @@ -16870,7 +16870,7 @@ /** * ListEnvironmentsRequest pageToken. * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest * @instance */ ListEnvironmentsRequest.prototype.pageToken = ""; @@ -16878,21 +16878,21 @@ /** * Creates a new ListEnvironmentsRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest} ListEnvironmentsRequest instance + * @param {google.cloud.dialogflow.cx.v3.IListEnvironmentsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest} ListEnvironmentsRequest instance */ ListEnvironmentsRequest.create = function create(properties) { return new ListEnvironmentsRequest(properties); }; /** - * Encodes the specified ListEnvironmentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest.verify|verify} messages. + * Encodes the specified ListEnvironmentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsRequest} message ListEnvironmentsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListEnvironmentsRequest} message ListEnvironmentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -16909,11 +16909,11 @@ }; /** - * Encodes the specified ListEnvironmentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest.verify|verify} messages. + * Encodes the specified ListEnvironmentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsRequest} message ListEnvironmentsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListEnvironmentsRequest} message ListEnvironmentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -16924,18 +16924,18 @@ /** * Decodes a ListEnvironmentsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest} ListEnvironmentsRequest + * @returns {google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest} ListEnvironmentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ListEnvironmentsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -16959,10 +16959,10 @@ /** * Decodes a ListEnvironmentsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest} ListEnvironmentsRequest + * @returns {google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest} ListEnvironmentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -16975,7 +16975,7 @@ /** * Verifies a ListEnvironmentsRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -16998,15 +16998,15 @@ /** * Creates a ListEnvironmentsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest} ListEnvironmentsRequest + * @returns {google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest} ListEnvironmentsRequest */ ListEnvironmentsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest(); if (object.parent != null) message.parent = String(object.parent); if (object.pageSize != null) @@ -17019,9 +17019,9 @@ /** * Creates a plain object from a ListEnvironmentsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest} message ListEnvironmentsRequest + * @param {google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest} message ListEnvironmentsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -17046,7 +17046,7 @@ /** * Converts this ListEnvironmentsRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest * @instance * @returns {Object.} JSON object */ @@ -17057,23 +17057,23 @@ return ListEnvironmentsRequest; })(); - v3beta1.ListEnvironmentsResponse = (function() { + v3.ListEnvironmentsResponse = (function() { /** * Properties of a ListEnvironmentsResponse. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface IListEnvironmentsResponse - * @property {Array.|null} [environments] ListEnvironmentsResponse environments + * @property {Array.|null} [environments] ListEnvironmentsResponse environments * @property {string|null} [nextPageToken] ListEnvironmentsResponse nextPageToken */ /** * Constructs a new ListEnvironmentsResponse. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a ListEnvironmentsResponse. * @implements IListEnvironmentsResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IListEnvironmentsResponse=} [properties] Properties to set */ function ListEnvironmentsResponse(properties) { this.environments = []; @@ -17085,8 +17085,8 @@ /** * ListEnvironmentsResponse environments. - * @member {Array.} environments - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse + * @member {Array.} environments + * @memberof google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse * @instance */ ListEnvironmentsResponse.prototype.environments = $util.emptyArray; @@ -17094,7 +17094,7 @@ /** * ListEnvironmentsResponse nextPageToken. * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse * @instance */ ListEnvironmentsResponse.prototype.nextPageToken = ""; @@ -17102,21 +17102,21 @@ /** * Creates a new ListEnvironmentsResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse} ListEnvironmentsResponse instance + * @param {google.cloud.dialogflow.cx.v3.IListEnvironmentsResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse} ListEnvironmentsResponse instance */ ListEnvironmentsResponse.create = function create(properties) { return new ListEnvironmentsResponse(properties); }; /** - * Encodes the specified ListEnvironmentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse.verify|verify} messages. + * Encodes the specified ListEnvironmentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsResponse} message ListEnvironmentsResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListEnvironmentsResponse} message ListEnvironmentsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -17125,18 +17125,18 @@ writer = $Writer.create(); if (message.environments != null && message.environments.length) for (var i = 0; i < message.environments.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.Environment.encode(message.environments[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.Environment.encode(message.environments[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified ListEnvironmentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse.verify|verify} messages. + * Encodes the specified ListEnvironmentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsResponse} message ListEnvironmentsResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListEnvironmentsResponse} message ListEnvironmentsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -17147,25 +17147,25 @@ /** * Decodes a ListEnvironmentsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse} ListEnvironmentsResponse + * @returns {google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse} ListEnvironmentsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ListEnvironmentsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: if (!(message.environments && message.environments.length)) message.environments = []; - message.environments.push($root.google.cloud.dialogflow.cx.v3beta1.Environment.decode(reader, reader.uint32())); + message.environments.push($root.google.cloud.dialogflow.cx.v3.Environment.decode(reader, reader.uint32())); break; case 2: message.nextPageToken = reader.string(); @@ -17181,10 +17181,10 @@ /** * Decodes a ListEnvironmentsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse} ListEnvironmentsResponse + * @returns {google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse} ListEnvironmentsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -17197,7 +17197,7 @@ /** * Verifies a ListEnvironmentsResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -17209,7 +17209,7 @@ if (!Array.isArray(message.environments)) return "environments: array expected"; for (var i = 0; i < message.environments.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Environment.verify(message.environments[i]); + var error = $root.google.cloud.dialogflow.cx.v3.Environment.verify(message.environments[i]); if (error) return "environments." + error; } @@ -17223,23 +17223,23 @@ /** * Creates a ListEnvironmentsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse} ListEnvironmentsResponse + * @returns {google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse} ListEnvironmentsResponse */ ListEnvironmentsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse(); + var message = new $root.google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse(); if (object.environments) { if (!Array.isArray(object.environments)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse.environments: array expected"); + throw TypeError(".google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse.environments: array expected"); message.environments = []; for (var i = 0; i < object.environments.length; ++i) { if (typeof object.environments[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse.environments: object expected"); - message.environments[i] = $root.google.cloud.dialogflow.cx.v3beta1.Environment.fromObject(object.environments[i]); + throw TypeError(".google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse.environments: object expected"); + message.environments[i] = $root.google.cloud.dialogflow.cx.v3.Environment.fromObject(object.environments[i]); } } if (object.nextPageToken != null) @@ -17250,9 +17250,9 @@ /** * Creates a plain object from a ListEnvironmentsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse} message ListEnvironmentsResponse + * @param {google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse} message ListEnvironmentsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -17267,7 +17267,7 @@ if (message.environments && message.environments.length) { object.environments = []; for (var j = 0; j < message.environments.length; ++j) - object.environments[j] = $root.google.cloud.dialogflow.cx.v3beta1.Environment.toObject(message.environments[j], options); + object.environments[j] = $root.google.cloud.dialogflow.cx.v3.Environment.toObject(message.environments[j], options); } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) object.nextPageToken = message.nextPageToken; @@ -17277,7 +17277,7 @@ /** * Converts this ListEnvironmentsResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse * @instance * @returns {Object.} JSON object */ @@ -17288,22 +17288,22 @@ return ListEnvironmentsResponse; })(); - v3beta1.GetEnvironmentRequest = (function() { + v3.GetEnvironmentRequest = (function() { /** * Properties of a GetEnvironmentRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface IGetEnvironmentRequest * @property {string|null} [name] GetEnvironmentRequest name */ /** * Constructs a new GetEnvironmentRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a GetEnvironmentRequest. * @implements IGetEnvironmentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IGetEnvironmentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IGetEnvironmentRequest=} [properties] Properties to set */ function GetEnvironmentRequest(properties) { if (properties) @@ -17315,7 +17315,7 @@ /** * GetEnvironmentRequest name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3.GetEnvironmentRequest * @instance */ GetEnvironmentRequest.prototype.name = ""; @@ -17323,21 +17323,21 @@ /** * Creates a new GetEnvironmentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3.GetEnvironmentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetEnvironmentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest} GetEnvironmentRequest instance + * @param {google.cloud.dialogflow.cx.v3.IGetEnvironmentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.GetEnvironmentRequest} GetEnvironmentRequest instance */ GetEnvironmentRequest.create = function create(properties) { return new GetEnvironmentRequest(properties); }; /** - * Encodes the specified GetEnvironmentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest.verify|verify} messages. + * Encodes the specified GetEnvironmentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetEnvironmentRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3.GetEnvironmentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetEnvironmentRequest} message GetEnvironmentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IGetEnvironmentRequest} message GetEnvironmentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -17350,11 +17350,11 @@ }; /** - * Encodes the specified GetEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest.verify|verify} messages. + * Encodes the specified GetEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetEnvironmentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3.GetEnvironmentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetEnvironmentRequest} message GetEnvironmentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IGetEnvironmentRequest} message GetEnvironmentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -17365,18 +17365,18 @@ /** * Decodes a GetEnvironmentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3.GetEnvironmentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest} GetEnvironmentRequest + * @returns {google.cloud.dialogflow.cx.v3.GetEnvironmentRequest} GetEnvironmentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GetEnvironmentRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.GetEnvironmentRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -17394,10 +17394,10 @@ /** * Decodes a GetEnvironmentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3.GetEnvironmentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest} GetEnvironmentRequest + * @returns {google.cloud.dialogflow.cx.v3.GetEnvironmentRequest} GetEnvironmentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -17410,7 +17410,7 @@ /** * Verifies a GetEnvironmentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3.GetEnvironmentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -17427,15 +17427,15 @@ /** * Creates a GetEnvironmentRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3.GetEnvironmentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest} GetEnvironmentRequest + * @returns {google.cloud.dialogflow.cx.v3.GetEnvironmentRequest} GetEnvironmentRequest */ GetEnvironmentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.GetEnvironmentRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.GetEnvironmentRequest(); if (object.name != null) message.name = String(object.name); return message; @@ -17444,9 +17444,9 @@ /** * Creates a plain object from a GetEnvironmentRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3.GetEnvironmentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest} message GetEnvironmentRequest + * @param {google.cloud.dialogflow.cx.v3.GetEnvironmentRequest} message GetEnvironmentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -17464,7 +17464,7 @@ /** * Converts this GetEnvironmentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3.GetEnvironmentRequest * @instance * @returns {Object.} JSON object */ @@ -17475,23 +17475,23 @@ return GetEnvironmentRequest; })(); - v3beta1.CreateEnvironmentRequest = (function() { + v3.CreateEnvironmentRequest = (function() { /** * Properties of a CreateEnvironmentRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface ICreateEnvironmentRequest * @property {string|null} [parent] CreateEnvironmentRequest parent - * @property {google.cloud.dialogflow.cx.v3beta1.IEnvironment|null} [environment] CreateEnvironmentRequest environment + * @property {google.cloud.dialogflow.cx.v3.IEnvironment|null} [environment] CreateEnvironmentRequest environment */ /** * Constructs a new CreateEnvironmentRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a CreateEnvironmentRequest. * @implements ICreateEnvironmentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateEnvironmentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ICreateEnvironmentRequest=} [properties] Properties to set */ function CreateEnvironmentRequest(properties) { if (properties) @@ -17503,15 +17503,15 @@ /** * CreateEnvironmentRequest parent. * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest * @instance */ CreateEnvironmentRequest.prototype.parent = ""; /** * CreateEnvironmentRequest environment. - * @member {google.cloud.dialogflow.cx.v3beta1.IEnvironment|null|undefined} environment - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest + * @member {google.cloud.dialogflow.cx.v3.IEnvironment|null|undefined} environment + * @memberof google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest * @instance */ CreateEnvironmentRequest.prototype.environment = null; @@ -17519,21 +17519,21 @@ /** * Creates a new CreateEnvironmentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateEnvironmentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest} CreateEnvironmentRequest instance + * @param {google.cloud.dialogflow.cx.v3.ICreateEnvironmentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest} CreateEnvironmentRequest instance */ CreateEnvironmentRequest.create = function create(properties) { return new CreateEnvironmentRequest(properties); }; /** - * Encodes the specified CreateEnvironmentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest.verify|verify} messages. + * Encodes the specified CreateEnvironmentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateEnvironmentRequest} message CreateEnvironmentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ICreateEnvironmentRequest} message CreateEnvironmentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -17543,16 +17543,16 @@ if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); if (message.environment != null && Object.hasOwnProperty.call(message, "environment")) - $root.google.cloud.dialogflow.cx.v3beta1.Environment.encode(message.environment, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.Environment.encode(message.environment, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified CreateEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest.verify|verify} messages. + * Encodes the specified CreateEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateEnvironmentRequest} message CreateEnvironmentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ICreateEnvironmentRequest} message CreateEnvironmentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -17563,18 +17563,18 @@ /** * Decodes a CreateEnvironmentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest} CreateEnvironmentRequest + * @returns {google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest} CreateEnvironmentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ CreateEnvironmentRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -17582,7 +17582,7 @@ message.parent = reader.string(); break; case 2: - message.environment = $root.google.cloud.dialogflow.cx.v3beta1.Environment.decode(reader, reader.uint32()); + message.environment = $root.google.cloud.dialogflow.cx.v3.Environment.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -17595,10 +17595,10 @@ /** * Decodes a CreateEnvironmentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest} CreateEnvironmentRequest + * @returns {google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest} CreateEnvironmentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -17611,7 +17611,7 @@ /** * Verifies a CreateEnvironmentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -17623,7 +17623,7 @@ if (!$util.isString(message.parent)) return "parent: string expected"; if (message.environment != null && message.hasOwnProperty("environment")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Environment.verify(message.environment); + var error = $root.google.cloud.dialogflow.cx.v3.Environment.verify(message.environment); if (error) return "environment." + error; } @@ -17633,21 +17633,21 @@ /** * Creates a CreateEnvironmentRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest} CreateEnvironmentRequest + * @returns {google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest} CreateEnvironmentRequest */ CreateEnvironmentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest(); if (object.parent != null) message.parent = String(object.parent); if (object.environment != null) { if (typeof object.environment !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest.environment: object expected"); - message.environment = $root.google.cloud.dialogflow.cx.v3beta1.Environment.fromObject(object.environment); + throw TypeError(".google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest.environment: object expected"); + message.environment = $root.google.cloud.dialogflow.cx.v3.Environment.fromObject(object.environment); } return message; }; @@ -17655,9 +17655,9 @@ /** * Creates a plain object from a CreateEnvironmentRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest} message CreateEnvironmentRequest + * @param {google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest} message CreateEnvironmentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -17672,14 +17672,14 @@ if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; if (message.environment != null && message.hasOwnProperty("environment")) - object.environment = $root.google.cloud.dialogflow.cx.v3beta1.Environment.toObject(message.environment, options); + object.environment = $root.google.cloud.dialogflow.cx.v3.Environment.toObject(message.environment, options); return object; }; /** * Converts this CreateEnvironmentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest * @instance * @returns {Object.} JSON object */ @@ -17690,23 +17690,23 @@ return CreateEnvironmentRequest; })(); - v3beta1.UpdateEnvironmentRequest = (function() { + v3.UpdateEnvironmentRequest = (function() { /** * Properties of an UpdateEnvironmentRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface IUpdateEnvironmentRequest - * @property {google.cloud.dialogflow.cx.v3beta1.IEnvironment|null} [environment] UpdateEnvironmentRequest environment + * @property {google.cloud.dialogflow.cx.v3.IEnvironment|null} [environment] UpdateEnvironmentRequest environment * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateEnvironmentRequest updateMask */ /** * Constructs a new UpdateEnvironmentRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents an UpdateEnvironmentRequest. * @implements IUpdateEnvironmentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateEnvironmentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IUpdateEnvironmentRequest=} [properties] Properties to set */ function UpdateEnvironmentRequest(properties) { if (properties) @@ -17717,8 +17717,8 @@ /** * UpdateEnvironmentRequest environment. - * @member {google.cloud.dialogflow.cx.v3beta1.IEnvironment|null|undefined} environment - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest + * @member {google.cloud.dialogflow.cx.v3.IEnvironment|null|undefined} environment + * @memberof google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest * @instance */ UpdateEnvironmentRequest.prototype.environment = null; @@ -17726,7 +17726,7 @@ /** * UpdateEnvironmentRequest updateMask. * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest * @instance */ UpdateEnvironmentRequest.prototype.updateMask = null; @@ -17734,21 +17734,21 @@ /** * Creates a new UpdateEnvironmentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateEnvironmentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest} UpdateEnvironmentRequest instance + * @param {google.cloud.dialogflow.cx.v3.IUpdateEnvironmentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest} UpdateEnvironmentRequest instance */ UpdateEnvironmentRequest.create = function create(properties) { return new UpdateEnvironmentRequest(properties); }; /** - * Encodes the specified UpdateEnvironmentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest.verify|verify} messages. + * Encodes the specified UpdateEnvironmentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateEnvironmentRequest} message UpdateEnvironmentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IUpdateEnvironmentRequest} message UpdateEnvironmentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -17756,18 +17756,18 @@ if (!writer) writer = $Writer.create(); if (message.environment != null && Object.hasOwnProperty.call(message, "environment")) - $root.google.cloud.dialogflow.cx.v3beta1.Environment.encode(message.environment, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.Environment.encode(message.environment, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified UpdateEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest.verify|verify} messages. + * Encodes the specified UpdateEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateEnvironmentRequest} message UpdateEnvironmentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IUpdateEnvironmentRequest} message UpdateEnvironmentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -17778,23 +17778,23 @@ /** * Decodes an UpdateEnvironmentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest} UpdateEnvironmentRequest + * @returns {google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest} UpdateEnvironmentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UpdateEnvironmentRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.environment = $root.google.cloud.dialogflow.cx.v3beta1.Environment.decode(reader, reader.uint32()); + message.environment = $root.google.cloud.dialogflow.cx.v3.Environment.decode(reader, reader.uint32()); break; case 2: message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); @@ -17810,10 +17810,10 @@ /** * Decodes an UpdateEnvironmentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest} UpdateEnvironmentRequest + * @returns {google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest} UpdateEnvironmentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -17826,7 +17826,7 @@ /** * Verifies an UpdateEnvironmentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -17835,7 +17835,7 @@ if (typeof message !== "object" || message === null) return "object expected"; if (message.environment != null && message.hasOwnProperty("environment")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Environment.verify(message.environment); + var error = $root.google.cloud.dialogflow.cx.v3.Environment.verify(message.environment); if (error) return "environment." + error; } @@ -17850,84 +17850,2078 @@ /** * Creates an UpdateEnvironmentRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest} UpdateEnvironmentRequest + * @returns {google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest} UpdateEnvironmentRequest */ UpdateEnvironmentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest(); + if (object.environment != null) { + if (typeof object.environment !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest.environment: object expected"); + message.environment = $root.google.cloud.dialogflow.cx.v3.Environment.fromObject(object.environment); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } + return message; + }; + + /** + * Creates a plain object from an UpdateEnvironmentRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest} message UpdateEnvironmentRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateEnvironmentRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.environment = null; + object.updateMask = null; + } + if (message.environment != null && message.hasOwnProperty("environment")) + object.environment = $root.google.cloud.dialogflow.cx.v3.Environment.toObject(message.environment, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + return object; + }; + + /** + * Converts this UpdateEnvironmentRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest + * @instance + * @returns {Object.} JSON object + */ + UpdateEnvironmentRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return UpdateEnvironmentRequest; + })(); + + v3.DeleteEnvironmentRequest = (function() { + + /** + * Properties of a DeleteEnvironmentRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface IDeleteEnvironmentRequest + * @property {string|null} [name] DeleteEnvironmentRequest name + */ + + /** + * Constructs a new DeleteEnvironmentRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a DeleteEnvironmentRequest. + * @implements IDeleteEnvironmentRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3.IDeleteEnvironmentRequest=} [properties] Properties to set + */ + function DeleteEnvironmentRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DeleteEnvironmentRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest + * @instance + */ + DeleteEnvironmentRequest.prototype.name = ""; + + /** + * Creates a new DeleteEnvironmentRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IDeleteEnvironmentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest} DeleteEnvironmentRequest instance + */ + DeleteEnvironmentRequest.create = function create(properties) { + return new DeleteEnvironmentRequest(properties); + }; + + /** + * Encodes the specified DeleteEnvironmentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IDeleteEnvironmentRequest} message DeleteEnvironmentRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteEnvironmentRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; + + /** + * Encodes the specified DeleteEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IDeleteEnvironmentRequest} message DeleteEnvironmentRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteEnvironmentRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteEnvironmentRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest} DeleteEnvironmentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteEnvironmentRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DeleteEnvironmentRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest} DeleteEnvironmentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteEnvironmentRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteEnvironmentRequest message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteEnvironmentRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + /** + * Creates a DeleteEnvironmentRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest} DeleteEnvironmentRequest + */ + DeleteEnvironmentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a DeleteEnvironmentRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest} message DeleteEnvironmentRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteEnvironmentRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; + + /** + * Converts this DeleteEnvironmentRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteEnvironmentRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return DeleteEnvironmentRequest; + })(); + + v3.LookupEnvironmentHistoryRequest = (function() { + + /** + * Properties of a LookupEnvironmentHistoryRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface ILookupEnvironmentHistoryRequest + * @property {string|null} [name] LookupEnvironmentHistoryRequest name + * @property {number|null} [pageSize] LookupEnvironmentHistoryRequest pageSize + * @property {string|null} [pageToken] LookupEnvironmentHistoryRequest pageToken + */ + + /** + * Constructs a new LookupEnvironmentHistoryRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a LookupEnvironmentHistoryRequest. + * @implements ILookupEnvironmentHistoryRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryRequest=} [properties] Properties to set + */ + function LookupEnvironmentHistoryRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * LookupEnvironmentHistoryRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest + * @instance + */ + LookupEnvironmentHistoryRequest.prototype.name = ""; + + /** + * LookupEnvironmentHistoryRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest + * @instance + */ + LookupEnvironmentHistoryRequest.prototype.pageSize = 0; + + /** + * LookupEnvironmentHistoryRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest + * @instance + */ + LookupEnvironmentHistoryRequest.prototype.pageToken = ""; + + /** + * Creates a new LookupEnvironmentHistoryRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest} LookupEnvironmentHistoryRequest instance + */ + LookupEnvironmentHistoryRequest.create = function create(properties) { + return new LookupEnvironmentHistoryRequest(properties); + }; + + /** + * Encodes the specified LookupEnvironmentHistoryRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryRequest} message LookupEnvironmentHistoryRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LookupEnvironmentHistoryRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + return writer; + }; + + /** + * Encodes the specified LookupEnvironmentHistoryRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryRequest} message LookupEnvironmentHistoryRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LookupEnvironmentHistoryRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a LookupEnvironmentHistoryRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest} LookupEnvironmentHistoryRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LookupEnvironmentHistoryRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = 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 LookupEnvironmentHistoryRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest} LookupEnvironmentHistoryRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LookupEnvironmentHistoryRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a LookupEnvironmentHistoryRequest message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + LookupEnvironmentHistoryRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + return null; + }; + + /** + * Creates a LookupEnvironmentHistoryRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest} LookupEnvironmentHistoryRequest + */ + LookupEnvironmentHistoryRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + return message; + }; + + /** + * Creates a plain object from a LookupEnvironmentHistoryRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest} message LookupEnvironmentHistoryRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + LookupEnvironmentHistoryRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.pageSize = 0; + object.pageToken = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + return object; + }; + + /** + * Converts this LookupEnvironmentHistoryRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest + * @instance + * @returns {Object.} JSON object + */ + LookupEnvironmentHistoryRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return LookupEnvironmentHistoryRequest; + })(); + + v3.LookupEnvironmentHistoryResponse = (function() { + + /** + * Properties of a LookupEnvironmentHistoryResponse. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface ILookupEnvironmentHistoryResponse + * @property {Array.|null} [environments] LookupEnvironmentHistoryResponse environments + * @property {string|null} [nextPageToken] LookupEnvironmentHistoryResponse nextPageToken + */ + + /** + * Constructs a new LookupEnvironmentHistoryResponse. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a LookupEnvironmentHistoryResponse. + * @implements ILookupEnvironmentHistoryResponse + * @constructor + * @param {google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryResponse=} [properties] Properties to set + */ + function LookupEnvironmentHistoryResponse(properties) { + this.environments = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * LookupEnvironmentHistoryResponse environments. + * @member {Array.} environments + * @memberof google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse + * @instance + */ + LookupEnvironmentHistoryResponse.prototype.environments = $util.emptyArray; + + /** + * LookupEnvironmentHistoryResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse + * @instance + */ + LookupEnvironmentHistoryResponse.prototype.nextPageToken = ""; + + /** + * Creates a new LookupEnvironmentHistoryResponse instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse + * @static + * @param {google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse} LookupEnvironmentHistoryResponse instance + */ + LookupEnvironmentHistoryResponse.create = function create(properties) { + return new LookupEnvironmentHistoryResponse(properties); + }; + + /** + * Encodes the specified LookupEnvironmentHistoryResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse + * @static + * @param {google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryResponse} message LookupEnvironmentHistoryResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LookupEnvironmentHistoryResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.environments != null && message.environments.length) + for (var i = 0; i < message.environments.length; ++i) + $root.google.cloud.dialogflow.cx.v3.Environment.encode(message.environments[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + return writer; + }; + + /** + * Encodes the specified LookupEnvironmentHistoryResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse + * @static + * @param {google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryResponse} message LookupEnvironmentHistoryResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LookupEnvironmentHistoryResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a LookupEnvironmentHistoryResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse} LookupEnvironmentHistoryResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LookupEnvironmentHistoryResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.environments && message.environments.length)) + message.environments = []; + message.environments.push($root.google.cloud.dialogflow.cx.v3.Environment.decode(reader, reader.uint32())); + break; + case 2: + message.nextPageToken = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a LookupEnvironmentHistoryResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse} LookupEnvironmentHistoryResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LookupEnvironmentHistoryResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a LookupEnvironmentHistoryResponse message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + LookupEnvironmentHistoryResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.environments != null && message.hasOwnProperty("environments")) { + if (!Array.isArray(message.environments)) + return "environments: array expected"; + for (var i = 0; i < message.environments.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.Environment.verify(message.environments[i]); + if (error) + return "environments." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; + + /** + * Creates a LookupEnvironmentHistoryResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse} LookupEnvironmentHistoryResponse + */ + LookupEnvironmentHistoryResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse(); + if (object.environments) { + if (!Array.isArray(object.environments)) + throw TypeError(".google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse.environments: array expected"); + message.environments = []; + for (var i = 0; i < object.environments.length; ++i) { + if (typeof object.environments[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse.environments: object expected"); + message.environments[i] = $root.google.cloud.dialogflow.cx.v3.Environment.fromObject(object.environments[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; + + /** + * Creates a plain object from a LookupEnvironmentHistoryResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse + * @static + * @param {google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse} message LookupEnvironmentHistoryResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + LookupEnvironmentHistoryResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.environments = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.environments && message.environments.length) { + object.environments = []; + for (var j = 0; j < message.environments.length; ++j) + object.environments[j] = $root.google.cloud.dialogflow.cx.v3.Environment.toObject(message.environments[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; + + /** + * Converts this LookupEnvironmentHistoryResponse to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse + * @instance + * @returns {Object.} JSON object + */ + LookupEnvironmentHistoryResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return LookupEnvironmentHistoryResponse; + })(); + + v3.Intents = (function() { + + /** + * Constructs a new Intents service. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents an Intents + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function Intents(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (Intents.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Intents; + + /** + * Creates new Intents service using the specified rpc implementation. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.Intents + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {Intents} RPC service. Useful where requests and/or responses are streamed. + */ + Intents.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Intents#listIntents}. + * @memberof google.cloud.dialogflow.cx.v3.Intents + * @typedef ListIntentsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.ListIntentsResponse} [response] ListIntentsResponse + */ + + /** + * Calls ListIntents. + * @function listIntents + * @memberof google.cloud.dialogflow.cx.v3.Intents + * @instance + * @param {google.cloud.dialogflow.cx.v3.IListIntentsRequest} request ListIntentsRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Intents.ListIntentsCallback} callback Node-style callback called with the error, if any, and ListIntentsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Intents.prototype.listIntents = function listIntents(request, callback) { + return this.rpcCall(listIntents, $root.google.cloud.dialogflow.cx.v3.ListIntentsRequest, $root.google.cloud.dialogflow.cx.v3.ListIntentsResponse, request, callback); + }, "name", { value: "ListIntents" }); + + /** + * Calls ListIntents. + * @function listIntents + * @memberof google.cloud.dialogflow.cx.v3.Intents + * @instance + * @param {google.cloud.dialogflow.cx.v3.IListIntentsRequest} request ListIntentsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Intents#getIntent}. + * @memberof google.cloud.dialogflow.cx.v3.Intents + * @typedef GetIntentCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.Intent} [response] Intent + */ + + /** + * Calls GetIntent. + * @function getIntent + * @memberof google.cloud.dialogflow.cx.v3.Intents + * @instance + * @param {google.cloud.dialogflow.cx.v3.IGetIntentRequest} request GetIntentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Intents.GetIntentCallback} callback Node-style callback called with the error, if any, and Intent + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Intents.prototype.getIntent = function getIntent(request, callback) { + return this.rpcCall(getIntent, $root.google.cloud.dialogflow.cx.v3.GetIntentRequest, $root.google.cloud.dialogflow.cx.v3.Intent, request, callback); + }, "name", { value: "GetIntent" }); + + /** + * Calls GetIntent. + * @function getIntent + * @memberof google.cloud.dialogflow.cx.v3.Intents + * @instance + * @param {google.cloud.dialogflow.cx.v3.IGetIntentRequest} request GetIntentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Intents#createIntent}. + * @memberof google.cloud.dialogflow.cx.v3.Intents + * @typedef CreateIntentCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.Intent} [response] Intent + */ + + /** + * Calls CreateIntent. + * @function createIntent + * @memberof google.cloud.dialogflow.cx.v3.Intents + * @instance + * @param {google.cloud.dialogflow.cx.v3.ICreateIntentRequest} request CreateIntentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Intents.CreateIntentCallback} callback Node-style callback called with the error, if any, and Intent + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Intents.prototype.createIntent = function createIntent(request, callback) { + return this.rpcCall(createIntent, $root.google.cloud.dialogflow.cx.v3.CreateIntentRequest, $root.google.cloud.dialogflow.cx.v3.Intent, request, callback); + }, "name", { value: "CreateIntent" }); + + /** + * Calls CreateIntent. + * @function createIntent + * @memberof google.cloud.dialogflow.cx.v3.Intents + * @instance + * @param {google.cloud.dialogflow.cx.v3.ICreateIntentRequest} request CreateIntentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Intents#updateIntent}. + * @memberof google.cloud.dialogflow.cx.v3.Intents + * @typedef UpdateIntentCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.Intent} [response] Intent + */ + + /** + * Calls UpdateIntent. + * @function updateIntent + * @memberof google.cloud.dialogflow.cx.v3.Intents + * @instance + * @param {google.cloud.dialogflow.cx.v3.IUpdateIntentRequest} request UpdateIntentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Intents.UpdateIntentCallback} callback Node-style callback called with the error, if any, and Intent + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Intents.prototype.updateIntent = function updateIntent(request, callback) { + return this.rpcCall(updateIntent, $root.google.cloud.dialogflow.cx.v3.UpdateIntentRequest, $root.google.cloud.dialogflow.cx.v3.Intent, request, callback); + }, "name", { value: "UpdateIntent" }); + + /** + * Calls UpdateIntent. + * @function updateIntent + * @memberof google.cloud.dialogflow.cx.v3.Intents + * @instance + * @param {google.cloud.dialogflow.cx.v3.IUpdateIntentRequest} request UpdateIntentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Intents#deleteIntent}. + * @memberof google.cloud.dialogflow.cx.v3.Intents + * @typedef DeleteIntentCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls DeleteIntent. + * @function deleteIntent + * @memberof google.cloud.dialogflow.cx.v3.Intents + * @instance + * @param {google.cloud.dialogflow.cx.v3.IDeleteIntentRequest} request DeleteIntentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Intents.DeleteIntentCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Intents.prototype.deleteIntent = function deleteIntent(request, callback) { + return this.rpcCall(deleteIntent, $root.google.cloud.dialogflow.cx.v3.DeleteIntentRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteIntent" }); + + /** + * Calls DeleteIntent. + * @function deleteIntent + * @memberof google.cloud.dialogflow.cx.v3.Intents + * @instance + * @param {google.cloud.dialogflow.cx.v3.IDeleteIntentRequest} request DeleteIntentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return Intents; + })(); + + v3.Intent = (function() { + + /** + * Properties of an Intent. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface IIntent + * @property {string|null} [name] Intent name + * @property {string|null} [displayName] Intent displayName + * @property {Array.|null} [trainingPhrases] Intent trainingPhrases + * @property {Array.|null} [parameters] Intent parameters + * @property {number|null} [priority] Intent priority + * @property {boolean|null} [isFallback] Intent isFallback + * @property {Object.|null} [labels] Intent labels + * @property {string|null} [description] Intent description + */ + + /** + * Constructs a new Intent. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents an Intent. + * @implements IIntent + * @constructor + * @param {google.cloud.dialogflow.cx.v3.IIntent=} [properties] Properties to set + */ + function Intent(properties) { + this.trainingPhrases = []; + this.parameters = []; + this.labels = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Intent name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.Intent + * @instance + */ + Intent.prototype.name = ""; + + /** + * Intent displayName. + * @member {string} displayName + * @memberof google.cloud.dialogflow.cx.v3.Intent + * @instance + */ + Intent.prototype.displayName = ""; + + /** + * Intent trainingPhrases. + * @member {Array.} trainingPhrases + * @memberof google.cloud.dialogflow.cx.v3.Intent + * @instance + */ + Intent.prototype.trainingPhrases = $util.emptyArray; + + /** + * Intent parameters. + * @member {Array.} parameters + * @memberof google.cloud.dialogflow.cx.v3.Intent + * @instance + */ + Intent.prototype.parameters = $util.emptyArray; + + /** + * Intent priority. + * @member {number} priority + * @memberof google.cloud.dialogflow.cx.v3.Intent + * @instance + */ + Intent.prototype.priority = 0; + + /** + * Intent isFallback. + * @member {boolean} isFallback + * @memberof google.cloud.dialogflow.cx.v3.Intent + * @instance + */ + Intent.prototype.isFallback = false; + + /** + * Intent labels. + * @member {Object.} labels + * @memberof google.cloud.dialogflow.cx.v3.Intent + * @instance + */ + Intent.prototype.labels = $util.emptyObject; + + /** + * Intent description. + * @member {string} description + * @memberof google.cloud.dialogflow.cx.v3.Intent + * @instance + */ + Intent.prototype.description = ""; + + /** + * Creates a new Intent instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.Intent + * @static + * @param {google.cloud.dialogflow.cx.v3.IIntent=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.Intent} Intent instance + */ + Intent.create = function create(properties) { + return new Intent(properties); + }; + + /** + * Encodes the specified Intent message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Intent.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.Intent + * @static + * @param {google.cloud.dialogflow.cx.v3.IIntent} message Intent message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Intent.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.trainingPhrases != null && message.trainingPhrases.length) + for (var i = 0; i < message.trainingPhrases.length; ++i) + $root.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.encode(message.trainingPhrases[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.parameters != null && message.parameters.length) + for (var i = 0; i < message.parameters.length; ++i) + $root.google.cloud.dialogflow.cx.v3.Intent.Parameter.encode(message.parameters[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.priority != null && Object.hasOwnProperty.call(message, "priority")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.priority); + if (message.isFallback != null && Object.hasOwnProperty.call(message, "isFallback")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.isFallback); + if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) + for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) + writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.description); + return writer; + }; + + /** + * Encodes the specified Intent message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Intent.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.Intent + * @static + * @param {google.cloud.dialogflow.cx.v3.IIntent} message Intent message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Intent.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an Intent message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.Intent + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.Intent} Intent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Intent.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Intent(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.displayName = reader.string(); + break; + case 3: + if (!(message.trainingPhrases && message.trainingPhrases.length)) + message.trainingPhrases = []; + message.trainingPhrases.push($root.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.decode(reader, reader.uint32())); + break; + case 4: + if (!(message.parameters && message.parameters.length)) + message.parameters = []; + message.parameters.push($root.google.cloud.dialogflow.cx.v3.Intent.Parameter.decode(reader, reader.uint32())); + break; + case 5: + message.priority = reader.int32(); + break; + case 6: + message.isFallback = reader.bool(); + break; + case 7: + if (message.labels === $util.emptyObject) + message.labels = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.labels[key] = value; + break; + case 8: + message.description = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an Intent message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.Intent + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.Intent} Intent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Intent.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an Intent message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.Intent + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Intent.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.trainingPhrases != null && message.hasOwnProperty("trainingPhrases")) { + if (!Array.isArray(message.trainingPhrases)) + return "trainingPhrases: array expected"; + for (var i = 0; i < message.trainingPhrases.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.verify(message.trainingPhrases[i]); + if (error) + return "trainingPhrases." + error; + } + } + if (message.parameters != null && message.hasOwnProperty("parameters")) { + if (!Array.isArray(message.parameters)) + return "parameters: array expected"; + for (var i = 0; i < message.parameters.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.Intent.Parameter.verify(message.parameters[i]); + if (error) + return "parameters." + error; + } + } + if (message.priority != null && message.hasOwnProperty("priority")) + if (!$util.isInteger(message.priority)) + return "priority: integer expected"; + if (message.isFallback != null && message.hasOwnProperty("isFallback")) + if (typeof message.isFallback !== "boolean") + return "isFallback: boolean expected"; + if (message.labels != null && message.hasOwnProperty("labels")) { + if (!$util.isObject(message.labels)) + return "labels: object expected"; + var key = Object.keys(message.labels); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.labels[key[i]])) + return "labels: string{k:string} expected"; + } + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + return null; + }; + + /** + * Creates an Intent message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.Intent + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.Intent} Intent + */ + Intent.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.Intent) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.Intent(); + if (object.name != null) + message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.trainingPhrases) { + if (!Array.isArray(object.trainingPhrases)) + throw TypeError(".google.cloud.dialogflow.cx.v3.Intent.trainingPhrases: array expected"); + message.trainingPhrases = []; + for (var i = 0; i < object.trainingPhrases.length; ++i) { + if (typeof object.trainingPhrases[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Intent.trainingPhrases: object expected"); + message.trainingPhrases[i] = $root.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.fromObject(object.trainingPhrases[i]); + } + } + if (object.parameters) { + if (!Array.isArray(object.parameters)) + throw TypeError(".google.cloud.dialogflow.cx.v3.Intent.parameters: array expected"); + message.parameters = []; + for (var i = 0; i < object.parameters.length; ++i) { + if (typeof object.parameters[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Intent.parameters: object expected"); + message.parameters[i] = $root.google.cloud.dialogflow.cx.v3.Intent.Parameter.fromObject(object.parameters[i]); + } + } + if (object.priority != null) + message.priority = object.priority | 0; + if (object.isFallback != null) + message.isFallback = Boolean(object.isFallback); + if (object.labels) { + if (typeof object.labels !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Intent.labels: object expected"); + message.labels = {}; + for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) + message.labels[keys[i]] = String(object.labels[keys[i]]); + } + if (object.description != null) + message.description = String(object.description); + return message; + }; + + /** + * Creates a plain object from an Intent message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.Intent + * @static + * @param {google.cloud.dialogflow.cx.v3.Intent} message Intent + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Intent.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.trainingPhrases = []; + object.parameters = []; + } + if (options.objects || options.defaults) + object.labels = {}; + if (options.defaults) { + object.name = ""; + object.displayName = ""; + object.priority = 0; + object.isFallback = false; + object.description = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.trainingPhrases && message.trainingPhrases.length) { + object.trainingPhrases = []; + for (var j = 0; j < message.trainingPhrases.length; ++j) + object.trainingPhrases[j] = $root.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.toObject(message.trainingPhrases[j], options); + } + if (message.parameters && message.parameters.length) { + object.parameters = []; + for (var j = 0; j < message.parameters.length; ++j) + object.parameters[j] = $root.google.cloud.dialogflow.cx.v3.Intent.Parameter.toObject(message.parameters[j], options); + } + if (message.priority != null && message.hasOwnProperty("priority")) + object.priority = message.priority; + if (message.isFallback != null && message.hasOwnProperty("isFallback")) + object.isFallback = message.isFallback; + var keys2; + if (message.labels && (keys2 = Object.keys(message.labels)).length) { + object.labels = {}; + for (var j = 0; j < keys2.length; ++j) + object.labels[keys2[j]] = message.labels[keys2[j]]; + } + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + return object; + }; + + /** + * Converts this Intent to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.Intent + * @instance + * @returns {Object.} JSON object + */ + Intent.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + Intent.TrainingPhrase = (function() { + + /** + * Properties of a TrainingPhrase. + * @memberof google.cloud.dialogflow.cx.v3.Intent + * @interface ITrainingPhrase + * @property {string|null} [id] TrainingPhrase id + * @property {Array.|null} [parts] TrainingPhrase parts + * @property {number|null} [repeatCount] TrainingPhrase repeatCount + */ + + /** + * Constructs a new TrainingPhrase. + * @memberof google.cloud.dialogflow.cx.v3.Intent + * @classdesc Represents a TrainingPhrase. + * @implements ITrainingPhrase + * @constructor + * @param {google.cloud.dialogflow.cx.v3.Intent.ITrainingPhrase=} [properties] Properties to set + */ + function TrainingPhrase(properties) { + this.parts = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TrainingPhrase id. + * @member {string} id + * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase + * @instance + */ + TrainingPhrase.prototype.id = ""; + + /** + * TrainingPhrase parts. + * @member {Array.} parts + * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase + * @instance + */ + TrainingPhrase.prototype.parts = $util.emptyArray; + + /** + * TrainingPhrase repeatCount. + * @member {number} repeatCount + * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase + * @instance + */ + TrainingPhrase.prototype.repeatCount = 0; + + /** + * Creates a new TrainingPhrase instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase + * @static + * @param {google.cloud.dialogflow.cx.v3.Intent.ITrainingPhrase=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase} TrainingPhrase instance + */ + TrainingPhrase.create = function create(properties) { + return new TrainingPhrase(properties); + }; + + /** + * Encodes the specified TrainingPhrase message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase + * @static + * @param {google.cloud.dialogflow.cx.v3.Intent.ITrainingPhrase} message TrainingPhrase message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TrainingPhrase.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); + if (message.parts != null && message.parts.length) + for (var i = 0; i < message.parts.length; ++i) + $root.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.encode(message.parts[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.repeatCount != null && Object.hasOwnProperty.call(message, "repeatCount")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.repeatCount); + return writer; + }; + + /** + * Encodes the specified TrainingPhrase message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase + * @static + * @param {google.cloud.dialogflow.cx.v3.Intent.ITrainingPhrase} message TrainingPhrase message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TrainingPhrase.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TrainingPhrase message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase} TrainingPhrase + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TrainingPhrase.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.string(); + break; + case 2: + if (!(message.parts && message.parts.length)) + message.parts = []; + message.parts.push($root.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.decode(reader, reader.uint32())); + break; + case 3: + message.repeatCount = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TrainingPhrase message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase} TrainingPhrase + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TrainingPhrase.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TrainingPhrase message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TrainingPhrase.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) + if (!$util.isString(message.id)) + return "id: string expected"; + if (message.parts != null && message.hasOwnProperty("parts")) { + if (!Array.isArray(message.parts)) + return "parts: array expected"; + for (var i = 0; i < message.parts.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.verify(message.parts[i]); + if (error) + return "parts." + error; + } + } + if (message.repeatCount != null && message.hasOwnProperty("repeatCount")) + if (!$util.isInteger(message.repeatCount)) + return "repeatCount: integer expected"; + return null; + }; + + /** + * Creates a TrainingPhrase message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase} TrainingPhrase + */ + TrainingPhrase.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase(); + if (object.id != null) + message.id = String(object.id); + if (object.parts) { + if (!Array.isArray(object.parts)) + throw TypeError(".google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.parts: array expected"); + message.parts = []; + for (var i = 0; i < object.parts.length; ++i) { + if (typeof object.parts[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.parts: object expected"); + message.parts[i] = $root.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.fromObject(object.parts[i]); + } + } + if (object.repeatCount != null) + message.repeatCount = object.repeatCount | 0; + return message; + }; + + /** + * Creates a plain object from a TrainingPhrase message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase + * @static + * @param {google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase} message TrainingPhrase + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TrainingPhrase.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.parts = []; + if (options.defaults) { + object.id = ""; + object.repeatCount = 0; + } + if (message.id != null && message.hasOwnProperty("id")) + object.id = message.id; + if (message.parts && message.parts.length) { + object.parts = []; + for (var j = 0; j < message.parts.length; ++j) + object.parts[j] = $root.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.toObject(message.parts[j], options); + } + if (message.repeatCount != null && message.hasOwnProperty("repeatCount")) + object.repeatCount = message.repeatCount; + return object; + }; + + /** + * Converts this TrainingPhrase to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase + * @instance + * @returns {Object.} JSON object + */ + TrainingPhrase.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + TrainingPhrase.Part = (function() { + + /** + * Properties of a Part. + * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase + * @interface IPart + * @property {string|null} [text] Part text + * @property {string|null} [parameterId] Part parameterId + */ + + /** + * Constructs a new Part. + * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase + * @classdesc Represents a Part. + * @implements IPart + * @constructor + * @param {google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.IPart=} [properties] Properties to set + */ + function Part(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Part text. + * @member {string} text + * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part + * @instance + */ + Part.prototype.text = ""; + + /** + * Part parameterId. + * @member {string} parameterId + * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part + * @instance + */ + Part.prototype.parameterId = ""; + + /** + * Creates a new Part instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part + * @static + * @param {google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.IPart=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part} Part instance + */ + Part.create = function create(properties) { + return new Part(properties); + }; + + /** + * Encodes the specified Part message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part + * @static + * @param {google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.IPart} message Part message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Part.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.text != null && Object.hasOwnProperty.call(message, "text")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.text); + if (message.parameterId != null && Object.hasOwnProperty.call(message, "parameterId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.parameterId); + return writer; + }; + + /** + * Encodes the specified Part message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part + * @static + * @param {google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.IPart} message Part message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Part.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Part message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part} Part + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Part.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.text = reader.string(); + break; + case 2: + message.parameterId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Part message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part} Part + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Part.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Part message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Part.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.text != null && message.hasOwnProperty("text")) + if (!$util.isString(message.text)) + return "text: string expected"; + if (message.parameterId != null && message.hasOwnProperty("parameterId")) + if (!$util.isString(message.parameterId)) + return "parameterId: string expected"; + return null; + }; + + /** + * Creates a Part message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part} Part + */ + Part.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part(); + if (object.text != null) + message.text = String(object.text); + if (object.parameterId != null) + message.parameterId = String(object.parameterId); + return message; + }; + + /** + * Creates a plain object from a Part message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part + * @static + * @param {google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part} message Part + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Part.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.text = ""; + object.parameterId = ""; + } + if (message.text != null && message.hasOwnProperty("text")) + object.text = message.text; + if (message.parameterId != null && message.hasOwnProperty("parameterId")) + object.parameterId = message.parameterId; + return object; + }; + + /** + * Converts this Part to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part + * @instance + * @returns {Object.} JSON object + */ + Part.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Part; + })(); + + return TrainingPhrase; + })(); + + Intent.Parameter = (function() { + + /** + * Properties of a Parameter. + * @memberof google.cloud.dialogflow.cx.v3.Intent + * @interface IParameter + * @property {string|null} [id] Parameter id + * @property {string|null} [entityType] Parameter entityType + * @property {boolean|null} [isList] Parameter isList + * @property {boolean|null} [redact] Parameter redact + */ + + /** + * Constructs a new Parameter. + * @memberof google.cloud.dialogflow.cx.v3.Intent + * @classdesc Represents a Parameter. + * @implements IParameter + * @constructor + * @param {google.cloud.dialogflow.cx.v3.Intent.IParameter=} [properties] Properties to set + */ + function Parameter(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Parameter id. + * @member {string} id + * @memberof google.cloud.dialogflow.cx.v3.Intent.Parameter + * @instance + */ + Parameter.prototype.id = ""; + + /** + * Parameter entityType. + * @member {string} entityType + * @memberof google.cloud.dialogflow.cx.v3.Intent.Parameter + * @instance + */ + Parameter.prototype.entityType = ""; + + /** + * Parameter isList. + * @member {boolean} isList + * @memberof google.cloud.dialogflow.cx.v3.Intent.Parameter + * @instance + */ + Parameter.prototype.isList = false; + + /** + * Parameter redact. + * @member {boolean} redact + * @memberof google.cloud.dialogflow.cx.v3.Intent.Parameter + * @instance + */ + Parameter.prototype.redact = false; + + /** + * Creates a new Parameter instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.Intent.Parameter + * @static + * @param {google.cloud.dialogflow.cx.v3.Intent.IParameter=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.Intent.Parameter} Parameter instance + */ + Parameter.create = function create(properties) { + return new Parameter(properties); + }; + + /** + * Encodes the specified Parameter message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Intent.Parameter.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.Intent.Parameter + * @static + * @param {google.cloud.dialogflow.cx.v3.Intent.IParameter} message Parameter message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Parameter.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); + if (message.entityType != null && Object.hasOwnProperty.call(message, "entityType")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.entityType); + if (message.isList != null && Object.hasOwnProperty.call(message, "isList")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.isList); + if (message.redact != null && Object.hasOwnProperty.call(message, "redact")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.redact); + return writer; + }; + + /** + * Encodes the specified Parameter message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Intent.Parameter.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.Intent.Parameter + * @static + * @param {google.cloud.dialogflow.cx.v3.Intent.IParameter} message Parameter message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Parameter.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Parameter message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.Intent.Parameter + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.Intent.Parameter} Parameter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Parameter.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Intent.Parameter(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.string(); + break; + case 2: + message.entityType = reader.string(); + break; + case 3: + message.isList = reader.bool(); + break; + case 4: + message.redact = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Parameter message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.Intent.Parameter + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.Intent.Parameter} Parameter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Parameter.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Parameter message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.Intent.Parameter + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Parameter.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) + if (!$util.isString(message.id)) + return "id: string expected"; + if (message.entityType != null && message.hasOwnProperty("entityType")) + if (!$util.isString(message.entityType)) + return "entityType: string expected"; + if (message.isList != null && message.hasOwnProperty("isList")) + if (typeof message.isList !== "boolean") + return "isList: boolean expected"; + if (message.redact != null && message.hasOwnProperty("redact")) + if (typeof message.redact !== "boolean") + return "redact: boolean expected"; + return null; + }; + + /** + * Creates a Parameter message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.Intent.Parameter + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.Intent.Parameter} Parameter + */ + Parameter.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.Intent.Parameter) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.Intent.Parameter(); + if (object.id != null) + message.id = String(object.id); + if (object.entityType != null) + message.entityType = String(object.entityType); + if (object.isList != null) + message.isList = Boolean(object.isList); + if (object.redact != null) + message.redact = Boolean(object.redact); + return message; + }; + + /** + * Creates a plain object from a Parameter message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.Intent.Parameter + * @static + * @param {google.cloud.dialogflow.cx.v3.Intent.Parameter} message Parameter + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Parameter.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.id = ""; + object.entityType = ""; + object.isList = false; + object.redact = false; + } + if (message.id != null && message.hasOwnProperty("id")) + object.id = message.id; + if (message.entityType != null && message.hasOwnProperty("entityType")) + object.entityType = message.entityType; + if (message.isList != null && message.hasOwnProperty("isList")) + object.isList = message.isList; + if (message.redact != null && message.hasOwnProperty("redact")) + object.redact = message.redact; return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest(); - if (object.environment != null) { - if (typeof object.environment !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest.environment: object expected"); - message.environment = $root.google.cloud.dialogflow.cx.v3beta1.Environment.fromObject(object.environment); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } - return message; - }; + }; - /** - * Creates a plain object from an UpdateEnvironmentRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest} message UpdateEnvironmentRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - UpdateEnvironmentRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.environment = null; - object.updateMask = null; - } - if (message.environment != null && message.hasOwnProperty("environment")) - object.environment = $root.google.cloud.dialogflow.cx.v3beta1.Environment.toObject(message.environment, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); - return object; - }; + /** + * Converts this Parameter to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.Intent.Parameter + * @instance + * @returns {Object.} JSON object + */ + Parameter.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this UpdateEnvironmentRequest to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest - * @instance - * @returns {Object.} JSON object - */ - UpdateEnvironmentRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return Parameter; + })(); - return UpdateEnvironmentRequest; + return Intent; })(); - v3beta1.DeleteEnvironmentRequest = (function() { + v3.ListIntentsRequest = (function() { /** - * Properties of a DeleteEnvironmentRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IDeleteEnvironmentRequest - * @property {string|null} [name] DeleteEnvironmentRequest name + * Properties of a ListIntentsRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface IListIntentsRequest + * @property {string|null} [parent] ListIntentsRequest parent + * @property {string|null} [languageCode] ListIntentsRequest languageCode + * @property {google.cloud.dialogflow.cx.v3.IntentView|null} [intentView] ListIntentsRequest intentView + * @property {number|null} [pageSize] ListIntentsRequest pageSize + * @property {string|null} [pageToken] ListIntentsRequest pageToken */ /** - * Constructs a new DeleteEnvironmentRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a DeleteEnvironmentRequest. - * @implements IDeleteEnvironmentRequest + * Constructs a new ListIntentsRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a ListIntentsRequest. + * @implements IListIntentsRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteEnvironmentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IListIntentsRequest=} [properties] Properties to set */ - function DeleteEnvironmentRequest(properties) { + function ListIntentsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -17935,289 +19929,126 @@ } /** - * DeleteEnvironmentRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest + * ListIntentsRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3.ListIntentsRequest * @instance */ - DeleteEnvironmentRequest.prototype.name = ""; - - /** - * Creates a new DeleteEnvironmentRequest instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteEnvironmentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest} DeleteEnvironmentRequest instance - */ - DeleteEnvironmentRequest.create = function create(properties) { - return new DeleteEnvironmentRequest(properties); - }; - - /** - * Encodes the specified DeleteEnvironmentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteEnvironmentRequest} message DeleteEnvironmentRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeleteEnvironmentRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - return writer; - }; - - /** - * Encodes the specified DeleteEnvironmentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteEnvironmentRequest} message DeleteEnvironmentRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeleteEnvironmentRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a DeleteEnvironmentRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest} DeleteEnvironmentRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeleteEnvironmentRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a DeleteEnvironmentRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest} DeleteEnvironmentRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeleteEnvironmentRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a DeleteEnvironmentRequest message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DeleteEnvironmentRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - return null; - }; - - /** - * Creates a DeleteEnvironmentRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest} DeleteEnvironmentRequest - */ - DeleteEnvironmentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest(); - if (object.name != null) - message.name = String(object.name); - return message; - }; - - /** - * Creates a plain object from a DeleteEnvironmentRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest} message DeleteEnvironmentRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - DeleteEnvironmentRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - return object; - }; + ListIntentsRequest.prototype.parent = ""; /** - * Converts this DeleteEnvironmentRequest to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest + * ListIntentsRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3.ListIntentsRequest * @instance - * @returns {Object.} JSON object - */ - DeleteEnvironmentRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return DeleteEnvironmentRequest; - })(); - - v3beta1.LookupEnvironmentHistoryRequest = (function() { - - /** - * Properties of a LookupEnvironmentHistoryRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface ILookupEnvironmentHistoryRequest - * @property {string|null} [name] LookupEnvironmentHistoryRequest name - * @property {number|null} [pageSize] LookupEnvironmentHistoryRequest pageSize - * @property {string|null} [pageToken] LookupEnvironmentHistoryRequest pageToken - */ - - /** - * Constructs a new LookupEnvironmentHistoryRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a LookupEnvironmentHistoryRequest. - * @implements ILookupEnvironmentHistoryRequest - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryRequest=} [properties] Properties to set */ - function LookupEnvironmentHistoryRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + ListIntentsRequest.prototype.languageCode = ""; /** - * LookupEnvironmentHistoryRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest + * ListIntentsRequest intentView. + * @member {google.cloud.dialogflow.cx.v3.IntentView} intentView + * @memberof google.cloud.dialogflow.cx.v3.ListIntentsRequest * @instance */ - LookupEnvironmentHistoryRequest.prototype.name = ""; + ListIntentsRequest.prototype.intentView = 0; /** - * LookupEnvironmentHistoryRequest pageSize. + * ListIntentsRequest pageSize. * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest + * @memberof google.cloud.dialogflow.cx.v3.ListIntentsRequest * @instance */ - LookupEnvironmentHistoryRequest.prototype.pageSize = 0; + ListIntentsRequest.prototype.pageSize = 0; /** - * LookupEnvironmentHistoryRequest pageToken. + * ListIntentsRequest pageToken. * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest + * @memberof google.cloud.dialogflow.cx.v3.ListIntentsRequest * @instance */ - LookupEnvironmentHistoryRequest.prototype.pageToken = ""; + ListIntentsRequest.prototype.pageToken = ""; /** - * Creates a new LookupEnvironmentHistoryRequest instance using the specified properties. + * Creates a new ListIntentsRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest + * @memberof google.cloud.dialogflow.cx.v3.ListIntentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest} LookupEnvironmentHistoryRequest instance + * @param {google.cloud.dialogflow.cx.v3.IListIntentsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListIntentsRequest} ListIntentsRequest instance */ - LookupEnvironmentHistoryRequest.create = function create(properties) { - return new LookupEnvironmentHistoryRequest(properties); + ListIntentsRequest.create = function create(properties) { + return new ListIntentsRequest(properties); }; /** - * Encodes the specified LookupEnvironmentHistoryRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest.verify|verify} messages. + * Encodes the specified ListIntentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListIntentsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest + * @memberof google.cloud.dialogflow.cx.v3.ListIntentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryRequest} message LookupEnvironmentHistoryRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListIntentsRequest} message ListIntentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LookupEnvironmentHistoryRequest.encode = function encode(message, writer) { + ListIntentsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); + if (message.intentView != null && Object.hasOwnProperty.call(message, "intentView")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.intentView); return writer; }; /** - * Encodes the specified LookupEnvironmentHistoryRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest.verify|verify} messages. + * Encodes the specified ListIntentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListIntentsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest + * @memberof google.cloud.dialogflow.cx.v3.ListIntentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryRequest} message LookupEnvironmentHistoryRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListIntentsRequest} message ListIntentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LookupEnvironmentHistoryRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListIntentsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a LookupEnvironmentHistoryRequest message from the specified reader or buffer. + * Decodes a ListIntentsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest + * @memberof google.cloud.dialogflow.cx.v3.ListIntentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest} LookupEnvironmentHistoryRequest + * @returns {google.cloud.dialogflow.cx.v3.ListIntentsRequest} ListIntentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LookupEnvironmentHistoryRequest.decode = function decode(reader, length) { + ListIntentsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListIntentsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.parent = reader.string(); break; case 2: - message.pageSize = reader.int32(); + message.languageCode = reader.string(); + break; + case 5: + message.intentView = reader.int32(); break; case 3: + message.pageSize = reader.int32(); + break; + case 4: message.pageToken = reader.string(); break; default: @@ -18229,35 +20060,47 @@ }; /** - * Decodes a LookupEnvironmentHistoryRequest message from the specified reader or buffer, length delimited. + * Decodes a ListIntentsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest + * @memberof google.cloud.dialogflow.cx.v3.ListIntentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest} LookupEnvironmentHistoryRequest + * @returns {google.cloud.dialogflow.cx.v3.ListIntentsRequest} ListIntentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LookupEnvironmentHistoryRequest.decodeDelimited = function decodeDelimited(reader) { + ListIntentsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a LookupEnvironmentHistoryRequest message. + * Verifies a ListIntentsRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest + * @memberof google.cloud.dialogflow.cx.v3.ListIntentsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - LookupEnvironmentHistoryRequest.verify = function verify(message) { + ListIntentsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; + if (message.intentView != null && message.hasOwnProperty("intentView")) + switch (message.intentView) { + default: + return "intentView: enum value expected"; + case 0: + case 1: + case 2: + break; + } if (message.pageSize != null && message.hasOwnProperty("pageSize")) if (!$util.isInteger(message.pageSize)) return "pageSize: integer expected"; @@ -18268,19 +20111,35 @@ }; /** - * Creates a LookupEnvironmentHistoryRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListIntentsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest + * @memberof google.cloud.dialogflow.cx.v3.ListIntentsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest} LookupEnvironmentHistoryRequest + * @returns {google.cloud.dialogflow.cx.v3.ListIntentsRequest} ListIntentsRequest */ - LookupEnvironmentHistoryRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest) + ListIntentsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListIntentsRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.dialogflow.cx.v3.ListIntentsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.languageCode != null) + message.languageCode = String(object.languageCode); + switch (object.intentView) { + case "INTENT_VIEW_UNSPECIFIED": + case 0: + message.intentView = 0; + break; + case "INTENT_VIEW_PARTIAL": + case 1: + message.intentView = 1; + break; + case "INTENT_VIEW_FULL": + case 2: + message.intentView = 2; + break; + } if (object.pageSize != null) message.pageSize = object.pageSize | 0; if (object.pageToken != null) @@ -18289,66 +20148,72 @@ }; /** - * Creates a plain object from a LookupEnvironmentHistoryRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListIntentsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest + * @memberof google.cloud.dialogflow.cx.v3.ListIntentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest} message LookupEnvironmentHistoryRequest + * @param {google.cloud.dialogflow.cx.v3.ListIntentsRequest} message ListIntentsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - LookupEnvironmentHistoryRequest.toObject = function toObject(message, options) { + ListIntentsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.name = ""; + object.parent = ""; + object.languageCode = ""; object.pageSize = 0; object.pageToken = ""; + object.intentView = options.enums === String ? "INTENT_VIEW_UNSPECIFIED" : 0; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; if (message.pageSize != null && message.hasOwnProperty("pageSize")) object.pageSize = message.pageSize; if (message.pageToken != null && message.hasOwnProperty("pageToken")) object.pageToken = message.pageToken; + if (message.intentView != null && message.hasOwnProperty("intentView")) + object.intentView = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.IntentView[message.intentView] : message.intentView; return object; }; /** - * Converts this LookupEnvironmentHistoryRequest to JSON. + * Converts this ListIntentsRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest + * @memberof google.cloud.dialogflow.cx.v3.ListIntentsRequest * @instance * @returns {Object.} JSON object */ - LookupEnvironmentHistoryRequest.prototype.toJSON = function toJSON() { + ListIntentsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return LookupEnvironmentHistoryRequest; + return ListIntentsRequest; })(); - v3beta1.LookupEnvironmentHistoryResponse = (function() { + v3.ListIntentsResponse = (function() { /** - * Properties of a LookupEnvironmentHistoryResponse. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface ILookupEnvironmentHistoryResponse - * @property {Array.|null} [environments] LookupEnvironmentHistoryResponse environments - * @property {string|null} [nextPageToken] LookupEnvironmentHistoryResponse nextPageToken + * Properties of a ListIntentsResponse. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface IListIntentsResponse + * @property {Array.|null} [intents] ListIntentsResponse intents + * @property {string|null} [nextPageToken] ListIntentsResponse nextPageToken */ /** - * Constructs a new LookupEnvironmentHistoryResponse. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a LookupEnvironmentHistoryResponse. - * @implements ILookupEnvironmentHistoryResponse + * Constructs a new ListIntentsResponse. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a ListIntentsResponse. + * @implements IListIntentsResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IListIntentsResponse=} [properties] Properties to set */ - function LookupEnvironmentHistoryResponse(properties) { - this.environments = []; + function ListIntentsResponse(properties) { + this.intents = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -18356,88 +20221,88 @@ } /** - * LookupEnvironmentHistoryResponse environments. - * @member {Array.} environments - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse + * ListIntentsResponse intents. + * @member {Array.} intents + * @memberof google.cloud.dialogflow.cx.v3.ListIntentsResponse * @instance */ - LookupEnvironmentHistoryResponse.prototype.environments = $util.emptyArray; + ListIntentsResponse.prototype.intents = $util.emptyArray; /** - * LookupEnvironmentHistoryResponse nextPageToken. + * ListIntentsResponse nextPageToken. * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse + * @memberof google.cloud.dialogflow.cx.v3.ListIntentsResponse * @instance */ - LookupEnvironmentHistoryResponse.prototype.nextPageToken = ""; + ListIntentsResponse.prototype.nextPageToken = ""; /** - * Creates a new LookupEnvironmentHistoryResponse instance using the specified properties. + * Creates a new ListIntentsResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse + * @memberof google.cloud.dialogflow.cx.v3.ListIntentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse} LookupEnvironmentHistoryResponse instance + * @param {google.cloud.dialogflow.cx.v3.IListIntentsResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListIntentsResponse} ListIntentsResponse instance */ - LookupEnvironmentHistoryResponse.create = function create(properties) { - return new LookupEnvironmentHistoryResponse(properties); + ListIntentsResponse.create = function create(properties) { + return new ListIntentsResponse(properties); }; /** - * Encodes the specified LookupEnvironmentHistoryResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse.verify|verify} messages. + * Encodes the specified ListIntentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListIntentsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse + * @memberof google.cloud.dialogflow.cx.v3.ListIntentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryResponse} message LookupEnvironmentHistoryResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListIntentsResponse} message ListIntentsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LookupEnvironmentHistoryResponse.encode = function encode(message, writer) { + ListIntentsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.environments != null && message.environments.length) - for (var i = 0; i < message.environments.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.Environment.encode(message.environments[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.intents != null && message.intents.length) + for (var i = 0; i < message.intents.length; ++i) + $root.google.cloud.dialogflow.cx.v3.Intent.encode(message.intents[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified LookupEnvironmentHistoryResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse.verify|verify} messages. + * Encodes the specified ListIntentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListIntentsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse + * @memberof google.cloud.dialogflow.cx.v3.ListIntentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryResponse} message LookupEnvironmentHistoryResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListIntentsResponse} message ListIntentsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LookupEnvironmentHistoryResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListIntentsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a LookupEnvironmentHistoryResponse message from the specified reader or buffer. + * Decodes a ListIntentsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse + * @memberof google.cloud.dialogflow.cx.v3.ListIntentsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse} LookupEnvironmentHistoryResponse + * @returns {google.cloud.dialogflow.cx.v3.ListIntentsResponse} ListIntentsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LookupEnvironmentHistoryResponse.decode = function decode(reader, length) { + ListIntentsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListIntentsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.environments && message.environments.length)) - message.environments = []; - message.environments.push($root.google.cloud.dialogflow.cx.v3beta1.Environment.decode(reader, reader.uint32())); + if (!(message.intents && message.intents.length)) + message.intents = []; + message.intents.push($root.google.cloud.dialogflow.cx.v3.Intent.decode(reader, reader.uint32())); break; case 2: message.nextPageToken = reader.string(); @@ -18451,39 +20316,39 @@ }; /** - * Decodes a LookupEnvironmentHistoryResponse message from the specified reader or buffer, length delimited. + * Decodes a ListIntentsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse + * @memberof google.cloud.dialogflow.cx.v3.ListIntentsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse} LookupEnvironmentHistoryResponse + * @returns {google.cloud.dialogflow.cx.v3.ListIntentsResponse} ListIntentsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LookupEnvironmentHistoryResponse.decodeDelimited = function decodeDelimited(reader) { + ListIntentsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a LookupEnvironmentHistoryResponse message. + * Verifies a ListIntentsResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse + * @memberof google.cloud.dialogflow.cx.v3.ListIntentsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - LookupEnvironmentHistoryResponse.verify = function verify(message) { + ListIntentsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.environments != null && message.hasOwnProperty("environments")) { - if (!Array.isArray(message.environments)) - return "environments: array expected"; - for (var i = 0; i < message.environments.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Environment.verify(message.environments[i]); + if (message.intents != null && message.hasOwnProperty("intents")) { + if (!Array.isArray(message.intents)) + return "intents: array expected"; + for (var i = 0; i < message.intents.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.Intent.verify(message.intents[i]); if (error) - return "environments." + error; + return "intents." + error; } } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) @@ -18493,25 +20358,25 @@ }; /** - * Creates a LookupEnvironmentHistoryResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListIntentsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse + * @memberof google.cloud.dialogflow.cx.v3.ListIntentsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse} LookupEnvironmentHistoryResponse + * @returns {google.cloud.dialogflow.cx.v3.ListIntentsResponse} ListIntentsResponse */ - LookupEnvironmentHistoryResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse) + ListIntentsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListIntentsResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse(); - if (object.environments) { - if (!Array.isArray(object.environments)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse.environments: array expected"); - message.environments = []; - for (var i = 0; i < object.environments.length; ++i) { - if (typeof object.environments[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse.environments: object expected"); - message.environments[i] = $root.google.cloud.dialogflow.cx.v3beta1.Environment.fromObject(object.environments[i]); + var message = new $root.google.cloud.dialogflow.cx.v3.ListIntentsResponse(); + if (object.intents) { + if (!Array.isArray(object.intents)) + throw TypeError(".google.cloud.dialogflow.cx.v3.ListIntentsResponse.intents: array expected"); + message.intents = []; + for (var i = 0; i < object.intents.length; ++i) { + if (typeof object.intents[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.ListIntentsResponse.intents: object expected"); + message.intents[i] = $root.google.cloud.dialogflow.cx.v3.Intent.fromObject(object.intents[i]); } } if (object.nextPageToken != null) @@ -18520,467 +20385,378 @@ }; /** - * Creates a plain object from a LookupEnvironmentHistoryResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListIntentsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse + * @memberof google.cloud.dialogflow.cx.v3.ListIntentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse} message LookupEnvironmentHistoryResponse + * @param {google.cloud.dialogflow.cx.v3.ListIntentsResponse} message ListIntentsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - LookupEnvironmentHistoryResponse.toObject = function toObject(message, options) { + ListIntentsResponse.toObject = function toObject(message, options) { if (!options) options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.environments = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.environments && message.environments.length) { - object.environments = []; - for (var j = 0; j < message.environments.length; ++j) - object.environments[j] = $root.google.cloud.dialogflow.cx.v3beta1.Environment.toObject(message.environments[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; - return object; - }; - - /** - * Converts this LookupEnvironmentHistoryResponse to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse - * @instance - * @returns {Object.} JSON object - */ - LookupEnvironmentHistoryResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return LookupEnvironmentHistoryResponse; - })(); - - v3beta1.Intents = (function() { - - /** - * Constructs a new Intents service. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an Intents - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function Intents(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (Intents.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Intents; - - /** - * Creates new Intents service using the specified rpc implementation. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Intents - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {Intents} RPC service. Useful where requests and/or responses are streamed. - */ - Intents.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Intents#listIntents}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Intents - * @typedef ListIntentsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse} [response] ListIntentsResponse - */ - - /** - * Calls ListIntents. - * @function listIntents - * @memberof google.cloud.dialogflow.cx.v3beta1.Intents - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest} request ListIntentsRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Intents.ListIntentsCallback} callback Node-style callback called with the error, if any, and ListIntentsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Intents.prototype.listIntents = function listIntents(request, callback) { - return this.rpcCall(listIntents, $root.google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest, $root.google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse, request, callback); - }, "name", { value: "ListIntents" }); + var object = {}; + if (options.arrays || options.defaults) + object.intents = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.intents && message.intents.length) { + object.intents = []; + for (var j = 0; j < message.intents.length; ++j) + object.intents[j] = $root.google.cloud.dialogflow.cx.v3.Intent.toObject(message.intents[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; /** - * Calls ListIntents. - * @function listIntents - * @memberof google.cloud.dialogflow.cx.v3beta1.Intents + * Converts this ListIntentsResponse to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.ListIntentsResponse * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest} request ListIntentsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + ListIntentsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Intents#getIntent}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Intents - * @typedef GetIntentCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.Intent} [response] Intent - */ + return ListIntentsResponse; + })(); - /** - * Calls GetIntent. - * @function getIntent - * @memberof google.cloud.dialogflow.cx.v3beta1.Intents - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest} request GetIntentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Intents.GetIntentCallback} callback Node-style callback called with the error, if any, and Intent - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Intents.prototype.getIntent = function getIntent(request, callback) { - return this.rpcCall(getIntent, $root.google.cloud.dialogflow.cx.v3beta1.GetIntentRequest, $root.google.cloud.dialogflow.cx.v3beta1.Intent, request, callback); - }, "name", { value: "GetIntent" }); + v3.GetIntentRequest = (function() { /** - * Calls GetIntent. - * @function getIntent - * @memberof google.cloud.dialogflow.cx.v3beta1.Intents - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest} request GetIntentRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Properties of a GetIntentRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface IGetIntentRequest + * @property {string|null} [name] GetIntentRequest name + * @property {string|null} [languageCode] GetIntentRequest languageCode */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Intents#createIntent}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Intents - * @typedef CreateIntentCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.Intent} [response] Intent + * Constructs a new GetIntentRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a GetIntentRequest. + * @implements IGetIntentRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3.IGetIntentRequest=} [properties] Properties to set */ + function GetIntentRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * Calls CreateIntent. - * @function createIntent - * @memberof google.cloud.dialogflow.cx.v3beta1.Intents + * GetIntentRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.GetIntentRequest * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest} request CreateIntentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Intents.CreateIntentCallback} callback Node-style callback called with the error, if any, and Intent - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(Intents.prototype.createIntent = function createIntent(request, callback) { - return this.rpcCall(createIntent, $root.google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest, $root.google.cloud.dialogflow.cx.v3beta1.Intent, request, callback); - }, "name", { value: "CreateIntent" }); + GetIntentRequest.prototype.name = ""; /** - * Calls CreateIntent. - * @function createIntent - * @memberof google.cloud.dialogflow.cx.v3beta1.Intents + * GetIntentRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3.GetIntentRequest * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest} request CreateIntentRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + GetIntentRequest.prototype.languageCode = ""; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Intents#updateIntent}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Intents - * @typedef UpdateIntentCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.Intent} [response] Intent + * Creates a new GetIntentRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.GetIntentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IGetIntentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.GetIntentRequest} GetIntentRequest instance */ + GetIntentRequest.create = function create(properties) { + return new GetIntentRequest(properties); + }; /** - * Calls UpdateIntent. - * @function updateIntent - * @memberof google.cloud.dialogflow.cx.v3beta1.Intents - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest} request UpdateIntentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Intents.UpdateIntentCallback} callback Node-style callback called with the error, if any, and Intent - * @returns {undefined} - * @variation 1 + * Encodes the specified GetIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetIntentRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.GetIntentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IGetIntentRequest} message GetIntentRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(Intents.prototype.updateIntent = function updateIntent(request, callback) { - return this.rpcCall(updateIntent, $root.google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest, $root.google.cloud.dialogflow.cx.v3beta1.Intent, request, callback); - }, "name", { value: "UpdateIntent" }); + GetIntentRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); + return writer; + }; /** - * Calls UpdateIntent. - * @function updateIntent - * @memberof google.cloud.dialogflow.cx.v3beta1.Intents - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest} request UpdateIntentRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Encodes the specified GetIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetIntentRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.GetIntentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IGetIntentRequest} message GetIntentRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + GetIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Intents#deleteIntent}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Intents - * @typedef DeleteIntentCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty + * Decodes a GetIntentRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.GetIntentRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.GetIntentRequest} GetIntentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + GetIntentRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.GetIntentRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.languageCode = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Calls DeleteIntent. - * @function deleteIntent - * @memberof google.cloud.dialogflow.cx.v3beta1.Intents - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteIntentRequest} request DeleteIntentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Intents.DeleteIntentCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 + * Decodes a GetIntentRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.GetIntentRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.GetIntentRequest} GetIntentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Object.defineProperty(Intents.prototype.deleteIntent = function deleteIntent(request, callback) { - return this.rpcCall(deleteIntent, $root.google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "DeleteIntent" }); + GetIntentRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls DeleteIntent. - * @function deleteIntent - * @memberof google.cloud.dialogflow.cx.v3beta1.Intents - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteIntentRequest} request DeleteIntentRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Verifies a GetIntentRequest message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.GetIntentRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - - return Intents; - })(); - - v3beta1.Intent = (function() { + GetIntentRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; + return null; + }; /** - * Properties of an Intent. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IIntent - * @property {string|null} [name] Intent name - * @property {string|null} [displayName] Intent displayName - * @property {Array.|null} [trainingPhrases] Intent trainingPhrases - * @property {Array.|null} [parameters] Intent parameters - * @property {number|null} [priority] Intent priority - * @property {boolean|null} [isFallback] Intent isFallback - * @property {Object.|null} [labels] Intent labels - * @property {string|null} [description] Intent description + * Creates a GetIntentRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.GetIntentRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.GetIntentRequest} GetIntentRequest */ + GetIntentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.GetIntentRequest) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.GetIntentRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.languageCode != null) + message.languageCode = String(object.languageCode); + return message; + }; /** - * Constructs a new Intent. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an Intent. - * @implements IIntent - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IIntent=} [properties] Properties to set + * Creates a plain object from a GetIntentRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.GetIntentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.GetIntentRequest} message GetIntentRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - function Intent(properties) { - this.trainingPhrases = []; - this.parameters = []; - this.labels = {}; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + GetIntentRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.languageCode = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; + return object; + }; /** - * Intent name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent + * Converts this GetIntentRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.GetIntentRequest * @instance + * @returns {Object.} JSON object */ - Intent.prototype.name = ""; + GetIntentRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Intent displayName. - * @member {string} displayName - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent - * @instance - */ - Intent.prototype.displayName = ""; + return GetIntentRequest; + })(); - /** - * Intent trainingPhrases. - * @member {Array.} trainingPhrases - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent - * @instance - */ - Intent.prototype.trainingPhrases = $util.emptyArray; + v3.CreateIntentRequest = (function() { /** - * Intent parameters. - * @member {Array.} parameters - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent - * @instance + * Properties of a CreateIntentRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface ICreateIntentRequest + * @property {string|null} [parent] CreateIntentRequest parent + * @property {google.cloud.dialogflow.cx.v3.IIntent|null} [intent] CreateIntentRequest intent + * @property {string|null} [languageCode] CreateIntentRequest languageCode */ - Intent.prototype.parameters = $util.emptyArray; /** - * Intent priority. - * @member {number} priority - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent - * @instance + * Constructs a new CreateIntentRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a CreateIntentRequest. + * @implements ICreateIntentRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3.ICreateIntentRequest=} [properties] Properties to set */ - Intent.prototype.priority = 0; + function CreateIntentRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * Intent isFallback. - * @member {boolean} isFallback - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent + * CreateIntentRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3.CreateIntentRequest * @instance */ - Intent.prototype.isFallback = false; + CreateIntentRequest.prototype.parent = ""; /** - * Intent labels. - * @member {Object.} labels - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent + * CreateIntentRequest intent. + * @member {google.cloud.dialogflow.cx.v3.IIntent|null|undefined} intent + * @memberof google.cloud.dialogflow.cx.v3.CreateIntentRequest * @instance */ - Intent.prototype.labels = $util.emptyObject; + CreateIntentRequest.prototype.intent = null; /** - * Intent description. - * @member {string} description - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent + * CreateIntentRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3.CreateIntentRequest * @instance */ - Intent.prototype.description = ""; + CreateIntentRequest.prototype.languageCode = ""; /** - * Creates a new Intent instance using the specified properties. + * Creates a new CreateIntentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent + * @memberof google.cloud.dialogflow.cx.v3.CreateIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IIntent=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Intent} Intent instance + * @param {google.cloud.dialogflow.cx.v3.ICreateIntentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.CreateIntentRequest} CreateIntentRequest instance */ - Intent.create = function create(properties) { - return new Intent(properties); + CreateIntentRequest.create = function create(properties) { + return new CreateIntentRequest(properties); }; /** - * Encodes the specified Intent message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.verify|verify} messages. + * Encodes the specified CreateIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateIntentRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent + * @memberof google.cloud.dialogflow.cx.v3.CreateIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IIntent} message Intent message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ICreateIntentRequest} message CreateIntentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Intent.encode = function encode(message, writer) { + CreateIntentRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); - if (message.trainingPhrases != null && message.trainingPhrases.length) - for (var i = 0; i < message.trainingPhrases.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.encode(message.trainingPhrases[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.parameters != null && message.parameters.length) - for (var i = 0; i < message.parameters.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.Intent.Parameter.encode(message.parameters[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.priority != null && Object.hasOwnProperty.call(message, "priority")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.priority); - if (message.isFallback != null && Object.hasOwnProperty.call(message, "isFallback")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.isFallback); - if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) - for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) - writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.description); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.intent != null && Object.hasOwnProperty.call(message, "intent")) + $root.google.cloud.dialogflow.cx.v3.Intent.encode(message.intent, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.languageCode); return writer; }; /** - * Encodes the specified Intent message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.verify|verify} messages. + * Encodes the specified CreateIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateIntentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent + * @memberof google.cloud.dialogflow.cx.v3.CreateIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IIntent} message Intent message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ICreateIntentRequest} message CreateIntentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Intent.encodeDelimited = function encodeDelimited(message, writer) { + CreateIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an Intent message from the specified reader or buffer. + * Decodes a CreateIntentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent + * @memberof google.cloud.dialogflow.cx.v3.CreateIntentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.Intent} Intent + * @returns {google.cloud.dialogflow.cx.v3.CreateIntentRequest} CreateIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Intent.decode = function decode(reader, length) { + CreateIntentRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Intent(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.CreateIntentRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.parent = reader.string(); break; case 2: - message.displayName = reader.string(); + message.intent = $root.google.cloud.dialogflow.cx.v3.Intent.decode(reader, reader.uint32()); break; case 3: - if (!(message.trainingPhrases && message.trainingPhrases.length)) - message.trainingPhrases = []; - message.trainingPhrases.push($root.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.decode(reader, reader.uint32())); - break; - case 4: - if (!(message.parameters && message.parameters.length)) - message.parameters = []; - message.parameters.push($root.google.cloud.dialogflow.cx.v3beta1.Intent.Parameter.decode(reader, reader.uint32())); - break; - case 5: - message.priority = reader.int32(); - break; - case 6: - message.isFallback = reader.bool(); - break; - case 7: - if (message.labels === $util.emptyObject) - message.labels = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.labels[key] = value; - break; - case 8: - message.description = reader.string(); + message.languageCode = reader.string(); break; default: reader.skipType(tag & 7); @@ -18991,937 +20767,774 @@ }; /** - * Decodes an Intent message from the specified reader or buffer, length delimited. + * Decodes a CreateIntentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent + * @memberof google.cloud.dialogflow.cx.v3.CreateIntentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Intent} Intent + * @returns {google.cloud.dialogflow.cx.v3.CreateIntentRequest} CreateIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Intent.decodeDelimited = function decodeDelimited(reader) { + CreateIntentRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an Intent message. + * Verifies a CreateIntentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent + * @memberof google.cloud.dialogflow.cx.v3.CreateIntentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Intent.verify = function verify(message) { + CreateIntentRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.trainingPhrases != null && message.hasOwnProperty("trainingPhrases")) { - if (!Array.isArray(message.trainingPhrases)) - return "trainingPhrases: array expected"; - for (var i = 0; i < message.trainingPhrases.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.verify(message.trainingPhrases[i]); - if (error) - return "trainingPhrases." + error; - } - } - if (message.parameters != null && message.hasOwnProperty("parameters")) { - if (!Array.isArray(message.parameters)) - return "parameters: array expected"; - for (var i = 0; i < message.parameters.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Intent.Parameter.verify(message.parameters[i]); - if (error) - return "parameters." + error; - } - } - if (message.priority != null && message.hasOwnProperty("priority")) - if (!$util.isInteger(message.priority)) - return "priority: integer expected"; - if (message.isFallback != null && message.hasOwnProperty("isFallback")) - if (typeof message.isFallback !== "boolean") - return "isFallback: boolean expected"; - if (message.labels != null && message.hasOwnProperty("labels")) { - if (!$util.isObject(message.labels)) - return "labels: object expected"; - var key = Object.keys(message.labels); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.labels[key[i]])) - return "labels: string{k:string} expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.intent != null && message.hasOwnProperty("intent")) { + var error = $root.google.cloud.dialogflow.cx.v3.Intent.verify(message.intent); + if (error) + return "intent." + error; } - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; return null; }; /** - * Creates an Intent message from a plain object. Also converts values to their respective internal types. + * Creates a CreateIntentRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent + * @memberof google.cloud.dialogflow.cx.v3.CreateIntentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Intent} Intent + * @returns {google.cloud.dialogflow.cx.v3.CreateIntentRequest} CreateIntentRequest */ - Intent.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Intent) + CreateIntentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.CreateIntentRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Intent(); - if (object.name != null) - message.name = String(object.name); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.trainingPhrases) { - if (!Array.isArray(object.trainingPhrases)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Intent.trainingPhrases: array expected"); - message.trainingPhrases = []; - for (var i = 0; i < object.trainingPhrases.length; ++i) { - if (typeof object.trainingPhrases[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Intent.trainingPhrases: object expected"); - message.trainingPhrases[i] = $root.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.fromObject(object.trainingPhrases[i]); - } - } - if (object.parameters) { - if (!Array.isArray(object.parameters)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Intent.parameters: array expected"); - message.parameters = []; - for (var i = 0; i < object.parameters.length; ++i) { - if (typeof object.parameters[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Intent.parameters: object expected"); - message.parameters[i] = $root.google.cloud.dialogflow.cx.v3beta1.Intent.Parameter.fromObject(object.parameters[i]); - } - } - if (object.priority != null) - message.priority = object.priority | 0; - if (object.isFallback != null) - message.isFallback = Boolean(object.isFallback); - if (object.labels) { - if (typeof object.labels !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Intent.labels: object expected"); - message.labels = {}; - for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) - message.labels[keys[i]] = String(object.labels[keys[i]]); + var message = new $root.google.cloud.dialogflow.cx.v3.CreateIntentRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.intent != null) { + if (typeof object.intent !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.CreateIntentRequest.intent: object expected"); + message.intent = $root.google.cloud.dialogflow.cx.v3.Intent.fromObject(object.intent); } - if (object.description != null) - message.description = String(object.description); + if (object.languageCode != null) + message.languageCode = String(object.languageCode); return message; }; /** - * Creates a plain object from an Intent message. Also converts values to other types if specified. + * Creates a plain object from a CreateIntentRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent + * @memberof google.cloud.dialogflow.cx.v3.CreateIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Intent} message Intent + * @param {google.cloud.dialogflow.cx.v3.CreateIntentRequest} message CreateIntentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Intent.toObject = function toObject(message, options) { + CreateIntentRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.trainingPhrases = []; - object.parameters = []; - } - if (options.objects || options.defaults) - object.labels = {}; if (options.defaults) { - object.name = ""; - object.displayName = ""; - object.priority = 0; - object.isFallback = false; - object.description = ""; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.trainingPhrases && message.trainingPhrases.length) { - object.trainingPhrases = []; - for (var j = 0; j < message.trainingPhrases.length; ++j) - object.trainingPhrases[j] = $root.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.toObject(message.trainingPhrases[j], options); - } - if (message.parameters && message.parameters.length) { - object.parameters = []; - for (var j = 0; j < message.parameters.length; ++j) - object.parameters[j] = $root.google.cloud.dialogflow.cx.v3beta1.Intent.Parameter.toObject(message.parameters[j], options); - } - if (message.priority != null && message.hasOwnProperty("priority")) - object.priority = message.priority; - if (message.isFallback != null && message.hasOwnProperty("isFallback")) - object.isFallback = message.isFallback; - var keys2; - if (message.labels && (keys2 = Object.keys(message.labels)).length) { - object.labels = {}; - for (var j = 0; j < keys2.length; ++j) - object.labels[keys2[j]] = message.labels[keys2[j]]; + object.parent = ""; + object.intent = null; + object.languageCode = ""; } - if (message.description != null && message.hasOwnProperty("description")) - object.description = message.description; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.intent != null && message.hasOwnProperty("intent")) + object.intent = $root.google.cloud.dialogflow.cx.v3.Intent.toObject(message.intent, options); + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; return object; }; /** - * Converts this Intent to JSON. + * Converts this CreateIntentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent + * @memberof google.cloud.dialogflow.cx.v3.CreateIntentRequest * @instance * @returns {Object.} JSON object */ - Intent.prototype.toJSON = function toJSON() { + CreateIntentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - Intent.TrainingPhrase = (function() { - - /** - * Properties of a TrainingPhrase. - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent - * @interface ITrainingPhrase - * @property {string|null} [id] TrainingPhrase id - * @property {Array.|null} [parts] TrainingPhrase parts - * @property {number|null} [repeatCount] TrainingPhrase repeatCount - */ - - /** - * Constructs a new TrainingPhrase. - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent - * @classdesc Represents a TrainingPhrase. - * @implements ITrainingPhrase - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.Intent.ITrainingPhrase=} [properties] Properties to set - */ - function TrainingPhrase(properties) { - this.parts = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + return CreateIntentRequest; + })(); - /** - * TrainingPhrase id. - * @member {string} id - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase - * @instance - */ - TrainingPhrase.prototype.id = ""; + v3.UpdateIntentRequest = (function() { - /** - * TrainingPhrase parts. - * @member {Array.} parts - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase - * @instance - */ - TrainingPhrase.prototype.parts = $util.emptyArray; + /** + * Properties of an UpdateIntentRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface IUpdateIntentRequest + * @property {google.cloud.dialogflow.cx.v3.IIntent|null} [intent] UpdateIntentRequest intent + * @property {string|null} [languageCode] UpdateIntentRequest languageCode + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateIntentRequest updateMask + */ - /** - * TrainingPhrase repeatCount. - * @member {number} repeatCount - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase - * @instance - */ - TrainingPhrase.prototype.repeatCount = 0; + /** + * Constructs a new UpdateIntentRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents an UpdateIntentRequest. + * @implements IUpdateIntentRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3.IUpdateIntentRequest=} [properties] Properties to set + */ + function UpdateIntentRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Creates a new TrainingPhrase instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Intent.ITrainingPhrase=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase} TrainingPhrase instance - */ - TrainingPhrase.create = function create(properties) { - return new TrainingPhrase(properties); - }; + /** + * UpdateIntentRequest intent. + * @member {google.cloud.dialogflow.cx.v3.IIntent|null|undefined} intent + * @memberof google.cloud.dialogflow.cx.v3.UpdateIntentRequest + * @instance + */ + UpdateIntentRequest.prototype.intent = null; - /** - * Encodes the specified TrainingPhrase message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Intent.ITrainingPhrase} message TrainingPhrase message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TrainingPhrase.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); - if (message.parts != null && message.parts.length) - for (var i = 0; i < message.parts.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part.encode(message.parts[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.repeatCount != null && Object.hasOwnProperty.call(message, "repeatCount")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.repeatCount); - return writer; - }; + /** + * UpdateIntentRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3.UpdateIntentRequest + * @instance + */ + UpdateIntentRequest.prototype.languageCode = ""; - /** - * Encodes the specified TrainingPhrase message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Intent.ITrainingPhrase} message TrainingPhrase message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TrainingPhrase.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * UpdateIntentRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.dialogflow.cx.v3.UpdateIntentRequest + * @instance + */ + UpdateIntentRequest.prototype.updateMask = null; - /** - * Decodes a TrainingPhrase message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase} TrainingPhrase - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TrainingPhrase.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.string(); - break; - case 2: - if (!(message.parts && message.parts.length)) - message.parts = []; - message.parts.push($root.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part.decode(reader, reader.uint32())); - break; - case 3: - message.repeatCount = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Creates a new UpdateIntentRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.UpdateIntentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IUpdateIntentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.UpdateIntentRequest} UpdateIntentRequest instance + */ + UpdateIntentRequest.create = function create(properties) { + return new UpdateIntentRequest(properties); + }; - /** - * Decodes a TrainingPhrase message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase} TrainingPhrase - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TrainingPhrase.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Encodes the specified UpdateIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateIntentRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.UpdateIntentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IUpdateIntentRequest} message UpdateIntentRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateIntentRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.intent != null && Object.hasOwnProperty.call(message, "intent")) + $root.google.cloud.dialogflow.cx.v3.Intent.encode(message.intent, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; - /** - * Verifies a TrainingPhrase message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TrainingPhrase.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isString(message.id)) - return "id: string expected"; - if (message.parts != null && message.hasOwnProperty("parts")) { - if (!Array.isArray(message.parts)) - return "parts: array expected"; - for (var i = 0; i < message.parts.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part.verify(message.parts[i]); - if (error) - return "parts." + error; - } - } - if (message.repeatCount != null && message.hasOwnProperty("repeatCount")) - if (!$util.isInteger(message.repeatCount)) - return "repeatCount: integer expected"; - return null; - }; + /** + * Encodes the specified UpdateIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateIntentRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.UpdateIntentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IUpdateIntentRequest} message UpdateIntentRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Creates a TrainingPhrase message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase} TrainingPhrase - */ - TrainingPhrase.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase(); - if (object.id != null) - message.id = String(object.id); - if (object.parts) { - if (!Array.isArray(object.parts)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.parts: array expected"); - message.parts = []; - for (var i = 0; i < object.parts.length; ++i) { - if (typeof object.parts[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.parts: object expected"); - message.parts[i] = $root.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part.fromObject(object.parts[i]); - } + /** + * Decodes an UpdateIntentRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.UpdateIntentRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.UpdateIntentRequest} UpdateIntentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateIntentRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.UpdateIntentRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.intent = $root.google.cloud.dialogflow.cx.v3.Intent.decode(reader, reader.uint32()); + break; + case 2: + message.languageCode = reader.string(); + break; + case 3: + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; } - if (object.repeatCount != null) - message.repeatCount = object.repeatCount | 0; - return message; - }; + } + return message; + }; - /** - * Creates a plain object from a TrainingPhrase message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase} message TrainingPhrase - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - TrainingPhrase.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.parts = []; - if (options.defaults) { - object.id = ""; - object.repeatCount = 0; - } - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; - if (message.parts && message.parts.length) { - object.parts = []; - for (var j = 0; j < message.parts.length; ++j) - object.parts[j] = $root.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part.toObject(message.parts[j], options); - } - if (message.repeatCount != null && message.hasOwnProperty("repeatCount")) - object.repeatCount = message.repeatCount; + /** + * Decodes an UpdateIntentRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.UpdateIntentRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.UpdateIntentRequest} UpdateIntentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateIntentRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpdateIntentRequest message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.UpdateIntentRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdateIntentRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.intent != null && message.hasOwnProperty("intent")) { + var error = $root.google.cloud.dialogflow.cx.v3.Intent.verify(message.intent); + if (error) + return "intent." + error; + } + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; + } + return null; + }; + + /** + * Creates an UpdateIntentRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.UpdateIntentRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.UpdateIntentRequest} UpdateIntentRequest + */ + UpdateIntentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.UpdateIntentRequest) return object; - }; + var message = new $root.google.cloud.dialogflow.cx.v3.UpdateIntentRequest(); + if (object.intent != null) { + if (typeof object.intent !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateIntentRequest.intent: object expected"); + message.intent = $root.google.cloud.dialogflow.cx.v3.Intent.fromObject(object.intent); + } + if (object.languageCode != null) + message.languageCode = String(object.languageCode); + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateIntentRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } + return message; + }; - /** - * Converts this TrainingPhrase to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase - * @instance - * @returns {Object.} JSON object - */ - TrainingPhrase.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from an UpdateIntentRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.UpdateIntentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.UpdateIntentRequest} message UpdateIntentRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateIntentRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.intent = null; + object.languageCode = ""; + object.updateMask = null; + } + if (message.intent != null && message.hasOwnProperty("intent")) + object.intent = $root.google.cloud.dialogflow.cx.v3.Intent.toObject(message.intent, options); + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + return object; + }; - TrainingPhrase.Part = (function() { + /** + * Converts this UpdateIntentRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.UpdateIntentRequest + * @instance + * @returns {Object.} JSON object + */ + UpdateIntentRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Properties of a Part. - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase - * @interface IPart - * @property {string|null} [text] Part text - * @property {string|null} [parameterId] Part parameterId - */ + return UpdateIntentRequest; + })(); - /** - * Constructs a new Part. - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase - * @classdesc Represents a Part. - * @implements IPart - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.IPart=} [properties] Properties to set - */ - function Part(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + v3.DeleteIntentRequest = (function() { - /** - * Part text. - * @member {string} text - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part - * @instance - */ - Part.prototype.text = ""; + /** + * Properties of a DeleteIntentRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface IDeleteIntentRequest + * @property {string|null} [name] DeleteIntentRequest name + */ - /** - * Part parameterId. - * @member {string} parameterId - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part - * @instance - */ - Part.prototype.parameterId = ""; + /** + * Constructs a new DeleteIntentRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a DeleteIntentRequest. + * @implements IDeleteIntentRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3.IDeleteIntentRequest=} [properties] Properties to set + */ + function DeleteIntentRequest(properties) { + if (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 Part instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.IPart=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part} Part instance - */ - Part.create = function create(properties) { - return new Part(properties); - }; + /** + * DeleteIntentRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.DeleteIntentRequest + * @instance + */ + DeleteIntentRequest.prototype.name = ""; - /** - * Encodes the specified Part message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.IPart} message Part message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Part.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.text != null && Object.hasOwnProperty.call(message, "text")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.text); - if (message.parameterId != null && Object.hasOwnProperty.call(message, "parameterId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.parameterId); - return writer; - }; + /** + * Creates a new DeleteIntentRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.DeleteIntentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IDeleteIntentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.DeleteIntentRequest} DeleteIntentRequest instance + */ + DeleteIntentRequest.create = function create(properties) { + return new DeleteIntentRequest(properties); + }; - /** - * Encodes the specified Part message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.IPart} message Part message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Part.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified DeleteIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteIntentRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.DeleteIntentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IDeleteIntentRequest} message DeleteIntentRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteIntentRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; + + /** + * Encodes the specified DeleteIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteIntentRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.DeleteIntentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IDeleteIntentRequest} message DeleteIntentRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a Part message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part} Part - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Part.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.text = reader.string(); - break; - case 2: - message.parameterId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Decodes a DeleteIntentRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.DeleteIntentRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.DeleteIntentRequest} DeleteIntentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteIntentRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.DeleteIntentRequest(); + 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 Part message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part} Part - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Part.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a DeleteIntentRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.DeleteIntentRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.DeleteIntentRequest} DeleteIntentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteIntentRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a Part message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Part.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.text != null && message.hasOwnProperty("text")) - if (!$util.isString(message.text)) - return "text: string expected"; - if (message.parameterId != null && message.hasOwnProperty("parameterId")) - if (!$util.isString(message.parameterId)) - return "parameterId: string expected"; - return null; - }; + /** + * Verifies a DeleteIntentRequest message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.DeleteIntentRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteIntentRequest.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 Part message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part} Part - */ - Part.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part(); - if (object.text != null) - message.text = String(object.text); - if (object.parameterId != null) - message.parameterId = String(object.parameterId); - return message; - }; + /** + * Creates a DeleteIntentRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.DeleteIntentRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.DeleteIntentRequest} DeleteIntentRequest + */ + DeleteIntentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.DeleteIntentRequest) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.DeleteIntentRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; - /** - * Creates a plain object from a Part message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part} message Part - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Part.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.text = ""; - object.parameterId = ""; - } - if (message.text != null && message.hasOwnProperty("text")) - object.text = message.text; - if (message.parameterId != null && message.hasOwnProperty("parameterId")) - object.parameterId = message.parameterId; - return object; - }; + /** + * Creates a plain object from a DeleteIntentRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.DeleteIntentRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.DeleteIntentRequest} message DeleteIntentRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteIntentRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; - /** - * Converts this Part to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part - * @instance - * @returns {Object.} JSON object - */ - Part.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Converts this DeleteIntentRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.DeleteIntentRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteIntentRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return Part; - })(); + return DeleteIntentRequest; + })(); - return TrainingPhrase; - })(); + /** + * IntentView enum. + * @name google.cloud.dialogflow.cx.v3.IntentView + * @enum {number} + * @property {number} INTENT_VIEW_UNSPECIFIED=0 INTENT_VIEW_UNSPECIFIED value + * @property {number} INTENT_VIEW_PARTIAL=1 INTENT_VIEW_PARTIAL value + * @property {number} INTENT_VIEW_FULL=2 INTENT_VIEW_FULL value + */ + v3.IntentView = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "INTENT_VIEW_UNSPECIFIED"] = 0; + values[valuesById[1] = "INTENT_VIEW_PARTIAL"] = 1; + values[valuesById[2] = "INTENT_VIEW_FULL"] = 2; + return values; + })(); - Intent.Parameter = (function() { + v3.SecuritySettingsService = (function() { - /** - * Properties of a Parameter. - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent - * @interface IParameter - * @property {string|null} [id] Parameter id - * @property {string|null} [entityType] Parameter entityType - * @property {boolean|null} [isList] Parameter isList - * @property {boolean|null} [redact] Parameter redact - */ + /** + * Constructs a new SecuritySettingsService service. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a SecuritySettingsService + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function SecuritySettingsService(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } - /** - * Constructs a new Parameter. - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent - * @classdesc Represents a Parameter. - * @implements IParameter - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.Intent.IParameter=} [properties] Properties to set - */ - function Parameter(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + (SecuritySettingsService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = SecuritySettingsService; + + /** + * Creates new SecuritySettingsService service using the specified rpc implementation. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettingsService + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {SecuritySettingsService} RPC service. Useful where requests and/or responses are streamed. + */ + SecuritySettingsService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; - /** - * Parameter id. - * @member {string} id - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter - * @instance - */ - Parameter.prototype.id = ""; + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.SecuritySettingsService#createSecuritySettings}. + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettingsService + * @typedef CreateSecuritySettingsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.SecuritySettings} [response] SecuritySettings + */ - /** - * Parameter entityType. - * @member {string} entityType - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter - * @instance - */ - Parameter.prototype.entityType = ""; + /** + * Calls CreateSecuritySettings. + * @function createSecuritySettings + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettingsService + * @instance + * @param {google.cloud.dialogflow.cx.v3.ICreateSecuritySettingsRequest} request CreateSecuritySettingsRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.SecuritySettingsService.CreateSecuritySettingsCallback} callback Node-style callback called with the error, if any, and SecuritySettings + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(SecuritySettingsService.prototype.createSecuritySettings = function createSecuritySettings(request, callback) { + return this.rpcCall(createSecuritySettings, $root.google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest, $root.google.cloud.dialogflow.cx.v3.SecuritySettings, request, callback); + }, "name", { value: "CreateSecuritySettings" }); - /** - * Parameter isList. - * @member {boolean} isList - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter - * @instance - */ - Parameter.prototype.isList = false; + /** + * Calls CreateSecuritySettings. + * @function createSecuritySettings + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettingsService + * @instance + * @param {google.cloud.dialogflow.cx.v3.ICreateSecuritySettingsRequest} request CreateSecuritySettingsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - /** - * Parameter redact. - * @member {boolean} redact - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter - * @instance - */ - Parameter.prototype.redact = false; + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.SecuritySettingsService#getSecuritySettings}. + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettingsService + * @typedef GetSecuritySettingsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.SecuritySettings} [response] SecuritySettings + */ - /** - * Creates a new Parameter instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Intent.IParameter=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Intent.Parameter} Parameter instance - */ - Parameter.create = function create(properties) { - return new Parameter(properties); - }; + /** + * Calls GetSecuritySettings. + * @function getSecuritySettings + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettingsService + * @instance + * @param {google.cloud.dialogflow.cx.v3.IGetSecuritySettingsRequest} request GetSecuritySettingsRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.SecuritySettingsService.GetSecuritySettingsCallback} callback Node-style callback called with the error, if any, and SecuritySettings + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(SecuritySettingsService.prototype.getSecuritySettings = function getSecuritySettings(request, callback) { + return this.rpcCall(getSecuritySettings, $root.google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest, $root.google.cloud.dialogflow.cx.v3.SecuritySettings, request, callback); + }, "name", { value: "GetSecuritySettings" }); - /** - * Encodes the specified Parameter message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.Parameter.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Intent.IParameter} message Parameter message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Parameter.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); - if (message.entityType != null && Object.hasOwnProperty.call(message, "entityType")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.entityType); - if (message.isList != null && Object.hasOwnProperty.call(message, "isList")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.isList); - if (message.redact != null && Object.hasOwnProperty.call(message, "redact")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.redact); - return writer; - }; + /** + * Calls GetSecuritySettings. + * @function getSecuritySettings + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettingsService + * @instance + * @param {google.cloud.dialogflow.cx.v3.IGetSecuritySettingsRequest} request GetSecuritySettingsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - /** - * Encodes the specified Parameter message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Intent.Parameter.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Intent.IParameter} message Parameter message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Parameter.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.SecuritySettingsService#updateSecuritySettings}. + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettingsService + * @typedef UpdateSecuritySettingsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.SecuritySettings} [response] SecuritySettings + */ - /** - * Decodes a Parameter message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.Intent.Parameter} Parameter - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Parameter.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Intent.Parameter(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.string(); - break; - case 2: - message.entityType = reader.string(); - break; - case 3: - message.isList = reader.bool(); - break; - case 4: - message.redact = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Calls UpdateSecuritySettings. + * @function updateSecuritySettings + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettingsService + * @instance + * @param {google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest} request UpdateSecuritySettingsRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.SecuritySettingsService.UpdateSecuritySettingsCallback} callback Node-style callback called with the error, if any, and SecuritySettings + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(SecuritySettingsService.prototype.updateSecuritySettings = function updateSecuritySettings(request, callback) { + return this.rpcCall(updateSecuritySettings, $root.google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest, $root.google.cloud.dialogflow.cx.v3.SecuritySettings, request, callback); + }, "name", { value: "UpdateSecuritySettings" }); - /** - * Decodes a Parameter message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Intent.Parameter} Parameter - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Parameter.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Calls UpdateSecuritySettings. + * @function updateSecuritySettings + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettingsService + * @instance + * @param {google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest} request UpdateSecuritySettingsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - /** - * Verifies a Parameter message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Parameter.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isString(message.id)) - return "id: string expected"; - if (message.entityType != null && message.hasOwnProperty("entityType")) - if (!$util.isString(message.entityType)) - return "entityType: string expected"; - if (message.isList != null && message.hasOwnProperty("isList")) - if (typeof message.isList !== "boolean") - return "isList: boolean expected"; - if (message.redact != null && message.hasOwnProperty("redact")) - if (typeof message.redact !== "boolean") - return "redact: boolean expected"; - return null; - }; + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.SecuritySettingsService#listSecuritySettings}. + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettingsService + * @typedef ListSecuritySettingsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse} [response] ListSecuritySettingsResponse + */ - /** - * Creates a Parameter message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Intent.Parameter} Parameter - */ - Parameter.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Intent.Parameter) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Intent.Parameter(); - if (object.id != null) - message.id = String(object.id); - if (object.entityType != null) - message.entityType = String(object.entityType); - if (object.isList != null) - message.isList = Boolean(object.isList); - if (object.redact != null) - message.redact = Boolean(object.redact); - return message; - }; + /** + * Calls ListSecuritySettings. + * @function listSecuritySettings + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettingsService + * @instance + * @param {google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest} request ListSecuritySettingsRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.SecuritySettingsService.ListSecuritySettingsCallback} callback Node-style callback called with the error, if any, and ListSecuritySettingsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(SecuritySettingsService.prototype.listSecuritySettings = function listSecuritySettings(request, callback) { + return this.rpcCall(listSecuritySettings, $root.google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest, $root.google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse, request, callback); + }, "name", { value: "ListSecuritySettings" }); - /** - * Creates a plain object from a Parameter message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Intent.Parameter} message Parameter - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Parameter.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.id = ""; - object.entityType = ""; - object.isList = false; - object.redact = false; - } - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; - if (message.entityType != null && message.hasOwnProperty("entityType")) - object.entityType = message.entityType; - if (message.isList != null && message.hasOwnProperty("isList")) - object.isList = message.isList; - if (message.redact != null && message.hasOwnProperty("redact")) - object.redact = message.redact; - return object; - }; + /** + * Calls ListSecuritySettings. + * @function listSecuritySettings + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettingsService + * @instance + * @param {google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest} request ListSecuritySettingsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - /** - * Converts this Parameter to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Intent.Parameter - * @instance - * @returns {Object.} JSON object - */ - Parameter.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.SecuritySettingsService#deleteSecuritySettings}. + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettingsService + * @typedef DeleteSecuritySettingsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ - return Parameter; - })(); + /** + * Calls DeleteSecuritySettings. + * @function deleteSecuritySettings + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettingsService + * @instance + * @param {google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest} request DeleteSecuritySettingsRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.SecuritySettingsService.DeleteSecuritySettingsCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(SecuritySettingsService.prototype.deleteSecuritySettings = function deleteSecuritySettings(request, callback) { + return this.rpcCall(deleteSecuritySettings, $root.google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteSecuritySettings" }); - return Intent; + /** + * Calls DeleteSecuritySettings. + * @function deleteSecuritySettings + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettingsService + * @instance + * @param {google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest} request DeleteSecuritySettingsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return SecuritySettingsService; })(); - v3beta1.ListIntentsRequest = (function() { + v3.GetSecuritySettingsRequest = (function() { /** - * Properties of a ListIntentsRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IListIntentsRequest - * @property {string|null} [parent] ListIntentsRequest parent - * @property {string|null} [languageCode] ListIntentsRequest languageCode - * @property {google.cloud.dialogflow.cx.v3beta1.IntentView|null} [intentView] ListIntentsRequest intentView - * @property {number|null} [pageSize] ListIntentsRequest pageSize - * @property {string|null} [pageToken] ListIntentsRequest pageToken + * Properties of a GetSecuritySettingsRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface IGetSecuritySettingsRequest + * @property {string|null} [name] GetSecuritySettingsRequest name */ /** - * Constructs a new ListIntentsRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ListIntentsRequest. - * @implements IListIntentsRequest + * Constructs a new GetSecuritySettingsRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a GetSecuritySettingsRequest. + * @implements IGetSecuritySettingsRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IGetSecuritySettingsRequest=} [properties] Properties to set */ - function ListIntentsRequest(properties) { + function GetSecuritySettingsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -19929,127 +21542,276 @@ } /** - * ListIntentsRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest + * GetSecuritySettingsRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest * @instance */ - ListIntentsRequest.prototype.parent = ""; + GetSecuritySettingsRequest.prototype.name = ""; /** - * ListIntentsRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest - * @instance + * Creates a new GetSecuritySettingsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IGetSecuritySettingsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest} GetSecuritySettingsRequest instance */ - ListIntentsRequest.prototype.languageCode = ""; + GetSecuritySettingsRequest.create = function create(properties) { + return new GetSecuritySettingsRequest(properties); + }; /** - * ListIntentsRequest intentView. - * @member {google.cloud.dialogflow.cx.v3beta1.IntentView} intentView - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest + * Encodes the specified GetSecuritySettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IGetSecuritySettingsRequest} message GetSecuritySettingsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetSecuritySettingsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; + + /** + * Encodes the specified GetSecuritySettingsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IGetSecuritySettingsRequest} message GetSecuritySettingsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetSecuritySettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetSecuritySettingsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest} GetSecuritySettingsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetSecuritySettingsRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetSecuritySettingsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest} GetSecuritySettingsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetSecuritySettingsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetSecuritySettingsRequest message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetSecuritySettingsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + /** + * Creates a GetSecuritySettingsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest} GetSecuritySettingsRequest + */ + GetSecuritySettingsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a GetSecuritySettingsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest} message GetSecuritySettingsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetSecuritySettingsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; + + /** + * Converts this GetSecuritySettingsRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest * @instance + * @returns {Object.} JSON object */ - ListIntentsRequest.prototype.intentView = 0; + GetSecuritySettingsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GetSecuritySettingsRequest; + })(); + + v3.UpdateSecuritySettingsRequest = (function() { /** - * ListIntentsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest + * Properties of an UpdateSecuritySettingsRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface IUpdateSecuritySettingsRequest + * @property {google.cloud.dialogflow.cx.v3.ISecuritySettings|null} [securitySettings] UpdateSecuritySettingsRequest securitySettings + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateSecuritySettingsRequest updateMask + */ + + /** + * Constructs a new UpdateSecuritySettingsRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents an UpdateSecuritySettingsRequest. + * @implements IUpdateSecuritySettingsRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest=} [properties] Properties to set + */ + function UpdateSecuritySettingsRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * UpdateSecuritySettingsRequest securitySettings. + * @member {google.cloud.dialogflow.cx.v3.ISecuritySettings|null|undefined} securitySettings + * @memberof google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest * @instance */ - ListIntentsRequest.prototype.pageSize = 0; + UpdateSecuritySettingsRequest.prototype.securitySettings = null; /** - * ListIntentsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest + * UpdateSecuritySettingsRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest * @instance */ - ListIntentsRequest.prototype.pageToken = ""; + UpdateSecuritySettingsRequest.prototype.updateMask = null; /** - * Creates a new ListIntentsRequest instance using the specified properties. + * Creates a new UpdateSecuritySettingsRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest} ListIntentsRequest instance + * @param {google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest} UpdateSecuritySettingsRequest instance */ - ListIntentsRequest.create = function create(properties) { - return new ListIntentsRequest(properties); + UpdateSecuritySettingsRequest.create = function create(properties) { + return new UpdateSecuritySettingsRequest(properties); }; /** - * Encodes the specified ListIntentsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest.verify|verify} messages. + * Encodes the specified UpdateSecuritySettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest} message ListIntentsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest} message UpdateSecuritySettingsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListIntentsRequest.encode = function encode(message, writer) { + UpdateSecuritySettingsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); - if (message.intentView != null && Object.hasOwnProperty.call(message, "intentView")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.intentView); + if (message.securitySettings != null && Object.hasOwnProperty.call(message, "securitySettings")) + $root.google.cloud.dialogflow.cx.v3.SecuritySettings.encode(message.securitySettings, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListIntentsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest.verify|verify} messages. + * Encodes the specified UpdateSecuritySettingsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest} message ListIntentsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest} message UpdateSecuritySettingsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListIntentsRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateSecuritySettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListIntentsRequest message from the specified reader or buffer. + * Decodes an UpdateSecuritySettingsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest} ListIntentsRequest + * @returns {google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest} UpdateSecuritySettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListIntentsRequest.decode = function decode(reader, length) { + UpdateSecuritySettingsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); + message.securitySettings = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.decode(reader, reader.uint32()); break; case 2: - message.languageCode = reader.string(); - break; - case 5: - message.intentView = reader.int32(); - break; - case 3: - message.pageSize = reader.int32(); - break; - case 4: - message.pageToken = reader.string(); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -20060,160 +21822,128 @@ }; /** - * Decodes a ListIntentsRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateSecuritySettingsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest} ListIntentsRequest + * @returns {google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest} UpdateSecuritySettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListIntentsRequest.decodeDelimited = function decodeDelimited(reader) { + UpdateSecuritySettingsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListIntentsRequest message. + * Verifies an UpdateSecuritySettingsRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListIntentsRequest.verify = function verify(message) { + UpdateSecuritySettingsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - if (!$util.isString(message.languageCode)) - return "languageCode: string expected"; - if (message.intentView != null && message.hasOwnProperty("intentView")) - switch (message.intentView) { - default: - return "intentView: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; + if (message.securitySettings != null && message.hasOwnProperty("securitySettings")) { + var error = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.verify(message.securitySettings); + if (error) + return "securitySettings." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; + } return null; }; /** - * Creates a ListIntentsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateSecuritySettingsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest} ListIntentsRequest + * @returns {google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest} UpdateSecuritySettingsRequest */ - ListIntentsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest) + UpdateSecuritySettingsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.languageCode != null) - message.languageCode = String(object.languageCode); - switch (object.intentView) { - case "INTENT_VIEW_UNSPECIFIED": - case 0: - message.intentView = 0; - break; - case "INTENT_VIEW_PARTIAL": - case 1: - message.intentView = 1; - break; - case "INTENT_VIEW_FULL": - case 2: - message.intentView = 2; - break; + var message = new $root.google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest(); + if (object.securitySettings != null) { + if (typeof object.securitySettings !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest.securitySettings: object expected"); + message.securitySettings = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.fromObject(object.securitySettings); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); return message; }; /** - * Creates a plain object from a ListIntentsRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdateSecuritySettingsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest} message ListIntentsRequest + * @param {google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest} message UpdateSecuritySettingsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListIntentsRequest.toObject = function toObject(message, options) { + UpdateSecuritySettingsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.languageCode = ""; - object.pageSize = 0; - object.pageToken = ""; - object.intentView = options.enums === String ? "INTENT_VIEW_UNSPECIFIED" : 0; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - object.languageCode = message.languageCode; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.intentView != null && message.hasOwnProperty("intentView")) - object.intentView = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.IntentView[message.intentView] : message.intentView; + if (options.defaults) { + object.securitySettings = null; + object.updateMask = null; + } + if (message.securitySettings != null && message.hasOwnProperty("securitySettings")) + object.securitySettings = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.toObject(message.securitySettings, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this ListIntentsRequest to JSON. + * Converts this UpdateSecuritySettingsRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest * @instance * @returns {Object.} JSON object */ - ListIntentsRequest.prototype.toJSON = function toJSON() { + UpdateSecuritySettingsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListIntentsRequest; + return UpdateSecuritySettingsRequest; })(); - v3beta1.ListIntentsResponse = (function() { + v3.ListSecuritySettingsRequest = (function() { /** - * Properties of a ListIntentsResponse. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IListIntentsResponse - * @property {Array.|null} [intents] ListIntentsResponse intents - * @property {string|null} [nextPageToken] ListIntentsResponse nextPageToken + * Properties of a ListSecuritySettingsRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface IListSecuritySettingsRequest + * @property {string|null} [parent] ListSecuritySettingsRequest parent + * @property {number|null} [pageSize] ListSecuritySettingsRequest pageSize + * @property {string|null} [pageToken] ListSecuritySettingsRequest pageToken */ /** - * Constructs a new ListIntentsResponse. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ListIntentsResponse. - * @implements IListIntentsResponse + * Constructs a new ListSecuritySettingsRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a ListSecuritySettingsRequest. + * @implements IListSecuritySettingsRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListIntentsResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest=} [properties] Properties to set */ - function ListIntentsResponse(properties) { - this.intents = []; + function ListSecuritySettingsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -20221,91 +21951,101 @@ } /** - * ListIntentsResponse intents. - * @member {Array.} intents - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse + * ListSecuritySettingsRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest * @instance */ - ListIntentsResponse.prototype.intents = $util.emptyArray; + ListSecuritySettingsRequest.prototype.parent = ""; /** - * ListIntentsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse + * ListSecuritySettingsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest * @instance */ - ListIntentsResponse.prototype.nextPageToken = ""; + ListSecuritySettingsRequest.prototype.pageSize = 0; /** - * Creates a new ListIntentsResponse instance using the specified properties. + * ListSecuritySettingsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest + * @instance + */ + ListSecuritySettingsRequest.prototype.pageToken = ""; + + /** + * Creates a new ListSecuritySettingsRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListIntentsResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse} ListIntentsResponse instance + * @param {google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest} ListSecuritySettingsRequest instance */ - ListIntentsResponse.create = function create(properties) { - return new ListIntentsResponse(properties); + ListSecuritySettingsRequest.create = function create(properties) { + return new ListSecuritySettingsRequest(properties); }; /** - * Encodes the specified ListIntentsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse.verify|verify} messages. + * Encodes the specified ListSecuritySettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListIntentsResponse} message ListIntentsResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest} message ListSecuritySettingsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListIntentsResponse.encode = function encode(message, writer) { + ListSecuritySettingsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.intents != null && message.intents.length) - for (var i = 0; i < message.intents.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.Intent.encode(message.intents[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.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 ListIntentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse.verify|verify} messages. + * Encodes the specified ListSecuritySettingsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListIntentsResponse} message ListIntentsResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest} message ListSecuritySettingsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListIntentsResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListSecuritySettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListIntentsResponse message from the specified reader or buffer. + * Decodes a ListSecuritySettingsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse} ListIntentsResponse + * @returns {google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest} ListSecuritySettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListIntentsResponse.decode = function decode(reader, length) { + ListSecuritySettingsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.intents && message.intents.length)) - message.intents = []; - message.intents.push($root.google.cloud.dialogflow.cx.v3beta1.Intent.decode(reader, reader.uint32())); + message.parent = reader.string(); break; case 2: - message.nextPageToken = reader.string(); + message.pageSize = reader.int32(); + break; + case 3: + message.pageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -20316,134 +22056,126 @@ }; /** - * Decodes a ListIntentsResponse message from the specified reader or buffer, length delimited. + * Decodes a ListSecuritySettingsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse} ListIntentsResponse + * @returns {google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest} ListSecuritySettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListIntentsResponse.decodeDelimited = function decodeDelimited(reader) { + ListSecuritySettingsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListIntentsResponse message. + * Verifies a ListSecuritySettingsRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListIntentsResponse.verify = function verify(message) { + ListSecuritySettingsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.intents != null && message.hasOwnProperty("intents")) { - if (!Array.isArray(message.intents)) - return "intents: array expected"; - for (var i = 0; i < message.intents.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Intent.verify(message.intents[i]); - if (error) - return "intents." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; return null; }; /** - * Creates a ListIntentsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListSecuritySettingsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse} ListIntentsResponse + * @returns {google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest} ListSecuritySettingsRequest */ - ListIntentsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse) + ListSecuritySettingsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse(); - if (object.intents) { - if (!Array.isArray(object.intents)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse.intents: array expected"); - message.intents = []; - for (var i = 0; i < object.intents.length; ++i) { - if (typeof object.intents[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse.intents: object expected"); - message.intents[i] = $root.google.cloud.dialogflow.cx.v3beta1.Intent.fromObject(object.intents[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + var message = new $root.google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); return message; }; /** - * Creates a plain object from a ListIntentsResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListSecuritySettingsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse} message ListIntentsResponse + * @param {google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest} message ListSecuritySettingsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListIntentsResponse.toObject = function toObject(message, options) { + ListSecuritySettingsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.intents = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.intents && message.intents.length) { - object.intents = []; - for (var j = 0; j < message.intents.length; ++j) - object.intents[j] = $root.google.cloud.dialogflow.cx.v3beta1.Intent.toObject(message.intents[j], options); + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; return object; }; /** - * Converts this ListIntentsResponse to JSON. + * Converts this ListSecuritySettingsRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest * @instance * @returns {Object.} JSON object */ - ListIntentsResponse.prototype.toJSON = function toJSON() { + ListSecuritySettingsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListIntentsResponse; + return ListSecuritySettingsRequest; })(); - v3beta1.GetIntentRequest = (function() { + v3.ListSecuritySettingsResponse = (function() { /** - * Properties of a GetIntentRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IGetIntentRequest - * @property {string|null} [name] GetIntentRequest name - * @property {string|null} [languageCode] GetIntentRequest languageCode + * Properties of a ListSecuritySettingsResponse. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface IListSecuritySettingsResponse + * @property {Array.|null} [securitySettings] ListSecuritySettingsResponse securitySettings + * @property {string|null} [nextPageToken] ListSecuritySettingsResponse nextPageToken */ /** - * Constructs a new GetIntentRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a GetIntentRequest. - * @implements IGetIntentRequest + * Constructs a new ListSecuritySettingsResponse. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a ListSecuritySettingsResponse. + * @implements IListSecuritySettingsResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IListSecuritySettingsResponse=} [properties] Properties to set */ - function GetIntentRequest(properties) { + function ListSecuritySettingsResponse(properties) { + this.securitySettings = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -20451,88 +22183,91 @@ } /** - * GetIntentRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.GetIntentRequest + * ListSecuritySettingsResponse securitySettings. + * @member {Array.} securitySettings + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse * @instance */ - GetIntentRequest.prototype.name = ""; + ListSecuritySettingsResponse.prototype.securitySettings = $util.emptyArray; /** - * GetIntentRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetIntentRequest + * ListSecuritySettingsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse * @instance */ - GetIntentRequest.prototype.languageCode = ""; + ListSecuritySettingsResponse.prototype.nextPageToken = ""; /** - * Creates a new GetIntentRequest instance using the specified properties. + * Creates a new ListSecuritySettingsResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.GetIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.GetIntentRequest} GetIntentRequest instance + * @param {google.cloud.dialogflow.cx.v3.IListSecuritySettingsResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse} ListSecuritySettingsResponse instance */ - GetIntentRequest.create = function create(properties) { - return new GetIntentRequest(properties); + ListSecuritySettingsResponse.create = function create(properties) { + return new ListSecuritySettingsResponse(properties); }; /** - * Encodes the specified GetIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetIntentRequest.verify|verify} messages. + * Encodes the specified ListSecuritySettingsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest} message GetIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListSecuritySettingsResponse} message ListSecuritySettingsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetIntentRequest.encode = function encode(message, writer) { + ListSecuritySettingsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); + if (message.securitySettings != null && message.securitySettings.length) + for (var i = 0; i < message.securitySettings.length; ++i) + $root.google.cloud.dialogflow.cx.v3.SecuritySettings.encode(message.securitySettings[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified GetIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetIntentRequest.verify|verify} messages. + * Encodes the specified ListSecuritySettingsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest} message GetIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListSecuritySettingsResponse} message ListSecuritySettingsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListSecuritySettingsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetIntentRequest message from the specified reader or buffer. + * Decodes a ListSecuritySettingsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.GetIntentRequest} GetIntentRequest + * @returns {google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse} ListSecuritySettingsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetIntentRequest.decode = function decode(reader, length) { + ListSecuritySettingsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.GetIntentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + if (!(message.securitySettings && message.securitySettings.length)) + message.securitySettings = []; + message.securitySettings.push($root.google.cloud.dialogflow.cx.v3.SecuritySettings.decode(reader, reader.uint32())); break; case 2: - message.languageCode = reader.string(); + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -20543,118 +22278,134 @@ }; /** - * Decodes a GetIntentRequest message from the specified reader or buffer, length delimited. + * Decodes a ListSecuritySettingsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.GetIntentRequest} GetIntentRequest + * @returns {google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse} ListSecuritySettingsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetIntentRequest.decodeDelimited = function decodeDelimited(reader) { + ListSecuritySettingsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetIntentRequest message. + * Verifies a ListSecuritySettingsResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.GetIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetIntentRequest.verify = function verify(message) { + ListSecuritySettingsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - if (!$util.isString(message.languageCode)) - return "languageCode: string expected"; + if (message.securitySettings != null && message.hasOwnProperty("securitySettings")) { + if (!Array.isArray(message.securitySettings)) + return "securitySettings: array expected"; + for (var i = 0; i < message.securitySettings.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.verify(message.securitySettings[i]); + if (error) + return "securitySettings." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a GetIntentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListSecuritySettingsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.GetIntentRequest} GetIntentRequest + * @returns {google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse} ListSecuritySettingsResponse */ - GetIntentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GetIntentRequest) + ListSecuritySettingsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.GetIntentRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.languageCode != null) - message.languageCode = String(object.languageCode); + var message = new $root.google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse(); + if (object.securitySettings) { + if (!Array.isArray(object.securitySettings)) + throw TypeError(".google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse.securitySettings: array expected"); + message.securitySettings = []; + for (var i = 0; i < object.securitySettings.length; ++i) { + if (typeof object.securitySettings[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse.securitySettings: object expected"); + message.securitySettings[i] = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.fromObject(object.securitySettings[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a GetIntentRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListSecuritySettingsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.GetIntentRequest} message GetIntentRequest + * @param {google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse} message ListSecuritySettingsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetIntentRequest.toObject = function toObject(message, options) { + ListSecuritySettingsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.name = ""; - object.languageCode = ""; + if (options.arrays || options.defaults) + object.securitySettings = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.securitySettings && message.securitySettings.length) { + object.securitySettings = []; + for (var j = 0; j < message.securitySettings.length; ++j) + object.securitySettings[j] = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.toObject(message.securitySettings[j], options); } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - object.languageCode = message.languageCode; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this GetIntentRequest to JSON. + * Converts this ListSecuritySettingsResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.GetIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse * @instance * @returns {Object.} JSON object */ - GetIntentRequest.prototype.toJSON = function toJSON() { + ListSecuritySettingsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetIntentRequest; + return ListSecuritySettingsResponse; })(); - v3beta1.CreateIntentRequest = (function() { + v3.CreateSecuritySettingsRequest = (function() { /** - * Properties of a CreateIntentRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface ICreateIntentRequest - * @property {string|null} [parent] CreateIntentRequest parent - * @property {google.cloud.dialogflow.cx.v3beta1.IIntent|null} [intent] CreateIntentRequest intent - * @property {string|null} [languageCode] CreateIntentRequest languageCode + * Properties of a CreateSecuritySettingsRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface ICreateSecuritySettingsRequest + * @property {string|null} [parent] CreateSecuritySettingsRequest parent + * @property {google.cloud.dialogflow.cx.v3.ISecuritySettings|null} [securitySettings] CreateSecuritySettingsRequest securitySettings */ /** - * Constructs a new CreateIntentRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a CreateIntentRequest. - * @implements ICreateIntentRequest + * Constructs a new CreateSecuritySettingsRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a CreateSecuritySettingsRequest. + * @implements ICreateSecuritySettingsRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ICreateSecuritySettingsRequest=} [properties] Properties to set */ - function CreateIntentRequest(properties) { + function CreateSecuritySettingsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -20662,90 +22413,80 @@ } /** - * CreateIntentRequest parent. + * CreateSecuritySettingsRequest parent. * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest - * @instance - */ - CreateIntentRequest.prototype.parent = ""; - - /** - * CreateIntentRequest intent. - * @member {google.cloud.dialogflow.cx.v3beta1.IIntent|null|undefined} intent - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest * @instance */ - CreateIntentRequest.prototype.intent = null; + CreateSecuritySettingsRequest.prototype.parent = ""; /** - * CreateIntentRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest + * CreateSecuritySettingsRequest securitySettings. + * @member {google.cloud.dialogflow.cx.v3.ISecuritySettings|null|undefined} securitySettings + * @memberof google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest * @instance */ - CreateIntentRequest.prototype.languageCode = ""; + CreateSecuritySettingsRequest.prototype.securitySettings = null; /** - * Creates a new CreateIntentRequest instance using the specified properties. + * Creates a new CreateSecuritySettingsRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest} CreateIntentRequest instance + * @param {google.cloud.dialogflow.cx.v3.ICreateSecuritySettingsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest} CreateSecuritySettingsRequest instance */ - CreateIntentRequest.create = function create(properties) { - return new CreateIntentRequest(properties); + CreateSecuritySettingsRequest.create = function create(properties) { + return new CreateSecuritySettingsRequest(properties); }; /** - * Encodes the specified CreateIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest.verify|verify} messages. + * Encodes the specified CreateSecuritySettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest} message CreateIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ICreateSecuritySettingsRequest} message CreateSecuritySettingsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateIntentRequest.encode = function encode(message, writer) { + CreateSecuritySettingsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.intent != null && Object.hasOwnProperty.call(message, "intent")) - $root.google.cloud.dialogflow.cx.v3beta1.Intent.encode(message.intent, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.languageCode); + if (message.securitySettings != null && Object.hasOwnProperty.call(message, "securitySettings")) + $root.google.cloud.dialogflow.cx.v3.SecuritySettings.encode(message.securitySettings, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified CreateIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest.verify|verify} messages. + * Encodes the specified CreateSecuritySettingsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest} message CreateIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ICreateSecuritySettingsRequest} message CreateSecuritySettingsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateSecuritySettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateIntentRequest message from the specified reader or buffer. + * Decodes a CreateSecuritySettingsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest} CreateIntentRequest + * @returns {google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest} CreateSecuritySettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateIntentRequest.decode = function decode(reader, length) { + CreateSecuritySettingsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -20753,10 +22494,7 @@ message.parent = reader.string(); break; case 2: - message.intent = $root.google.cloud.dialogflow.cx.v3beta1.Intent.decode(reader, reader.uint32()); - break; - case 3: - message.languageCode = reader.string(); + message.securitySettings = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -20767,131 +22505,121 @@ }; /** - * Decodes a CreateIntentRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateSecuritySettingsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest} CreateIntentRequest + * @returns {google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest} CreateSecuritySettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateIntentRequest.decodeDelimited = function decodeDelimited(reader) { + CreateSecuritySettingsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateIntentRequest message. + * Verifies a CreateSecuritySettingsRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateIntentRequest.verify = function verify(message) { + CreateSecuritySettingsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) if (!$util.isString(message.parent)) return "parent: string expected"; - if (message.intent != null && message.hasOwnProperty("intent")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Intent.verify(message.intent); + if (message.securitySettings != null && message.hasOwnProperty("securitySettings")) { + var error = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.verify(message.securitySettings); if (error) - return "intent." + error; + return "securitySettings." + error; } - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - if (!$util.isString(message.languageCode)) - return "languageCode: string expected"; return null; }; /** - * Creates a CreateIntentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateSecuritySettingsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest} CreateIntentRequest + * @returns {google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest} CreateSecuritySettingsRequest */ - CreateIntentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest) + CreateSecuritySettingsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest(); if (object.parent != null) message.parent = String(object.parent); - if (object.intent != null) { - if (typeof object.intent !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest.intent: object expected"); - message.intent = $root.google.cloud.dialogflow.cx.v3beta1.Intent.fromObject(object.intent); + if (object.securitySettings != null) { + if (typeof object.securitySettings !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest.securitySettings: object expected"); + message.securitySettings = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.fromObject(object.securitySettings); } - if (object.languageCode != null) - message.languageCode = String(object.languageCode); return message; }; /** - * Creates a plain object from a CreateIntentRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateSecuritySettingsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest} message CreateIntentRequest + * @param {google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest} message CreateSecuritySettingsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateIntentRequest.toObject = function toObject(message, options) { + CreateSecuritySettingsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; - object.intent = null; - object.languageCode = ""; + object.securitySettings = null; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; - if (message.intent != null && message.hasOwnProperty("intent")) - object.intent = $root.google.cloud.dialogflow.cx.v3beta1.Intent.toObject(message.intent, options); - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - object.languageCode = message.languageCode; + if (message.securitySettings != null && message.hasOwnProperty("securitySettings")) + object.securitySettings = $root.google.cloud.dialogflow.cx.v3.SecuritySettings.toObject(message.securitySettings, options); return object; }; /** - * Converts this CreateIntentRequest to JSON. + * Converts this CreateSecuritySettingsRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest * @instance * @returns {Object.} JSON object */ - CreateIntentRequest.prototype.toJSON = function toJSON() { + CreateSecuritySettingsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateIntentRequest; + return CreateSecuritySettingsRequest; })(); - - v3beta1.UpdateIntentRequest = (function() { - - /** - * Properties of an UpdateIntentRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IUpdateIntentRequest - * @property {google.cloud.dialogflow.cx.v3beta1.IIntent|null} [intent] UpdateIntentRequest intent - * @property {string|null} [languageCode] UpdateIntentRequest languageCode - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateIntentRequest updateMask + + v3.DeleteSecuritySettingsRequest = (function() { + + /** + * Properties of a DeleteSecuritySettingsRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface IDeleteSecuritySettingsRequest + * @property {string|null} [name] DeleteSecuritySettingsRequest name */ /** - * Constructs a new UpdateIntentRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an UpdateIntentRequest. - * @implements IUpdateIntentRequest + * Constructs a new DeleteSecuritySettingsRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a DeleteSecuritySettingsRequest. + * @implements IDeleteSecuritySettingsRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest=} [properties] Properties to set */ - function UpdateIntentRequest(properties) { + function DeleteSecuritySettingsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -20899,101 +22627,75 @@ } /** - * UpdateIntentRequest intent. - * @member {google.cloud.dialogflow.cx.v3beta1.IIntent|null|undefined} intent - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest - * @instance - */ - UpdateIntentRequest.prototype.intent = null; - - /** - * UpdateIntentRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest - * @instance - */ - UpdateIntentRequest.prototype.languageCode = ""; - - /** - * UpdateIntentRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest + * DeleteSecuritySettingsRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest * @instance */ - UpdateIntentRequest.prototype.updateMask = null; + DeleteSecuritySettingsRequest.prototype.name = ""; /** - * Creates a new UpdateIntentRequest instance using the specified properties. + * Creates a new DeleteSecuritySettingsRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest} UpdateIntentRequest instance + * @param {google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest} DeleteSecuritySettingsRequest instance */ - UpdateIntentRequest.create = function create(properties) { - return new UpdateIntentRequest(properties); + DeleteSecuritySettingsRequest.create = function create(properties) { + return new DeleteSecuritySettingsRequest(properties); }; /** - * Encodes the specified UpdateIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest.verify|verify} messages. + * Encodes the specified DeleteSecuritySettingsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest} message UpdateIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest} message DeleteSecuritySettingsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateIntentRequest.encode = function encode(message, writer) { + DeleteSecuritySettingsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.intent != null && Object.hasOwnProperty.call(message, "intent")) - $root.google.cloud.dialogflow.cx.v3beta1.Intent.encode(message.intent, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified UpdateIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest.verify|verify} messages. + * Encodes the specified DeleteSecuritySettingsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest} message UpdateIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest} message DeleteSecuritySettingsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteSecuritySettingsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateIntentRequest message from the specified reader or buffer. + * Decodes a DeleteSecuritySettingsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest} UpdateIntentRequest + * @returns {google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest} DeleteSecuritySettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateIntentRequest.decode = function decode(reader, length) { + DeleteSecuritySettingsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.intent = $root.google.cloud.dialogflow.cx.v3beta1.Intent.decode(reader, reader.uint32()); - break; - case 2: - message.languageCode = reader.string(); - break; - case 3: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -21004,134 +22706,114 @@ }; /** - * Decodes an UpdateIntentRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteSecuritySettingsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest} UpdateIntentRequest + * @returns {google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest} DeleteSecuritySettingsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateIntentRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteSecuritySettingsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateIntentRequest message. + * Verifies a DeleteSecuritySettingsRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateIntentRequest.verify = function verify(message) { + DeleteSecuritySettingsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.intent != null && message.hasOwnProperty("intent")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Intent.verify(message.intent); - if (error) - return "intent." + error; - } - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - if (!$util.isString(message.languageCode)) - return "languageCode: string expected"; - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates an UpdateIntentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteSecuritySettingsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest} UpdateIntentRequest + * @returns {google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest} DeleteSecuritySettingsRequest */ - UpdateIntentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest) + DeleteSecuritySettingsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest(); - if (object.intent != null) { - if (typeof object.intent !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest.intent: object expected"); - message.intent = $root.google.cloud.dialogflow.cx.v3beta1.Intent.fromObject(object.intent); - } - if (object.languageCode != null) - message.languageCode = String(object.languageCode); - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } + var message = new $root.google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from an UpdateIntentRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteSecuritySettingsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest} message UpdateIntentRequest + * @param {google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest} message DeleteSecuritySettingsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateIntentRequest.toObject = function toObject(message, options) { + DeleteSecuritySettingsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.intent = null; - object.languageCode = ""; - object.updateMask = null; - } - if (message.intent != null && message.hasOwnProperty("intent")) - object.intent = $root.google.cloud.dialogflow.cx.v3beta1.Intent.toObject(message.intent, options); - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - object.languageCode = message.languageCode; - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this UpdateIntentRequest to JSON. + * Converts this DeleteSecuritySettingsRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest * @instance * @returns {Object.} JSON object */ - UpdateIntentRequest.prototype.toJSON = function toJSON() { + DeleteSecuritySettingsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateIntentRequest; + return DeleteSecuritySettingsRequest; })(); - v3beta1.DeleteIntentRequest = (function() { + v3.SecuritySettings = (function() { /** - * Properties of a DeleteIntentRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IDeleteIntentRequest - * @property {string|null} [name] DeleteIntentRequest name + * Properties of a SecuritySettings. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface ISecuritySettings + * @property {string|null} [name] SecuritySettings name + * @property {string|null} [displayName] SecuritySettings displayName + * @property {google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy|null} [redactionStrategy] SecuritySettings redactionStrategy + * @property {google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope|null} [redactionScope] SecuritySettings redactionScope + * @property {string|null} [inspectTemplate] SecuritySettings inspectTemplate + * @property {number|null} [retentionWindowDays] SecuritySettings retentionWindowDays + * @property {Array.|null} [purgeDataTypes] SecuritySettings purgeDataTypes */ /** - * Constructs a new DeleteIntentRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a DeleteIntentRequest. - * @implements IDeleteIntentRequest + * Constructs a new SecuritySettings. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a SecuritySettings. + * @implements ISecuritySettings * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteIntentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ISecuritySettings=} [properties] Properties to set */ - function DeleteIntentRequest(properties) { + function SecuritySettings(properties) { + this.purgeDataTypes = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -21139,76 +22821,179 @@ } /** - * DeleteIntentRequest name. + * SecuritySettings name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings * @instance */ - DeleteIntentRequest.prototype.name = ""; + SecuritySettings.prototype.name = ""; /** - * Creates a new DeleteIntentRequest instance using the specified properties. + * SecuritySettings displayName. + * @member {string} displayName + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings + * @instance + */ + SecuritySettings.prototype.displayName = ""; + + /** + * SecuritySettings redactionStrategy. + * @member {google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy} redactionStrategy + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings + * @instance + */ + SecuritySettings.prototype.redactionStrategy = 0; + + /** + * SecuritySettings redactionScope. + * @member {google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope} redactionScope + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings + * @instance + */ + SecuritySettings.prototype.redactionScope = 0; + + /** + * SecuritySettings inspectTemplate. + * @member {string} inspectTemplate + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings + * @instance + */ + SecuritySettings.prototype.inspectTemplate = ""; + + /** + * SecuritySettings retentionWindowDays. + * @member {number} retentionWindowDays + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings + * @instance + */ + SecuritySettings.prototype.retentionWindowDays = 0; + + /** + * SecuritySettings purgeDataTypes. + * @member {Array.} purgeDataTypes + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings + * @instance + */ + SecuritySettings.prototype.purgeDataTypes = $util.emptyArray; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * SecuritySettings dataRetention. + * @member {"retentionWindowDays"|undefined} dataRetention + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings + * @instance + */ + Object.defineProperty(SecuritySettings.prototype, "dataRetention", { + get: $util.oneOfGetter($oneOfFields = ["retentionWindowDays"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new SecuritySettings instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteIntentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest} DeleteIntentRequest instance + * @param {google.cloud.dialogflow.cx.v3.ISecuritySettings=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.SecuritySettings} SecuritySettings instance */ - DeleteIntentRequest.create = function create(properties) { - return new DeleteIntentRequest(properties); + SecuritySettings.create = function create(properties) { + return new SecuritySettings(properties); }; /** - * Encodes the specified DeleteIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest.verify|verify} messages. + * Encodes the specified SecuritySettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SecuritySettings.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteIntentRequest} message DeleteIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ISecuritySettings} message SecuritySettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteIntentRequest.encode = function encode(message, writer) { + SecuritySettings.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.redactionStrategy != null && Object.hasOwnProperty.call(message, "redactionStrategy")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.redactionStrategy); + if (message.redactionScope != null && Object.hasOwnProperty.call(message, "redactionScope")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.redactionScope); + if (message.retentionWindowDays != null && Object.hasOwnProperty.call(message, "retentionWindowDays")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.retentionWindowDays); + if (message.purgeDataTypes != null && message.purgeDataTypes.length) { + writer.uint32(/* id 8, wireType 2 =*/66).fork(); + for (var i = 0; i < message.purgeDataTypes.length; ++i) + writer.int32(message.purgeDataTypes[i]); + writer.ldelim(); + } + if (message.inspectTemplate != null && Object.hasOwnProperty.call(message, "inspectTemplate")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.inspectTemplate); return writer; }; /** - * Encodes the specified DeleteIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest.verify|verify} messages. + * Encodes the specified SecuritySettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SecuritySettings.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteIntentRequest} message DeleteIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ISecuritySettings} message SecuritySettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteIntentRequest.encodeDelimited = function encodeDelimited(message, writer) { + SecuritySettings.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteIntentRequest message from the specified reader or buffer. + * Decodes a SecuritySettings message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest} DeleteIntentRequest + * @returns {google.cloud.dialogflow.cx.v3.SecuritySettings} SecuritySettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteIntentRequest.decode = function decode(reader, length) { + SecuritySettings.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.SecuritySettings(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: message.name = reader.string(); break; + case 2: + message.displayName = reader.string(); + break; + case 3: + message.redactionStrategy = reader.int32(); + break; + case 4: + message.redactionScope = reader.int32(); + break; + case 9: + message.inspectTemplate = reader.string(); + break; + case 6: + message.retentionWindowDays = reader.int32(); + break; + case 8: + if (!(message.purgeDataTypes && message.purgeDataTypes.length)) + message.purgeDataTypes = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.purgeDataTypes.push(reader.int32()); + } else + message.purgeDataTypes.push(reader.int32()); + break; default: reader.skipType(tag & 7); break; @@ -21218,110 +23003,244 @@ }; /** - * Decodes a DeleteIntentRequest message from the specified reader or buffer, length delimited. + * Decodes a SecuritySettings message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest} DeleteIntentRequest + * @returns {google.cloud.dialogflow.cx.v3.SecuritySettings} SecuritySettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteIntentRequest.decodeDelimited = function decodeDelimited(reader) { + SecuritySettings.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteIntentRequest message. + * Verifies a SecuritySettings message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteIntentRequest.verify = function verify(message) { + SecuritySettings.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + var properties = {}; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.redactionStrategy != null && message.hasOwnProperty("redactionStrategy")) + switch (message.redactionStrategy) { + default: + return "redactionStrategy: enum value expected"; + case 0: + case 1: + break; + } + if (message.redactionScope != null && message.hasOwnProperty("redactionScope")) + switch (message.redactionScope) { + default: + return "redactionScope: enum value expected"; + case 0: + case 2: + break; + } + if (message.inspectTemplate != null && message.hasOwnProperty("inspectTemplate")) + if (!$util.isString(message.inspectTemplate)) + return "inspectTemplate: string expected"; + if (message.retentionWindowDays != null && message.hasOwnProperty("retentionWindowDays")) { + properties.dataRetention = 1; + if (!$util.isInteger(message.retentionWindowDays)) + return "retentionWindowDays: integer expected"; + } + if (message.purgeDataTypes != null && message.hasOwnProperty("purgeDataTypes")) { + if (!Array.isArray(message.purgeDataTypes)) + return "purgeDataTypes: array expected"; + for (var i = 0; i < message.purgeDataTypes.length; ++i) + switch (message.purgeDataTypes[i]) { + default: + return "purgeDataTypes: enum value[] expected"; + case 0: + case 1: + break; + } + } return null; }; /** - * Creates a DeleteIntentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SecuritySettings message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest} DeleteIntentRequest + * @returns {google.cloud.dialogflow.cx.v3.SecuritySettings} SecuritySettings */ - DeleteIntentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest) + SecuritySettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.SecuritySettings) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.SecuritySettings(); if (object.name != null) message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + switch (object.redactionStrategy) { + case "REDACTION_STRATEGY_UNSPECIFIED": + case 0: + message.redactionStrategy = 0; + break; + case "REDACT_WITH_SERVICE": + case 1: + message.redactionStrategy = 1; + break; + } + switch (object.redactionScope) { + case "REDACTION_SCOPE_UNSPECIFIED": + case 0: + message.redactionScope = 0; + break; + case "REDACT_DISK_STORAGE": + case 2: + message.redactionScope = 2; + break; + } + if (object.inspectTemplate != null) + message.inspectTemplate = String(object.inspectTemplate); + if (object.retentionWindowDays != null) + message.retentionWindowDays = object.retentionWindowDays | 0; + if (object.purgeDataTypes) { + if (!Array.isArray(object.purgeDataTypes)) + throw TypeError(".google.cloud.dialogflow.cx.v3.SecuritySettings.purgeDataTypes: array expected"); + message.purgeDataTypes = []; + for (var i = 0; i < object.purgeDataTypes.length; ++i) + switch (object.purgeDataTypes[i]) { + default: + case "PURGE_DATA_TYPE_UNSPECIFIED": + case 0: + message.purgeDataTypes[i] = 0; + break; + case "DIALOGFLOW_HISTORY": + case 1: + message.purgeDataTypes[i] = 1; + break; + } + } return message; }; /** - * Creates a plain object from a DeleteIntentRequest message. Also converts values to other types if specified. + * Creates a plain object from a SecuritySettings message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings * @static - * @param {google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest} message DeleteIntentRequest + * @param {google.cloud.dialogflow.cx.v3.SecuritySettings} message SecuritySettings * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteIntentRequest.toObject = function toObject(message, options) { + SecuritySettings.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.arrays || options.defaults) + object.purgeDataTypes = []; + if (options.defaults) { object.name = ""; + object.displayName = ""; + object.redactionStrategy = options.enums === String ? "REDACTION_STRATEGY_UNSPECIFIED" : 0; + object.redactionScope = options.enums === String ? "REDACTION_SCOPE_UNSPECIFIED" : 0; + object.inspectTemplate = ""; + } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.redactionStrategy != null && message.hasOwnProperty("redactionStrategy")) + object.redactionStrategy = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy[message.redactionStrategy] : message.redactionStrategy; + if (message.redactionScope != null && message.hasOwnProperty("redactionScope")) + object.redactionScope = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope[message.redactionScope] : message.redactionScope; + if (message.retentionWindowDays != null && message.hasOwnProperty("retentionWindowDays")) { + object.retentionWindowDays = message.retentionWindowDays; + if (options.oneofs) + object.dataRetention = "retentionWindowDays"; + } + if (message.purgeDataTypes && message.purgeDataTypes.length) { + object.purgeDataTypes = []; + for (var j = 0; j < message.purgeDataTypes.length; ++j) + object.purgeDataTypes[j] = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.SecuritySettings.PurgeDataType[message.purgeDataTypes[j]] : message.purgeDataTypes[j]; + } + if (message.inspectTemplate != null && message.hasOwnProperty("inspectTemplate")) + object.inspectTemplate = message.inspectTemplate; return object; }; /** - * Converts this DeleteIntentRequest to JSON. + * Converts this SecuritySettings to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.SecuritySettings * @instance * @returns {Object.} JSON object */ - DeleteIntentRequest.prototype.toJSON = function toJSON() { + SecuritySettings.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteIntentRequest; - })(); + /** + * RedactionStrategy enum. + * @name google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy + * @enum {number} + * @property {number} REDACTION_STRATEGY_UNSPECIFIED=0 REDACTION_STRATEGY_UNSPECIFIED value + * @property {number} REDACT_WITH_SERVICE=1 REDACT_WITH_SERVICE value + */ + SecuritySettings.RedactionStrategy = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "REDACTION_STRATEGY_UNSPECIFIED"] = 0; + values[valuesById[1] = "REDACT_WITH_SERVICE"] = 1; + return values; + })(); - /** - * IntentView enum. - * @name google.cloud.dialogflow.cx.v3beta1.IntentView - * @enum {number} - * @property {number} INTENT_VIEW_UNSPECIFIED=0 INTENT_VIEW_UNSPECIFIED value - * @property {number} INTENT_VIEW_PARTIAL=1 INTENT_VIEW_PARTIAL value - * @property {number} INTENT_VIEW_FULL=2 INTENT_VIEW_FULL value - */ - v3beta1.IntentView = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "INTENT_VIEW_UNSPECIFIED"] = 0; - values[valuesById[1] = "INTENT_VIEW_PARTIAL"] = 1; - values[valuesById[2] = "INTENT_VIEW_FULL"] = 2; - return values; + /** + * RedactionScope enum. + * @name google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope + * @enum {number} + * @property {number} REDACTION_SCOPE_UNSPECIFIED=0 REDACTION_SCOPE_UNSPECIFIED value + * @property {number} REDACT_DISK_STORAGE=2 REDACT_DISK_STORAGE value + */ + SecuritySettings.RedactionScope = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "REDACTION_SCOPE_UNSPECIFIED"] = 0; + values[valuesById[2] = "REDACT_DISK_STORAGE"] = 2; + return values; + })(); + + /** + * PurgeDataType enum. + * @name google.cloud.dialogflow.cx.v3.SecuritySettings.PurgeDataType + * @enum {number} + * @property {number} PURGE_DATA_TYPE_UNSPECIFIED=0 PURGE_DATA_TYPE_UNSPECIFIED value + * @property {number} DIALOGFLOW_HISTORY=1 DIALOGFLOW_HISTORY value + */ + SecuritySettings.PurgeDataType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "PURGE_DATA_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "DIALOGFLOW_HISTORY"] = 1; + return values; + })(); + + return SecuritySettings; })(); - v3beta1.Sessions = (function() { + v3.Sessions = (function() { /** * Constructs a new Sessions service. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a Sessions * @extends $protobuf.rpc.Service * @constructor @@ -21338,7 +23257,7 @@ /** * Creates new Sessions service using the specified rpc implementation. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Sessions + * @memberof google.cloud.dialogflow.cx.v3.Sessions * @static * @param {$protobuf.RPCImpl} rpcImpl RPC implementation * @param {boolean} [requestDelimited=false] Whether requests are length-delimited @@ -21350,159 +23269,159 @@ }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Sessions#detectIntent}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Sessions + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Sessions#detectIntent}. + * @memberof google.cloud.dialogflow.cx.v3.Sessions * @typedef DetectIntentCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse} [response] DetectIntentResponse + * @param {google.cloud.dialogflow.cx.v3.DetectIntentResponse} [response] DetectIntentResponse */ /** * Calls DetectIntent. * @function detectIntent - * @memberof google.cloud.dialogflow.cx.v3beta1.Sessions + * @memberof google.cloud.dialogflow.cx.v3.Sessions * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IDetectIntentRequest} request DetectIntentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Sessions.DetectIntentCallback} callback Node-style callback called with the error, if any, and DetectIntentResponse + * @param {google.cloud.dialogflow.cx.v3.IDetectIntentRequest} request DetectIntentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Sessions.DetectIntentCallback} callback Node-style callback called with the error, if any, and DetectIntentResponse * @returns {undefined} * @variation 1 */ Object.defineProperty(Sessions.prototype.detectIntent = function detectIntent(request, callback) { - return this.rpcCall(detectIntent, $root.google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest, $root.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse, request, callback); + return this.rpcCall(detectIntent, $root.google.cloud.dialogflow.cx.v3.DetectIntentRequest, $root.google.cloud.dialogflow.cx.v3.DetectIntentResponse, request, callback); }, "name", { value: "DetectIntent" }); /** * Calls DetectIntent. * @function detectIntent - * @memberof google.cloud.dialogflow.cx.v3beta1.Sessions + * @memberof google.cloud.dialogflow.cx.v3.Sessions * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IDetectIntentRequest} request DetectIntentRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3.IDetectIntentRequest} request DetectIntentRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Sessions#streamingDetectIntent}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Sessions + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Sessions#streamingDetectIntent}. + * @memberof google.cloud.dialogflow.cx.v3.Sessions * @typedef StreamingDetectIntentCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse} [response] StreamingDetectIntentResponse + * @param {google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse} [response] StreamingDetectIntentResponse */ /** * Calls StreamingDetectIntent. * @function streamingDetectIntent - * @memberof google.cloud.dialogflow.cx.v3beta1.Sessions + * @memberof google.cloud.dialogflow.cx.v3.Sessions * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentRequest} request StreamingDetectIntentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Sessions.StreamingDetectIntentCallback} callback Node-style callback called with the error, if any, and StreamingDetectIntentResponse + * @param {google.cloud.dialogflow.cx.v3.IStreamingDetectIntentRequest} request StreamingDetectIntentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntentCallback} callback Node-style callback called with the error, if any, and StreamingDetectIntentResponse * @returns {undefined} * @variation 1 */ Object.defineProperty(Sessions.prototype.streamingDetectIntent = function streamingDetectIntent(request, callback) { - return this.rpcCall(streamingDetectIntent, $root.google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest, $root.google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse, request, callback); + return this.rpcCall(streamingDetectIntent, $root.google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest, $root.google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse, request, callback); }, "name", { value: "StreamingDetectIntent" }); /** * Calls StreamingDetectIntent. * @function streamingDetectIntent - * @memberof google.cloud.dialogflow.cx.v3beta1.Sessions + * @memberof google.cloud.dialogflow.cx.v3.Sessions * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentRequest} request StreamingDetectIntentRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3.IStreamingDetectIntentRequest} request StreamingDetectIntentRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Sessions#matchIntent}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Sessions + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Sessions#matchIntent}. + * @memberof google.cloud.dialogflow.cx.v3.Sessions * @typedef MatchIntentCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse} [response] MatchIntentResponse + * @param {google.cloud.dialogflow.cx.v3.MatchIntentResponse} [response] MatchIntentResponse */ /** * Calls MatchIntent. * @function matchIntent - * @memberof google.cloud.dialogflow.cx.v3beta1.Sessions + * @memberof google.cloud.dialogflow.cx.v3.Sessions * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest} request MatchIntentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Sessions.MatchIntentCallback} callback Node-style callback called with the error, if any, and MatchIntentResponse + * @param {google.cloud.dialogflow.cx.v3.IMatchIntentRequest} request MatchIntentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Sessions.MatchIntentCallback} callback Node-style callback called with the error, if any, and MatchIntentResponse * @returns {undefined} * @variation 1 */ Object.defineProperty(Sessions.prototype.matchIntent = function matchIntent(request, callback) { - return this.rpcCall(matchIntent, $root.google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest, $root.google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse, request, callback); + return this.rpcCall(matchIntent, $root.google.cloud.dialogflow.cx.v3.MatchIntentRequest, $root.google.cloud.dialogflow.cx.v3.MatchIntentResponse, request, callback); }, "name", { value: "MatchIntent" }); /** * Calls MatchIntent. * @function matchIntent - * @memberof google.cloud.dialogflow.cx.v3beta1.Sessions + * @memberof google.cloud.dialogflow.cx.v3.Sessions * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest} request MatchIntentRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3.IMatchIntentRequest} request MatchIntentRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Sessions#fulfillIntent}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Sessions + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Sessions#fulfillIntent}. + * @memberof google.cloud.dialogflow.cx.v3.Sessions * @typedef FulfillIntentCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse} [response] FulfillIntentResponse + * @param {google.cloud.dialogflow.cx.v3.FulfillIntentResponse} [response] FulfillIntentResponse */ /** * Calls FulfillIntent. * @function fulfillIntent - * @memberof google.cloud.dialogflow.cx.v3beta1.Sessions + * @memberof google.cloud.dialogflow.cx.v3.Sessions * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IFulfillIntentRequest} request FulfillIntentRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Sessions.FulfillIntentCallback} callback Node-style callback called with the error, if any, and FulfillIntentResponse + * @param {google.cloud.dialogflow.cx.v3.IFulfillIntentRequest} request FulfillIntentRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Sessions.FulfillIntentCallback} callback Node-style callback called with the error, if any, and FulfillIntentResponse * @returns {undefined} * @variation 1 */ Object.defineProperty(Sessions.prototype.fulfillIntent = function fulfillIntent(request, callback) { - return this.rpcCall(fulfillIntent, $root.google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest, $root.google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse, request, callback); + return this.rpcCall(fulfillIntent, $root.google.cloud.dialogflow.cx.v3.FulfillIntentRequest, $root.google.cloud.dialogflow.cx.v3.FulfillIntentResponse, request, callback); }, "name", { value: "FulfillIntent" }); /** * Calls FulfillIntent. * @function fulfillIntent - * @memberof google.cloud.dialogflow.cx.v3beta1.Sessions + * @memberof google.cloud.dialogflow.cx.v3.Sessions * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IFulfillIntentRequest} request FulfillIntentRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3.IFulfillIntentRequest} request FulfillIntentRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ return Sessions; })(); - v3beta1.DetectIntentRequest = (function() { + v3.DetectIntentRequest = (function() { /** * Properties of a DetectIntentRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface IDetectIntentRequest * @property {string|null} [session] DetectIntentRequest session - * @property {google.cloud.dialogflow.cx.v3beta1.IQueryParameters|null} [queryParams] DetectIntentRequest queryParams - * @property {google.cloud.dialogflow.cx.v3beta1.IQueryInput|null} [queryInput] DetectIntentRequest queryInput - * @property {google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null} [outputAudioConfig] DetectIntentRequest outputAudioConfig + * @property {google.cloud.dialogflow.cx.v3.IQueryParameters|null} [queryParams] DetectIntentRequest queryParams + * @property {google.cloud.dialogflow.cx.v3.IQueryInput|null} [queryInput] DetectIntentRequest queryInput + * @property {google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null} [outputAudioConfig] DetectIntentRequest outputAudioConfig */ /** * Constructs a new DetectIntentRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a DetectIntentRequest. * @implements IDetectIntentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IDetectIntentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IDetectIntentRequest=} [properties] Properties to set */ function DetectIntentRequest(properties) { if (properties) @@ -21514,31 +23433,31 @@ /** * DetectIntentRequest session. * @member {string} session - * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest * @instance */ DetectIntentRequest.prototype.session = ""; /** * DetectIntentRequest queryParams. - * @member {google.cloud.dialogflow.cx.v3beta1.IQueryParameters|null|undefined} queryParams - * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest + * @member {google.cloud.dialogflow.cx.v3.IQueryParameters|null|undefined} queryParams + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest * @instance */ DetectIntentRequest.prototype.queryParams = null; /** * DetectIntentRequest queryInput. - * @member {google.cloud.dialogflow.cx.v3beta1.IQueryInput|null|undefined} queryInput - * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest + * @member {google.cloud.dialogflow.cx.v3.IQueryInput|null|undefined} queryInput + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest * @instance */ DetectIntentRequest.prototype.queryInput = null; /** * DetectIntentRequest outputAudioConfig. - * @member {google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null|undefined} outputAudioConfig - * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest + * @member {google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null|undefined} outputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest * @instance */ DetectIntentRequest.prototype.outputAudioConfig = null; @@ -21546,21 +23465,21 @@ /** * Creates a new DetectIntentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDetectIntentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest} DetectIntentRequest instance + * @param {google.cloud.dialogflow.cx.v3.IDetectIntentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.DetectIntentRequest} DetectIntentRequest instance */ DetectIntentRequest.create = function create(properties) { return new DetectIntentRequest(properties); }; /** - * Encodes the specified DetectIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest.verify|verify} messages. + * Encodes the specified DetectIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DetectIntentRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDetectIntentRequest} message DetectIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IDetectIntentRequest} message DetectIntentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -21570,20 +23489,20 @@ if (message.session != null && Object.hasOwnProperty.call(message, "session")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.session); if (message.queryParams != null && Object.hasOwnProperty.call(message, "queryParams")) - $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters.encode(message.queryParams, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.QueryParameters.encode(message.queryParams, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.queryInput != null && Object.hasOwnProperty.call(message, "queryInput")) - $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.encode(message.queryInput, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.QueryInput.encode(message.queryInput, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.outputAudioConfig != null && Object.hasOwnProperty.call(message, "outputAudioConfig")) - $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.encode(message.outputAudioConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.encode(message.outputAudioConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified DetectIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest.verify|verify} messages. + * Encodes the specified DetectIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DetectIntentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDetectIntentRequest} message DetectIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IDetectIntentRequest} message DetectIntentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -21594,18 +23513,18 @@ /** * Decodes a DetectIntentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest} DetectIntentRequest + * @returns {google.cloud.dialogflow.cx.v3.DetectIntentRequest} DetectIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ DetectIntentRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.DetectIntentRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -21613,13 +23532,13 @@ message.session = reader.string(); break; case 2: - message.queryParams = $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters.decode(reader, reader.uint32()); + message.queryParams = $root.google.cloud.dialogflow.cx.v3.QueryParameters.decode(reader, reader.uint32()); break; case 3: - message.queryInput = $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.decode(reader, reader.uint32()); + message.queryInput = $root.google.cloud.dialogflow.cx.v3.QueryInput.decode(reader, reader.uint32()); break; case 4: - message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.decode(reader, reader.uint32()); + message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -21632,10 +23551,10 @@ /** * Decodes a DetectIntentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest} DetectIntentRequest + * @returns {google.cloud.dialogflow.cx.v3.DetectIntentRequest} DetectIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -21648,7 +23567,7 @@ /** * Verifies a DetectIntentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -21660,17 +23579,17 @@ if (!$util.isString(message.session)) return "session: string expected"; if (message.queryParams != null && message.hasOwnProperty("queryParams")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters.verify(message.queryParams); + var error = $root.google.cloud.dialogflow.cx.v3.QueryParameters.verify(message.queryParams); if (error) return "queryParams." + error; } if (message.queryInput != null && message.hasOwnProperty("queryInput")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.verify(message.queryInput); + var error = $root.google.cloud.dialogflow.cx.v3.QueryInput.verify(message.queryInput); if (error) return "queryInput." + error; } if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.verify(message.outputAudioConfig); + var error = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.verify(message.outputAudioConfig); if (error) return "outputAudioConfig." + error; } @@ -21680,31 +23599,31 @@ /** * Creates a DetectIntentRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest} DetectIntentRequest + * @returns {google.cloud.dialogflow.cx.v3.DetectIntentRequest} DetectIntentRequest */ DetectIntentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.DetectIntentRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.DetectIntentRequest(); if (object.session != null) message.session = String(object.session); if (object.queryParams != null) { if (typeof object.queryParams !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest.queryParams: object expected"); - message.queryParams = $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters.fromObject(object.queryParams); + throw TypeError(".google.cloud.dialogflow.cx.v3.DetectIntentRequest.queryParams: object expected"); + message.queryParams = $root.google.cloud.dialogflow.cx.v3.QueryParameters.fromObject(object.queryParams); } if (object.queryInput != null) { if (typeof object.queryInput !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest.queryInput: object expected"); - message.queryInput = $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.fromObject(object.queryInput); + throw TypeError(".google.cloud.dialogflow.cx.v3.DetectIntentRequest.queryInput: object expected"); + message.queryInput = $root.google.cloud.dialogflow.cx.v3.QueryInput.fromObject(object.queryInput); } if (object.outputAudioConfig != null) { if (typeof object.outputAudioConfig !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest.outputAudioConfig: object expected"); - message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.fromObject(object.outputAudioConfig); + throw TypeError(".google.cloud.dialogflow.cx.v3.DetectIntentRequest.outputAudioConfig: object expected"); + message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.fromObject(object.outputAudioConfig); } return message; }; @@ -21712,9 +23631,9 @@ /** * Creates a plain object from a DetectIntentRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest} message DetectIntentRequest + * @param {google.cloud.dialogflow.cx.v3.DetectIntentRequest} message DetectIntentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -21731,18 +23650,18 @@ if (message.session != null && message.hasOwnProperty("session")) object.session = message.session; if (message.queryParams != null && message.hasOwnProperty("queryParams")) - object.queryParams = $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters.toObject(message.queryParams, options); + object.queryParams = $root.google.cloud.dialogflow.cx.v3.QueryParameters.toObject(message.queryParams, options); if (message.queryInput != null && message.hasOwnProperty("queryInput")) - object.queryInput = $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.toObject(message.queryInput, options); + object.queryInput = $root.google.cloud.dialogflow.cx.v3.QueryInput.toObject(message.queryInput, options); if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) - object.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.toObject(message.outputAudioConfig, options); + object.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.toObject(message.outputAudioConfig, options); return object; }; /** * Converts this DetectIntentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentRequest * @instance * @returns {Object.} JSON object */ @@ -21753,25 +23672,25 @@ return DetectIntentRequest; })(); - v3beta1.DetectIntentResponse = (function() { + v3.DetectIntentResponse = (function() { /** * Properties of a DetectIntentResponse. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface IDetectIntentResponse * @property {string|null} [responseId] DetectIntentResponse responseId - * @property {google.cloud.dialogflow.cx.v3beta1.IQueryResult|null} [queryResult] DetectIntentResponse queryResult + * @property {google.cloud.dialogflow.cx.v3.IQueryResult|null} [queryResult] DetectIntentResponse queryResult * @property {Uint8Array|null} [outputAudio] DetectIntentResponse outputAudio - * @property {google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null} [outputAudioConfig] DetectIntentResponse outputAudioConfig + * @property {google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null} [outputAudioConfig] DetectIntentResponse outputAudioConfig */ /** * Constructs a new DetectIntentResponse. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a DetectIntentResponse. * @implements IDetectIntentResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IDetectIntentResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IDetectIntentResponse=} [properties] Properties to set */ function DetectIntentResponse(properties) { if (properties) @@ -21783,15 +23702,15 @@ /** * DetectIntentResponse responseId. * @member {string} responseId - * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse * @instance */ DetectIntentResponse.prototype.responseId = ""; /** * DetectIntentResponse queryResult. - * @member {google.cloud.dialogflow.cx.v3beta1.IQueryResult|null|undefined} queryResult - * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse + * @member {google.cloud.dialogflow.cx.v3.IQueryResult|null|undefined} queryResult + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse * @instance */ DetectIntentResponse.prototype.queryResult = null; @@ -21799,15 +23718,15 @@ /** * DetectIntentResponse outputAudio. * @member {Uint8Array} outputAudio - * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse * @instance */ DetectIntentResponse.prototype.outputAudio = $util.newBuffer([]); /** * DetectIntentResponse outputAudioConfig. - * @member {google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null|undefined} outputAudioConfig - * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse + * @member {google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null|undefined} outputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse * @instance */ DetectIntentResponse.prototype.outputAudioConfig = null; @@ -21815,21 +23734,21 @@ /** * Creates a new DetectIntentResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDetectIntentResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse} DetectIntentResponse instance + * @param {google.cloud.dialogflow.cx.v3.IDetectIntentResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.DetectIntentResponse} DetectIntentResponse instance */ DetectIntentResponse.create = function create(properties) { return new DetectIntentResponse(properties); }; /** - * Encodes the specified DetectIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.verify|verify} messages. + * Encodes the specified DetectIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DetectIntentResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDetectIntentResponse} message DetectIntentResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IDetectIntentResponse} message DetectIntentResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -21839,20 +23758,20 @@ if (message.responseId != null && Object.hasOwnProperty.call(message, "responseId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.responseId); if (message.queryResult != null && Object.hasOwnProperty.call(message, "queryResult")) - $root.google.cloud.dialogflow.cx.v3beta1.QueryResult.encode(message.queryResult, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.QueryResult.encode(message.queryResult, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.outputAudio != null && Object.hasOwnProperty.call(message, "outputAudio")) writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.outputAudio); if (message.outputAudioConfig != null && Object.hasOwnProperty.call(message, "outputAudioConfig")) - $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.encode(message.outputAudioConfig, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.encode(message.outputAudioConfig, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified DetectIntentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.verify|verify} messages. + * Encodes the specified DetectIntentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DetectIntentResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDetectIntentResponse} message DetectIntentResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IDetectIntentResponse} message DetectIntentResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -21863,18 +23782,18 @@ /** * Decodes a DetectIntentResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse} DetectIntentResponse + * @returns {google.cloud.dialogflow.cx.v3.DetectIntentResponse} DetectIntentResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ DetectIntentResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.DetectIntentResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -21882,13 +23801,13 @@ message.responseId = reader.string(); break; case 2: - message.queryResult = $root.google.cloud.dialogflow.cx.v3beta1.QueryResult.decode(reader, reader.uint32()); + message.queryResult = $root.google.cloud.dialogflow.cx.v3.QueryResult.decode(reader, reader.uint32()); break; case 4: message.outputAudio = reader.bytes(); break; case 5: - message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.decode(reader, reader.uint32()); + message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -21901,10 +23820,10 @@ /** * Decodes a DetectIntentResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse} DetectIntentResponse + * @returns {google.cloud.dialogflow.cx.v3.DetectIntentResponse} DetectIntentResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -21917,7 +23836,7 @@ /** * Verifies a DetectIntentResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -21929,7 +23848,7 @@ if (!$util.isString(message.responseId)) return "responseId: string expected"; if (message.queryResult != null && message.hasOwnProperty("queryResult")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.QueryResult.verify(message.queryResult); + var error = $root.google.cloud.dialogflow.cx.v3.QueryResult.verify(message.queryResult); if (error) return "queryResult." + error; } @@ -21937,7 +23856,7 @@ if (!(message.outputAudio && typeof message.outputAudio.length === "number" || $util.isString(message.outputAudio))) return "outputAudio: buffer expected"; if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.verify(message.outputAudioConfig); + var error = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.verify(message.outputAudioConfig); if (error) return "outputAudioConfig." + error; } @@ -21947,21 +23866,21 @@ /** * Creates a DetectIntentResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse} DetectIntentResponse + * @returns {google.cloud.dialogflow.cx.v3.DetectIntentResponse} DetectIntentResponse */ DetectIntentResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.DetectIntentResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse(); + var message = new $root.google.cloud.dialogflow.cx.v3.DetectIntentResponse(); if (object.responseId != null) message.responseId = String(object.responseId); if (object.queryResult != null) { if (typeof object.queryResult !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.queryResult: object expected"); - message.queryResult = $root.google.cloud.dialogflow.cx.v3beta1.QueryResult.fromObject(object.queryResult); + throw TypeError(".google.cloud.dialogflow.cx.v3.DetectIntentResponse.queryResult: object expected"); + message.queryResult = $root.google.cloud.dialogflow.cx.v3.QueryResult.fromObject(object.queryResult); } if (object.outputAudio != null) if (typeof object.outputAudio === "string") @@ -21970,8 +23889,8 @@ message.outputAudio = object.outputAudio; if (object.outputAudioConfig != null) { if (typeof object.outputAudioConfig !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.outputAudioConfig: object expected"); - message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.fromObject(object.outputAudioConfig); + throw TypeError(".google.cloud.dialogflow.cx.v3.DetectIntentResponse.outputAudioConfig: object expected"); + message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.fromObject(object.outputAudioConfig); } return message; }; @@ -21979,9 +23898,9 @@ /** * Creates a plain object from a DetectIntentResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse} message DetectIntentResponse + * @param {google.cloud.dialogflow.cx.v3.DetectIntentResponse} message DetectIntentResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -22004,18 +23923,18 @@ if (message.responseId != null && message.hasOwnProperty("responseId")) object.responseId = message.responseId; if (message.queryResult != null && message.hasOwnProperty("queryResult")) - object.queryResult = $root.google.cloud.dialogflow.cx.v3beta1.QueryResult.toObject(message.queryResult, options); + object.queryResult = $root.google.cloud.dialogflow.cx.v3.QueryResult.toObject(message.queryResult, options); if (message.outputAudio != null && message.hasOwnProperty("outputAudio")) object.outputAudio = options.bytes === String ? $util.base64.encode(message.outputAudio, 0, message.outputAudio.length) : options.bytes === Array ? Array.prototype.slice.call(message.outputAudio) : message.outputAudio; if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) - object.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.toObject(message.outputAudioConfig, options); + object.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.toObject(message.outputAudioConfig, options); return object; }; /** * Converts this DetectIntentResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.DetectIntentResponse * @instance * @returns {Object.} JSON object */ @@ -22026,25 +23945,25 @@ return DetectIntentResponse; })(); - v3beta1.StreamingDetectIntentRequest = (function() { + v3.StreamingDetectIntentRequest = (function() { /** * Properties of a StreamingDetectIntentRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface IStreamingDetectIntentRequest * @property {string|null} [session] StreamingDetectIntentRequest session - * @property {google.cloud.dialogflow.cx.v3beta1.IQueryParameters|null} [queryParams] StreamingDetectIntentRequest queryParams - * @property {google.cloud.dialogflow.cx.v3beta1.IQueryInput|null} [queryInput] StreamingDetectIntentRequest queryInput - * @property {google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null} [outputAudioConfig] StreamingDetectIntentRequest outputAudioConfig + * @property {google.cloud.dialogflow.cx.v3.IQueryParameters|null} [queryParams] StreamingDetectIntentRequest queryParams + * @property {google.cloud.dialogflow.cx.v3.IQueryInput|null} [queryInput] StreamingDetectIntentRequest queryInput + * @property {google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null} [outputAudioConfig] StreamingDetectIntentRequest outputAudioConfig */ /** * Constructs a new StreamingDetectIntentRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a StreamingDetectIntentRequest. * @implements IStreamingDetectIntentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IStreamingDetectIntentRequest=} [properties] Properties to set */ function StreamingDetectIntentRequest(properties) { if (properties) @@ -22056,31 +23975,31 @@ /** * StreamingDetectIntentRequest session. * @member {string} session - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest * @instance */ StreamingDetectIntentRequest.prototype.session = ""; /** * StreamingDetectIntentRequest queryParams. - * @member {google.cloud.dialogflow.cx.v3beta1.IQueryParameters|null|undefined} queryParams - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest + * @member {google.cloud.dialogflow.cx.v3.IQueryParameters|null|undefined} queryParams + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest * @instance */ StreamingDetectIntentRequest.prototype.queryParams = null; /** * StreamingDetectIntentRequest queryInput. - * @member {google.cloud.dialogflow.cx.v3beta1.IQueryInput|null|undefined} queryInput - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest + * @member {google.cloud.dialogflow.cx.v3.IQueryInput|null|undefined} queryInput + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest * @instance */ StreamingDetectIntentRequest.prototype.queryInput = null; /** * StreamingDetectIntentRequest outputAudioConfig. - * @member {google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null|undefined} outputAudioConfig - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest + * @member {google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null|undefined} outputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest * @instance */ StreamingDetectIntentRequest.prototype.outputAudioConfig = null; @@ -22088,21 +24007,21 @@ /** * Creates a new StreamingDetectIntentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest} StreamingDetectIntentRequest instance + * @param {google.cloud.dialogflow.cx.v3.IStreamingDetectIntentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest} StreamingDetectIntentRequest instance */ StreamingDetectIntentRequest.create = function create(properties) { return new StreamingDetectIntentRequest(properties); }; /** - * Encodes the specified StreamingDetectIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest.verify|verify} messages. + * Encodes the specified StreamingDetectIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentRequest} message StreamingDetectIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IStreamingDetectIntentRequest} message StreamingDetectIntentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -22112,20 +24031,20 @@ if (message.session != null && Object.hasOwnProperty.call(message, "session")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.session); if (message.queryParams != null && Object.hasOwnProperty.call(message, "queryParams")) - $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters.encode(message.queryParams, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.QueryParameters.encode(message.queryParams, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.queryInput != null && Object.hasOwnProperty.call(message, "queryInput")) - $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.encode(message.queryInput, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.QueryInput.encode(message.queryInput, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.outputAudioConfig != null && Object.hasOwnProperty.call(message, "outputAudioConfig")) - $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.encode(message.outputAudioConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.encode(message.outputAudioConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified StreamingDetectIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest.verify|verify} messages. + * Encodes the specified StreamingDetectIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentRequest} message StreamingDetectIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IStreamingDetectIntentRequest} message StreamingDetectIntentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -22136,18 +24055,18 @@ /** * Decodes a StreamingDetectIntentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest} StreamingDetectIntentRequest + * @returns {google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest} StreamingDetectIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ StreamingDetectIntentRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -22155,13 +24074,13 @@ message.session = reader.string(); break; case 2: - message.queryParams = $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters.decode(reader, reader.uint32()); + message.queryParams = $root.google.cloud.dialogflow.cx.v3.QueryParameters.decode(reader, reader.uint32()); break; case 3: - message.queryInput = $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.decode(reader, reader.uint32()); + message.queryInput = $root.google.cloud.dialogflow.cx.v3.QueryInput.decode(reader, reader.uint32()); break; case 4: - message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.decode(reader, reader.uint32()); + message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -22174,10 +24093,10 @@ /** * Decodes a StreamingDetectIntentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest} StreamingDetectIntentRequest + * @returns {google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest} StreamingDetectIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -22190,7 +24109,7 @@ /** * Verifies a StreamingDetectIntentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -22202,17 +24121,17 @@ if (!$util.isString(message.session)) return "session: string expected"; if (message.queryParams != null && message.hasOwnProperty("queryParams")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters.verify(message.queryParams); + var error = $root.google.cloud.dialogflow.cx.v3.QueryParameters.verify(message.queryParams); if (error) return "queryParams." + error; } if (message.queryInput != null && message.hasOwnProperty("queryInput")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.verify(message.queryInput); + var error = $root.google.cloud.dialogflow.cx.v3.QueryInput.verify(message.queryInput); if (error) return "queryInput." + error; } if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.verify(message.outputAudioConfig); + var error = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.verify(message.outputAudioConfig); if (error) return "outputAudioConfig." + error; } @@ -22222,31 +24141,31 @@ /** * Creates a StreamingDetectIntentRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest} StreamingDetectIntentRequest + * @returns {google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest} StreamingDetectIntentRequest */ StreamingDetectIntentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest(); if (object.session != null) message.session = String(object.session); if (object.queryParams != null) { if (typeof object.queryParams !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest.queryParams: object expected"); - message.queryParams = $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters.fromObject(object.queryParams); + throw TypeError(".google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.queryParams: object expected"); + message.queryParams = $root.google.cloud.dialogflow.cx.v3.QueryParameters.fromObject(object.queryParams); } if (object.queryInput != null) { if (typeof object.queryInput !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest.queryInput: object expected"); - message.queryInput = $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.fromObject(object.queryInput); + throw TypeError(".google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.queryInput: object expected"); + message.queryInput = $root.google.cloud.dialogflow.cx.v3.QueryInput.fromObject(object.queryInput); } if (object.outputAudioConfig != null) { if (typeof object.outputAudioConfig !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest.outputAudioConfig: object expected"); - message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.fromObject(object.outputAudioConfig); + throw TypeError(".google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.outputAudioConfig: object expected"); + message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.fromObject(object.outputAudioConfig); } return message; }; @@ -22254,9 +24173,9 @@ /** * Creates a plain object from a StreamingDetectIntentRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest} message StreamingDetectIntentRequest + * @param {google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest} message StreamingDetectIntentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -22273,18 +24192,18 @@ if (message.session != null && message.hasOwnProperty("session")) object.session = message.session; if (message.queryParams != null && message.hasOwnProperty("queryParams")) - object.queryParams = $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters.toObject(message.queryParams, options); + object.queryParams = $root.google.cloud.dialogflow.cx.v3.QueryParameters.toObject(message.queryParams, options); if (message.queryInput != null && message.hasOwnProperty("queryInput")) - object.queryInput = $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.toObject(message.queryInput, options); + object.queryInput = $root.google.cloud.dialogflow.cx.v3.QueryInput.toObject(message.queryInput, options); if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) - object.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.toObject(message.outputAudioConfig, options); + object.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.toObject(message.outputAudioConfig, options); return object; }; /** * Converts this StreamingDetectIntentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest * @instance * @returns {Object.} JSON object */ @@ -22295,23 +24214,23 @@ return StreamingDetectIntentRequest; })(); - v3beta1.StreamingDetectIntentResponse = (function() { + v3.StreamingDetectIntentResponse = (function() { /** * Properties of a StreamingDetectIntentResponse. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface IStreamingDetectIntentResponse - * @property {google.cloud.dialogflow.cx.v3beta1.IStreamingRecognitionResult|null} [recognitionResult] StreamingDetectIntentResponse recognitionResult - * @property {google.cloud.dialogflow.cx.v3beta1.IDetectIntentResponse|null} [detectIntentResponse] StreamingDetectIntentResponse detectIntentResponse + * @property {google.cloud.dialogflow.cx.v3.IStreamingRecognitionResult|null} [recognitionResult] StreamingDetectIntentResponse recognitionResult + * @property {google.cloud.dialogflow.cx.v3.IDetectIntentResponse|null} [detectIntentResponse] StreamingDetectIntentResponse detectIntentResponse */ /** * Constructs a new StreamingDetectIntentResponse. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a StreamingDetectIntentResponse. * @implements IStreamingDetectIntentResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IStreamingDetectIntentResponse=} [properties] Properties to set */ function StreamingDetectIntentResponse(properties) { if (properties) @@ -22322,16 +24241,16 @@ /** * StreamingDetectIntentResponse recognitionResult. - * @member {google.cloud.dialogflow.cx.v3beta1.IStreamingRecognitionResult|null|undefined} recognitionResult - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse + * @member {google.cloud.dialogflow.cx.v3.IStreamingRecognitionResult|null|undefined} recognitionResult + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse * @instance */ StreamingDetectIntentResponse.prototype.recognitionResult = null; /** * StreamingDetectIntentResponse detectIntentResponse. - * @member {google.cloud.dialogflow.cx.v3beta1.IDetectIntentResponse|null|undefined} detectIntentResponse - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse + * @member {google.cloud.dialogflow.cx.v3.IDetectIntentResponse|null|undefined} detectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse * @instance */ StreamingDetectIntentResponse.prototype.detectIntentResponse = null; @@ -22342,7 +24261,7 @@ /** * StreamingDetectIntentResponse response. * @member {"recognitionResult"|"detectIntentResponse"|undefined} response - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse * @instance */ Object.defineProperty(StreamingDetectIntentResponse.prototype, "response", { @@ -22353,21 +24272,21 @@ /** * Creates a new StreamingDetectIntentResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse} StreamingDetectIntentResponse instance + * @param {google.cloud.dialogflow.cx.v3.IStreamingDetectIntentResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse} StreamingDetectIntentResponse instance */ StreamingDetectIntentResponse.create = function create(properties) { return new StreamingDetectIntentResponse(properties); }; /** - * Encodes the specified StreamingDetectIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse.verify|verify} messages. + * Encodes the specified StreamingDetectIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentResponse} message StreamingDetectIntentResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IStreamingDetectIntentResponse} message StreamingDetectIntentResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -22375,18 +24294,18 @@ if (!writer) writer = $Writer.create(); if (message.recognitionResult != null && Object.hasOwnProperty.call(message, "recognitionResult")) - $root.google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.encode(message.recognitionResult, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.encode(message.recognitionResult, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.detectIntentResponse != null && Object.hasOwnProperty.call(message, "detectIntentResponse")) - $root.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.encode(message.detectIntentResponse, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.DetectIntentResponse.encode(message.detectIntentResponse, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified StreamingDetectIntentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse.verify|verify} messages. + * Encodes the specified StreamingDetectIntentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IStreamingDetectIntentResponse} message StreamingDetectIntentResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IStreamingDetectIntentResponse} message StreamingDetectIntentResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -22397,26 +24316,26 @@ /** * Decodes a StreamingDetectIntentResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse} StreamingDetectIntentResponse + * @returns {google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse} StreamingDetectIntentResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ StreamingDetectIntentResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.recognitionResult = $root.google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.decode(reader, reader.uint32()); + message.recognitionResult = $root.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.decode(reader, reader.uint32()); break; case 2: - message.detectIntentResponse = $root.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.decode(reader, reader.uint32()); + message.detectIntentResponse = $root.google.cloud.dialogflow.cx.v3.DetectIntentResponse.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -22429,10 +24348,10 @@ /** * Decodes a StreamingDetectIntentResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse} StreamingDetectIntentResponse + * @returns {google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse} StreamingDetectIntentResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -22445,7 +24364,7 @@ /** * Verifies a StreamingDetectIntentResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -22457,7 +24376,7 @@ if (message.recognitionResult != null && message.hasOwnProperty("recognitionResult")) { properties.response = 1; { - var error = $root.google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.verify(message.recognitionResult); + var error = $root.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.verify(message.recognitionResult); if (error) return "recognitionResult." + error; } @@ -22467,7 +24386,7 @@ return "response: multiple values"; properties.response = 1; { - var error = $root.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.verify(message.detectIntentResponse); + var error = $root.google.cloud.dialogflow.cx.v3.DetectIntentResponse.verify(message.detectIntentResponse); if (error) return "detectIntentResponse." + error; } @@ -22478,24 +24397,24 @@ /** * Creates a StreamingDetectIntentResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse} StreamingDetectIntentResponse + * @returns {google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse} StreamingDetectIntentResponse */ StreamingDetectIntentResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse(); + var message = new $root.google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse(); if (object.recognitionResult != null) { if (typeof object.recognitionResult !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse.recognitionResult: object expected"); - message.recognitionResult = $root.google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.fromObject(object.recognitionResult); + throw TypeError(".google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse.recognitionResult: object expected"); + message.recognitionResult = $root.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.fromObject(object.recognitionResult); } if (object.detectIntentResponse != null) { if (typeof object.detectIntentResponse !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse.detectIntentResponse: object expected"); - message.detectIntentResponse = $root.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.fromObject(object.detectIntentResponse); + throw TypeError(".google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse.detectIntentResponse: object expected"); + message.detectIntentResponse = $root.google.cloud.dialogflow.cx.v3.DetectIntentResponse.fromObject(object.detectIntentResponse); } return message; }; @@ -22503,9 +24422,9 @@ /** * Creates a plain object from a StreamingDetectIntentResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse} message StreamingDetectIntentResponse + * @param {google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse} message StreamingDetectIntentResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -22514,12 +24433,12 @@ options = {}; var object = {}; if (message.recognitionResult != null && message.hasOwnProperty("recognitionResult")) { - object.recognitionResult = $root.google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.toObject(message.recognitionResult, options); + object.recognitionResult = $root.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.toObject(message.recognitionResult, options); if (options.oneofs) object.response = "recognitionResult"; } if (message.detectIntentResponse != null && message.hasOwnProperty("detectIntentResponse")) { - object.detectIntentResponse = $root.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.toObject(message.detectIntentResponse, options); + object.detectIntentResponse = $root.google.cloud.dialogflow.cx.v3.DetectIntentResponse.toObject(message.detectIntentResponse, options); if (options.oneofs) object.response = "detectIntentResponse"; } @@ -22529,7 +24448,7 @@ /** * Converts this StreamingDetectIntentResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse * @instance * @returns {Object.} JSON object */ @@ -22540,28 +24459,28 @@ return StreamingDetectIntentResponse; })(); - v3beta1.StreamingRecognitionResult = (function() { + v3.StreamingRecognitionResult = (function() { /** * Properties of a StreamingRecognitionResult. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface IStreamingRecognitionResult - * @property {google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.MessageType|null} [messageType] StreamingRecognitionResult messageType + * @property {google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.MessageType|null} [messageType] StreamingRecognitionResult messageType * @property {string|null} [transcript] StreamingRecognitionResult transcript * @property {boolean|null} [isFinal] StreamingRecognitionResult isFinal * @property {number|null} [confidence] StreamingRecognitionResult confidence * @property {number|null} [stability] StreamingRecognitionResult stability - * @property {Array.|null} [speechWordInfo] StreamingRecognitionResult speechWordInfo + * @property {Array.|null} [speechWordInfo] StreamingRecognitionResult speechWordInfo * @property {google.protobuf.IDuration|null} [speechEndOffset] StreamingRecognitionResult speechEndOffset */ /** * Constructs a new StreamingRecognitionResult. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a StreamingRecognitionResult. * @implements IStreamingRecognitionResult * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IStreamingRecognitionResult=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IStreamingRecognitionResult=} [properties] Properties to set */ function StreamingRecognitionResult(properties) { this.speechWordInfo = []; @@ -22573,8 +24492,8 @@ /** * StreamingRecognitionResult messageType. - * @member {google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.MessageType} messageType - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult + * @member {google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.MessageType} messageType + * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult * @instance */ StreamingRecognitionResult.prototype.messageType = 0; @@ -22582,7 +24501,7 @@ /** * StreamingRecognitionResult transcript. * @member {string} transcript - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult + * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult * @instance */ StreamingRecognitionResult.prototype.transcript = ""; @@ -22590,7 +24509,7 @@ /** * StreamingRecognitionResult isFinal. * @member {boolean} isFinal - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult + * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult * @instance */ StreamingRecognitionResult.prototype.isFinal = false; @@ -22598,7 +24517,7 @@ /** * StreamingRecognitionResult confidence. * @member {number} confidence - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult + * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult * @instance */ StreamingRecognitionResult.prototype.confidence = 0; @@ -22606,15 +24525,15 @@ /** * StreamingRecognitionResult stability. * @member {number} stability - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult + * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult * @instance */ StreamingRecognitionResult.prototype.stability = 0; /** * StreamingRecognitionResult speechWordInfo. - * @member {Array.} speechWordInfo - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult + * @member {Array.} speechWordInfo + * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult * @instance */ StreamingRecognitionResult.prototype.speechWordInfo = $util.emptyArray; @@ -22622,7 +24541,7 @@ /** * StreamingRecognitionResult speechEndOffset. * @member {google.protobuf.IDuration|null|undefined} speechEndOffset - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult + * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult * @instance */ StreamingRecognitionResult.prototype.speechEndOffset = null; @@ -22630,21 +24549,21 @@ /** * Creates a new StreamingRecognitionResult instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult + * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IStreamingRecognitionResult=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult} StreamingRecognitionResult instance + * @param {google.cloud.dialogflow.cx.v3.IStreamingRecognitionResult=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.StreamingRecognitionResult} StreamingRecognitionResult instance */ StreamingRecognitionResult.create = function create(properties) { return new StreamingRecognitionResult(properties); }; /** - * Encodes the specified StreamingRecognitionResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.verify|verify} messages. + * Encodes the specified StreamingRecognitionResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult + * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IStreamingRecognitionResult} message StreamingRecognitionResult message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IStreamingRecognitionResult} message StreamingRecognitionResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -22663,18 +24582,18 @@ writer.uint32(/* id 6, wireType 5 =*/53).float(message.stability); if (message.speechWordInfo != null && message.speechWordInfo.length) for (var i = 0; i < message.speechWordInfo.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo.encode(message.speechWordInfo[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.SpeechWordInfo.encode(message.speechWordInfo[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); if (message.speechEndOffset != null && Object.hasOwnProperty.call(message, "speechEndOffset")) $root.google.protobuf.Duration.encode(message.speechEndOffset, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); return writer; }; /** - * Encodes the specified StreamingRecognitionResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.verify|verify} messages. + * Encodes the specified StreamingRecognitionResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult + * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IStreamingRecognitionResult} message StreamingRecognitionResult message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IStreamingRecognitionResult} message StreamingRecognitionResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -22685,18 +24604,18 @@ /** * Decodes a StreamingRecognitionResult message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult + * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult} StreamingRecognitionResult + * @returns {google.cloud.dialogflow.cx.v3.StreamingRecognitionResult} StreamingRecognitionResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ StreamingRecognitionResult.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -22718,7 +24637,7 @@ case 7: if (!(message.speechWordInfo && message.speechWordInfo.length)) message.speechWordInfo = []; - message.speechWordInfo.push($root.google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo.decode(reader, reader.uint32())); + message.speechWordInfo.push($root.google.cloud.dialogflow.cx.v3.SpeechWordInfo.decode(reader, reader.uint32())); break; case 8: message.speechEndOffset = $root.google.protobuf.Duration.decode(reader, reader.uint32()); @@ -22734,10 +24653,10 @@ /** * Decodes a StreamingRecognitionResult message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult + * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult} StreamingRecognitionResult + * @returns {google.cloud.dialogflow.cx.v3.StreamingRecognitionResult} StreamingRecognitionResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -22750,7 +24669,7 @@ /** * Verifies a StreamingRecognitionResult message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult + * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -22783,7 +24702,7 @@ if (!Array.isArray(message.speechWordInfo)) return "speechWordInfo: array expected"; for (var i = 0; i < message.speechWordInfo.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo.verify(message.speechWordInfo[i]); + var error = $root.google.cloud.dialogflow.cx.v3.SpeechWordInfo.verify(message.speechWordInfo[i]); if (error) return "speechWordInfo." + error; } @@ -22799,15 +24718,15 @@ /** * Creates a StreamingRecognitionResult message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult + * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult} StreamingRecognitionResult + * @returns {google.cloud.dialogflow.cx.v3.StreamingRecognitionResult} StreamingRecognitionResult */ StreamingRecognitionResult.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult(); + var message = new $root.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult(); switch (object.messageType) { case "MESSAGE_TYPE_UNSPECIFIED": case 0: @@ -22832,17 +24751,17 @@ message.stability = Number(object.stability); if (object.speechWordInfo) { if (!Array.isArray(object.speechWordInfo)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.speechWordInfo: array expected"); + throw TypeError(".google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.speechWordInfo: array expected"); message.speechWordInfo = []; for (var i = 0; i < object.speechWordInfo.length; ++i) { if (typeof object.speechWordInfo[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.speechWordInfo: object expected"); - message.speechWordInfo[i] = $root.google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo.fromObject(object.speechWordInfo[i]); + throw TypeError(".google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.speechWordInfo: object expected"); + message.speechWordInfo[i] = $root.google.cloud.dialogflow.cx.v3.SpeechWordInfo.fromObject(object.speechWordInfo[i]); } } if (object.speechEndOffset != null) { if (typeof object.speechEndOffset !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.speechEndOffset: object expected"); + throw TypeError(".google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.speechEndOffset: object expected"); message.speechEndOffset = $root.google.protobuf.Duration.fromObject(object.speechEndOffset); } return message; @@ -22851,9 +24770,9 @@ /** * Creates a plain object from a StreamingRecognitionResult message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult + * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult * @static - * @param {google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult} message StreamingRecognitionResult + * @param {google.cloud.dialogflow.cx.v3.StreamingRecognitionResult} message StreamingRecognitionResult * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -22872,7 +24791,7 @@ object.speechEndOffset = null; } if (message.messageType != null && message.hasOwnProperty("messageType")) - object.messageType = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.MessageType[message.messageType] : message.messageType; + object.messageType = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.MessageType[message.messageType] : message.messageType; if (message.transcript != null && message.hasOwnProperty("transcript")) object.transcript = message.transcript; if (message.isFinal != null && message.hasOwnProperty("isFinal")) @@ -22884,7 +24803,7 @@ if (message.speechWordInfo && message.speechWordInfo.length) { object.speechWordInfo = []; for (var j = 0; j < message.speechWordInfo.length; ++j) - object.speechWordInfo[j] = $root.google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo.toObject(message.speechWordInfo[j], options); + object.speechWordInfo[j] = $root.google.cloud.dialogflow.cx.v3.SpeechWordInfo.toObject(message.speechWordInfo[j], options); } if (message.speechEndOffset != null && message.hasOwnProperty("speechEndOffset")) object.speechEndOffset = $root.google.protobuf.Duration.toObject(message.speechEndOffset, options); @@ -22894,7 +24813,7 @@ /** * Converts this StreamingRecognitionResult to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult + * @memberof google.cloud.dialogflow.cx.v3.StreamingRecognitionResult * @instance * @returns {Object.} JSON object */ @@ -22904,7 +24823,7 @@ /** * MessageType enum. - * @name google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.MessageType + * @name google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.MessageType * @enum {number} * @property {number} MESSAGE_TYPE_UNSPECIFIED=0 MESSAGE_TYPE_UNSPECIFIED value * @property {number} TRANSCRIPT=1 TRANSCRIPT value @@ -22921,15 +24840,15 @@ return StreamingRecognitionResult; })(); - v3beta1.QueryParameters = (function() { + v3.QueryParameters = (function() { /** * Properties of a QueryParameters. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface IQueryParameters * @property {string|null} [timeZone] QueryParameters timeZone * @property {google.type.ILatLng|null} [geoLocation] QueryParameters geoLocation - * @property {Array.|null} [sessionEntityTypes] QueryParameters sessionEntityTypes + * @property {Array.|null} [sessionEntityTypes] QueryParameters sessionEntityTypes * @property {google.protobuf.IStruct|null} [payload] QueryParameters payload * @property {google.protobuf.IStruct|null} [parameters] QueryParameters parameters * @property {boolean|null} [analyzeQueryTextSentiment] QueryParameters analyzeQueryTextSentiment @@ -22937,11 +24856,11 @@ /** * Constructs a new QueryParameters. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a QueryParameters. * @implements IQueryParameters * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IQueryParameters=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IQueryParameters=} [properties] Properties to set */ function QueryParameters(properties) { this.sessionEntityTypes = []; @@ -22954,7 +24873,7 @@ /** * QueryParameters timeZone. * @member {string} timeZone - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters + * @memberof google.cloud.dialogflow.cx.v3.QueryParameters * @instance */ QueryParameters.prototype.timeZone = ""; @@ -22962,15 +24881,15 @@ /** * QueryParameters geoLocation. * @member {google.type.ILatLng|null|undefined} geoLocation - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters + * @memberof google.cloud.dialogflow.cx.v3.QueryParameters * @instance */ QueryParameters.prototype.geoLocation = null; /** * QueryParameters sessionEntityTypes. - * @member {Array.} sessionEntityTypes - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters + * @member {Array.} sessionEntityTypes + * @memberof google.cloud.dialogflow.cx.v3.QueryParameters * @instance */ QueryParameters.prototype.sessionEntityTypes = $util.emptyArray; @@ -22978,7 +24897,7 @@ /** * QueryParameters payload. * @member {google.protobuf.IStruct|null|undefined} payload - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters + * @memberof google.cloud.dialogflow.cx.v3.QueryParameters * @instance */ QueryParameters.prototype.payload = null; @@ -22986,7 +24905,7 @@ /** * QueryParameters parameters. * @member {google.protobuf.IStruct|null|undefined} parameters - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters + * @memberof google.cloud.dialogflow.cx.v3.QueryParameters * @instance */ QueryParameters.prototype.parameters = null; @@ -22994,7 +24913,7 @@ /** * QueryParameters analyzeQueryTextSentiment. * @member {boolean} analyzeQueryTextSentiment - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters + * @memberof google.cloud.dialogflow.cx.v3.QueryParameters * @instance */ QueryParameters.prototype.analyzeQueryTextSentiment = false; @@ -23002,21 +24921,21 @@ /** * Creates a new QueryParameters instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters + * @memberof google.cloud.dialogflow.cx.v3.QueryParameters * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IQueryParameters=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.QueryParameters} QueryParameters instance + * @param {google.cloud.dialogflow.cx.v3.IQueryParameters=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.QueryParameters} QueryParameters instance */ QueryParameters.create = function create(properties) { return new QueryParameters(properties); }; /** - * Encodes the specified QueryParameters message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.QueryParameters.verify|verify} messages. + * Encodes the specified QueryParameters message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.QueryParameters.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters + * @memberof google.cloud.dialogflow.cx.v3.QueryParameters * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IQueryParameters} message QueryParameters message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IQueryParameters} message QueryParameters message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -23029,7 +24948,7 @@ $root.google.type.LatLng.encode(message.geoLocation, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.sessionEntityTypes != null && message.sessionEntityTypes.length) for (var i = 0; i < message.sessionEntityTypes.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.encode(message.sessionEntityTypes[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.SessionEntityType.encode(message.sessionEntityTypes[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.payload != null && Object.hasOwnProperty.call(message, "payload")) $root.google.protobuf.Struct.encode(message.payload, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) @@ -23040,11 +24959,11 @@ }; /** - * Encodes the specified QueryParameters message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.QueryParameters.verify|verify} messages. + * Encodes the specified QueryParameters message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.QueryParameters.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters + * @memberof google.cloud.dialogflow.cx.v3.QueryParameters * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IQueryParameters} message QueryParameters message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IQueryParameters} message QueryParameters message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -23055,18 +24974,18 @@ /** * Decodes a QueryParameters message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters + * @memberof google.cloud.dialogflow.cx.v3.QueryParameters * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.QueryParameters} QueryParameters + * @returns {google.cloud.dialogflow.cx.v3.QueryParameters} QueryParameters * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ QueryParameters.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.QueryParameters(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -23079,7 +24998,7 @@ case 3: if (!(message.sessionEntityTypes && message.sessionEntityTypes.length)) message.sessionEntityTypes = []; - message.sessionEntityTypes.push($root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.decode(reader, reader.uint32())); + message.sessionEntityTypes.push($root.google.cloud.dialogflow.cx.v3.SessionEntityType.decode(reader, reader.uint32())); break; case 4: message.payload = $root.google.protobuf.Struct.decode(reader, reader.uint32()); @@ -23101,10 +25020,10 @@ /** * Decodes a QueryParameters message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters + * @memberof google.cloud.dialogflow.cx.v3.QueryParameters * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.QueryParameters} QueryParameters + * @returns {google.cloud.dialogflow.cx.v3.QueryParameters} QueryParameters * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -23117,7 +25036,7 @@ /** * Verifies a QueryParameters message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters + * @memberof google.cloud.dialogflow.cx.v3.QueryParameters * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -23137,7 +25056,7 @@ if (!Array.isArray(message.sessionEntityTypes)) return "sessionEntityTypes: array expected"; for (var i = 0; i < message.sessionEntityTypes.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.verify(message.sessionEntityTypes[i]); + var error = $root.google.cloud.dialogflow.cx.v3.SessionEntityType.verify(message.sessionEntityTypes[i]); if (error) return "sessionEntityTypes." + error; } @@ -23161,40 +25080,40 @@ /** * Creates a QueryParameters message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters + * @memberof google.cloud.dialogflow.cx.v3.QueryParameters * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.QueryParameters} QueryParameters + * @returns {google.cloud.dialogflow.cx.v3.QueryParameters} QueryParameters */ QueryParameters.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.QueryParameters) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters(); + var message = new $root.google.cloud.dialogflow.cx.v3.QueryParameters(); if (object.timeZone != null) message.timeZone = String(object.timeZone); if (object.geoLocation != null) { if (typeof object.geoLocation !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryParameters.geoLocation: object expected"); + throw TypeError(".google.cloud.dialogflow.cx.v3.QueryParameters.geoLocation: object expected"); message.geoLocation = $root.google.type.LatLng.fromObject(object.geoLocation); } if (object.sessionEntityTypes) { if (!Array.isArray(object.sessionEntityTypes)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryParameters.sessionEntityTypes: array expected"); + throw TypeError(".google.cloud.dialogflow.cx.v3.QueryParameters.sessionEntityTypes: array expected"); message.sessionEntityTypes = []; for (var i = 0; i < object.sessionEntityTypes.length; ++i) { if (typeof object.sessionEntityTypes[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryParameters.sessionEntityTypes: object expected"); - message.sessionEntityTypes[i] = $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.fromObject(object.sessionEntityTypes[i]); + throw TypeError(".google.cloud.dialogflow.cx.v3.QueryParameters.sessionEntityTypes: object expected"); + message.sessionEntityTypes[i] = $root.google.cloud.dialogflow.cx.v3.SessionEntityType.fromObject(object.sessionEntityTypes[i]); } } if (object.payload != null) { if (typeof object.payload !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryParameters.payload: object expected"); + throw TypeError(".google.cloud.dialogflow.cx.v3.QueryParameters.payload: object expected"); message.payload = $root.google.protobuf.Struct.fromObject(object.payload); } if (object.parameters != null) { if (typeof object.parameters !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryParameters.parameters: object expected"); + throw TypeError(".google.cloud.dialogflow.cx.v3.QueryParameters.parameters: object expected"); message.parameters = $root.google.protobuf.Struct.fromObject(object.parameters); } if (object.analyzeQueryTextSentiment != null) @@ -23205,9 +25124,9 @@ /** * Creates a plain object from a QueryParameters message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters + * @memberof google.cloud.dialogflow.cx.v3.QueryParameters * @static - * @param {google.cloud.dialogflow.cx.v3beta1.QueryParameters} message QueryParameters + * @param {google.cloud.dialogflow.cx.v3.QueryParameters} message QueryParameters * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -23231,7 +25150,7 @@ if (message.sessionEntityTypes && message.sessionEntityTypes.length) { object.sessionEntityTypes = []; for (var j = 0; j < message.sessionEntityTypes.length; ++j) - object.sessionEntityTypes[j] = $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.toObject(message.sessionEntityTypes[j], options); + object.sessionEntityTypes[j] = $root.google.cloud.dialogflow.cx.v3.SessionEntityType.toObject(message.sessionEntityTypes[j], options); } if (message.payload != null && message.hasOwnProperty("payload")) object.payload = $root.google.protobuf.Struct.toObject(message.payload, options); @@ -23245,7 +25164,7 @@ /** * Converts this QueryParameters to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryParameters + * @memberof google.cloud.dialogflow.cx.v3.QueryParameters * @instance * @returns {Object.} JSON object */ @@ -23256,27 +25175,27 @@ return QueryParameters; })(); - v3beta1.QueryInput = (function() { + v3.QueryInput = (function() { /** * Properties of a QueryInput. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface IQueryInput - * @property {google.cloud.dialogflow.cx.v3beta1.ITextInput|null} [text] QueryInput text - * @property {google.cloud.dialogflow.cx.v3beta1.IIntentInput|null} [intent] QueryInput intent - * @property {google.cloud.dialogflow.cx.v3beta1.IAudioInput|null} [audio] QueryInput audio - * @property {google.cloud.dialogflow.cx.v3beta1.IEventInput|null} [event] QueryInput event - * @property {google.cloud.dialogflow.cx.v3beta1.IDtmfInput|null} [dtmf] QueryInput dtmf + * @property {google.cloud.dialogflow.cx.v3.ITextInput|null} [text] QueryInput text + * @property {google.cloud.dialogflow.cx.v3.IIntentInput|null} [intent] QueryInput intent + * @property {google.cloud.dialogflow.cx.v3.IAudioInput|null} [audio] QueryInput audio + * @property {google.cloud.dialogflow.cx.v3.IEventInput|null} [event] QueryInput event + * @property {google.cloud.dialogflow.cx.v3.IDtmfInput|null} [dtmf] QueryInput dtmf * @property {string|null} [languageCode] QueryInput languageCode */ /** * Constructs a new QueryInput. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a QueryInput. * @implements IQueryInput * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IQueryInput=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IQueryInput=} [properties] Properties to set */ function QueryInput(properties) { if (properties) @@ -23287,40 +25206,40 @@ /** * QueryInput text. - * @member {google.cloud.dialogflow.cx.v3beta1.ITextInput|null|undefined} text - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryInput + * @member {google.cloud.dialogflow.cx.v3.ITextInput|null|undefined} text + * @memberof google.cloud.dialogflow.cx.v3.QueryInput * @instance */ QueryInput.prototype.text = null; /** * QueryInput intent. - * @member {google.cloud.dialogflow.cx.v3beta1.IIntentInput|null|undefined} intent - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryInput + * @member {google.cloud.dialogflow.cx.v3.IIntentInput|null|undefined} intent + * @memberof google.cloud.dialogflow.cx.v3.QueryInput * @instance */ QueryInput.prototype.intent = null; /** * QueryInput audio. - * @member {google.cloud.dialogflow.cx.v3beta1.IAudioInput|null|undefined} audio - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryInput + * @member {google.cloud.dialogflow.cx.v3.IAudioInput|null|undefined} audio + * @memberof google.cloud.dialogflow.cx.v3.QueryInput * @instance */ QueryInput.prototype.audio = null; /** * QueryInput event. - * @member {google.cloud.dialogflow.cx.v3beta1.IEventInput|null|undefined} event - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryInput + * @member {google.cloud.dialogflow.cx.v3.IEventInput|null|undefined} event + * @memberof google.cloud.dialogflow.cx.v3.QueryInput * @instance */ QueryInput.prototype.event = null; /** * QueryInput dtmf. - * @member {google.cloud.dialogflow.cx.v3beta1.IDtmfInput|null|undefined} dtmf - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryInput + * @member {google.cloud.dialogflow.cx.v3.IDtmfInput|null|undefined} dtmf + * @memberof google.cloud.dialogflow.cx.v3.QueryInput * @instance */ QueryInput.prototype.dtmf = null; @@ -23328,7 +25247,7 @@ /** * QueryInput languageCode. * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryInput + * @memberof google.cloud.dialogflow.cx.v3.QueryInput * @instance */ QueryInput.prototype.languageCode = ""; @@ -23339,7 +25258,7 @@ /** * QueryInput input. * @member {"text"|"intent"|"audio"|"event"|"dtmf"|undefined} input - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryInput + * @memberof google.cloud.dialogflow.cx.v3.QueryInput * @instance */ Object.defineProperty(QueryInput.prototype, "input", { @@ -23350,21 +25269,21 @@ /** * Creates a new QueryInput instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryInput + * @memberof google.cloud.dialogflow.cx.v3.QueryInput * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IQueryInput=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.QueryInput} QueryInput instance + * @param {google.cloud.dialogflow.cx.v3.IQueryInput=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.QueryInput} QueryInput instance */ QueryInput.create = function create(properties) { return new QueryInput(properties); }; /** - * Encodes the specified QueryInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.QueryInput.verify|verify} messages. + * Encodes the specified QueryInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.QueryInput.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryInput + * @memberof google.cloud.dialogflow.cx.v3.QueryInput * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IQueryInput} message QueryInput message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IQueryInput} message QueryInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -23372,26 +25291,26 @@ if (!writer) writer = $Writer.create(); if (message.text != null && Object.hasOwnProperty.call(message, "text")) - $root.google.cloud.dialogflow.cx.v3beta1.TextInput.encode(message.text, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.TextInput.encode(message.text, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.intent != null && Object.hasOwnProperty.call(message, "intent")) - $root.google.cloud.dialogflow.cx.v3beta1.IntentInput.encode(message.intent, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.IntentInput.encode(message.intent, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.languageCode); if (message.audio != null && Object.hasOwnProperty.call(message, "audio")) - $root.google.cloud.dialogflow.cx.v3beta1.AudioInput.encode(message.audio, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.AudioInput.encode(message.audio, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); if (message.event != null && Object.hasOwnProperty.call(message, "event")) - $root.google.cloud.dialogflow.cx.v3beta1.EventInput.encode(message.event, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.EventInput.encode(message.event, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); if (message.dtmf != null && Object.hasOwnProperty.call(message, "dtmf")) - $root.google.cloud.dialogflow.cx.v3beta1.DtmfInput.encode(message.dtmf, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.DtmfInput.encode(message.dtmf, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); return writer; }; /** - * Encodes the specified QueryInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.QueryInput.verify|verify} messages. + * Encodes the specified QueryInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.QueryInput.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryInput + * @memberof google.cloud.dialogflow.cx.v3.QueryInput * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IQueryInput} message QueryInput message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IQueryInput} message QueryInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -23402,35 +25321,35 @@ /** * Decodes a QueryInput message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryInput + * @memberof google.cloud.dialogflow.cx.v3.QueryInput * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.QueryInput} QueryInput + * @returns {google.cloud.dialogflow.cx.v3.QueryInput} QueryInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ QueryInput.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.QueryInput(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.QueryInput(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 2: - message.text = $root.google.cloud.dialogflow.cx.v3beta1.TextInput.decode(reader, reader.uint32()); + message.text = $root.google.cloud.dialogflow.cx.v3.TextInput.decode(reader, reader.uint32()); break; case 3: - message.intent = $root.google.cloud.dialogflow.cx.v3beta1.IntentInput.decode(reader, reader.uint32()); + message.intent = $root.google.cloud.dialogflow.cx.v3.IntentInput.decode(reader, reader.uint32()); break; case 5: - message.audio = $root.google.cloud.dialogflow.cx.v3beta1.AudioInput.decode(reader, reader.uint32()); + message.audio = $root.google.cloud.dialogflow.cx.v3.AudioInput.decode(reader, reader.uint32()); break; case 6: - message.event = $root.google.cloud.dialogflow.cx.v3beta1.EventInput.decode(reader, reader.uint32()); + message.event = $root.google.cloud.dialogflow.cx.v3.EventInput.decode(reader, reader.uint32()); break; case 7: - message.dtmf = $root.google.cloud.dialogflow.cx.v3beta1.DtmfInput.decode(reader, reader.uint32()); + message.dtmf = $root.google.cloud.dialogflow.cx.v3.DtmfInput.decode(reader, reader.uint32()); break; case 4: message.languageCode = reader.string(); @@ -23446,10 +25365,10 @@ /** * Decodes a QueryInput message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryInput + * @memberof google.cloud.dialogflow.cx.v3.QueryInput * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.QueryInput} QueryInput + * @returns {google.cloud.dialogflow.cx.v3.QueryInput} QueryInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -23462,7 +25381,7 @@ /** * Verifies a QueryInput message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryInput + * @memberof google.cloud.dialogflow.cx.v3.QueryInput * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -23474,7 +25393,7 @@ if (message.text != null && message.hasOwnProperty("text")) { properties.input = 1; { - var error = $root.google.cloud.dialogflow.cx.v3beta1.TextInput.verify(message.text); + var error = $root.google.cloud.dialogflow.cx.v3.TextInput.verify(message.text); if (error) return "text." + error; } @@ -23484,7 +25403,7 @@ return "input: multiple values"; properties.input = 1; { - var error = $root.google.cloud.dialogflow.cx.v3beta1.IntentInput.verify(message.intent); + var error = $root.google.cloud.dialogflow.cx.v3.IntentInput.verify(message.intent); if (error) return "intent." + error; } @@ -23494,7 +25413,7 @@ return "input: multiple values"; properties.input = 1; { - var error = $root.google.cloud.dialogflow.cx.v3beta1.AudioInput.verify(message.audio); + var error = $root.google.cloud.dialogflow.cx.v3.AudioInput.verify(message.audio); if (error) return "audio." + error; } @@ -23504,7 +25423,7 @@ return "input: multiple values"; properties.input = 1; { - var error = $root.google.cloud.dialogflow.cx.v3beta1.EventInput.verify(message.event); + var error = $root.google.cloud.dialogflow.cx.v3.EventInput.verify(message.event); if (error) return "event." + error; } @@ -23514,7 +25433,7 @@ return "input: multiple values"; properties.input = 1; { - var error = $root.google.cloud.dialogflow.cx.v3beta1.DtmfInput.verify(message.dtmf); + var error = $root.google.cloud.dialogflow.cx.v3.DtmfInput.verify(message.dtmf); if (error) return "dtmf." + error; } @@ -23528,39 +25447,39 @@ /** * Creates a QueryInput message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryInput + * @memberof google.cloud.dialogflow.cx.v3.QueryInput * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.QueryInput} QueryInput + * @returns {google.cloud.dialogflow.cx.v3.QueryInput} QueryInput */ QueryInput.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.QueryInput) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.QueryInput) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.QueryInput(); + var message = new $root.google.cloud.dialogflow.cx.v3.QueryInput(); if (object.text != null) { if (typeof object.text !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryInput.text: object expected"); - message.text = $root.google.cloud.dialogflow.cx.v3beta1.TextInput.fromObject(object.text); + throw TypeError(".google.cloud.dialogflow.cx.v3.QueryInput.text: object expected"); + message.text = $root.google.cloud.dialogflow.cx.v3.TextInput.fromObject(object.text); } if (object.intent != null) { if (typeof object.intent !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryInput.intent: object expected"); - message.intent = $root.google.cloud.dialogflow.cx.v3beta1.IntentInput.fromObject(object.intent); + throw TypeError(".google.cloud.dialogflow.cx.v3.QueryInput.intent: object expected"); + message.intent = $root.google.cloud.dialogflow.cx.v3.IntentInput.fromObject(object.intent); } if (object.audio != null) { if (typeof object.audio !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryInput.audio: object expected"); - message.audio = $root.google.cloud.dialogflow.cx.v3beta1.AudioInput.fromObject(object.audio); + throw TypeError(".google.cloud.dialogflow.cx.v3.QueryInput.audio: object expected"); + message.audio = $root.google.cloud.dialogflow.cx.v3.AudioInput.fromObject(object.audio); } if (object.event != null) { if (typeof object.event !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryInput.event: object expected"); - message.event = $root.google.cloud.dialogflow.cx.v3beta1.EventInput.fromObject(object.event); + throw TypeError(".google.cloud.dialogflow.cx.v3.QueryInput.event: object expected"); + message.event = $root.google.cloud.dialogflow.cx.v3.EventInput.fromObject(object.event); } if (object.dtmf != null) { if (typeof object.dtmf !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryInput.dtmf: object expected"); - message.dtmf = $root.google.cloud.dialogflow.cx.v3beta1.DtmfInput.fromObject(object.dtmf); + throw TypeError(".google.cloud.dialogflow.cx.v3.QueryInput.dtmf: object expected"); + message.dtmf = $root.google.cloud.dialogflow.cx.v3.DtmfInput.fromObject(object.dtmf); } if (object.languageCode != null) message.languageCode = String(object.languageCode); @@ -23570,9 +25489,9 @@ /** * Creates a plain object from a QueryInput message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryInput + * @memberof google.cloud.dialogflow.cx.v3.QueryInput * @static - * @param {google.cloud.dialogflow.cx.v3beta1.QueryInput} message QueryInput + * @param {google.cloud.dialogflow.cx.v3.QueryInput} message QueryInput * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -23583,29 +25502,29 @@ if (options.defaults) object.languageCode = ""; if (message.text != null && message.hasOwnProperty("text")) { - object.text = $root.google.cloud.dialogflow.cx.v3beta1.TextInput.toObject(message.text, options); + object.text = $root.google.cloud.dialogflow.cx.v3.TextInput.toObject(message.text, options); if (options.oneofs) object.input = "text"; } if (message.intent != null && message.hasOwnProperty("intent")) { - object.intent = $root.google.cloud.dialogflow.cx.v3beta1.IntentInput.toObject(message.intent, options); + object.intent = $root.google.cloud.dialogflow.cx.v3.IntentInput.toObject(message.intent, options); if (options.oneofs) object.input = "intent"; } if (message.languageCode != null && message.hasOwnProperty("languageCode")) object.languageCode = message.languageCode; if (message.audio != null && message.hasOwnProperty("audio")) { - object.audio = $root.google.cloud.dialogflow.cx.v3beta1.AudioInput.toObject(message.audio, options); + object.audio = $root.google.cloud.dialogflow.cx.v3.AudioInput.toObject(message.audio, options); if (options.oneofs) object.input = "audio"; } if (message.event != null && message.hasOwnProperty("event")) { - object.event = $root.google.cloud.dialogflow.cx.v3beta1.EventInput.toObject(message.event, options); + object.event = $root.google.cloud.dialogflow.cx.v3.EventInput.toObject(message.event, options); if (options.oneofs) object.input = "event"; } if (message.dtmf != null && message.hasOwnProperty("dtmf")) { - object.dtmf = $root.google.cloud.dialogflow.cx.v3beta1.DtmfInput.toObject(message.dtmf, options); + object.dtmf = $root.google.cloud.dialogflow.cx.v3.DtmfInput.toObject(message.dtmf, options); if (options.oneofs) object.input = "dtmf"; } @@ -23615,7 +25534,7 @@ /** * Converts this QueryInput to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryInput + * @memberof google.cloud.dialogflow.cx.v3.QueryInput * @instance * @returns {Object.} JSON object */ @@ -23626,11 +25545,11 @@ return QueryInput; })(); - v3beta1.QueryResult = (function() { + v3.QueryResult = (function() { /** * Properties of a QueryResult. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface IQueryResult * @property {string|null} [text] QueryResult text * @property {string|null} [triggerIntent] QueryResult triggerIntent @@ -23638,24 +25557,24 @@ * @property {string|null} [triggerEvent] QueryResult triggerEvent * @property {string|null} [languageCode] QueryResult languageCode * @property {google.protobuf.IStruct|null} [parameters] QueryResult parameters - * @property {Array.|null} [responseMessages] QueryResult responseMessages + * @property {Array.|null} [responseMessages] QueryResult responseMessages * @property {Array.|null} [webhookStatuses] QueryResult webhookStatuses * @property {Array.|null} [webhookPayloads] QueryResult webhookPayloads - * @property {google.cloud.dialogflow.cx.v3beta1.IPage|null} [currentPage] QueryResult currentPage - * @property {google.cloud.dialogflow.cx.v3beta1.IIntent|null} [intent] QueryResult intent + * @property {google.cloud.dialogflow.cx.v3.IPage|null} [currentPage] QueryResult currentPage + * @property {google.cloud.dialogflow.cx.v3.IIntent|null} [intent] QueryResult intent * @property {number|null} [intentDetectionConfidence] QueryResult intentDetectionConfidence - * @property {google.cloud.dialogflow.cx.v3beta1.IMatch|null} [match] QueryResult match + * @property {google.cloud.dialogflow.cx.v3.IMatch|null} [match] QueryResult match * @property {google.protobuf.IStruct|null} [diagnosticInfo] QueryResult diagnosticInfo - * @property {google.cloud.dialogflow.cx.v3beta1.ISentimentAnalysisResult|null} [sentimentAnalysisResult] QueryResult sentimentAnalysisResult + * @property {google.cloud.dialogflow.cx.v3.ISentimentAnalysisResult|null} [sentimentAnalysisResult] QueryResult sentimentAnalysisResult */ /** * Constructs a new QueryResult. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a QueryResult. * @implements IQueryResult * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IQueryResult=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IQueryResult=} [properties] Properties to set */ function QueryResult(properties) { this.responseMessages = []; @@ -23670,7 +25589,7 @@ /** * QueryResult text. * @member {string} text - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * @memberof google.cloud.dialogflow.cx.v3.QueryResult * @instance */ QueryResult.prototype.text = ""; @@ -23678,7 +25597,7 @@ /** * QueryResult triggerIntent. * @member {string} triggerIntent - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * @memberof google.cloud.dialogflow.cx.v3.QueryResult * @instance */ QueryResult.prototype.triggerIntent = ""; @@ -23686,7 +25605,7 @@ /** * QueryResult transcript. * @member {string} transcript - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * @memberof google.cloud.dialogflow.cx.v3.QueryResult * @instance */ QueryResult.prototype.transcript = ""; @@ -23694,7 +25613,7 @@ /** * QueryResult triggerEvent. * @member {string} triggerEvent - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * @memberof google.cloud.dialogflow.cx.v3.QueryResult * @instance */ QueryResult.prototype.triggerEvent = ""; @@ -23702,7 +25621,7 @@ /** * QueryResult languageCode. * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * @memberof google.cloud.dialogflow.cx.v3.QueryResult * @instance */ QueryResult.prototype.languageCode = ""; @@ -23710,15 +25629,15 @@ /** * QueryResult parameters. * @member {google.protobuf.IStruct|null|undefined} parameters - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * @memberof google.cloud.dialogflow.cx.v3.QueryResult * @instance */ QueryResult.prototype.parameters = null; /** * QueryResult responseMessages. - * @member {Array.} responseMessages - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * @member {Array.} responseMessages + * @memberof google.cloud.dialogflow.cx.v3.QueryResult * @instance */ QueryResult.prototype.responseMessages = $util.emptyArray; @@ -23726,7 +25645,7 @@ /** * QueryResult webhookStatuses. * @member {Array.} webhookStatuses - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * @memberof google.cloud.dialogflow.cx.v3.QueryResult * @instance */ QueryResult.prototype.webhookStatuses = $util.emptyArray; @@ -23734,23 +25653,23 @@ /** * QueryResult webhookPayloads. * @member {Array.} webhookPayloads - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * @memberof google.cloud.dialogflow.cx.v3.QueryResult * @instance */ QueryResult.prototype.webhookPayloads = $util.emptyArray; /** * QueryResult currentPage. - * @member {google.cloud.dialogflow.cx.v3beta1.IPage|null|undefined} currentPage - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * @member {google.cloud.dialogflow.cx.v3.IPage|null|undefined} currentPage + * @memberof google.cloud.dialogflow.cx.v3.QueryResult * @instance */ QueryResult.prototype.currentPage = null; /** * QueryResult intent. - * @member {google.cloud.dialogflow.cx.v3beta1.IIntent|null|undefined} intent - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * @member {google.cloud.dialogflow.cx.v3.IIntent|null|undefined} intent + * @memberof google.cloud.dialogflow.cx.v3.QueryResult * @instance */ QueryResult.prototype.intent = null; @@ -23758,15 +25677,15 @@ /** * QueryResult intentDetectionConfidence. * @member {number} intentDetectionConfidence - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * @memberof google.cloud.dialogflow.cx.v3.QueryResult * @instance */ QueryResult.prototype.intentDetectionConfidence = 0; /** * QueryResult match. - * @member {google.cloud.dialogflow.cx.v3beta1.IMatch|null|undefined} match - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * @member {google.cloud.dialogflow.cx.v3.IMatch|null|undefined} match + * @memberof google.cloud.dialogflow.cx.v3.QueryResult * @instance */ QueryResult.prototype.match = null; @@ -23774,15 +25693,15 @@ /** * QueryResult diagnosticInfo. * @member {google.protobuf.IStruct|null|undefined} diagnosticInfo - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * @memberof google.cloud.dialogflow.cx.v3.QueryResult * @instance */ QueryResult.prototype.diagnosticInfo = null; /** * QueryResult sentimentAnalysisResult. - * @member {google.cloud.dialogflow.cx.v3beta1.ISentimentAnalysisResult|null|undefined} sentimentAnalysisResult - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * @member {google.cloud.dialogflow.cx.v3.ISentimentAnalysisResult|null|undefined} sentimentAnalysisResult + * @memberof google.cloud.dialogflow.cx.v3.QueryResult * @instance */ QueryResult.prototype.sentimentAnalysisResult = null; @@ -23793,7 +25712,7 @@ /** * QueryResult query. * @member {"text"|"triggerIntent"|"transcript"|"triggerEvent"|undefined} query - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * @memberof google.cloud.dialogflow.cx.v3.QueryResult * @instance */ Object.defineProperty(QueryResult.prototype, "query", { @@ -23804,21 +25723,21 @@ /** * Creates a new QueryResult instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * @memberof google.cloud.dialogflow.cx.v3.QueryResult * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IQueryResult=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.QueryResult} QueryResult instance + * @param {google.cloud.dialogflow.cx.v3.IQueryResult=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.QueryResult} QueryResult instance */ QueryResult.create = function create(properties) { return new QueryResult(properties); }; /** - * Encodes the specified QueryResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.QueryResult.verify|verify} messages. + * Encodes the specified QueryResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.QueryResult.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * @memberof google.cloud.dialogflow.cx.v3.QueryResult * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IQueryResult} message QueryResult message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IQueryResult} message QueryResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -23833,14 +25752,14 @@ $root.google.protobuf.Struct.encode(message.parameters, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.responseMessages != null && message.responseMessages.length) for (var i = 0; i < message.responseMessages.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.encode(message.responseMessages[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.ResponseMessage.encode(message.responseMessages[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); if (message.webhookPayloads != null && message.webhookPayloads.length) for (var i = 0; i < message.webhookPayloads.length; ++i) $root.google.protobuf.Struct.encode(message.webhookPayloads[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); if (message.currentPage != null && Object.hasOwnProperty.call(message, "currentPage")) - $root.google.cloud.dialogflow.cx.v3beta1.Page.encode(message.currentPage, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.Page.encode(message.currentPage, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); if (message.intent != null && Object.hasOwnProperty.call(message, "intent")) - $root.google.cloud.dialogflow.cx.v3beta1.Intent.encode(message.intent, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.Intent.encode(message.intent, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); if (message.intentDetectionConfidence != null && Object.hasOwnProperty.call(message, "intentDetectionConfidence")) writer.uint32(/* id 9, wireType 5 =*/77).float(message.intentDetectionConfidence); if (message.diagnosticInfo != null && Object.hasOwnProperty.call(message, "diagnosticInfo")) @@ -23855,18 +25774,18 @@ if (message.triggerEvent != null && Object.hasOwnProperty.call(message, "triggerEvent")) writer.uint32(/* id 14, wireType 2 =*/114).string(message.triggerEvent); if (message.match != null && Object.hasOwnProperty.call(message, "match")) - $root.google.cloud.dialogflow.cx.v3beta1.Match.encode(message.match, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.Match.encode(message.match, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); if (message.sentimentAnalysisResult != null && Object.hasOwnProperty.call(message, "sentimentAnalysisResult")) - $root.google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult.encode(message.sentimentAnalysisResult, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.SentimentAnalysisResult.encode(message.sentimentAnalysisResult, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); return writer; }; /** - * Encodes the specified QueryResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.QueryResult.verify|verify} messages. + * Encodes the specified QueryResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.QueryResult.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * @memberof google.cloud.dialogflow.cx.v3.QueryResult * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IQueryResult} message QueryResult message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IQueryResult} message QueryResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -23877,18 +25796,18 @@ /** * Decodes a QueryResult message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * @memberof google.cloud.dialogflow.cx.v3.QueryResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.QueryResult} QueryResult + * @returns {google.cloud.dialogflow.cx.v3.QueryResult} QueryResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ QueryResult.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.QueryResult(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.QueryResult(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -23913,7 +25832,7 @@ case 4: if (!(message.responseMessages && message.responseMessages.length)) message.responseMessages = []; - message.responseMessages.push($root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.decode(reader, reader.uint32())); + message.responseMessages.push($root.google.cloud.dialogflow.cx.v3.ResponseMessage.decode(reader, reader.uint32())); break; case 13: if (!(message.webhookStatuses && message.webhookStatuses.length)) @@ -23926,22 +25845,22 @@ message.webhookPayloads.push($root.google.protobuf.Struct.decode(reader, reader.uint32())); break; case 7: - message.currentPage = $root.google.cloud.dialogflow.cx.v3beta1.Page.decode(reader, reader.uint32()); + message.currentPage = $root.google.cloud.dialogflow.cx.v3.Page.decode(reader, reader.uint32()); break; case 8: - message.intent = $root.google.cloud.dialogflow.cx.v3beta1.Intent.decode(reader, reader.uint32()); + message.intent = $root.google.cloud.dialogflow.cx.v3.Intent.decode(reader, reader.uint32()); break; case 9: message.intentDetectionConfidence = reader.float(); break; case 15: - message.match = $root.google.cloud.dialogflow.cx.v3beta1.Match.decode(reader, reader.uint32()); + message.match = $root.google.cloud.dialogflow.cx.v3.Match.decode(reader, reader.uint32()); break; case 10: message.diagnosticInfo = $root.google.protobuf.Struct.decode(reader, reader.uint32()); break; case 17: - message.sentimentAnalysisResult = $root.google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult.decode(reader, reader.uint32()); + message.sentimentAnalysisResult = $root.google.cloud.dialogflow.cx.v3.SentimentAnalysisResult.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -23954,10 +25873,10 @@ /** * Decodes a QueryResult message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * @memberof google.cloud.dialogflow.cx.v3.QueryResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.QueryResult} QueryResult + * @returns {google.cloud.dialogflow.cx.v3.QueryResult} QueryResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -23970,7 +25889,7 @@ /** * Verifies a QueryResult message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * @memberof google.cloud.dialogflow.cx.v3.QueryResult * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -24017,7 +25936,7 @@ if (!Array.isArray(message.responseMessages)) return "responseMessages: array expected"; for (var i = 0; i < message.responseMessages.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.verify(message.responseMessages[i]); + var error = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.verify(message.responseMessages[i]); if (error) return "responseMessages." + error; } @@ -24041,12 +25960,12 @@ } } if (message.currentPage != null && message.hasOwnProperty("currentPage")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Page.verify(message.currentPage); + var error = $root.google.cloud.dialogflow.cx.v3.Page.verify(message.currentPage); if (error) return "currentPage." + error; } if (message.intent != null && message.hasOwnProperty("intent")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Intent.verify(message.intent); + var error = $root.google.cloud.dialogflow.cx.v3.Intent.verify(message.intent); if (error) return "intent." + error; } @@ -24054,7 +25973,7 @@ if (typeof message.intentDetectionConfidence !== "number") return "intentDetectionConfidence: number expected"; if (message.match != null && message.hasOwnProperty("match")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Match.verify(message.match); + var error = $root.google.cloud.dialogflow.cx.v3.Match.verify(message.match); if (error) return "match." + error; } @@ -24064,7 +25983,7 @@ return "diagnosticInfo." + error; } if (message.sentimentAnalysisResult != null && message.hasOwnProperty("sentimentAnalysisResult")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult.verify(message.sentimentAnalysisResult); + var error = $root.google.cloud.dialogflow.cx.v3.SentimentAnalysisResult.verify(message.sentimentAnalysisResult); if (error) return "sentimentAnalysisResult." + error; } @@ -24074,15 +25993,15 @@ /** * Creates a QueryResult message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * @memberof google.cloud.dialogflow.cx.v3.QueryResult * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.QueryResult} QueryResult + * @returns {google.cloud.dialogflow.cx.v3.QueryResult} QueryResult */ QueryResult.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.QueryResult) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.QueryResult) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.QueryResult(); + var message = new $root.google.cloud.dialogflow.cx.v3.QueryResult(); if (object.text != null) message.text = String(object.text); if (object.triggerIntent != null) @@ -24095,65 +26014,65 @@ message.languageCode = String(object.languageCode); if (object.parameters != null) { if (typeof object.parameters !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryResult.parameters: object expected"); + throw TypeError(".google.cloud.dialogflow.cx.v3.QueryResult.parameters: object expected"); message.parameters = $root.google.protobuf.Struct.fromObject(object.parameters); } if (object.responseMessages) { if (!Array.isArray(object.responseMessages)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryResult.responseMessages: array expected"); + throw TypeError(".google.cloud.dialogflow.cx.v3.QueryResult.responseMessages: array expected"); message.responseMessages = []; for (var i = 0; i < object.responseMessages.length; ++i) { if (typeof object.responseMessages[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryResult.responseMessages: object expected"); - message.responseMessages[i] = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.fromObject(object.responseMessages[i]); + throw TypeError(".google.cloud.dialogflow.cx.v3.QueryResult.responseMessages: object expected"); + message.responseMessages[i] = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.fromObject(object.responseMessages[i]); } } if (object.webhookStatuses) { if (!Array.isArray(object.webhookStatuses)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryResult.webhookStatuses: array expected"); + throw TypeError(".google.cloud.dialogflow.cx.v3.QueryResult.webhookStatuses: array expected"); message.webhookStatuses = []; for (var i = 0; i < object.webhookStatuses.length; ++i) { if (typeof object.webhookStatuses[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryResult.webhookStatuses: object expected"); + throw TypeError(".google.cloud.dialogflow.cx.v3.QueryResult.webhookStatuses: object expected"); message.webhookStatuses[i] = $root.google.rpc.Status.fromObject(object.webhookStatuses[i]); } } if (object.webhookPayloads) { if (!Array.isArray(object.webhookPayloads)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryResult.webhookPayloads: array expected"); + throw TypeError(".google.cloud.dialogflow.cx.v3.QueryResult.webhookPayloads: array expected"); message.webhookPayloads = []; for (var i = 0; i < object.webhookPayloads.length; ++i) { if (typeof object.webhookPayloads[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryResult.webhookPayloads: object expected"); + throw TypeError(".google.cloud.dialogflow.cx.v3.QueryResult.webhookPayloads: object expected"); message.webhookPayloads[i] = $root.google.protobuf.Struct.fromObject(object.webhookPayloads[i]); } } if (object.currentPage != null) { if (typeof object.currentPage !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryResult.currentPage: object expected"); - message.currentPage = $root.google.cloud.dialogflow.cx.v3beta1.Page.fromObject(object.currentPage); + throw TypeError(".google.cloud.dialogflow.cx.v3.QueryResult.currentPage: object expected"); + message.currentPage = $root.google.cloud.dialogflow.cx.v3.Page.fromObject(object.currentPage); } if (object.intent != null) { if (typeof object.intent !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryResult.intent: object expected"); - message.intent = $root.google.cloud.dialogflow.cx.v3beta1.Intent.fromObject(object.intent); + throw TypeError(".google.cloud.dialogflow.cx.v3.QueryResult.intent: object expected"); + message.intent = $root.google.cloud.dialogflow.cx.v3.Intent.fromObject(object.intent); } if (object.intentDetectionConfidence != null) message.intentDetectionConfidence = Number(object.intentDetectionConfidence); if (object.match != null) { if (typeof object.match !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryResult.match: object expected"); - message.match = $root.google.cloud.dialogflow.cx.v3beta1.Match.fromObject(object.match); + throw TypeError(".google.cloud.dialogflow.cx.v3.QueryResult.match: object expected"); + message.match = $root.google.cloud.dialogflow.cx.v3.Match.fromObject(object.match); } if (object.diagnosticInfo != null) { if (typeof object.diagnosticInfo !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryResult.diagnosticInfo: object expected"); + throw TypeError(".google.cloud.dialogflow.cx.v3.QueryResult.diagnosticInfo: object expected"); message.diagnosticInfo = $root.google.protobuf.Struct.fromObject(object.diagnosticInfo); } if (object.sentimentAnalysisResult != null) { if (typeof object.sentimentAnalysisResult !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.QueryResult.sentimentAnalysisResult: object expected"); - message.sentimentAnalysisResult = $root.google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult.fromObject(object.sentimentAnalysisResult); + throw TypeError(".google.cloud.dialogflow.cx.v3.QueryResult.sentimentAnalysisResult: object expected"); + message.sentimentAnalysisResult = $root.google.cloud.dialogflow.cx.v3.SentimentAnalysisResult.fromObject(object.sentimentAnalysisResult); } return message; }; @@ -24161,9 +26080,9 @@ /** * Creates a plain object from a QueryResult message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * @memberof google.cloud.dialogflow.cx.v3.QueryResult * @static - * @param {google.cloud.dialogflow.cx.v3beta1.QueryResult} message QueryResult + * @param {google.cloud.dialogflow.cx.v3.QueryResult} message QueryResult * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -24198,7 +26117,7 @@ if (message.responseMessages && message.responseMessages.length) { object.responseMessages = []; for (var j = 0; j < message.responseMessages.length; ++j) - object.responseMessages[j] = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.toObject(message.responseMessages[j], options); + object.responseMessages[j] = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.toObject(message.responseMessages[j], options); } if (message.webhookPayloads && message.webhookPayloads.length) { object.webhookPayloads = []; @@ -24206,9 +26125,9 @@ object.webhookPayloads[j] = $root.google.protobuf.Struct.toObject(message.webhookPayloads[j], options); } if (message.currentPage != null && message.hasOwnProperty("currentPage")) - object.currentPage = $root.google.cloud.dialogflow.cx.v3beta1.Page.toObject(message.currentPage, options); + object.currentPage = $root.google.cloud.dialogflow.cx.v3.Page.toObject(message.currentPage, options); if (message.intent != null && message.hasOwnProperty("intent")) - object.intent = $root.google.cloud.dialogflow.cx.v3beta1.Intent.toObject(message.intent, options); + object.intent = $root.google.cloud.dialogflow.cx.v3.Intent.toObject(message.intent, options); if (message.intentDetectionConfidence != null && message.hasOwnProperty("intentDetectionConfidence")) object.intentDetectionConfidence = options.json && !isFinite(message.intentDetectionConfidence) ? String(message.intentDetectionConfidence) : message.intentDetectionConfidence; if (message.diagnosticInfo != null && message.hasOwnProperty("diagnosticInfo")) @@ -24234,16 +26153,16 @@ object.query = "triggerEvent"; } if (message.match != null && message.hasOwnProperty("match")) - object.match = $root.google.cloud.dialogflow.cx.v3beta1.Match.toObject(message.match, options); + object.match = $root.google.cloud.dialogflow.cx.v3.Match.toObject(message.match, options); if (message.sentimentAnalysisResult != null && message.hasOwnProperty("sentimentAnalysisResult")) - object.sentimentAnalysisResult = $root.google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult.toObject(message.sentimentAnalysisResult, options); + object.sentimentAnalysisResult = $root.google.cloud.dialogflow.cx.v3.SentimentAnalysisResult.toObject(message.sentimentAnalysisResult, options); return object; }; /** * Converts this QueryResult to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.QueryResult + * @memberof google.cloud.dialogflow.cx.v3.QueryResult * @instance * @returns {Object.} JSON object */ @@ -24254,22 +26173,22 @@ return QueryResult; })(); - v3beta1.TextInput = (function() { + v3.TextInput = (function() { /** * Properties of a TextInput. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface ITextInput * @property {string|null} [text] TextInput text */ /** * Constructs a new TextInput. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a TextInput. * @implements ITextInput * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ITextInput=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ITextInput=} [properties] Properties to set */ function TextInput(properties) { if (properties) @@ -24281,7 +26200,7 @@ /** * TextInput text. * @member {string} text - * @memberof google.cloud.dialogflow.cx.v3beta1.TextInput + * @memberof google.cloud.dialogflow.cx.v3.TextInput * @instance */ TextInput.prototype.text = ""; @@ -24289,21 +26208,21 @@ /** * Creates a new TextInput instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.TextInput + * @memberof google.cloud.dialogflow.cx.v3.TextInput * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITextInput=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.TextInput} TextInput instance + * @param {google.cloud.dialogflow.cx.v3.ITextInput=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.TextInput} TextInput instance */ TextInput.create = function create(properties) { return new TextInput(properties); }; /** - * Encodes the specified TextInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TextInput.verify|verify} messages. + * Encodes the specified TextInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TextInput.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.TextInput + * @memberof google.cloud.dialogflow.cx.v3.TextInput * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITextInput} message TextInput message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ITextInput} message TextInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -24316,11 +26235,11 @@ }; /** - * Encodes the specified TextInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TextInput.verify|verify} messages. + * Encodes the specified TextInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TextInput.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.TextInput + * @memberof google.cloud.dialogflow.cx.v3.TextInput * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITextInput} message TextInput message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ITextInput} message TextInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -24331,18 +26250,18 @@ /** * Decodes a TextInput message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.TextInput + * @memberof google.cloud.dialogflow.cx.v3.TextInput * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.TextInput} TextInput + * @returns {google.cloud.dialogflow.cx.v3.TextInput} TextInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TextInput.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.TextInput(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.TextInput(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -24360,10 +26279,10 @@ /** * Decodes a TextInput message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.TextInput + * @memberof google.cloud.dialogflow.cx.v3.TextInput * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.TextInput} TextInput + * @returns {google.cloud.dialogflow.cx.v3.TextInput} TextInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -24376,7 +26295,7 @@ /** * Verifies a TextInput message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.TextInput + * @memberof google.cloud.dialogflow.cx.v3.TextInput * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -24393,15 +26312,15 @@ /** * Creates a TextInput message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.TextInput + * @memberof google.cloud.dialogflow.cx.v3.TextInput * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.TextInput} TextInput + * @returns {google.cloud.dialogflow.cx.v3.TextInput} TextInput */ TextInput.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.TextInput) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.TextInput) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.TextInput(); + var message = new $root.google.cloud.dialogflow.cx.v3.TextInput(); if (object.text != null) message.text = String(object.text); return message; @@ -24410,9 +26329,9 @@ /** * Creates a plain object from a TextInput message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.TextInput + * @memberof google.cloud.dialogflow.cx.v3.TextInput * @static - * @param {google.cloud.dialogflow.cx.v3beta1.TextInput} message TextInput + * @param {google.cloud.dialogflow.cx.v3.TextInput} message TextInput * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -24430,7 +26349,7 @@ /** * Converts this TextInput to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.TextInput + * @memberof google.cloud.dialogflow.cx.v3.TextInput * @instance * @returns {Object.} JSON object */ @@ -24441,22 +26360,22 @@ return TextInput; })(); - v3beta1.IntentInput = (function() { + v3.IntentInput = (function() { /** * Properties of an IntentInput. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface IIntentInput * @property {string|null} [intent] IntentInput intent */ /** * Constructs a new IntentInput. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents an IntentInput. * @implements IIntentInput * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IIntentInput=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IIntentInput=} [properties] Properties to set */ function IntentInput(properties) { if (properties) @@ -24468,7 +26387,7 @@ /** * IntentInput intent. * @member {string} intent - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentInput + * @memberof google.cloud.dialogflow.cx.v3.IntentInput * @instance */ IntentInput.prototype.intent = ""; @@ -24476,21 +26395,21 @@ /** * Creates a new IntentInput instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentInput + * @memberof google.cloud.dialogflow.cx.v3.IntentInput * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IIntentInput=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.IntentInput} IntentInput instance + * @param {google.cloud.dialogflow.cx.v3.IIntentInput=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.IntentInput} IntentInput instance */ IntentInput.create = function create(properties) { return new IntentInput(properties); }; /** - * Encodes the specified IntentInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.IntentInput.verify|verify} messages. + * Encodes the specified IntentInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.IntentInput.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentInput + * @memberof google.cloud.dialogflow.cx.v3.IntentInput * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IIntentInput} message IntentInput message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IIntentInput} message IntentInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -24503,11 +26422,11 @@ }; /** - * Encodes the specified IntentInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.IntentInput.verify|verify} messages. + * Encodes the specified IntentInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.IntentInput.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentInput + * @memberof google.cloud.dialogflow.cx.v3.IntentInput * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IIntentInput} message IntentInput message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IIntentInput} message IntentInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -24518,18 +26437,18 @@ /** * Decodes an IntentInput message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentInput + * @memberof google.cloud.dialogflow.cx.v3.IntentInput * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.IntentInput} IntentInput + * @returns {google.cloud.dialogflow.cx.v3.IntentInput} IntentInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ IntentInput.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.IntentInput(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.IntentInput(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -24547,10 +26466,10 @@ /** * Decodes an IntentInput message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentInput + * @memberof google.cloud.dialogflow.cx.v3.IntentInput * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.IntentInput} IntentInput + * @returns {google.cloud.dialogflow.cx.v3.IntentInput} IntentInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -24563,7 +26482,7 @@ /** * Verifies an IntentInput message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentInput + * @memberof google.cloud.dialogflow.cx.v3.IntentInput * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -24580,15 +26499,15 @@ /** * Creates an IntentInput message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentInput + * @memberof google.cloud.dialogflow.cx.v3.IntentInput * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.IntentInput} IntentInput + * @returns {google.cloud.dialogflow.cx.v3.IntentInput} IntentInput */ IntentInput.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.IntentInput) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.IntentInput) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.IntentInput(); + var message = new $root.google.cloud.dialogflow.cx.v3.IntentInput(); if (object.intent != null) message.intent = String(object.intent); return message; @@ -24597,9 +26516,9 @@ /** * Creates a plain object from an IntentInput message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentInput + * @memberof google.cloud.dialogflow.cx.v3.IntentInput * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IntentInput} message IntentInput + * @param {google.cloud.dialogflow.cx.v3.IntentInput} message IntentInput * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -24617,7 +26536,7 @@ /** * Converts this IntentInput to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.IntentInput + * @memberof google.cloud.dialogflow.cx.v3.IntentInput * @instance * @returns {Object.} JSON object */ @@ -24628,23 +26547,23 @@ return IntentInput; })(); - v3beta1.AudioInput = (function() { + v3.AudioInput = (function() { /** * Properties of an AudioInput. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface IAudioInput - * @property {google.cloud.dialogflow.cx.v3beta1.IInputAudioConfig|null} [config] AudioInput config + * @property {google.cloud.dialogflow.cx.v3.IInputAudioConfig|null} [config] AudioInput config * @property {Uint8Array|null} [audio] AudioInput audio */ /** * Constructs a new AudioInput. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents an AudioInput. * @implements IAudioInput * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IAudioInput=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IAudioInput=} [properties] Properties to set */ function AudioInput(properties) { if (properties) @@ -24655,8 +26574,8 @@ /** * AudioInput config. - * @member {google.cloud.dialogflow.cx.v3beta1.IInputAudioConfig|null|undefined} config - * @memberof google.cloud.dialogflow.cx.v3beta1.AudioInput + * @member {google.cloud.dialogflow.cx.v3.IInputAudioConfig|null|undefined} config + * @memberof google.cloud.dialogflow.cx.v3.AudioInput * @instance */ AudioInput.prototype.config = null; @@ -24664,7 +26583,7 @@ /** * AudioInput audio. * @member {Uint8Array} audio - * @memberof google.cloud.dialogflow.cx.v3beta1.AudioInput + * @memberof google.cloud.dialogflow.cx.v3.AudioInput * @instance */ AudioInput.prototype.audio = $util.newBuffer([]); @@ -24672,21 +26591,21 @@ /** * Creates a new AudioInput instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.AudioInput + * @memberof google.cloud.dialogflow.cx.v3.AudioInput * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IAudioInput=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.AudioInput} AudioInput instance + * @param {google.cloud.dialogflow.cx.v3.IAudioInput=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.AudioInput} AudioInput instance */ AudioInput.create = function create(properties) { return new AudioInput(properties); }; /** - * Encodes the specified AudioInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.AudioInput.verify|verify} messages. + * Encodes the specified AudioInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.AudioInput.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.AudioInput + * @memberof google.cloud.dialogflow.cx.v3.AudioInput * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IAudioInput} message AudioInput message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IAudioInput} message AudioInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -24694,18 +26613,18 @@ if (!writer) writer = $Writer.create(); if (message.config != null && Object.hasOwnProperty.call(message, "config")) - $root.google.cloud.dialogflow.cx.v3beta1.InputAudioConfig.encode(message.config, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.InputAudioConfig.encode(message.config, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.audio != null && Object.hasOwnProperty.call(message, "audio")) writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.audio); return writer; }; /** - * Encodes the specified AudioInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.AudioInput.verify|verify} messages. + * Encodes the specified AudioInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.AudioInput.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.AudioInput + * @memberof google.cloud.dialogflow.cx.v3.AudioInput * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IAudioInput} message AudioInput message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IAudioInput} message AudioInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -24716,23 +26635,23 @@ /** * Decodes an AudioInput message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.AudioInput + * @memberof google.cloud.dialogflow.cx.v3.AudioInput * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.AudioInput} AudioInput + * @returns {google.cloud.dialogflow.cx.v3.AudioInput} AudioInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AudioInput.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.AudioInput(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.AudioInput(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.config = $root.google.cloud.dialogflow.cx.v3beta1.InputAudioConfig.decode(reader, reader.uint32()); + message.config = $root.google.cloud.dialogflow.cx.v3.InputAudioConfig.decode(reader, reader.uint32()); break; case 2: message.audio = reader.bytes(); @@ -24748,10 +26667,10 @@ /** * Decodes an AudioInput message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.AudioInput + * @memberof google.cloud.dialogflow.cx.v3.AudioInput * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.AudioInput} AudioInput + * @returns {google.cloud.dialogflow.cx.v3.AudioInput} AudioInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -24764,7 +26683,7 @@ /** * Verifies an AudioInput message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.AudioInput + * @memberof google.cloud.dialogflow.cx.v3.AudioInput * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -24773,7 +26692,7 @@ if (typeof message !== "object" || message === null) return "object expected"; if (message.config != null && message.hasOwnProperty("config")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.InputAudioConfig.verify(message.config); + var error = $root.google.cloud.dialogflow.cx.v3.InputAudioConfig.verify(message.config); if (error) return "config." + error; } @@ -24786,19 +26705,19 @@ /** * Creates an AudioInput message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.AudioInput + * @memberof google.cloud.dialogflow.cx.v3.AudioInput * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.AudioInput} AudioInput + * @returns {google.cloud.dialogflow.cx.v3.AudioInput} AudioInput */ AudioInput.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.AudioInput) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.AudioInput) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.AudioInput(); + var message = new $root.google.cloud.dialogflow.cx.v3.AudioInput(); if (object.config != null) { if (typeof object.config !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.AudioInput.config: object expected"); - message.config = $root.google.cloud.dialogflow.cx.v3beta1.InputAudioConfig.fromObject(object.config); + throw TypeError(".google.cloud.dialogflow.cx.v3.AudioInput.config: object expected"); + message.config = $root.google.cloud.dialogflow.cx.v3.InputAudioConfig.fromObject(object.config); } if (object.audio != null) if (typeof object.audio === "string") @@ -24811,9 +26730,9 @@ /** * Creates a plain object from an AudioInput message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.AudioInput + * @memberof google.cloud.dialogflow.cx.v3.AudioInput * @static - * @param {google.cloud.dialogflow.cx.v3beta1.AudioInput} message AudioInput + * @param {google.cloud.dialogflow.cx.v3.AudioInput} message AudioInput * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -24832,7 +26751,7 @@ } } if (message.config != null && message.hasOwnProperty("config")) - object.config = $root.google.cloud.dialogflow.cx.v3beta1.InputAudioConfig.toObject(message.config, options); + object.config = $root.google.cloud.dialogflow.cx.v3.InputAudioConfig.toObject(message.config, options); if (message.audio != null && message.hasOwnProperty("audio")) object.audio = options.bytes === String ? $util.base64.encode(message.audio, 0, message.audio.length) : options.bytes === Array ? Array.prototype.slice.call(message.audio) : message.audio; return object; @@ -24841,7 +26760,7 @@ /** * Converts this AudioInput to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.AudioInput + * @memberof google.cloud.dialogflow.cx.v3.AudioInput * @instance * @returns {Object.} JSON object */ @@ -24852,22 +26771,22 @@ return AudioInput; })(); - v3beta1.EventInput = (function() { + v3.EventInput = (function() { /** * Properties of an EventInput. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface IEventInput * @property {string|null} [event] EventInput event */ /** * Constructs a new EventInput. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents an EventInput. * @implements IEventInput * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IEventInput=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IEventInput=} [properties] Properties to set */ function EventInput(properties) { if (properties) @@ -24879,7 +26798,7 @@ /** * EventInput event. * @member {string} event - * @memberof google.cloud.dialogflow.cx.v3beta1.EventInput + * @memberof google.cloud.dialogflow.cx.v3.EventInput * @instance */ EventInput.prototype.event = ""; @@ -24887,21 +26806,21 @@ /** * Creates a new EventInput instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.EventInput + * @memberof google.cloud.dialogflow.cx.v3.EventInput * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IEventInput=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.EventInput} EventInput instance + * @param {google.cloud.dialogflow.cx.v3.IEventInput=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.EventInput} EventInput instance */ EventInput.create = function create(properties) { return new EventInput(properties); }; /** - * Encodes the specified EventInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EventInput.verify|verify} messages. + * Encodes the specified EventInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.EventInput.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.EventInput + * @memberof google.cloud.dialogflow.cx.v3.EventInput * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IEventInput} message EventInput message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IEventInput} message EventInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -24914,11 +26833,11 @@ }; /** - * Encodes the specified EventInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EventInput.verify|verify} messages. + * Encodes the specified EventInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.EventInput.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.EventInput + * @memberof google.cloud.dialogflow.cx.v3.EventInput * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IEventInput} message EventInput message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IEventInput} message EventInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -24929,18 +26848,18 @@ /** * Decodes an EventInput message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.EventInput + * @memberof google.cloud.dialogflow.cx.v3.EventInput * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.EventInput} EventInput + * @returns {google.cloud.dialogflow.cx.v3.EventInput} EventInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EventInput.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.EventInput(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.EventInput(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -24958,10 +26877,10 @@ /** * Decodes an EventInput message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.EventInput + * @memberof google.cloud.dialogflow.cx.v3.EventInput * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.EventInput} EventInput + * @returns {google.cloud.dialogflow.cx.v3.EventInput} EventInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -24974,7 +26893,7 @@ /** * Verifies an EventInput message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.EventInput + * @memberof google.cloud.dialogflow.cx.v3.EventInput * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -24991,15 +26910,15 @@ /** * Creates an EventInput message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.EventInput + * @memberof google.cloud.dialogflow.cx.v3.EventInput * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.EventInput} EventInput + * @returns {google.cloud.dialogflow.cx.v3.EventInput} EventInput */ EventInput.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.EventInput) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.EventInput) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.EventInput(); + var message = new $root.google.cloud.dialogflow.cx.v3.EventInput(); if (object.event != null) message.event = String(object.event); return message; @@ -25008,9 +26927,9 @@ /** * Creates a plain object from an EventInput message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.EventInput + * @memberof google.cloud.dialogflow.cx.v3.EventInput * @static - * @param {google.cloud.dialogflow.cx.v3beta1.EventInput} message EventInput + * @param {google.cloud.dialogflow.cx.v3.EventInput} message EventInput * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -25028,7 +26947,7 @@ /** * Converts this EventInput to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.EventInput + * @memberof google.cloud.dialogflow.cx.v3.EventInput * @instance * @returns {Object.} JSON object */ @@ -25039,11 +26958,11 @@ return EventInput; })(); - v3beta1.DtmfInput = (function() { + v3.DtmfInput = (function() { /** * Properties of a DtmfInput. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface IDtmfInput * @property {string|null} [digits] DtmfInput digits * @property {string|null} [finishDigit] DtmfInput finishDigit @@ -25051,11 +26970,11 @@ /** * Constructs a new DtmfInput. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a DtmfInput. * @implements IDtmfInput * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IDtmfInput=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IDtmfInput=} [properties] Properties to set */ function DtmfInput(properties) { if (properties) @@ -25067,7 +26986,7 @@ /** * DtmfInput digits. * @member {string} digits - * @memberof google.cloud.dialogflow.cx.v3beta1.DtmfInput + * @memberof google.cloud.dialogflow.cx.v3.DtmfInput * @instance */ DtmfInput.prototype.digits = ""; @@ -25075,7 +26994,7 @@ /** * DtmfInput finishDigit. * @member {string} finishDigit - * @memberof google.cloud.dialogflow.cx.v3beta1.DtmfInput + * @memberof google.cloud.dialogflow.cx.v3.DtmfInput * @instance */ DtmfInput.prototype.finishDigit = ""; @@ -25083,21 +27002,21 @@ /** * Creates a new DtmfInput instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.DtmfInput + * @memberof google.cloud.dialogflow.cx.v3.DtmfInput * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDtmfInput=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.DtmfInput} DtmfInput instance + * @param {google.cloud.dialogflow.cx.v3.IDtmfInput=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.DtmfInput} DtmfInput instance */ DtmfInput.create = function create(properties) { return new DtmfInput(properties); }; /** - * Encodes the specified DtmfInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DtmfInput.verify|verify} messages. + * Encodes the specified DtmfInput message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DtmfInput.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.DtmfInput + * @memberof google.cloud.dialogflow.cx.v3.DtmfInput * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDtmfInput} message DtmfInput message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IDtmfInput} message DtmfInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -25112,11 +27031,11 @@ }; /** - * Encodes the specified DtmfInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DtmfInput.verify|verify} messages. + * Encodes the specified DtmfInput message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DtmfInput.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DtmfInput + * @memberof google.cloud.dialogflow.cx.v3.DtmfInput * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDtmfInput} message DtmfInput message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IDtmfInput} message DtmfInput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -25127,18 +27046,18 @@ /** * Decodes a DtmfInput message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.DtmfInput + * @memberof google.cloud.dialogflow.cx.v3.DtmfInput * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.DtmfInput} DtmfInput + * @returns {google.cloud.dialogflow.cx.v3.DtmfInput} DtmfInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ DtmfInput.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.DtmfInput(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.DtmfInput(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -25159,10 +27078,10 @@ /** * Decodes a DtmfInput message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DtmfInput + * @memberof google.cloud.dialogflow.cx.v3.DtmfInput * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.DtmfInput} DtmfInput + * @returns {google.cloud.dialogflow.cx.v3.DtmfInput} DtmfInput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -25175,7 +27094,7 @@ /** * Verifies a DtmfInput message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.DtmfInput + * @memberof google.cloud.dialogflow.cx.v3.DtmfInput * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -25195,15 +27114,15 @@ /** * Creates a DtmfInput message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DtmfInput + * @memberof google.cloud.dialogflow.cx.v3.DtmfInput * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.DtmfInput} DtmfInput + * @returns {google.cloud.dialogflow.cx.v3.DtmfInput} DtmfInput */ DtmfInput.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.DtmfInput) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.DtmfInput) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.DtmfInput(); + var message = new $root.google.cloud.dialogflow.cx.v3.DtmfInput(); if (object.digits != null) message.digits = String(object.digits); if (object.finishDigit != null) @@ -25214,9 +27133,9 @@ /** * Creates a plain object from a DtmfInput message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DtmfInput + * @memberof google.cloud.dialogflow.cx.v3.DtmfInput * @static - * @param {google.cloud.dialogflow.cx.v3beta1.DtmfInput} message DtmfInput + * @param {google.cloud.dialogflow.cx.v3.DtmfInput} message DtmfInput * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -25238,7 +27157,7 @@ /** * Converts this DtmfInput to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.DtmfInput + * @memberof google.cloud.dialogflow.cx.v3.DtmfInput * @instance * @returns {Object.} JSON object */ @@ -25249,27 +27168,27 @@ return DtmfInput; })(); - v3beta1.Match = (function() { + v3.Match = (function() { /** * Properties of a Match. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface IMatch - * @property {google.cloud.dialogflow.cx.v3beta1.IIntent|null} [intent] Match intent + * @property {google.cloud.dialogflow.cx.v3.IIntent|null} [intent] Match intent * @property {string|null} [event] Match event * @property {google.protobuf.IStruct|null} [parameters] Match parameters * @property {string|null} [resolvedInput] Match resolvedInput - * @property {google.cloud.dialogflow.cx.v3beta1.Match.MatchType|null} [matchType] Match matchType + * @property {google.cloud.dialogflow.cx.v3.Match.MatchType|null} [matchType] Match matchType * @property {number|null} [confidence] Match confidence */ /** * Constructs a new Match. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a Match. * @implements IMatch * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IMatch=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IMatch=} [properties] Properties to set */ function Match(properties) { if (properties) @@ -25280,8 +27199,8 @@ /** * Match intent. - * @member {google.cloud.dialogflow.cx.v3beta1.IIntent|null|undefined} intent - * @memberof google.cloud.dialogflow.cx.v3beta1.Match + * @member {google.cloud.dialogflow.cx.v3.IIntent|null|undefined} intent + * @memberof google.cloud.dialogflow.cx.v3.Match * @instance */ Match.prototype.intent = null; @@ -25289,7 +27208,7 @@ /** * Match event. * @member {string} event - * @memberof google.cloud.dialogflow.cx.v3beta1.Match + * @memberof google.cloud.dialogflow.cx.v3.Match * @instance */ Match.prototype.event = ""; @@ -25297,7 +27216,7 @@ /** * Match parameters. * @member {google.protobuf.IStruct|null|undefined} parameters - * @memberof google.cloud.dialogflow.cx.v3beta1.Match + * @memberof google.cloud.dialogflow.cx.v3.Match * @instance */ Match.prototype.parameters = null; @@ -25305,15 +27224,15 @@ /** * Match resolvedInput. * @member {string} resolvedInput - * @memberof google.cloud.dialogflow.cx.v3beta1.Match + * @memberof google.cloud.dialogflow.cx.v3.Match * @instance */ Match.prototype.resolvedInput = ""; /** * Match matchType. - * @member {google.cloud.dialogflow.cx.v3beta1.Match.MatchType} matchType - * @memberof google.cloud.dialogflow.cx.v3beta1.Match + * @member {google.cloud.dialogflow.cx.v3.Match.MatchType} matchType + * @memberof google.cloud.dialogflow.cx.v3.Match * @instance */ Match.prototype.matchType = 0; @@ -25321,7 +27240,7 @@ /** * Match confidence. * @member {number} confidence - * @memberof google.cloud.dialogflow.cx.v3beta1.Match + * @memberof google.cloud.dialogflow.cx.v3.Match * @instance */ Match.prototype.confidence = 0; @@ -25329,21 +27248,21 @@ /** * Creates a new Match instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Match + * @memberof google.cloud.dialogflow.cx.v3.Match * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IMatch=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Match} Match instance + * @param {google.cloud.dialogflow.cx.v3.IMatch=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.Match} Match instance */ Match.create = function create(properties) { return new Match(properties); }; /** - * Encodes the specified Match message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Match.verify|verify} messages. + * Encodes the specified Match message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Match.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Match + * @memberof google.cloud.dialogflow.cx.v3.Match * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IMatch} message Match message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IMatch} message Match message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -25351,7 +27270,7 @@ if (!writer) writer = $Writer.create(); if (message.intent != null && Object.hasOwnProperty.call(message, "intent")) - $root.google.cloud.dialogflow.cx.v3beta1.Intent.encode(message.intent, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.Intent.encode(message.intent, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) $root.google.protobuf.Struct.encode(message.parameters, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.resolvedInput != null && Object.hasOwnProperty.call(message, "resolvedInput")) @@ -25366,11 +27285,11 @@ }; /** - * Encodes the specified Match message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Match.verify|verify} messages. + * Encodes the specified Match message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Match.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Match + * @memberof google.cloud.dialogflow.cx.v3.Match * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IMatch} message Match message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IMatch} message Match message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -25381,23 +27300,23 @@ /** * Decodes a Match message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Match + * @memberof google.cloud.dialogflow.cx.v3.Match * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.Match} Match + * @returns {google.cloud.dialogflow.cx.v3.Match} Match * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Match.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Match(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Match(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.intent = $root.google.cloud.dialogflow.cx.v3beta1.Intent.decode(reader, reader.uint32()); + message.intent = $root.google.cloud.dialogflow.cx.v3.Intent.decode(reader, reader.uint32()); break; case 6: message.event = reader.string(); @@ -25425,10 +27344,10 @@ /** * Decodes a Match message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Match + * @memberof google.cloud.dialogflow.cx.v3.Match * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Match} Match + * @returns {google.cloud.dialogflow.cx.v3.Match} Match * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -25441,7 +27360,7 @@ /** * Verifies a Match message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Match + * @memberof google.cloud.dialogflow.cx.v3.Match * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -25450,7 +27369,7 @@ if (typeof message !== "object" || message === null) return "object expected"; if (message.intent != null && message.hasOwnProperty("intent")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Intent.verify(message.intent); + var error = $root.google.cloud.dialogflow.cx.v3.Intent.verify(message.intent); if (error) return "intent." + error; } @@ -25487,25 +27406,25 @@ /** * Creates a Match message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Match + * @memberof google.cloud.dialogflow.cx.v3.Match * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Match} Match + * @returns {google.cloud.dialogflow.cx.v3.Match} Match */ Match.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Match) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.Match) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Match(); + var message = new $root.google.cloud.dialogflow.cx.v3.Match(); if (object.intent != null) { if (typeof object.intent !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Match.intent: object expected"); - message.intent = $root.google.cloud.dialogflow.cx.v3beta1.Intent.fromObject(object.intent); + throw TypeError(".google.cloud.dialogflow.cx.v3.Match.intent: object expected"); + message.intent = $root.google.cloud.dialogflow.cx.v3.Intent.fromObject(object.intent); } if (object.event != null) message.event = String(object.event); if (object.parameters != null) { if (typeof object.parameters !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Match.parameters: object expected"); + throw TypeError(".google.cloud.dialogflow.cx.v3.Match.parameters: object expected"); message.parameters = $root.google.protobuf.Struct.fromObject(object.parameters); } if (object.resolvedInput != null) @@ -25548,9 +27467,9 @@ /** * Creates a plain object from a Match message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Match + * @memberof google.cloud.dialogflow.cx.v3.Match * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Match} message Match + * @param {google.cloud.dialogflow.cx.v3.Match} message Match * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -25567,13 +27486,13 @@ object.event = ""; } if (message.intent != null && message.hasOwnProperty("intent")) - object.intent = $root.google.cloud.dialogflow.cx.v3beta1.Intent.toObject(message.intent, options); + object.intent = $root.google.cloud.dialogflow.cx.v3.Intent.toObject(message.intent, options); if (message.parameters != null && message.hasOwnProperty("parameters")) object.parameters = $root.google.protobuf.Struct.toObject(message.parameters, options); if (message.resolvedInput != null && message.hasOwnProperty("resolvedInput")) object.resolvedInput = message.resolvedInput; if (message.matchType != null && message.hasOwnProperty("matchType")) - object.matchType = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.Match.MatchType[message.matchType] : message.matchType; + object.matchType = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.Match.MatchType[message.matchType] : message.matchType; if (message.confidence != null && message.hasOwnProperty("confidence")) object.confidence = options.json && !isFinite(message.confidence) ? String(message.confidence) : message.confidence; if (message.event != null && message.hasOwnProperty("event")) @@ -25584,7 +27503,7 @@ /** * Converts this Match to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Match + * @memberof google.cloud.dialogflow.cx.v3.Match * @instance * @returns {Object.} JSON object */ @@ -25594,7 +27513,7 @@ /** * MatchType enum. - * @name google.cloud.dialogflow.cx.v3beta1.Match.MatchType + * @name google.cloud.dialogflow.cx.v3.Match.MatchType * @enum {number} * @property {number} MATCH_TYPE_UNSPECIFIED=0 MATCH_TYPE_UNSPECIFIED value * @property {number} INTENT=1 INTENT value @@ -25619,24 +27538,24 @@ return Match; })(); - v3beta1.MatchIntentRequest = (function() { + v3.MatchIntentRequest = (function() { /** * Properties of a MatchIntentRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface IMatchIntentRequest * @property {string|null} [session] MatchIntentRequest session - * @property {google.cloud.dialogflow.cx.v3beta1.IQueryParameters|null} [queryParams] MatchIntentRequest queryParams - * @property {google.cloud.dialogflow.cx.v3beta1.IQueryInput|null} [queryInput] MatchIntentRequest queryInput + * @property {google.cloud.dialogflow.cx.v3.IQueryParameters|null} [queryParams] MatchIntentRequest queryParams + * @property {google.cloud.dialogflow.cx.v3.IQueryInput|null} [queryInput] MatchIntentRequest queryInput */ /** * Constructs a new MatchIntentRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a MatchIntentRequest. * @implements IMatchIntentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IMatchIntentRequest=} [properties] Properties to set */ function MatchIntentRequest(properties) { if (properties) @@ -25648,23 +27567,23 @@ /** * MatchIntentRequest session. * @member {string} session - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentRequest * @instance */ MatchIntentRequest.prototype.session = ""; /** * MatchIntentRequest queryParams. - * @member {google.cloud.dialogflow.cx.v3beta1.IQueryParameters|null|undefined} queryParams - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest + * @member {google.cloud.dialogflow.cx.v3.IQueryParameters|null|undefined} queryParams + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentRequest * @instance */ MatchIntentRequest.prototype.queryParams = null; /** * MatchIntentRequest queryInput. - * @member {google.cloud.dialogflow.cx.v3beta1.IQueryInput|null|undefined} queryInput - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest + * @member {google.cloud.dialogflow.cx.v3.IQueryInput|null|undefined} queryInput + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentRequest * @instance */ MatchIntentRequest.prototype.queryInput = null; @@ -25672,21 +27591,21 @@ /** * Creates a new MatchIntentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest} MatchIntentRequest instance + * @param {google.cloud.dialogflow.cx.v3.IMatchIntentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.MatchIntentRequest} MatchIntentRequest instance */ MatchIntentRequest.create = function create(properties) { return new MatchIntentRequest(properties); }; /** - * Encodes the specified MatchIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest.verify|verify} messages. + * Encodes the specified MatchIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.MatchIntentRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest} message MatchIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IMatchIntentRequest} message MatchIntentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -25696,18 +27615,18 @@ if (message.session != null && Object.hasOwnProperty.call(message, "session")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.session); if (message.queryParams != null && Object.hasOwnProperty.call(message, "queryParams")) - $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters.encode(message.queryParams, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.QueryParameters.encode(message.queryParams, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.queryInput != null && Object.hasOwnProperty.call(message, "queryInput")) - $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.encode(message.queryInput, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.QueryInput.encode(message.queryInput, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified MatchIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest.verify|verify} messages. + * Encodes the specified MatchIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.MatchIntentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest} message MatchIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IMatchIntentRequest} message MatchIntentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -25718,18 +27637,18 @@ /** * Decodes a MatchIntentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest} MatchIntentRequest + * @returns {google.cloud.dialogflow.cx.v3.MatchIntentRequest} MatchIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ MatchIntentRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.MatchIntentRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -25737,10 +27656,10 @@ message.session = reader.string(); break; case 2: - message.queryParams = $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters.decode(reader, reader.uint32()); + message.queryParams = $root.google.cloud.dialogflow.cx.v3.QueryParameters.decode(reader, reader.uint32()); break; case 3: - message.queryInput = $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.decode(reader, reader.uint32()); + message.queryInput = $root.google.cloud.dialogflow.cx.v3.QueryInput.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -25753,10 +27672,10 @@ /** * Decodes a MatchIntentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest} MatchIntentRequest + * @returns {google.cloud.dialogflow.cx.v3.MatchIntentRequest} MatchIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -25769,7 +27688,7 @@ /** * Verifies a MatchIntentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -25781,12 +27700,12 @@ if (!$util.isString(message.session)) return "session: string expected"; if (message.queryParams != null && message.hasOwnProperty("queryParams")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters.verify(message.queryParams); + var error = $root.google.cloud.dialogflow.cx.v3.QueryParameters.verify(message.queryParams); if (error) return "queryParams." + error; } if (message.queryInput != null && message.hasOwnProperty("queryInput")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.verify(message.queryInput); + var error = $root.google.cloud.dialogflow.cx.v3.QueryInput.verify(message.queryInput); if (error) return "queryInput." + error; } @@ -25796,26 +27715,26 @@ /** * Creates a MatchIntentRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest} MatchIntentRequest + * @returns {google.cloud.dialogflow.cx.v3.MatchIntentRequest} MatchIntentRequest */ MatchIntentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.MatchIntentRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.MatchIntentRequest(); if (object.session != null) message.session = String(object.session); if (object.queryParams != null) { if (typeof object.queryParams !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest.queryParams: object expected"); - message.queryParams = $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters.fromObject(object.queryParams); + throw TypeError(".google.cloud.dialogflow.cx.v3.MatchIntentRequest.queryParams: object expected"); + message.queryParams = $root.google.cloud.dialogflow.cx.v3.QueryParameters.fromObject(object.queryParams); } if (object.queryInput != null) { if (typeof object.queryInput !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest.queryInput: object expected"); - message.queryInput = $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.fromObject(object.queryInput); + throw TypeError(".google.cloud.dialogflow.cx.v3.MatchIntentRequest.queryInput: object expected"); + message.queryInput = $root.google.cloud.dialogflow.cx.v3.QueryInput.fromObject(object.queryInput); } return message; }; @@ -25823,9 +27742,9 @@ /** * Creates a plain object from a MatchIntentRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest} message MatchIntentRequest + * @param {google.cloud.dialogflow.cx.v3.MatchIntentRequest} message MatchIntentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -25841,16 +27760,16 @@ if (message.session != null && message.hasOwnProperty("session")) object.session = message.session; if (message.queryParams != null && message.hasOwnProperty("queryParams")) - object.queryParams = $root.google.cloud.dialogflow.cx.v3beta1.QueryParameters.toObject(message.queryParams, options); + object.queryParams = $root.google.cloud.dialogflow.cx.v3.QueryParameters.toObject(message.queryParams, options); if (message.queryInput != null && message.hasOwnProperty("queryInput")) - object.queryInput = $root.google.cloud.dialogflow.cx.v3beta1.QueryInput.toObject(message.queryInput, options); + object.queryInput = $root.google.cloud.dialogflow.cx.v3.QueryInput.toObject(message.queryInput, options); return object; }; /** * Converts this MatchIntentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentRequest * @instance * @returns {Object.} JSON object */ @@ -25861,27 +27780,27 @@ return MatchIntentRequest; })(); - v3beta1.MatchIntentResponse = (function() { + v3.MatchIntentResponse = (function() { /** * Properties of a MatchIntentResponse. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface IMatchIntentResponse * @property {string|null} [text] MatchIntentResponse text * @property {string|null} [triggerIntent] MatchIntentResponse triggerIntent * @property {string|null} [transcript] MatchIntentResponse transcript * @property {string|null} [triggerEvent] MatchIntentResponse triggerEvent - * @property {Array.|null} [matches] MatchIntentResponse matches - * @property {google.cloud.dialogflow.cx.v3beta1.IPage|null} [currentPage] MatchIntentResponse currentPage + * @property {Array.|null} [matches] MatchIntentResponse matches + * @property {google.cloud.dialogflow.cx.v3.IPage|null} [currentPage] MatchIntentResponse currentPage */ /** * Constructs a new MatchIntentResponse. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a MatchIntentResponse. * @implements IMatchIntentResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IMatchIntentResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IMatchIntentResponse=} [properties] Properties to set */ function MatchIntentResponse(properties) { this.matches = []; @@ -25894,7 +27813,7 @@ /** * MatchIntentResponse text. * @member {string} text - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse * @instance */ MatchIntentResponse.prototype.text = ""; @@ -25902,7 +27821,7 @@ /** * MatchIntentResponse triggerIntent. * @member {string} triggerIntent - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse * @instance */ MatchIntentResponse.prototype.triggerIntent = ""; @@ -25910,7 +27829,7 @@ /** * MatchIntentResponse transcript. * @member {string} transcript - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse * @instance */ MatchIntentResponse.prototype.transcript = ""; @@ -25918,23 +27837,23 @@ /** * MatchIntentResponse triggerEvent. * @member {string} triggerEvent - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse * @instance */ MatchIntentResponse.prototype.triggerEvent = ""; /** * MatchIntentResponse matches. - * @member {Array.} matches - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse + * @member {Array.} matches + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse * @instance */ MatchIntentResponse.prototype.matches = $util.emptyArray; /** * MatchIntentResponse currentPage. - * @member {google.cloud.dialogflow.cx.v3beta1.IPage|null|undefined} currentPage - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse + * @member {google.cloud.dialogflow.cx.v3.IPage|null|undefined} currentPage + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse * @instance */ MatchIntentResponse.prototype.currentPage = null; @@ -25945,7 +27864,7 @@ /** * MatchIntentResponse query. * @member {"text"|"triggerIntent"|"transcript"|"triggerEvent"|undefined} query - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse * @instance */ Object.defineProperty(MatchIntentResponse.prototype, "query", { @@ -25956,21 +27875,21 @@ /** * Creates a new MatchIntentResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IMatchIntentResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse} MatchIntentResponse instance + * @param {google.cloud.dialogflow.cx.v3.IMatchIntentResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.MatchIntentResponse} MatchIntentResponse instance */ MatchIntentResponse.create = function create(properties) { return new MatchIntentResponse(properties); }; /** - * Encodes the specified MatchIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse.verify|verify} messages. + * Encodes the specified MatchIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.MatchIntentResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IMatchIntentResponse} message MatchIntentResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IMatchIntentResponse} message MatchIntentResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -25985,20 +27904,20 @@ writer.uint32(/* id 3, wireType 2 =*/26).string(message.transcript); if (message.matches != null && message.matches.length) for (var i = 0; i < message.matches.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.Match.encode(message.matches[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.Match.encode(message.matches[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); if (message.currentPage != null && Object.hasOwnProperty.call(message, "currentPage")) - $root.google.cloud.dialogflow.cx.v3beta1.Page.encode(message.currentPage, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.Page.encode(message.currentPage, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); if (message.triggerEvent != null && Object.hasOwnProperty.call(message, "triggerEvent")) writer.uint32(/* id 6, wireType 2 =*/50).string(message.triggerEvent); return writer; }; /** - * Encodes the specified MatchIntentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse.verify|verify} messages. + * Encodes the specified MatchIntentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.MatchIntentResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IMatchIntentResponse} message MatchIntentResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IMatchIntentResponse} message MatchIntentResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -26009,18 +27928,18 @@ /** * Decodes a MatchIntentResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse} MatchIntentResponse + * @returns {google.cloud.dialogflow.cx.v3.MatchIntentResponse} MatchIntentResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ MatchIntentResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.MatchIntentResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -26039,10 +27958,10 @@ case 4: if (!(message.matches && message.matches.length)) message.matches = []; - message.matches.push($root.google.cloud.dialogflow.cx.v3beta1.Match.decode(reader, reader.uint32())); + message.matches.push($root.google.cloud.dialogflow.cx.v3.Match.decode(reader, reader.uint32())); break; case 5: - message.currentPage = $root.google.cloud.dialogflow.cx.v3beta1.Page.decode(reader, reader.uint32()); + message.currentPage = $root.google.cloud.dialogflow.cx.v3.Page.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -26055,10 +27974,10 @@ /** * Decodes a MatchIntentResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse} MatchIntentResponse + * @returns {google.cloud.dialogflow.cx.v3.MatchIntentResponse} MatchIntentResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -26071,7 +27990,7 @@ /** * Verifies a MatchIntentResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -26110,13 +28029,13 @@ if (!Array.isArray(message.matches)) return "matches: array expected"; for (var i = 0; i < message.matches.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Match.verify(message.matches[i]); + var error = $root.google.cloud.dialogflow.cx.v3.Match.verify(message.matches[i]); if (error) return "matches." + error; } } if (message.currentPage != null && message.hasOwnProperty("currentPage")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Page.verify(message.currentPage); + var error = $root.google.cloud.dialogflow.cx.v3.Page.verify(message.currentPage); if (error) return "currentPage." + error; } @@ -26126,15 +28045,15 @@ /** * Creates a MatchIntentResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse} MatchIntentResponse + * @returns {google.cloud.dialogflow.cx.v3.MatchIntentResponse} MatchIntentResponse */ MatchIntentResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.MatchIntentResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse(); + var message = new $root.google.cloud.dialogflow.cx.v3.MatchIntentResponse(); if (object.text != null) message.text = String(object.text); if (object.triggerIntent != null) @@ -26145,18 +28064,18 @@ message.triggerEvent = String(object.triggerEvent); if (object.matches) { if (!Array.isArray(object.matches)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse.matches: array expected"); + throw TypeError(".google.cloud.dialogflow.cx.v3.MatchIntentResponse.matches: array expected"); message.matches = []; for (var i = 0; i < object.matches.length; ++i) { if (typeof object.matches[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse.matches: object expected"); - message.matches[i] = $root.google.cloud.dialogflow.cx.v3beta1.Match.fromObject(object.matches[i]); + throw TypeError(".google.cloud.dialogflow.cx.v3.MatchIntentResponse.matches: object expected"); + message.matches[i] = $root.google.cloud.dialogflow.cx.v3.Match.fromObject(object.matches[i]); } } if (object.currentPage != null) { if (typeof object.currentPage !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse.currentPage: object expected"); - message.currentPage = $root.google.cloud.dialogflow.cx.v3beta1.Page.fromObject(object.currentPage); + throw TypeError(".google.cloud.dialogflow.cx.v3.MatchIntentResponse.currentPage: object expected"); + message.currentPage = $root.google.cloud.dialogflow.cx.v3.Page.fromObject(object.currentPage); } return message; }; @@ -26164,9 +28083,9 @@ /** * Creates a plain object from a MatchIntentResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse} message MatchIntentResponse + * @param {google.cloud.dialogflow.cx.v3.MatchIntentResponse} message MatchIntentResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -26196,10 +28115,10 @@ if (message.matches && message.matches.length) { object.matches = []; for (var j = 0; j < message.matches.length; ++j) - object.matches[j] = $root.google.cloud.dialogflow.cx.v3beta1.Match.toObject(message.matches[j], options); + object.matches[j] = $root.google.cloud.dialogflow.cx.v3.Match.toObject(message.matches[j], options); } if (message.currentPage != null && message.hasOwnProperty("currentPage")) - object.currentPage = $root.google.cloud.dialogflow.cx.v3beta1.Page.toObject(message.currentPage, options); + object.currentPage = $root.google.cloud.dialogflow.cx.v3.Page.toObject(message.currentPage, options); if (message.triggerEvent != null && message.hasOwnProperty("triggerEvent")) { object.triggerEvent = message.triggerEvent; if (options.oneofs) @@ -26211,7 +28130,7 @@ /** * Converts this MatchIntentResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.MatchIntentResponse * @instance * @returns {Object.} JSON object */ @@ -26222,24 +28141,24 @@ return MatchIntentResponse; })(); - v3beta1.FulfillIntentRequest = (function() { + v3.FulfillIntentRequest = (function() { /** * Properties of a FulfillIntentRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface IFulfillIntentRequest - * @property {google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest|null} [matchIntentRequest] FulfillIntentRequest matchIntentRequest - * @property {google.cloud.dialogflow.cx.v3beta1.IMatch|null} [match] FulfillIntentRequest match - * @property {google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null} [outputAudioConfig] FulfillIntentRequest outputAudioConfig + * @property {google.cloud.dialogflow.cx.v3.IMatchIntentRequest|null} [matchIntentRequest] FulfillIntentRequest matchIntentRequest + * @property {google.cloud.dialogflow.cx.v3.IMatch|null} [match] FulfillIntentRequest match + * @property {google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null} [outputAudioConfig] FulfillIntentRequest outputAudioConfig */ /** * Constructs a new FulfillIntentRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a FulfillIntentRequest. * @implements IFulfillIntentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IFulfillIntentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IFulfillIntentRequest=} [properties] Properties to set */ function FulfillIntentRequest(properties) { if (properties) @@ -26250,24 +28169,24 @@ /** * FulfillIntentRequest matchIntentRequest. - * @member {google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest|null|undefined} matchIntentRequest - * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest + * @member {google.cloud.dialogflow.cx.v3.IMatchIntentRequest|null|undefined} matchIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentRequest * @instance */ FulfillIntentRequest.prototype.matchIntentRequest = null; /** * FulfillIntentRequest match. - * @member {google.cloud.dialogflow.cx.v3beta1.IMatch|null|undefined} match - * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest + * @member {google.cloud.dialogflow.cx.v3.IMatch|null|undefined} match + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentRequest * @instance */ FulfillIntentRequest.prototype.match = null; /** * FulfillIntentRequest outputAudioConfig. - * @member {google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null|undefined} outputAudioConfig - * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest + * @member {google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null|undefined} outputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentRequest * @instance */ FulfillIntentRequest.prototype.outputAudioConfig = null; @@ -26275,21 +28194,21 @@ /** * Creates a new FulfillIntentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IFulfillIntentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest} FulfillIntentRequest instance + * @param {google.cloud.dialogflow.cx.v3.IFulfillIntentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.FulfillIntentRequest} FulfillIntentRequest instance */ FulfillIntentRequest.create = function create(properties) { return new FulfillIntentRequest(properties); }; /** - * Encodes the specified FulfillIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest.verify|verify} messages. + * Encodes the specified FulfillIntentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.FulfillIntentRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IFulfillIntentRequest} message FulfillIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IFulfillIntentRequest} message FulfillIntentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -26297,20 +28216,20 @@ if (!writer) writer = $Writer.create(); if (message.matchIntentRequest != null && Object.hasOwnProperty.call(message, "matchIntentRequest")) - $root.google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest.encode(message.matchIntentRequest, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.MatchIntentRequest.encode(message.matchIntentRequest, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.match != null && Object.hasOwnProperty.call(message, "match")) - $root.google.cloud.dialogflow.cx.v3beta1.Match.encode(message.match, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.Match.encode(message.match, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.outputAudioConfig != null && Object.hasOwnProperty.call(message, "outputAudioConfig")) - $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.encode(message.outputAudioConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.encode(message.outputAudioConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified FulfillIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest.verify|verify} messages. + * Encodes the specified FulfillIntentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.FulfillIntentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IFulfillIntentRequest} message FulfillIntentRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IFulfillIntentRequest} message FulfillIntentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -26321,29 +28240,29 @@ /** * Decodes a FulfillIntentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest} FulfillIntentRequest + * @returns {google.cloud.dialogflow.cx.v3.FulfillIntentRequest} FulfillIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ FulfillIntentRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.FulfillIntentRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.matchIntentRequest = $root.google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest.decode(reader, reader.uint32()); + message.matchIntentRequest = $root.google.cloud.dialogflow.cx.v3.MatchIntentRequest.decode(reader, reader.uint32()); break; case 2: - message.match = $root.google.cloud.dialogflow.cx.v3beta1.Match.decode(reader, reader.uint32()); + message.match = $root.google.cloud.dialogflow.cx.v3.Match.decode(reader, reader.uint32()); break; case 3: - message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.decode(reader, reader.uint32()); + message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -26356,10 +28275,10 @@ /** * Decodes a FulfillIntentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest} FulfillIntentRequest + * @returns {google.cloud.dialogflow.cx.v3.FulfillIntentRequest} FulfillIntentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -26372,7 +28291,7 @@ /** * Verifies a FulfillIntentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -26381,17 +28300,17 @@ if (typeof message !== "object" || message === null) return "object expected"; if (message.matchIntentRequest != null && message.hasOwnProperty("matchIntentRequest")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest.verify(message.matchIntentRequest); + var error = $root.google.cloud.dialogflow.cx.v3.MatchIntentRequest.verify(message.matchIntentRequest); if (error) return "matchIntentRequest." + error; } if (message.match != null && message.hasOwnProperty("match")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Match.verify(message.match); + var error = $root.google.cloud.dialogflow.cx.v3.Match.verify(message.match); if (error) return "match." + error; } if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.verify(message.outputAudioConfig); + var error = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.verify(message.outputAudioConfig); if (error) return "outputAudioConfig." + error; } @@ -26401,29 +28320,29 @@ /** * Creates a FulfillIntentRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest} FulfillIntentRequest + * @returns {google.cloud.dialogflow.cx.v3.FulfillIntentRequest} FulfillIntentRequest */ FulfillIntentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.FulfillIntentRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.FulfillIntentRequest(); if (object.matchIntentRequest != null) { if (typeof object.matchIntentRequest !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest.matchIntentRequest: object expected"); - message.matchIntentRequest = $root.google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest.fromObject(object.matchIntentRequest); + throw TypeError(".google.cloud.dialogflow.cx.v3.FulfillIntentRequest.matchIntentRequest: object expected"); + message.matchIntentRequest = $root.google.cloud.dialogflow.cx.v3.MatchIntentRequest.fromObject(object.matchIntentRequest); } if (object.match != null) { if (typeof object.match !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest.match: object expected"); - message.match = $root.google.cloud.dialogflow.cx.v3beta1.Match.fromObject(object.match); + throw TypeError(".google.cloud.dialogflow.cx.v3.FulfillIntentRequest.match: object expected"); + message.match = $root.google.cloud.dialogflow.cx.v3.Match.fromObject(object.match); } if (object.outputAudioConfig != null) { if (typeof object.outputAudioConfig !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest.outputAudioConfig: object expected"); - message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.fromObject(object.outputAudioConfig); + throw TypeError(".google.cloud.dialogflow.cx.v3.FulfillIntentRequest.outputAudioConfig: object expected"); + message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.fromObject(object.outputAudioConfig); } return message; }; @@ -26431,9 +28350,9 @@ /** * Creates a plain object from a FulfillIntentRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest} message FulfillIntentRequest + * @param {google.cloud.dialogflow.cx.v3.FulfillIntentRequest} message FulfillIntentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -26447,18 +28366,18 @@ object.outputAudioConfig = null; } if (message.matchIntentRequest != null && message.hasOwnProperty("matchIntentRequest")) - object.matchIntentRequest = $root.google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest.toObject(message.matchIntentRequest, options); + object.matchIntentRequest = $root.google.cloud.dialogflow.cx.v3.MatchIntentRequest.toObject(message.matchIntentRequest, options); if (message.match != null && message.hasOwnProperty("match")) - object.match = $root.google.cloud.dialogflow.cx.v3beta1.Match.toObject(message.match, options); + object.match = $root.google.cloud.dialogflow.cx.v3.Match.toObject(message.match, options); if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) - object.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.toObject(message.outputAudioConfig, options); + object.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.toObject(message.outputAudioConfig, options); return object; }; /** * Converts this FulfillIntentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentRequest * @instance * @returns {Object.} JSON object */ @@ -26469,25 +28388,25 @@ return FulfillIntentRequest; })(); - v3beta1.FulfillIntentResponse = (function() { + v3.FulfillIntentResponse = (function() { /** * Properties of a FulfillIntentResponse. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface IFulfillIntentResponse * @property {string|null} [responseId] FulfillIntentResponse responseId - * @property {google.cloud.dialogflow.cx.v3beta1.IQueryResult|null} [queryResult] FulfillIntentResponse queryResult + * @property {google.cloud.dialogflow.cx.v3.IQueryResult|null} [queryResult] FulfillIntentResponse queryResult * @property {Uint8Array|null} [outputAudio] FulfillIntentResponse outputAudio - * @property {google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null} [outputAudioConfig] FulfillIntentResponse outputAudioConfig + * @property {google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null} [outputAudioConfig] FulfillIntentResponse outputAudioConfig */ /** * Constructs a new FulfillIntentResponse. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a FulfillIntentResponse. * @implements IFulfillIntentResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IFulfillIntentResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IFulfillIntentResponse=} [properties] Properties to set */ function FulfillIntentResponse(properties) { if (properties) @@ -26499,15 +28418,15 @@ /** * FulfillIntentResponse responseId. * @member {string} responseId - * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse * @instance */ FulfillIntentResponse.prototype.responseId = ""; /** * FulfillIntentResponse queryResult. - * @member {google.cloud.dialogflow.cx.v3beta1.IQueryResult|null|undefined} queryResult - * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse + * @member {google.cloud.dialogflow.cx.v3.IQueryResult|null|undefined} queryResult + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse * @instance */ FulfillIntentResponse.prototype.queryResult = null; @@ -26515,15 +28434,15 @@ /** * FulfillIntentResponse outputAudio. * @member {Uint8Array} outputAudio - * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse * @instance */ FulfillIntentResponse.prototype.outputAudio = $util.newBuffer([]); /** * FulfillIntentResponse outputAudioConfig. - * @member {google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig|null|undefined} outputAudioConfig - * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse + * @member {google.cloud.dialogflow.cx.v3.IOutputAudioConfig|null|undefined} outputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse * @instance */ FulfillIntentResponse.prototype.outputAudioConfig = null; @@ -26531,21 +28450,21 @@ /** * Creates a new FulfillIntentResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IFulfillIntentResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse} FulfillIntentResponse instance + * @param {google.cloud.dialogflow.cx.v3.IFulfillIntentResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.FulfillIntentResponse} FulfillIntentResponse instance */ FulfillIntentResponse.create = function create(properties) { return new FulfillIntentResponse(properties); }; /** - * Encodes the specified FulfillIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse.verify|verify} messages. + * Encodes the specified FulfillIntentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.FulfillIntentResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IFulfillIntentResponse} message FulfillIntentResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IFulfillIntentResponse} message FulfillIntentResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -26555,20 +28474,20 @@ if (message.responseId != null && Object.hasOwnProperty.call(message, "responseId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.responseId); if (message.queryResult != null && Object.hasOwnProperty.call(message, "queryResult")) - $root.google.cloud.dialogflow.cx.v3beta1.QueryResult.encode(message.queryResult, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.QueryResult.encode(message.queryResult, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.outputAudio != null && Object.hasOwnProperty.call(message, "outputAudio")) writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.outputAudio); if (message.outputAudioConfig != null && Object.hasOwnProperty.call(message, "outputAudioConfig")) - $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.encode(message.outputAudioConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.encode(message.outputAudioConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified FulfillIntentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse.verify|verify} messages. + * Encodes the specified FulfillIntentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.FulfillIntentResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IFulfillIntentResponse} message FulfillIntentResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IFulfillIntentResponse} message FulfillIntentResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -26579,18 +28498,18 @@ /** * Decodes a FulfillIntentResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse} FulfillIntentResponse + * @returns {google.cloud.dialogflow.cx.v3.FulfillIntentResponse} FulfillIntentResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ FulfillIntentResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.FulfillIntentResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -26598,13 +28517,13 @@ message.responseId = reader.string(); break; case 2: - message.queryResult = $root.google.cloud.dialogflow.cx.v3beta1.QueryResult.decode(reader, reader.uint32()); + message.queryResult = $root.google.cloud.dialogflow.cx.v3.QueryResult.decode(reader, reader.uint32()); break; case 3: message.outputAudio = reader.bytes(); break; case 4: - message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.decode(reader, reader.uint32()); + message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -26617,10 +28536,10 @@ /** * Decodes a FulfillIntentResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse} FulfillIntentResponse + * @returns {google.cloud.dialogflow.cx.v3.FulfillIntentResponse} FulfillIntentResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -26633,7 +28552,7 @@ /** * Verifies a FulfillIntentResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -26645,7 +28564,7 @@ if (!$util.isString(message.responseId)) return "responseId: string expected"; if (message.queryResult != null && message.hasOwnProperty("queryResult")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.QueryResult.verify(message.queryResult); + var error = $root.google.cloud.dialogflow.cx.v3.QueryResult.verify(message.queryResult); if (error) return "queryResult." + error; } @@ -26653,7 +28572,7 @@ if (!(message.outputAudio && typeof message.outputAudio.length === "number" || $util.isString(message.outputAudio))) return "outputAudio: buffer expected"; if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.verify(message.outputAudioConfig); + var error = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.verify(message.outputAudioConfig); if (error) return "outputAudioConfig." + error; } @@ -26663,21 +28582,21 @@ /** * Creates a FulfillIntentResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse} FulfillIntentResponse + * @returns {google.cloud.dialogflow.cx.v3.FulfillIntentResponse} FulfillIntentResponse */ FulfillIntentResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.FulfillIntentResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse(); + var message = new $root.google.cloud.dialogflow.cx.v3.FulfillIntentResponse(); if (object.responseId != null) message.responseId = String(object.responseId); if (object.queryResult != null) { if (typeof object.queryResult !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse.queryResult: object expected"); - message.queryResult = $root.google.cloud.dialogflow.cx.v3beta1.QueryResult.fromObject(object.queryResult); + throw TypeError(".google.cloud.dialogflow.cx.v3.FulfillIntentResponse.queryResult: object expected"); + message.queryResult = $root.google.cloud.dialogflow.cx.v3.QueryResult.fromObject(object.queryResult); } if (object.outputAudio != null) if (typeof object.outputAudio === "string") @@ -26686,8 +28605,8 @@ message.outputAudio = object.outputAudio; if (object.outputAudioConfig != null) { if (typeof object.outputAudioConfig !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse.outputAudioConfig: object expected"); - message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.fromObject(object.outputAudioConfig); + throw TypeError(".google.cloud.dialogflow.cx.v3.FulfillIntentResponse.outputAudioConfig: object expected"); + message.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.fromObject(object.outputAudioConfig); } return message; }; @@ -26695,9 +28614,9 @@ /** * Creates a plain object from a FulfillIntentResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse} message FulfillIntentResponse + * @param {google.cloud.dialogflow.cx.v3.FulfillIntentResponse} message FulfillIntentResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -26720,18 +28639,18 @@ if (message.responseId != null && message.hasOwnProperty("responseId")) object.responseId = message.responseId; if (message.queryResult != null && message.hasOwnProperty("queryResult")) - object.queryResult = $root.google.cloud.dialogflow.cx.v3beta1.QueryResult.toObject(message.queryResult, options); + object.queryResult = $root.google.cloud.dialogflow.cx.v3.QueryResult.toObject(message.queryResult, options); if (message.outputAudio != null && message.hasOwnProperty("outputAudio")) object.outputAudio = options.bytes === String ? $util.base64.encode(message.outputAudio, 0, message.outputAudio.length) : options.bytes === Array ? Array.prototype.slice.call(message.outputAudio) : message.outputAudio; if (message.outputAudioConfig != null && message.hasOwnProperty("outputAudioConfig")) - object.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.toObject(message.outputAudioConfig, options); + object.outputAudioConfig = $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig.toObject(message.outputAudioConfig, options); return object; }; /** * Converts this FulfillIntentResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse + * @memberof google.cloud.dialogflow.cx.v3.FulfillIntentResponse * @instance * @returns {Object.} JSON object */ @@ -26742,11 +28661,11 @@ return FulfillIntentResponse; })(); - v3beta1.SentimentAnalysisResult = (function() { + v3.SentimentAnalysisResult = (function() { /** * Properties of a SentimentAnalysisResult. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface ISentimentAnalysisResult * @property {number|null} [score] SentimentAnalysisResult score * @property {number|null} [magnitude] SentimentAnalysisResult magnitude @@ -26754,11 +28673,11 @@ /** * Constructs a new SentimentAnalysisResult. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a SentimentAnalysisResult. * @implements ISentimentAnalysisResult * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ISentimentAnalysisResult=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ISentimentAnalysisResult=} [properties] Properties to set */ function SentimentAnalysisResult(properties) { if (properties) @@ -26770,7 +28689,7 @@ /** * SentimentAnalysisResult score. * @member {number} score - * @memberof google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult + * @memberof google.cloud.dialogflow.cx.v3.SentimentAnalysisResult * @instance */ SentimentAnalysisResult.prototype.score = 0; @@ -26778,7 +28697,7 @@ /** * SentimentAnalysisResult magnitude. * @member {number} magnitude - * @memberof google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult + * @memberof google.cloud.dialogflow.cx.v3.SentimentAnalysisResult * @instance */ SentimentAnalysisResult.prototype.magnitude = 0; @@ -26786,21 +28705,21 @@ /** * Creates a new SentimentAnalysisResult instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult + * @memberof google.cloud.dialogflow.cx.v3.SentimentAnalysisResult * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ISentimentAnalysisResult=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult} SentimentAnalysisResult instance + * @param {google.cloud.dialogflow.cx.v3.ISentimentAnalysisResult=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.SentimentAnalysisResult} SentimentAnalysisResult instance */ SentimentAnalysisResult.create = function create(properties) { return new SentimentAnalysisResult(properties); }; /** - * Encodes the specified SentimentAnalysisResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult.verify|verify} messages. + * Encodes the specified SentimentAnalysisResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SentimentAnalysisResult.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult + * @memberof google.cloud.dialogflow.cx.v3.SentimentAnalysisResult * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ISentimentAnalysisResult} message SentimentAnalysisResult message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ISentimentAnalysisResult} message SentimentAnalysisResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -26815,11 +28734,11 @@ }; /** - * Encodes the specified SentimentAnalysisResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult.verify|verify} messages. + * Encodes the specified SentimentAnalysisResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SentimentAnalysisResult.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult + * @memberof google.cloud.dialogflow.cx.v3.SentimentAnalysisResult * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ISentimentAnalysisResult} message SentimentAnalysisResult message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ISentimentAnalysisResult} message SentimentAnalysisResult message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -26830,18 +28749,18 @@ /** * Decodes a SentimentAnalysisResult message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult + * @memberof google.cloud.dialogflow.cx.v3.SentimentAnalysisResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult} SentimentAnalysisResult + * @returns {google.cloud.dialogflow.cx.v3.SentimentAnalysisResult} SentimentAnalysisResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SentimentAnalysisResult.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.SentimentAnalysisResult(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -26862,10 +28781,10 @@ /** * Decodes a SentimentAnalysisResult message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult + * @memberof google.cloud.dialogflow.cx.v3.SentimentAnalysisResult * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult} SentimentAnalysisResult + * @returns {google.cloud.dialogflow.cx.v3.SentimentAnalysisResult} SentimentAnalysisResult * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -26878,7 +28797,7 @@ /** * Verifies a SentimentAnalysisResult message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult + * @memberof google.cloud.dialogflow.cx.v3.SentimentAnalysisResult * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -26898,15 +28817,15 @@ /** * Creates a SentimentAnalysisResult message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult + * @memberof google.cloud.dialogflow.cx.v3.SentimentAnalysisResult * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult} SentimentAnalysisResult + * @returns {google.cloud.dialogflow.cx.v3.SentimentAnalysisResult} SentimentAnalysisResult */ SentimentAnalysisResult.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.SentimentAnalysisResult) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult(); + var message = new $root.google.cloud.dialogflow.cx.v3.SentimentAnalysisResult(); if (object.score != null) message.score = Number(object.score); if (object.magnitude != null) @@ -26917,9 +28836,9 @@ /** * Creates a plain object from a SentimentAnalysisResult message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult + * @memberof google.cloud.dialogflow.cx.v3.SentimentAnalysisResult * @static - * @param {google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult} message SentimentAnalysisResult + * @param {google.cloud.dialogflow.cx.v3.SentimentAnalysisResult} message SentimentAnalysisResult * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -26941,7 +28860,7 @@ /** * Converts this SentimentAnalysisResult to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult + * @memberof google.cloud.dialogflow.cx.v3.SentimentAnalysisResult * @instance * @returns {Object.} JSON object */ @@ -26952,11 +28871,11 @@ return SentimentAnalysisResult; })(); - v3beta1.SessionEntityTypes = (function() { + v3.SessionEntityTypes = (function() { /** * Constructs a new SessionEntityTypes service. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a SessionEntityTypes * @extends $protobuf.rpc.Service * @constructor @@ -26973,7 +28892,7 @@ /** * Creates new SessionEntityTypes service using the specified rpc implementation. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes * @static * @param {$protobuf.RPCImpl} rpcImpl RPC implementation * @param {boolean} [requestDelimited=false] Whether requests are length-delimited @@ -26985,140 +28904,140 @@ }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes#listSessionEntityTypes}. - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes + * Callback as used by {@link google.cloud.dialogflow.cx.v3.SessionEntityTypes#listSessionEntityTypes}. + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes * @typedef ListSessionEntityTypesCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse} [response] ListSessionEntityTypesResponse + * @param {google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse} [response] ListSessionEntityTypesResponse */ /** * Calls ListSessionEntityTypes. * @function listSessionEntityTypes - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesRequest} request ListSessionEntityTypesRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes.ListSessionEntityTypesCallback} callback Node-style callback called with the error, if any, and ListSessionEntityTypesResponse + * @param {google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest} request ListSessionEntityTypesRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.SessionEntityTypes.ListSessionEntityTypesCallback} callback Node-style callback called with the error, if any, and ListSessionEntityTypesResponse * @returns {undefined} * @variation 1 */ Object.defineProperty(SessionEntityTypes.prototype.listSessionEntityTypes = function listSessionEntityTypes(request, callback) { - return this.rpcCall(listSessionEntityTypes, $root.google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest, $root.google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse, request, callback); + return this.rpcCall(listSessionEntityTypes, $root.google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest, $root.google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse, request, callback); }, "name", { value: "ListSessionEntityTypes" }); /** * Calls ListSessionEntityTypes. * @function listSessionEntityTypes - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesRequest} request ListSessionEntityTypesRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest} request ListSessionEntityTypesRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes#getSessionEntityType}. - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes + * Callback as used by {@link google.cloud.dialogflow.cx.v3.SessionEntityTypes#getSessionEntityType}. + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes * @typedef GetSessionEntityTypeCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.SessionEntityType} [response] SessionEntityType + * @param {google.cloud.dialogflow.cx.v3.SessionEntityType} [response] SessionEntityType */ /** * Calls GetSessionEntityType. * @function getSessionEntityType - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetSessionEntityTypeRequest} request GetSessionEntityTypeRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes.GetSessionEntityTypeCallback} callback Node-style callback called with the error, if any, and SessionEntityType + * @param {google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest} request GetSessionEntityTypeRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.SessionEntityTypes.GetSessionEntityTypeCallback} callback Node-style callback called with the error, if any, and SessionEntityType * @returns {undefined} * @variation 1 */ Object.defineProperty(SessionEntityTypes.prototype.getSessionEntityType = function getSessionEntityType(request, callback) { - return this.rpcCall(getSessionEntityType, $root.google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest, $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType, request, callback); + return this.rpcCall(getSessionEntityType, $root.google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest, $root.google.cloud.dialogflow.cx.v3.SessionEntityType, request, callback); }, "name", { value: "GetSessionEntityType" }); /** * Calls GetSessionEntityType. * @function getSessionEntityType - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetSessionEntityTypeRequest} request GetSessionEntityTypeRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest} request GetSessionEntityTypeRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes#createSessionEntityType}. - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes + * Callback as used by {@link google.cloud.dialogflow.cx.v3.SessionEntityTypes#createSessionEntityType}. + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes * @typedef CreateSessionEntityTypeCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.SessionEntityType} [response] SessionEntityType + * @param {google.cloud.dialogflow.cx.v3.SessionEntityType} [response] SessionEntityType */ /** * Calls CreateSessionEntityType. * @function createSessionEntityType - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateSessionEntityTypeRequest} request CreateSessionEntityTypeRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes.CreateSessionEntityTypeCallback} callback Node-style callback called with the error, if any, and SessionEntityType + * @param {google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest} request CreateSessionEntityTypeRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.SessionEntityTypes.CreateSessionEntityTypeCallback} callback Node-style callback called with the error, if any, and SessionEntityType * @returns {undefined} * @variation 1 */ Object.defineProperty(SessionEntityTypes.prototype.createSessionEntityType = function createSessionEntityType(request, callback) { - return this.rpcCall(createSessionEntityType, $root.google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest, $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType, request, callback); + return this.rpcCall(createSessionEntityType, $root.google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest, $root.google.cloud.dialogflow.cx.v3.SessionEntityType, request, callback); }, "name", { value: "CreateSessionEntityType" }); /** * Calls CreateSessionEntityType. * @function createSessionEntityType - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateSessionEntityTypeRequest} request CreateSessionEntityTypeRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest} request CreateSessionEntityTypeRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes#updateSessionEntityType}. - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes + * Callback as used by {@link google.cloud.dialogflow.cx.v3.SessionEntityTypes#updateSessionEntityType}. + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes * @typedef UpdateSessionEntityTypeCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.SessionEntityType} [response] SessionEntityType + * @param {google.cloud.dialogflow.cx.v3.SessionEntityType} [response] SessionEntityType */ /** * Calls UpdateSessionEntityType. * @function updateSessionEntityType - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateSessionEntityTypeRequest} request UpdateSessionEntityTypeRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes.UpdateSessionEntityTypeCallback} callback Node-style callback called with the error, if any, and SessionEntityType + * @param {google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest} request UpdateSessionEntityTypeRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.SessionEntityTypes.UpdateSessionEntityTypeCallback} callback Node-style callback called with the error, if any, and SessionEntityType * @returns {undefined} * @variation 1 */ Object.defineProperty(SessionEntityTypes.prototype.updateSessionEntityType = function updateSessionEntityType(request, callback) { - return this.rpcCall(updateSessionEntityType, $root.google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest, $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType, request, callback); + return this.rpcCall(updateSessionEntityType, $root.google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest, $root.google.cloud.dialogflow.cx.v3.SessionEntityType, request, callback); }, "name", { value: "UpdateSessionEntityType" }); /** * Calls UpdateSessionEntityType. * @function updateSessionEntityType - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateSessionEntityTypeRequest} request UpdateSessionEntityTypeRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest} request UpdateSessionEntityTypeRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes#deleteSessionEntityType}. - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes + * Callback as used by {@link google.cloud.dialogflow.cx.v3.SessionEntityTypes#deleteSessionEntityType}. + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes * @typedef DeleteSessionEntityTypeCallback * @type {function} * @param {Error|null} error Error, if any @@ -27128,23 +29047,23 @@ /** * Calls DeleteSessionEntityType. * @function deleteSessionEntityType - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteSessionEntityTypeRequest} request DeleteSessionEntityTypeRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes.DeleteSessionEntityTypeCallback} callback Node-style callback called with the error, if any, and Empty + * @param {google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest} request DeleteSessionEntityTypeRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.SessionEntityTypes.DeleteSessionEntityTypeCallback} callback Node-style callback called with the error, if any, and Empty * @returns {undefined} * @variation 1 */ Object.defineProperty(SessionEntityTypes.prototype.deleteSessionEntityType = function deleteSessionEntityType(request, callback) { - return this.rpcCall(deleteSessionEntityType, $root.google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest, $root.google.protobuf.Empty, request, callback); + return this.rpcCall(deleteSessionEntityType, $root.google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest, $root.google.protobuf.Empty, request, callback); }, "name", { value: "DeleteSessionEntityType" }); /** * Calls DeleteSessionEntityType. * @function deleteSessionEntityType - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityTypes * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteSessionEntityTypeRequest} request DeleteSessionEntityTypeRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest} request DeleteSessionEntityTypeRequest message or plain object * @returns {Promise} Promise * @variation 2 */ @@ -27152,24 +29071,24 @@ return SessionEntityTypes; })(); - v3beta1.SessionEntityType = (function() { + v3.SessionEntityType = (function() { /** * Properties of a SessionEntityType. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface ISessionEntityType * @property {string|null} [name] SessionEntityType name - * @property {google.cloud.dialogflow.cx.v3beta1.SessionEntityType.EntityOverrideMode|null} [entityOverrideMode] SessionEntityType entityOverrideMode - * @property {Array.|null} [entities] SessionEntityType entities + * @property {google.cloud.dialogflow.cx.v3.SessionEntityType.EntityOverrideMode|null} [entityOverrideMode] SessionEntityType entityOverrideMode + * @property {Array.|null} [entities] SessionEntityType entities */ /** * Constructs a new SessionEntityType. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a SessionEntityType. * @implements ISessionEntityType * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ISessionEntityType=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ISessionEntityType=} [properties] Properties to set */ function SessionEntityType(properties) { this.entities = []; @@ -27182,23 +29101,23 @@ /** * SessionEntityType name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityType + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityType * @instance */ SessionEntityType.prototype.name = ""; /** * SessionEntityType entityOverrideMode. - * @member {google.cloud.dialogflow.cx.v3beta1.SessionEntityType.EntityOverrideMode} entityOverrideMode - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityType + * @member {google.cloud.dialogflow.cx.v3.SessionEntityType.EntityOverrideMode} entityOverrideMode + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityType * @instance */ SessionEntityType.prototype.entityOverrideMode = 0; /** * SessionEntityType entities. - * @member {Array.} entities - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityType + * @member {Array.} entities + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityType * @instance */ SessionEntityType.prototype.entities = $util.emptyArray; @@ -27206,21 +29125,21 @@ /** * Creates a new SessionEntityType instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityType + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityType * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ISessionEntityType=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.SessionEntityType} SessionEntityType instance + * @param {google.cloud.dialogflow.cx.v3.ISessionEntityType=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.SessionEntityType} SessionEntityType instance */ SessionEntityType.create = function create(properties) { return new SessionEntityType(properties); }; /** - * Encodes the specified SessionEntityType message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SessionEntityType.verify|verify} messages. + * Encodes the specified SessionEntityType message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SessionEntityType.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityType + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityType * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ISessionEntityType} message SessionEntityType message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ISessionEntityType} message SessionEntityType message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -27233,16 +29152,16 @@ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.entityOverrideMode); if (message.entities != null && message.entities.length) for (var i = 0; i < message.entities.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.encode(message.entities[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.EntityType.Entity.encode(message.entities[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified SessionEntityType message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SessionEntityType.verify|verify} messages. + * Encodes the specified SessionEntityType message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SessionEntityType.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityType + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityType * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ISessionEntityType} message SessionEntityType message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ISessionEntityType} message SessionEntityType message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -27253,18 +29172,18 @@ /** * Decodes a SessionEntityType message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityType + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityType * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.SessionEntityType} SessionEntityType + * @returns {google.cloud.dialogflow.cx.v3.SessionEntityType} SessionEntityType * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SessionEntityType.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.SessionEntityType(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -27277,7 +29196,7 @@ case 4: if (!(message.entities && message.entities.length)) message.entities = []; - message.entities.push($root.google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.decode(reader, reader.uint32())); + message.entities.push($root.google.cloud.dialogflow.cx.v3.EntityType.Entity.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -27290,10 +29209,10 @@ /** * Decodes a SessionEntityType message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityType + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityType * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.SessionEntityType} SessionEntityType + * @returns {google.cloud.dialogflow.cx.v3.SessionEntityType} SessionEntityType * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -27306,7 +29225,7 @@ /** * Verifies a SessionEntityType message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityType + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityType * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -27330,7 +29249,7 @@ if (!Array.isArray(message.entities)) return "entities: array expected"; for (var i = 0; i < message.entities.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.verify(message.entities[i]); + var error = $root.google.cloud.dialogflow.cx.v3.EntityType.Entity.verify(message.entities[i]); if (error) return "entities." + error; } @@ -27341,15 +29260,15 @@ /** * Creates a SessionEntityType message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityType + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityType * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.SessionEntityType} SessionEntityType + * @returns {google.cloud.dialogflow.cx.v3.SessionEntityType} SessionEntityType */ SessionEntityType.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.SessionEntityType) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType(); + var message = new $root.google.cloud.dialogflow.cx.v3.SessionEntityType(); if (object.name != null) message.name = String(object.name); switch (object.entityOverrideMode) { @@ -27368,12 +29287,12 @@ } if (object.entities) { if (!Array.isArray(object.entities)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.SessionEntityType.entities: array expected"); + throw TypeError(".google.cloud.dialogflow.cx.v3.SessionEntityType.entities: array expected"); message.entities = []; for (var i = 0; i < object.entities.length; ++i) { if (typeof object.entities[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.SessionEntityType.entities: object expected"); - message.entities[i] = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.fromObject(object.entities[i]); + throw TypeError(".google.cloud.dialogflow.cx.v3.SessionEntityType.entities: object expected"); + message.entities[i] = $root.google.cloud.dialogflow.cx.v3.EntityType.Entity.fromObject(object.entities[i]); } } return message; @@ -27382,9 +29301,9 @@ /** * Creates a plain object from a SessionEntityType message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityType + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityType * @static - * @param {google.cloud.dialogflow.cx.v3beta1.SessionEntityType} message SessionEntityType + * @param {google.cloud.dialogflow.cx.v3.SessionEntityType} message SessionEntityType * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -27401,11 +29320,11 @@ if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; if (message.entityOverrideMode != null && message.hasOwnProperty("entityOverrideMode")) - object.entityOverrideMode = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.EntityOverrideMode[message.entityOverrideMode] : message.entityOverrideMode; + object.entityOverrideMode = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.SessionEntityType.EntityOverrideMode[message.entityOverrideMode] : message.entityOverrideMode; if (message.entities && message.entities.length) { object.entities = []; for (var j = 0; j < message.entities.length; ++j) - object.entities[j] = $root.google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.toObject(message.entities[j], options); + object.entities[j] = $root.google.cloud.dialogflow.cx.v3.EntityType.Entity.toObject(message.entities[j], options); } return object; }; @@ -27413,7 +29332,7 @@ /** * Converts this SessionEntityType to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionEntityType + * @memberof google.cloud.dialogflow.cx.v3.SessionEntityType * @instance * @returns {Object.} JSON object */ @@ -27423,7 +29342,7 @@ /** * EntityOverrideMode enum. - * @name google.cloud.dialogflow.cx.v3beta1.SessionEntityType.EntityOverrideMode + * @name google.cloud.dialogflow.cx.v3.SessionEntityType.EntityOverrideMode * @enum {number} * @property {number} ENTITY_OVERRIDE_MODE_UNSPECIFIED=0 ENTITY_OVERRIDE_MODE_UNSPECIFIED value * @property {number} ENTITY_OVERRIDE_MODE_OVERRIDE=1 ENTITY_OVERRIDE_MODE_OVERRIDE value @@ -27440,11 +29359,11 @@ return SessionEntityType; })(); - v3beta1.ListSessionEntityTypesRequest = (function() { + v3.ListSessionEntityTypesRequest = (function() { /** * Properties of a ListSessionEntityTypesRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface IListSessionEntityTypesRequest * @property {string|null} [parent] ListSessionEntityTypesRequest parent * @property {number|null} [pageSize] ListSessionEntityTypesRequest pageSize @@ -27453,11 +29372,11 @@ /** * Constructs a new ListSessionEntityTypesRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a ListSessionEntityTypesRequest. * @implements IListSessionEntityTypesRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest=} [properties] Properties to set */ function ListSessionEntityTypesRequest(properties) { if (properties) @@ -27469,7 +29388,7 @@ /** * ListSessionEntityTypesRequest parent. * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest * @instance */ ListSessionEntityTypesRequest.prototype.parent = ""; @@ -27477,7 +29396,7 @@ /** * ListSessionEntityTypesRequest pageSize. * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest * @instance */ ListSessionEntityTypesRequest.prototype.pageSize = 0; @@ -27485,7 +29404,7 @@ /** * ListSessionEntityTypesRequest pageToken. * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest * @instance */ ListSessionEntityTypesRequest.prototype.pageToken = ""; @@ -27493,21 +29412,21 @@ /** * Creates a new ListSessionEntityTypesRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest} ListSessionEntityTypesRequest instance + * @param {google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest} ListSessionEntityTypesRequest instance */ ListSessionEntityTypesRequest.create = function create(properties) { return new ListSessionEntityTypesRequest(properties); }; /** - * Encodes the specified ListSessionEntityTypesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest.verify|verify} messages. + * Encodes the specified ListSessionEntityTypesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesRequest} message ListSessionEntityTypesRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest} message ListSessionEntityTypesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -27524,11 +29443,11 @@ }; /** - * Encodes the specified ListSessionEntityTypesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest.verify|verify} messages. + * Encodes the specified ListSessionEntityTypesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesRequest} message ListSessionEntityTypesRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest} message ListSessionEntityTypesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -27539,18 +29458,18 @@ /** * Decodes a ListSessionEntityTypesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest} ListSessionEntityTypesRequest + * @returns {google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest} ListSessionEntityTypesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ListSessionEntityTypesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -27574,10 +29493,10 @@ /** * Decodes a ListSessionEntityTypesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest} ListSessionEntityTypesRequest + * @returns {google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest} ListSessionEntityTypesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -27590,7 +29509,7 @@ /** * Verifies a ListSessionEntityTypesRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -27613,15 +29532,15 @@ /** * Creates a ListSessionEntityTypesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest} ListSessionEntityTypesRequest + * @returns {google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest} ListSessionEntityTypesRequest */ ListSessionEntityTypesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest(); if (object.parent != null) message.parent = String(object.parent); if (object.pageSize != null) @@ -27634,9 +29553,9 @@ /** * Creates a plain object from a ListSessionEntityTypesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest} message ListSessionEntityTypesRequest + * @param {google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest} message ListSessionEntityTypesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -27661,7 +29580,7 @@ /** * Converts this ListSessionEntityTypesRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest * @instance * @returns {Object.} JSON object */ @@ -27672,23 +29591,23 @@ return ListSessionEntityTypesRequest; })(); - v3beta1.ListSessionEntityTypesResponse = (function() { + v3.ListSessionEntityTypesResponse = (function() { /** * Properties of a ListSessionEntityTypesResponse. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface IListSessionEntityTypesResponse - * @property {Array.|null} [sessionEntityTypes] ListSessionEntityTypesResponse sessionEntityTypes + * @property {Array.|null} [sessionEntityTypes] ListSessionEntityTypesResponse sessionEntityTypes * @property {string|null} [nextPageToken] ListSessionEntityTypesResponse nextPageToken */ /** * Constructs a new ListSessionEntityTypesResponse. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a ListSessionEntityTypesResponse. * @implements IListSessionEntityTypesResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IListSessionEntityTypesResponse=} [properties] Properties to set */ function ListSessionEntityTypesResponse(properties) { this.sessionEntityTypes = []; @@ -27700,8 +29619,8 @@ /** * ListSessionEntityTypesResponse sessionEntityTypes. - * @member {Array.} sessionEntityTypes - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse + * @member {Array.} sessionEntityTypes + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse * @instance */ ListSessionEntityTypesResponse.prototype.sessionEntityTypes = $util.emptyArray; @@ -27709,7 +29628,7 @@ /** * ListSessionEntityTypesResponse nextPageToken. * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse * @instance */ ListSessionEntityTypesResponse.prototype.nextPageToken = ""; @@ -27717,21 +29636,21 @@ /** * Creates a new ListSessionEntityTypesResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse} ListSessionEntityTypesResponse instance + * @param {google.cloud.dialogflow.cx.v3.IListSessionEntityTypesResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse} ListSessionEntityTypesResponse instance */ ListSessionEntityTypesResponse.create = function create(properties) { return new ListSessionEntityTypesResponse(properties); }; /** - * Encodes the specified ListSessionEntityTypesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse.verify|verify} messages. + * Encodes the specified ListSessionEntityTypesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesResponse} message ListSessionEntityTypesResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListSessionEntityTypesResponse} message ListSessionEntityTypesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -27740,18 +29659,18 @@ writer = $Writer.create(); if (message.sessionEntityTypes != null && message.sessionEntityTypes.length) for (var i = 0; i < message.sessionEntityTypes.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.encode(message.sessionEntityTypes[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.SessionEntityType.encode(message.sessionEntityTypes[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified ListSessionEntityTypesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse.verify|verify} messages. + * Encodes the specified ListSessionEntityTypesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesResponse} message ListSessionEntityTypesResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListSessionEntityTypesResponse} message ListSessionEntityTypesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -27762,25 +29681,25 @@ /** * Decodes a ListSessionEntityTypesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse} ListSessionEntityTypesResponse + * @returns {google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse} ListSessionEntityTypesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ListSessionEntityTypesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: if (!(message.sessionEntityTypes && message.sessionEntityTypes.length)) message.sessionEntityTypes = []; - message.sessionEntityTypes.push($root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.decode(reader, reader.uint32())); + message.sessionEntityTypes.push($root.google.cloud.dialogflow.cx.v3.SessionEntityType.decode(reader, reader.uint32())); break; case 2: message.nextPageToken = reader.string(); @@ -27796,10 +29715,10 @@ /** * Decodes a ListSessionEntityTypesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse} ListSessionEntityTypesResponse + * @returns {google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse} ListSessionEntityTypesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -27812,7 +29731,7 @@ /** * Verifies a ListSessionEntityTypesResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -27824,7 +29743,7 @@ if (!Array.isArray(message.sessionEntityTypes)) return "sessionEntityTypes: array expected"; for (var i = 0; i < message.sessionEntityTypes.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.verify(message.sessionEntityTypes[i]); + var error = $root.google.cloud.dialogflow.cx.v3.SessionEntityType.verify(message.sessionEntityTypes[i]); if (error) return "sessionEntityTypes." + error; } @@ -27838,23 +29757,23 @@ /** * Creates a ListSessionEntityTypesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse} ListSessionEntityTypesResponse + * @returns {google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse} ListSessionEntityTypesResponse */ ListSessionEntityTypesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse(); + var message = new $root.google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse(); if (object.sessionEntityTypes) { if (!Array.isArray(object.sessionEntityTypes)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse.sessionEntityTypes: array expected"); + throw TypeError(".google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse.sessionEntityTypes: array expected"); message.sessionEntityTypes = []; for (var i = 0; i < object.sessionEntityTypes.length; ++i) { if (typeof object.sessionEntityTypes[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse.sessionEntityTypes: object expected"); - message.sessionEntityTypes[i] = $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.fromObject(object.sessionEntityTypes[i]); + throw TypeError(".google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse.sessionEntityTypes: object expected"); + message.sessionEntityTypes[i] = $root.google.cloud.dialogflow.cx.v3.SessionEntityType.fromObject(object.sessionEntityTypes[i]); } } if (object.nextPageToken != null) @@ -27865,9 +29784,9 @@ /** * Creates a plain object from a ListSessionEntityTypesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse} message ListSessionEntityTypesResponse + * @param {google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse} message ListSessionEntityTypesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -27882,7 +29801,7 @@ if (message.sessionEntityTypes && message.sessionEntityTypes.length) { object.sessionEntityTypes = []; for (var j = 0; j < message.sessionEntityTypes.length; ++j) - object.sessionEntityTypes[j] = $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.toObject(message.sessionEntityTypes[j], options); + object.sessionEntityTypes[j] = $root.google.cloud.dialogflow.cx.v3.SessionEntityType.toObject(message.sessionEntityTypes[j], options); } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) object.nextPageToken = message.nextPageToken; @@ -27892,7 +29811,7 @@ /** * Converts this ListSessionEntityTypesResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse * @instance * @returns {Object.} JSON object */ @@ -27903,22 +29822,22 @@ return ListSessionEntityTypesResponse; })(); - v3beta1.GetSessionEntityTypeRequest = (function() { + v3.GetSessionEntityTypeRequest = (function() { /** * Properties of a GetSessionEntityTypeRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface IGetSessionEntityTypeRequest * @property {string|null} [name] GetSessionEntityTypeRequest name */ /** * Constructs a new GetSessionEntityTypeRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a GetSessionEntityTypeRequest. * @implements IGetSessionEntityTypeRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IGetSessionEntityTypeRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest=} [properties] Properties to set */ function GetSessionEntityTypeRequest(properties) { if (properties) @@ -27930,7 +29849,7 @@ /** * GetSessionEntityTypeRequest name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest * @instance */ GetSessionEntityTypeRequest.prototype.name = ""; @@ -27938,21 +29857,21 @@ /** * Creates a new GetSessionEntityTypeRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetSessionEntityTypeRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest} GetSessionEntityTypeRequest instance + * @param {google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest} GetSessionEntityTypeRequest instance */ GetSessionEntityTypeRequest.create = function create(properties) { return new GetSessionEntityTypeRequest(properties); }; /** - * Encodes the specified GetSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest.verify|verify} messages. + * Encodes the specified GetSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetSessionEntityTypeRequest} message GetSessionEntityTypeRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest} message GetSessionEntityTypeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -27965,11 +29884,11 @@ }; /** - * Encodes the specified GetSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest.verify|verify} messages. + * Encodes the specified GetSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetSessionEntityTypeRequest} message GetSessionEntityTypeRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest} message GetSessionEntityTypeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -27980,18 +29899,18 @@ /** * Decodes a GetSessionEntityTypeRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest} GetSessionEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest} GetSessionEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GetSessionEntityTypeRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -28009,10 +29928,10 @@ /** * Decodes a GetSessionEntityTypeRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest} GetSessionEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest} GetSessionEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -28025,7 +29944,7 @@ /** * Verifies a GetSessionEntityTypeRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -28042,15 +29961,15 @@ /** * Creates a GetSessionEntityTypeRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest} GetSessionEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest} GetSessionEntityTypeRequest */ GetSessionEntityTypeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest(); if (object.name != null) message.name = String(object.name); return message; @@ -28059,9 +29978,9 @@ /** * Creates a plain object from a GetSessionEntityTypeRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest} message GetSessionEntityTypeRequest + * @param {google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest} message GetSessionEntityTypeRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -28079,7 +29998,7 @@ /** * Converts this GetSessionEntityTypeRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest * @instance * @returns {Object.} JSON object */ @@ -28090,23 +30009,23 @@ return GetSessionEntityTypeRequest; })(); - v3beta1.CreateSessionEntityTypeRequest = (function() { + v3.CreateSessionEntityTypeRequest = (function() { /** * Properties of a CreateSessionEntityTypeRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface ICreateSessionEntityTypeRequest * @property {string|null} [parent] CreateSessionEntityTypeRequest parent - * @property {google.cloud.dialogflow.cx.v3beta1.ISessionEntityType|null} [sessionEntityType] CreateSessionEntityTypeRequest sessionEntityType + * @property {google.cloud.dialogflow.cx.v3.ISessionEntityType|null} [sessionEntityType] CreateSessionEntityTypeRequest sessionEntityType */ /** * Constructs a new CreateSessionEntityTypeRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a CreateSessionEntityTypeRequest. * @implements ICreateSessionEntityTypeRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateSessionEntityTypeRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest=} [properties] Properties to set */ function CreateSessionEntityTypeRequest(properties) { if (properties) @@ -28118,15 +30037,15 @@ /** * CreateSessionEntityTypeRequest parent. * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest * @instance */ CreateSessionEntityTypeRequest.prototype.parent = ""; /** * CreateSessionEntityTypeRequest sessionEntityType. - * @member {google.cloud.dialogflow.cx.v3beta1.ISessionEntityType|null|undefined} sessionEntityType - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest + * @member {google.cloud.dialogflow.cx.v3.ISessionEntityType|null|undefined} sessionEntityType + * @memberof google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest * @instance */ CreateSessionEntityTypeRequest.prototype.sessionEntityType = null; @@ -28134,21 +30053,21 @@ /** * Creates a new CreateSessionEntityTypeRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateSessionEntityTypeRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest} CreateSessionEntityTypeRequest instance + * @param {google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest} CreateSessionEntityTypeRequest instance */ CreateSessionEntityTypeRequest.create = function create(properties) { return new CreateSessionEntityTypeRequest(properties); }; /** - * Encodes the specified CreateSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest.verify|verify} messages. + * Encodes the specified CreateSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateSessionEntityTypeRequest} message CreateSessionEntityTypeRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest} message CreateSessionEntityTypeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -28158,16 +30077,16 @@ if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); if (message.sessionEntityType != null && Object.hasOwnProperty.call(message, "sessionEntityType")) - $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.encode(message.sessionEntityType, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.SessionEntityType.encode(message.sessionEntityType, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified CreateSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest.verify|verify} messages. + * Encodes the specified CreateSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateSessionEntityTypeRequest} message CreateSessionEntityTypeRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest} message CreateSessionEntityTypeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -28178,18 +30097,18 @@ /** * Decodes a CreateSessionEntityTypeRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest} CreateSessionEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest} CreateSessionEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ CreateSessionEntityTypeRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -28197,7 +30116,7 @@ message.parent = reader.string(); break; case 2: - message.sessionEntityType = $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.decode(reader, reader.uint32()); + message.sessionEntityType = $root.google.cloud.dialogflow.cx.v3.SessionEntityType.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -28210,10 +30129,10 @@ /** * Decodes a CreateSessionEntityTypeRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest} CreateSessionEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest} CreateSessionEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -28226,7 +30145,7 @@ /** * Verifies a CreateSessionEntityTypeRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -28238,7 +30157,7 @@ if (!$util.isString(message.parent)) return "parent: string expected"; if (message.sessionEntityType != null && message.hasOwnProperty("sessionEntityType")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.verify(message.sessionEntityType); + var error = $root.google.cloud.dialogflow.cx.v3.SessionEntityType.verify(message.sessionEntityType); if (error) return "sessionEntityType." + error; } @@ -28248,21 +30167,21 @@ /** * Creates a CreateSessionEntityTypeRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest} CreateSessionEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest} CreateSessionEntityTypeRequest */ CreateSessionEntityTypeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest(); if (object.parent != null) message.parent = String(object.parent); if (object.sessionEntityType != null) { if (typeof object.sessionEntityType !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest.sessionEntityType: object expected"); - message.sessionEntityType = $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.fromObject(object.sessionEntityType); + throw TypeError(".google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest.sessionEntityType: object expected"); + message.sessionEntityType = $root.google.cloud.dialogflow.cx.v3.SessionEntityType.fromObject(object.sessionEntityType); } return message; }; @@ -28270,9 +30189,9 @@ /** * Creates a plain object from a CreateSessionEntityTypeRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest} message CreateSessionEntityTypeRequest + * @param {google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest} message CreateSessionEntityTypeRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -28287,14 +30206,14 @@ if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; if (message.sessionEntityType != null && message.hasOwnProperty("sessionEntityType")) - object.sessionEntityType = $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.toObject(message.sessionEntityType, options); + object.sessionEntityType = $root.google.cloud.dialogflow.cx.v3.SessionEntityType.toObject(message.sessionEntityType, options); return object; }; /** * Converts this CreateSessionEntityTypeRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest * @instance * @returns {Object.} JSON object */ @@ -28305,23 +30224,23 @@ return CreateSessionEntityTypeRequest; })(); - v3beta1.UpdateSessionEntityTypeRequest = (function() { + v3.UpdateSessionEntityTypeRequest = (function() { /** * Properties of an UpdateSessionEntityTypeRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface IUpdateSessionEntityTypeRequest - * @property {google.cloud.dialogflow.cx.v3beta1.ISessionEntityType|null} [sessionEntityType] UpdateSessionEntityTypeRequest sessionEntityType + * @property {google.cloud.dialogflow.cx.v3.ISessionEntityType|null} [sessionEntityType] UpdateSessionEntityTypeRequest sessionEntityType * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateSessionEntityTypeRequest updateMask */ /** * Constructs a new UpdateSessionEntityTypeRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents an UpdateSessionEntityTypeRequest. * @implements IUpdateSessionEntityTypeRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateSessionEntityTypeRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest=} [properties] Properties to set */ function UpdateSessionEntityTypeRequest(properties) { if (properties) @@ -28332,8 +30251,8 @@ /** * UpdateSessionEntityTypeRequest sessionEntityType. - * @member {google.cloud.dialogflow.cx.v3beta1.ISessionEntityType|null|undefined} sessionEntityType - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest + * @member {google.cloud.dialogflow.cx.v3.ISessionEntityType|null|undefined} sessionEntityType + * @memberof google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest * @instance */ UpdateSessionEntityTypeRequest.prototype.sessionEntityType = null; @@ -28341,7 +30260,7 @@ /** * UpdateSessionEntityTypeRequest updateMask. * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest * @instance */ UpdateSessionEntityTypeRequest.prototype.updateMask = null; @@ -28349,21 +30268,21 @@ /** * Creates a new UpdateSessionEntityTypeRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateSessionEntityTypeRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest} UpdateSessionEntityTypeRequest instance + * @param {google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest} UpdateSessionEntityTypeRequest instance */ UpdateSessionEntityTypeRequest.create = function create(properties) { return new UpdateSessionEntityTypeRequest(properties); }; /** - * Encodes the specified UpdateSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest.verify|verify} messages. + * Encodes the specified UpdateSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateSessionEntityTypeRequest} message UpdateSessionEntityTypeRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest} message UpdateSessionEntityTypeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -28371,18 +30290,18 @@ if (!writer) writer = $Writer.create(); if (message.sessionEntityType != null && Object.hasOwnProperty.call(message, "sessionEntityType")) - $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.encode(message.sessionEntityType, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.SessionEntityType.encode(message.sessionEntityType, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified UpdateSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest.verify|verify} messages. + * Encodes the specified UpdateSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateSessionEntityTypeRequest} message UpdateSessionEntityTypeRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest} message UpdateSessionEntityTypeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -28393,23 +30312,23 @@ /** * Decodes an UpdateSessionEntityTypeRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest} UpdateSessionEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest} UpdateSessionEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UpdateSessionEntityTypeRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.sessionEntityType = $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.decode(reader, reader.uint32()); + message.sessionEntityType = $root.google.cloud.dialogflow.cx.v3.SessionEntityType.decode(reader, reader.uint32()); break; case 2: message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); @@ -28425,10 +30344,10 @@ /** * Decodes an UpdateSessionEntityTypeRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest} UpdateSessionEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest} UpdateSessionEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -28441,7 +30360,7 @@ /** * Verifies an UpdateSessionEntityTypeRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -28450,7 +30369,7 @@ if (typeof message !== "object" || message === null) return "object expected"; if (message.sessionEntityType != null && message.hasOwnProperty("sessionEntityType")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.verify(message.sessionEntityType); + var error = $root.google.cloud.dialogflow.cx.v3.SessionEntityType.verify(message.sessionEntityType); if (error) return "sessionEntityType." + error; } @@ -28465,23 +30384,23 @@ /** * Creates an UpdateSessionEntityTypeRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest} UpdateSessionEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest} UpdateSessionEntityTypeRequest */ UpdateSessionEntityTypeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest(); if (object.sessionEntityType != null) { if (typeof object.sessionEntityType !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest.sessionEntityType: object expected"); - message.sessionEntityType = $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.fromObject(object.sessionEntityType); + throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest.sessionEntityType: object expected"); + message.sessionEntityType = $root.google.cloud.dialogflow.cx.v3.SessionEntityType.fromObject(object.sessionEntityType); } if (object.updateMask != null) { if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest.updateMask: object expected"); + throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest.updateMask: object expected"); message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } return message; @@ -28490,9 +30409,9 @@ /** * Creates a plain object from an UpdateSessionEntityTypeRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest} message UpdateSessionEntityTypeRequest + * @param {google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest} message UpdateSessionEntityTypeRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -28505,7 +30424,7 @@ object.updateMask = null; } if (message.sessionEntityType != null && message.hasOwnProperty("sessionEntityType")) - object.sessionEntityType = $root.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.toObject(message.sessionEntityType, options); + object.sessionEntityType = $root.google.cloud.dialogflow.cx.v3.SessionEntityType.toObject(message.sessionEntityType, options); if (message.updateMask != null && message.hasOwnProperty("updateMask")) object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; @@ -28514,7 +30433,7 @@ /** * Converts this UpdateSessionEntityTypeRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest * @instance * @returns {Object.} JSON object */ @@ -28525,22 +30444,22 @@ return UpdateSessionEntityTypeRequest; })(); - v3beta1.DeleteSessionEntityTypeRequest = (function() { + v3.DeleteSessionEntityTypeRequest = (function() { /** * Properties of a DeleteSessionEntityTypeRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface IDeleteSessionEntityTypeRequest * @property {string|null} [name] DeleteSessionEntityTypeRequest name */ /** * Constructs a new DeleteSessionEntityTypeRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a DeleteSessionEntityTypeRequest. * @implements IDeleteSessionEntityTypeRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteSessionEntityTypeRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest=} [properties] Properties to set */ function DeleteSessionEntityTypeRequest(properties) { if (properties) @@ -28552,7 +30471,7 @@ /** * DeleteSessionEntityTypeRequest name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest * @instance */ DeleteSessionEntityTypeRequest.prototype.name = ""; @@ -28560,21 +30479,21 @@ /** * Creates a new DeleteSessionEntityTypeRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteSessionEntityTypeRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest} DeleteSessionEntityTypeRequest instance + * @param {google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest} DeleteSessionEntityTypeRequest instance */ DeleteSessionEntityTypeRequest.create = function create(properties) { return new DeleteSessionEntityTypeRequest(properties); }; /** - * Encodes the specified DeleteSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest.verify|verify} messages. + * Encodes the specified DeleteSessionEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteSessionEntityTypeRequest} message DeleteSessionEntityTypeRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest} message DeleteSessionEntityTypeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -28587,11 +30506,11 @@ }; /** - * Encodes the specified DeleteSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest.verify|verify} messages. + * Encodes the specified DeleteSessionEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteSessionEntityTypeRequest} message DeleteSessionEntityTypeRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest} message DeleteSessionEntityTypeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -28602,18 +30521,18 @@ /** * Decodes a DeleteSessionEntityTypeRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest} DeleteSessionEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest} DeleteSessionEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ DeleteSessionEntityTypeRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -28631,10 +30550,10 @@ /** * Decodes a DeleteSessionEntityTypeRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest} DeleteSessionEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest} DeleteSessionEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -28647,7 +30566,7 @@ /** * Verifies a DeleteSessionEntityTypeRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -28664,15 +30583,15 @@ /** * Creates a DeleteSessionEntityTypeRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest} DeleteSessionEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest} DeleteSessionEntityTypeRequest */ DeleteSessionEntityTypeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest(); if (object.name != null) message.name = String(object.name); return message; @@ -28681,9 +30600,9 @@ /** * Creates a plain object from a DeleteSessionEntityTypeRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest} message DeleteSessionEntityTypeRequest + * @param {google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest} message DeleteSessionEntityTypeRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -28701,7 +30620,7 @@ /** * Converts this DeleteSessionEntityTypeRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest * @instance * @returns {Object.} JSON object */ @@ -28712,11 +30631,11 @@ return DeleteSessionEntityTypeRequest; })(); - v3beta1.TransitionRouteGroups = (function() { + v3.TransitionRouteGroups = (function() { /** * Constructs a new TransitionRouteGroups service. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a TransitionRouteGroups * @extends $protobuf.rpc.Service * @constructor @@ -28733,7 +30652,7 @@ /** * Creates new TransitionRouteGroups service using the specified rpc implementation. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups * @static * @param {$protobuf.RPCImpl} rpcImpl RPC implementation * @param {boolean} [requestDelimited=false] Whether requests are length-delimited @@ -28745,140 +30664,140 @@ }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups#listTransitionRouteGroups}. - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups + * Callback as used by {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroups#listTransitionRouteGroups}. + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups * @typedef ListTransitionRouteGroupsCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse} [response] ListTransitionRouteGroupsResponse + * @param {google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse} [response] ListTransitionRouteGroupsResponse */ /** * Calls ListTransitionRouteGroups. * @function listTransitionRouteGroups - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsRequest} request ListTransitionRouteGroupsRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups.ListTransitionRouteGroupsCallback} callback Node-style callback called with the error, if any, and ListTransitionRouteGroupsResponse + * @param {google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest} request ListTransitionRouteGroupsRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroups.ListTransitionRouteGroupsCallback} callback Node-style callback called with the error, if any, and ListTransitionRouteGroupsResponse * @returns {undefined} * @variation 1 */ Object.defineProperty(TransitionRouteGroups.prototype.listTransitionRouteGroups = function listTransitionRouteGroups(request, callback) { - return this.rpcCall(listTransitionRouteGroups, $root.google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest, $root.google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse, request, callback); + return this.rpcCall(listTransitionRouteGroups, $root.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest, $root.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse, request, callback); }, "name", { value: "ListTransitionRouteGroups" }); /** * Calls ListTransitionRouteGroups. * @function listTransitionRouteGroups - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsRequest} request ListTransitionRouteGroupsRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest} request ListTransitionRouteGroupsRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups#getTransitionRouteGroup}. - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups + * Callback as used by {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroups#getTransitionRouteGroup}. + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups * @typedef GetTransitionRouteGroupCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup} [response] TransitionRouteGroup + * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroup} [response] TransitionRouteGroup */ /** * Calls GetTransitionRouteGroup. * @function getTransitionRouteGroup - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetTransitionRouteGroupRequest} request GetTransitionRouteGroupRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups.GetTransitionRouteGroupCallback} callback Node-style callback called with the error, if any, and TransitionRouteGroup + * @param {google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest} request GetTransitionRouteGroupRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroups.GetTransitionRouteGroupCallback} callback Node-style callback called with the error, if any, and TransitionRouteGroup * @returns {undefined} * @variation 1 */ Object.defineProperty(TransitionRouteGroups.prototype.getTransitionRouteGroup = function getTransitionRouteGroup(request, callback) { - return this.rpcCall(getTransitionRouteGroup, $root.google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest, $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup, request, callback); + return this.rpcCall(getTransitionRouteGroup, $root.google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest, $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup, request, callback); }, "name", { value: "GetTransitionRouteGroup" }); /** * Calls GetTransitionRouteGroup. * @function getTransitionRouteGroup - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetTransitionRouteGroupRequest} request GetTransitionRouteGroupRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest} request GetTransitionRouteGroupRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups#createTransitionRouteGroup}. - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups + * Callback as used by {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroups#createTransitionRouteGroup}. + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups * @typedef CreateTransitionRouteGroupCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup} [response] TransitionRouteGroup + * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroup} [response] TransitionRouteGroup */ /** * Calls CreateTransitionRouteGroup. * @function createTransitionRouteGroup - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateTransitionRouteGroupRequest} request CreateTransitionRouteGroupRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups.CreateTransitionRouteGroupCallback} callback Node-style callback called with the error, if any, and TransitionRouteGroup + * @param {google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest} request CreateTransitionRouteGroupRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroups.CreateTransitionRouteGroupCallback} callback Node-style callback called with the error, if any, and TransitionRouteGroup * @returns {undefined} * @variation 1 */ Object.defineProperty(TransitionRouteGroups.prototype.createTransitionRouteGroup = function createTransitionRouteGroup(request, callback) { - return this.rpcCall(createTransitionRouteGroup, $root.google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest, $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup, request, callback); + return this.rpcCall(createTransitionRouteGroup, $root.google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest, $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup, request, callback); }, "name", { value: "CreateTransitionRouteGroup" }); /** * Calls CreateTransitionRouteGroup. * @function createTransitionRouteGroup - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateTransitionRouteGroupRequest} request CreateTransitionRouteGroupRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest} request CreateTransitionRouteGroupRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups#updateTransitionRouteGroup}. - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups + * Callback as used by {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroups#updateTransitionRouteGroup}. + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups * @typedef UpdateTransitionRouteGroupCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup} [response] TransitionRouteGroup + * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroup} [response] TransitionRouteGroup */ /** * Calls UpdateTransitionRouteGroup. * @function updateTransitionRouteGroup - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateTransitionRouteGroupRequest} request UpdateTransitionRouteGroupRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups.UpdateTransitionRouteGroupCallback} callback Node-style callback called with the error, if any, and TransitionRouteGroup + * @param {google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest} request UpdateTransitionRouteGroupRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroups.UpdateTransitionRouteGroupCallback} callback Node-style callback called with the error, if any, and TransitionRouteGroup * @returns {undefined} * @variation 1 */ Object.defineProperty(TransitionRouteGroups.prototype.updateTransitionRouteGroup = function updateTransitionRouteGroup(request, callback) { - return this.rpcCall(updateTransitionRouteGroup, $root.google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest, $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup, request, callback); + return this.rpcCall(updateTransitionRouteGroup, $root.google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest, $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup, request, callback); }, "name", { value: "UpdateTransitionRouteGroup" }); /** * Calls UpdateTransitionRouteGroup. * @function updateTransitionRouteGroup - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateTransitionRouteGroupRequest} request UpdateTransitionRouteGroupRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest} request UpdateTransitionRouteGroupRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups#deleteTransitionRouteGroup}. - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups + * Callback as used by {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroups#deleteTransitionRouteGroup}. + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups * @typedef DeleteTransitionRouteGroupCallback * @type {function} * @param {Error|null} error Error, if any @@ -28888,23 +30807,23 @@ /** * Calls DeleteTransitionRouteGroup. * @function deleteTransitionRouteGroup - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteTransitionRouteGroupRequest} request DeleteTransitionRouteGroupRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups.DeleteTransitionRouteGroupCallback} callback Node-style callback called with the error, if any, and Empty + * @param {google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest} request DeleteTransitionRouteGroupRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroups.DeleteTransitionRouteGroupCallback} callback Node-style callback called with the error, if any, and Empty * @returns {undefined} * @variation 1 */ Object.defineProperty(TransitionRouteGroups.prototype.deleteTransitionRouteGroup = function deleteTransitionRouteGroup(request, callback) { - return this.rpcCall(deleteTransitionRouteGroup, $root.google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest, $root.google.protobuf.Empty, request, callback); + return this.rpcCall(deleteTransitionRouteGroup, $root.google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest, $root.google.protobuf.Empty, request, callback); }, "name", { value: "DeleteTransitionRouteGroup" }); /** * Calls DeleteTransitionRouteGroup. * @function deleteTransitionRouteGroup - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroups * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteTransitionRouteGroupRequest} request DeleteTransitionRouteGroupRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest} request DeleteTransitionRouteGroupRequest message or plain object * @returns {Promise} Promise * @variation 2 */ @@ -28912,24 +30831,24 @@ return TransitionRouteGroups; })(); - v3beta1.TransitionRouteGroup = (function() { + v3.TransitionRouteGroup = (function() { /** * Properties of a TransitionRouteGroup. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface ITransitionRouteGroup * @property {string|null} [name] TransitionRouteGroup name * @property {string|null} [displayName] TransitionRouteGroup displayName - * @property {Array.|null} [transitionRoutes] TransitionRouteGroup transitionRoutes + * @property {Array.|null} [transitionRoutes] TransitionRouteGroup transitionRoutes */ /** * Constructs a new TransitionRouteGroup. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a TransitionRouteGroup. * @implements ITransitionRouteGroup * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ITransitionRouteGroup=} [properties] Properties to set */ function TransitionRouteGroup(properties) { this.transitionRoutes = []; @@ -28942,7 +30861,7 @@ /** * TransitionRouteGroup name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroup * @instance */ TransitionRouteGroup.prototype.name = ""; @@ -28950,15 +30869,15 @@ /** * TransitionRouteGroup displayName. * @member {string} displayName - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroup * @instance */ TransitionRouteGroup.prototype.displayName = ""; /** * TransitionRouteGroup transitionRoutes. - * @member {Array.} transitionRoutes - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup + * @member {Array.} transitionRoutes + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroup * @instance */ TransitionRouteGroup.prototype.transitionRoutes = $util.emptyArray; @@ -28966,21 +30885,21 @@ /** * Creates a new TransitionRouteGroup instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroup * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup} TransitionRouteGroup instance + * @param {google.cloud.dialogflow.cx.v3.ITransitionRouteGroup=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.TransitionRouteGroup} TransitionRouteGroup instance */ TransitionRouteGroup.create = function create(properties) { return new TransitionRouteGroup(properties); }; /** - * Encodes the specified TransitionRouteGroup message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.verify|verify} messages. + * Encodes the specified TransitionRouteGroup message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroup.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroup * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup} message TransitionRouteGroup message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ITransitionRouteGroup} message TransitionRouteGroup message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -28993,16 +30912,16 @@ writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); if (message.transitionRoutes != null && message.transitionRoutes.length) for (var i = 0; i < message.transitionRoutes.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.encode(message.transitionRoutes[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.TransitionRoute.encode(message.transitionRoutes[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified TransitionRouteGroup message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.verify|verify} messages. + * Encodes the specified TransitionRouteGroup message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroup.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroup * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup} message TransitionRouteGroup message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ITransitionRouteGroup} message TransitionRouteGroup message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -29013,18 +30932,18 @@ /** * Decodes a TransitionRouteGroup message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroup * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup} TransitionRouteGroup + * @returns {google.cloud.dialogflow.cx.v3.TransitionRouteGroup} TransitionRouteGroup * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TransitionRouteGroup.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -29037,7 +30956,7 @@ case 5: if (!(message.transitionRoutes && message.transitionRoutes.length)) message.transitionRoutes = []; - message.transitionRoutes.push($root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.decode(reader, reader.uint32())); + message.transitionRoutes.push($root.google.cloud.dialogflow.cx.v3.TransitionRoute.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -29050,10 +30969,10 @@ /** * Decodes a TransitionRouteGroup message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroup * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup} TransitionRouteGroup + * @returns {google.cloud.dialogflow.cx.v3.TransitionRouteGroup} TransitionRouteGroup * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -29066,7 +30985,7 @@ /** * Verifies a TransitionRouteGroup message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroup * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -29084,7 +31003,7 @@ if (!Array.isArray(message.transitionRoutes)) return "transitionRoutes: array expected"; for (var i = 0; i < message.transitionRoutes.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.verify(message.transitionRoutes[i]); + var error = $root.google.cloud.dialogflow.cx.v3.TransitionRoute.verify(message.transitionRoutes[i]); if (error) return "transitionRoutes." + error; } @@ -29095,27 +31014,27 @@ /** * Creates a TransitionRouteGroup message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroup * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup} TransitionRouteGroup + * @returns {google.cloud.dialogflow.cx.v3.TransitionRouteGroup} TransitionRouteGroup */ TransitionRouteGroup.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup(); + var message = new $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup(); if (object.name != null) message.name = String(object.name); if (object.displayName != null) message.displayName = String(object.displayName); if (object.transitionRoutes) { if (!Array.isArray(object.transitionRoutes)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.transitionRoutes: array expected"); + throw TypeError(".google.cloud.dialogflow.cx.v3.TransitionRouteGroup.transitionRoutes: array expected"); message.transitionRoutes = []; for (var i = 0; i < object.transitionRoutes.length; ++i) { if (typeof object.transitionRoutes[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.transitionRoutes: object expected"); - message.transitionRoutes[i] = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.fromObject(object.transitionRoutes[i]); + throw TypeError(".google.cloud.dialogflow.cx.v3.TransitionRouteGroup.transitionRoutes: object expected"); + message.transitionRoutes[i] = $root.google.cloud.dialogflow.cx.v3.TransitionRoute.fromObject(object.transitionRoutes[i]); } } return message; @@ -29124,9 +31043,9 @@ /** * Creates a plain object from a TransitionRouteGroup message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroup * @static - * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup} message TransitionRouteGroup + * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroup} message TransitionRouteGroup * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -29147,7 +31066,7 @@ if (message.transitionRoutes && message.transitionRoutes.length) { object.transitionRoutes = []; for (var j = 0; j < message.transitionRoutes.length; ++j) - object.transitionRoutes[j] = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.toObject(message.transitionRoutes[j], options); + object.transitionRoutes[j] = $root.google.cloud.dialogflow.cx.v3.TransitionRoute.toObject(message.transitionRoutes[j], options); } return object; }; @@ -29155,7 +31074,7 @@ /** * Converts this TransitionRouteGroup to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3.TransitionRouteGroup * @instance * @returns {Object.} JSON object */ @@ -29166,11 +31085,11 @@ return TransitionRouteGroup; })(); - v3beta1.ListTransitionRouteGroupsRequest = (function() { + v3.ListTransitionRouteGroupsRequest = (function() { /** * Properties of a ListTransitionRouteGroupsRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface IListTransitionRouteGroupsRequest * @property {string|null} [parent] ListTransitionRouteGroupsRequest parent * @property {number|null} [pageSize] ListTransitionRouteGroupsRequest pageSize @@ -29180,11 +31099,11 @@ /** * Constructs a new ListTransitionRouteGroupsRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a ListTransitionRouteGroupsRequest. * @implements IListTransitionRouteGroupsRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest=} [properties] Properties to set */ function ListTransitionRouteGroupsRequest(properties) { if (properties) @@ -29196,7 +31115,7 @@ /** * ListTransitionRouteGroupsRequest parent. * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest * @instance */ ListTransitionRouteGroupsRequest.prototype.parent = ""; @@ -29204,7 +31123,7 @@ /** * ListTransitionRouteGroupsRequest pageSize. * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest * @instance */ ListTransitionRouteGroupsRequest.prototype.pageSize = 0; @@ -29212,7 +31131,7 @@ /** * ListTransitionRouteGroupsRequest pageToken. * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest * @instance */ ListTransitionRouteGroupsRequest.prototype.pageToken = ""; @@ -29220,7 +31139,7 @@ /** * ListTransitionRouteGroupsRequest languageCode. * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest * @instance */ ListTransitionRouteGroupsRequest.prototype.languageCode = ""; @@ -29228,21 +31147,21 @@ /** * Creates a new ListTransitionRouteGroupsRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest} ListTransitionRouteGroupsRequest instance + * @param {google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest} ListTransitionRouteGroupsRequest instance */ ListTransitionRouteGroupsRequest.create = function create(properties) { return new ListTransitionRouteGroupsRequest(properties); }; /** - * Encodes the specified ListTransitionRouteGroupsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest.verify|verify} messages. + * Encodes the specified ListTransitionRouteGroupsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsRequest} message ListTransitionRouteGroupsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest} message ListTransitionRouteGroupsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -29261,11 +31180,11 @@ }; /** - * Encodes the specified ListTransitionRouteGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest.verify|verify} messages. + * Encodes the specified ListTransitionRouteGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsRequest} message ListTransitionRouteGroupsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest} message ListTransitionRouteGroupsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -29276,18 +31195,18 @@ /** * Decodes a ListTransitionRouteGroupsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest} ListTransitionRouteGroupsRequest + * @returns {google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest} ListTransitionRouteGroupsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ListTransitionRouteGroupsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -29314,10 +31233,10 @@ /** * Decodes a ListTransitionRouteGroupsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest} ListTransitionRouteGroupsRequest + * @returns {google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest} ListTransitionRouteGroupsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -29330,7 +31249,7 @@ /** * Verifies a ListTransitionRouteGroupsRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -29356,15 +31275,15 @@ /** * Creates a ListTransitionRouteGroupsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest} ListTransitionRouteGroupsRequest + * @returns {google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest} ListTransitionRouteGroupsRequest */ ListTransitionRouteGroupsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest(); if (object.parent != null) message.parent = String(object.parent); if (object.pageSize != null) @@ -29379,9 +31298,9 @@ /** * Creates a plain object from a ListTransitionRouteGroupsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest} message ListTransitionRouteGroupsRequest + * @param {google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest} message ListTransitionRouteGroupsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -29409,7 +31328,7 @@ /** * Converts this ListTransitionRouteGroupsRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest * @instance * @returns {Object.} JSON object */ @@ -29420,23 +31339,23 @@ return ListTransitionRouteGroupsRequest; })(); - v3beta1.ListTransitionRouteGroupsResponse = (function() { + v3.ListTransitionRouteGroupsResponse = (function() { /** * Properties of a ListTransitionRouteGroupsResponse. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface IListTransitionRouteGroupsResponse - * @property {Array.|null} [transitionRouteGroups] ListTransitionRouteGroupsResponse transitionRouteGroups + * @property {Array.|null} [transitionRouteGroups] ListTransitionRouteGroupsResponse transitionRouteGroups * @property {string|null} [nextPageToken] ListTransitionRouteGroupsResponse nextPageToken */ /** * Constructs a new ListTransitionRouteGroupsResponse. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a ListTransitionRouteGroupsResponse. * @implements IListTransitionRouteGroupsResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsResponse=} [properties] Properties to set */ function ListTransitionRouteGroupsResponse(properties) { this.transitionRouteGroups = []; @@ -29448,8 +31367,8 @@ /** * ListTransitionRouteGroupsResponse transitionRouteGroups. - * @member {Array.} transitionRouteGroups - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse + * @member {Array.} transitionRouteGroups + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse * @instance */ ListTransitionRouteGroupsResponse.prototype.transitionRouteGroups = $util.emptyArray; @@ -29457,7 +31376,7 @@ /** * ListTransitionRouteGroupsResponse nextPageToken. * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse * @instance */ ListTransitionRouteGroupsResponse.prototype.nextPageToken = ""; @@ -29465,21 +31384,21 @@ /** * Creates a new ListTransitionRouteGroupsResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse} ListTransitionRouteGroupsResponse instance + * @param {google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse} ListTransitionRouteGroupsResponse instance */ ListTransitionRouteGroupsResponse.create = function create(properties) { return new ListTransitionRouteGroupsResponse(properties); }; /** - * Encodes the specified ListTransitionRouteGroupsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse.verify|verify} messages. + * Encodes the specified ListTransitionRouteGroupsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsResponse} message ListTransitionRouteGroupsResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsResponse} message ListTransitionRouteGroupsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -29488,18 +31407,18 @@ writer = $Writer.create(); if (message.transitionRouteGroups != null && message.transitionRouteGroups.length) for (var i = 0; i < message.transitionRouteGroups.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.encode(message.transitionRouteGroups[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.encode(message.transitionRouteGroups[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified ListTransitionRouteGroupsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse.verify|verify} messages. + * Encodes the specified ListTransitionRouteGroupsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsResponse} message ListTransitionRouteGroupsResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsResponse} message ListTransitionRouteGroupsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -29510,25 +31429,25 @@ /** * Decodes a ListTransitionRouteGroupsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse} ListTransitionRouteGroupsResponse + * @returns {google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse} ListTransitionRouteGroupsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ListTransitionRouteGroupsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: if (!(message.transitionRouteGroups && message.transitionRouteGroups.length)) message.transitionRouteGroups = []; - message.transitionRouteGroups.push($root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.decode(reader, reader.uint32())); + message.transitionRouteGroups.push($root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.decode(reader, reader.uint32())); break; case 2: message.nextPageToken = reader.string(); @@ -29544,10 +31463,10 @@ /** * Decodes a ListTransitionRouteGroupsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse} ListTransitionRouteGroupsResponse + * @returns {google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse} ListTransitionRouteGroupsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -29560,7 +31479,7 @@ /** * Verifies a ListTransitionRouteGroupsResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -29572,7 +31491,7 @@ if (!Array.isArray(message.transitionRouteGroups)) return "transitionRouteGroups: array expected"; for (var i = 0; i < message.transitionRouteGroups.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.verify(message.transitionRouteGroups[i]); + var error = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.verify(message.transitionRouteGroups[i]); if (error) return "transitionRouteGroups." + error; } @@ -29586,23 +31505,23 @@ /** * Creates a ListTransitionRouteGroupsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse} ListTransitionRouteGroupsResponse + * @returns {google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse} ListTransitionRouteGroupsResponse */ ListTransitionRouteGroupsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse(); + var message = new $root.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse(); if (object.transitionRouteGroups) { if (!Array.isArray(object.transitionRouteGroups)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse.transitionRouteGroups: array expected"); + throw TypeError(".google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse.transitionRouteGroups: array expected"); message.transitionRouteGroups = []; for (var i = 0; i < object.transitionRouteGroups.length; ++i) { if (typeof object.transitionRouteGroups[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse.transitionRouteGroups: object expected"); - message.transitionRouteGroups[i] = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.fromObject(object.transitionRouteGroups[i]); + throw TypeError(".google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse.transitionRouteGroups: object expected"); + message.transitionRouteGroups[i] = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.fromObject(object.transitionRouteGroups[i]); } } if (object.nextPageToken != null) @@ -29613,9 +31532,9 @@ /** * Creates a plain object from a ListTransitionRouteGroupsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse} message ListTransitionRouteGroupsResponse + * @param {google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse} message ListTransitionRouteGroupsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -29630,7 +31549,7 @@ if (message.transitionRouteGroups && message.transitionRouteGroups.length) { object.transitionRouteGroups = []; for (var j = 0; j < message.transitionRouteGroups.length; ++j) - object.transitionRouteGroups[j] = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.toObject(message.transitionRouteGroups[j], options); + object.transitionRouteGroups[j] = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.toObject(message.transitionRouteGroups[j], options); } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) object.nextPageToken = message.nextPageToken; @@ -29640,7 +31559,7 @@ /** * Converts this ListTransitionRouteGroupsResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse * @instance * @returns {Object.} JSON object */ @@ -29651,11 +31570,11 @@ return ListTransitionRouteGroupsResponse; })(); - v3beta1.GetTransitionRouteGroupRequest = (function() { + v3.GetTransitionRouteGroupRequest = (function() { /** * Properties of a GetTransitionRouteGroupRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface IGetTransitionRouteGroupRequest * @property {string|null} [name] GetTransitionRouteGroupRequest name * @property {string|null} [languageCode] GetTransitionRouteGroupRequest languageCode @@ -29663,11 +31582,11 @@ /** * Constructs a new GetTransitionRouteGroupRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a GetTransitionRouteGroupRequest. * @implements IGetTransitionRouteGroupRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IGetTransitionRouteGroupRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest=} [properties] Properties to set */ function GetTransitionRouteGroupRequest(properties) { if (properties) @@ -29679,7 +31598,7 @@ /** * GetTransitionRouteGroupRequest name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest * @instance */ GetTransitionRouteGroupRequest.prototype.name = ""; @@ -29687,7 +31606,7 @@ /** * GetTransitionRouteGroupRequest languageCode. * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest * @instance */ GetTransitionRouteGroupRequest.prototype.languageCode = ""; @@ -29695,21 +31614,21 @@ /** * Creates a new GetTransitionRouteGroupRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetTransitionRouteGroupRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest} GetTransitionRouteGroupRequest instance + * @param {google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest} GetTransitionRouteGroupRequest instance */ GetTransitionRouteGroupRequest.create = function create(properties) { return new GetTransitionRouteGroupRequest(properties); }; /** - * Encodes the specified GetTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest.verify|verify} messages. + * Encodes the specified GetTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetTransitionRouteGroupRequest} message GetTransitionRouteGroupRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest} message GetTransitionRouteGroupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -29724,11 +31643,11 @@ }; /** - * Encodes the specified GetTransitionRouteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest.verify|verify} messages. + * Encodes the specified GetTransitionRouteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetTransitionRouteGroupRequest} message GetTransitionRouteGroupRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest} message GetTransitionRouteGroupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -29739,18 +31658,18 @@ /** * Decodes a GetTransitionRouteGroupRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest} GetTransitionRouteGroupRequest + * @returns {google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest} GetTransitionRouteGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GetTransitionRouteGroupRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -29771,10 +31690,10 @@ /** * Decodes a GetTransitionRouteGroupRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest} GetTransitionRouteGroupRequest + * @returns {google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest} GetTransitionRouteGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -29787,7 +31706,7 @@ /** * Verifies a GetTransitionRouteGroupRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -29807,15 +31726,15 @@ /** * Creates a GetTransitionRouteGroupRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest} GetTransitionRouteGroupRequest + * @returns {google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest} GetTransitionRouteGroupRequest */ GetTransitionRouteGroupRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest(); if (object.name != null) message.name = String(object.name); if (object.languageCode != null) @@ -29826,9 +31745,9 @@ /** * Creates a plain object from a GetTransitionRouteGroupRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest} message GetTransitionRouteGroupRequest + * @param {google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest} message GetTransitionRouteGroupRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -29850,7 +31769,7 @@ /** * Converts this GetTransitionRouteGroupRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest * @instance * @returns {Object.} JSON object */ @@ -29861,24 +31780,24 @@ return GetTransitionRouteGroupRequest; })(); - v3beta1.CreateTransitionRouteGroupRequest = (function() { + v3.CreateTransitionRouteGroupRequest = (function() { /** * Properties of a CreateTransitionRouteGroupRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface ICreateTransitionRouteGroupRequest * @property {string|null} [parent] CreateTransitionRouteGroupRequest parent - * @property {google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup|null} [transitionRouteGroup] CreateTransitionRouteGroupRequest transitionRouteGroup + * @property {google.cloud.dialogflow.cx.v3.ITransitionRouteGroup|null} [transitionRouteGroup] CreateTransitionRouteGroupRequest transitionRouteGroup * @property {string|null} [languageCode] CreateTransitionRouteGroupRequest languageCode */ /** * Constructs a new CreateTransitionRouteGroupRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a CreateTransitionRouteGroupRequest. * @implements ICreateTransitionRouteGroupRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateTransitionRouteGroupRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest=} [properties] Properties to set */ function CreateTransitionRouteGroupRequest(properties) { if (properties) @@ -29890,15 +31809,15 @@ /** * CreateTransitionRouteGroupRequest parent. * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest * @instance */ CreateTransitionRouteGroupRequest.prototype.parent = ""; /** * CreateTransitionRouteGroupRequest transitionRouteGroup. - * @member {google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup|null|undefined} transitionRouteGroup - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest + * @member {google.cloud.dialogflow.cx.v3.ITransitionRouteGroup|null|undefined} transitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest * @instance */ CreateTransitionRouteGroupRequest.prototype.transitionRouteGroup = null; @@ -29906,7 +31825,7 @@ /** * CreateTransitionRouteGroupRequest languageCode. * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest * @instance */ CreateTransitionRouteGroupRequest.prototype.languageCode = ""; @@ -29914,21 +31833,21 @@ /** * Creates a new CreateTransitionRouteGroupRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateTransitionRouteGroupRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest} CreateTransitionRouteGroupRequest instance + * @param {google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest} CreateTransitionRouteGroupRequest instance */ CreateTransitionRouteGroupRequest.create = function create(properties) { return new CreateTransitionRouteGroupRequest(properties); }; /** - * Encodes the specified CreateTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest.verify|verify} messages. + * Encodes the specified CreateTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateTransitionRouteGroupRequest} message CreateTransitionRouteGroupRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest} message CreateTransitionRouteGroupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -29938,18 +31857,18 @@ if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); if (message.transitionRouteGroup != null && Object.hasOwnProperty.call(message, "transitionRouteGroup")) - $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.encode(message.transitionRouteGroup, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.encode(message.transitionRouteGroup, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.languageCode); return writer; }; /** - * Encodes the specified CreateTransitionRouteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest.verify|verify} messages. + * Encodes the specified CreateTransitionRouteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateTransitionRouteGroupRequest} message CreateTransitionRouteGroupRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest} message CreateTransitionRouteGroupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -29960,18 +31879,18 @@ /** * Decodes a CreateTransitionRouteGroupRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest} CreateTransitionRouteGroupRequest + * @returns {google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest} CreateTransitionRouteGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ CreateTransitionRouteGroupRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -29979,7 +31898,7 @@ message.parent = reader.string(); break; case 2: - message.transitionRouteGroup = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.decode(reader, reader.uint32()); + message.transitionRouteGroup = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.decode(reader, reader.uint32()); break; case 3: message.languageCode = reader.string(); @@ -29995,10 +31914,10 @@ /** * Decodes a CreateTransitionRouteGroupRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest} CreateTransitionRouteGroupRequest + * @returns {google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest} CreateTransitionRouteGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -30011,7 +31930,7 @@ /** * Verifies a CreateTransitionRouteGroupRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -30023,7 +31942,7 @@ if (!$util.isString(message.parent)) return "parent: string expected"; if (message.transitionRouteGroup != null && message.hasOwnProperty("transitionRouteGroup")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.verify(message.transitionRouteGroup); + var error = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.verify(message.transitionRouteGroup); if (error) return "transitionRouteGroup." + error; } @@ -30036,21 +31955,21 @@ /** * Creates a CreateTransitionRouteGroupRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest} CreateTransitionRouteGroupRequest + * @returns {google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest} CreateTransitionRouteGroupRequest */ CreateTransitionRouteGroupRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest(); if (object.parent != null) message.parent = String(object.parent); if (object.transitionRouteGroup != null) { if (typeof object.transitionRouteGroup !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest.transitionRouteGroup: object expected"); - message.transitionRouteGroup = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.fromObject(object.transitionRouteGroup); + throw TypeError(".google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest.transitionRouteGroup: object expected"); + message.transitionRouteGroup = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.fromObject(object.transitionRouteGroup); } if (object.languageCode != null) message.languageCode = String(object.languageCode); @@ -30060,9 +31979,9 @@ /** * Creates a plain object from a CreateTransitionRouteGroupRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest} message CreateTransitionRouteGroupRequest + * @param {google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest} message CreateTransitionRouteGroupRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -30078,7 +31997,7 @@ if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; if (message.transitionRouteGroup != null && message.hasOwnProperty("transitionRouteGroup")) - object.transitionRouteGroup = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.toObject(message.transitionRouteGroup, options); + object.transitionRouteGroup = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.toObject(message.transitionRouteGroup, options); if (message.languageCode != null && message.hasOwnProperty("languageCode")) object.languageCode = message.languageCode; return object; @@ -30087,7 +32006,7 @@ /** * Converts this CreateTransitionRouteGroupRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest * @instance * @returns {Object.} JSON object */ @@ -30098,24 +32017,24 @@ return CreateTransitionRouteGroupRequest; })(); - v3beta1.UpdateTransitionRouteGroupRequest = (function() { + v3.UpdateTransitionRouteGroupRequest = (function() { /** * Properties of an UpdateTransitionRouteGroupRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface IUpdateTransitionRouteGroupRequest - * @property {google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup|null} [transitionRouteGroup] UpdateTransitionRouteGroupRequest transitionRouteGroup + * @property {google.cloud.dialogflow.cx.v3.ITransitionRouteGroup|null} [transitionRouteGroup] UpdateTransitionRouteGroupRequest transitionRouteGroup * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateTransitionRouteGroupRequest updateMask * @property {string|null} [languageCode] UpdateTransitionRouteGroupRequest languageCode */ /** * Constructs a new UpdateTransitionRouteGroupRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents an UpdateTransitionRouteGroupRequest. * @implements IUpdateTransitionRouteGroupRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateTransitionRouteGroupRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest=} [properties] Properties to set */ function UpdateTransitionRouteGroupRequest(properties) { if (properties) @@ -30126,8 +32045,8 @@ /** * UpdateTransitionRouteGroupRequest transitionRouteGroup. - * @member {google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup|null|undefined} transitionRouteGroup - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest + * @member {google.cloud.dialogflow.cx.v3.ITransitionRouteGroup|null|undefined} transitionRouteGroup + * @memberof google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest * @instance */ UpdateTransitionRouteGroupRequest.prototype.transitionRouteGroup = null; @@ -30135,7 +32054,7 @@ /** * UpdateTransitionRouteGroupRequest updateMask. * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest * @instance */ UpdateTransitionRouteGroupRequest.prototype.updateMask = null; @@ -30143,7 +32062,7 @@ /** * UpdateTransitionRouteGroupRequest languageCode. * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest * @instance */ UpdateTransitionRouteGroupRequest.prototype.languageCode = ""; @@ -30151,21 +32070,21 @@ /** * Creates a new UpdateTransitionRouteGroupRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateTransitionRouteGroupRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest} UpdateTransitionRouteGroupRequest instance + * @param {google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest} UpdateTransitionRouteGroupRequest instance */ UpdateTransitionRouteGroupRequest.create = function create(properties) { return new UpdateTransitionRouteGroupRequest(properties); }; /** - * Encodes the specified UpdateTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest.verify|verify} messages. + * Encodes the specified UpdateTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateTransitionRouteGroupRequest} message UpdateTransitionRouteGroupRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest} message UpdateTransitionRouteGroupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -30173,7 +32092,7 @@ if (!writer) writer = $Writer.create(); if (message.transitionRouteGroup != null && Object.hasOwnProperty.call(message, "transitionRouteGroup")) - $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.encode(message.transitionRouteGroup, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.encode(message.transitionRouteGroup, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) @@ -30182,11 +32101,11 @@ }; /** - * Encodes the specified UpdateTransitionRouteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest.verify|verify} messages. + * Encodes the specified UpdateTransitionRouteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateTransitionRouteGroupRequest} message UpdateTransitionRouteGroupRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest} message UpdateTransitionRouteGroupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -30197,23 +32116,23 @@ /** * Decodes an UpdateTransitionRouteGroupRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest} UpdateTransitionRouteGroupRequest + * @returns {google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest} UpdateTransitionRouteGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UpdateTransitionRouteGroupRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.transitionRouteGroup = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.decode(reader, reader.uint32()); + message.transitionRouteGroup = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.decode(reader, reader.uint32()); break; case 2: message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); @@ -30232,10 +32151,10 @@ /** * Decodes an UpdateTransitionRouteGroupRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest} UpdateTransitionRouteGroupRequest + * @returns {google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest} UpdateTransitionRouteGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -30248,7 +32167,7 @@ /** * Verifies an UpdateTransitionRouteGroupRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -30257,7 +32176,7 @@ if (typeof message !== "object" || message === null) return "object expected"; if (message.transitionRouteGroup != null && message.hasOwnProperty("transitionRouteGroup")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.verify(message.transitionRouteGroup); + var error = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.verify(message.transitionRouteGroup); if (error) return "transitionRouteGroup." + error; } @@ -30275,23 +32194,23 @@ /** * Creates an UpdateTransitionRouteGroupRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest} UpdateTransitionRouteGroupRequest + * @returns {google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest} UpdateTransitionRouteGroupRequest */ UpdateTransitionRouteGroupRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest(); if (object.transitionRouteGroup != null) { if (typeof object.transitionRouteGroup !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest.transitionRouteGroup: object expected"); - message.transitionRouteGroup = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.fromObject(object.transitionRouteGroup); + throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest.transitionRouteGroup: object expected"); + message.transitionRouteGroup = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.fromObject(object.transitionRouteGroup); } if (object.updateMask != null) { if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest.updateMask: object expected"); + throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest.updateMask: object expected"); message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } if (object.languageCode != null) @@ -30302,9 +32221,9 @@ /** * Creates a plain object from an UpdateTransitionRouteGroupRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest} message UpdateTransitionRouteGroupRequest + * @param {google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest} message UpdateTransitionRouteGroupRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -30318,7 +32237,7 @@ object.languageCode = ""; } if (message.transitionRouteGroup != null && message.hasOwnProperty("transitionRouteGroup")) - object.transitionRouteGroup = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.toObject(message.transitionRouteGroup, options); + object.transitionRouteGroup = $root.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.toObject(message.transitionRouteGroup, options); if (message.updateMask != null && message.hasOwnProperty("updateMask")) object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); if (message.languageCode != null && message.hasOwnProperty("languageCode")) @@ -30329,7 +32248,7 @@ /** * Converts this UpdateTransitionRouteGroupRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest * @instance * @returns {Object.} JSON object */ @@ -30340,11 +32259,11 @@ return UpdateTransitionRouteGroupRequest; })(); - v3beta1.DeleteTransitionRouteGroupRequest = (function() { + v3.DeleteTransitionRouteGroupRequest = (function() { /** * Properties of a DeleteTransitionRouteGroupRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface IDeleteTransitionRouteGroupRequest * @property {string|null} [name] DeleteTransitionRouteGroupRequest name * @property {boolean|null} [force] DeleteTransitionRouteGroupRequest force @@ -30352,11 +32271,11 @@ /** * Constructs a new DeleteTransitionRouteGroupRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a DeleteTransitionRouteGroupRequest. * @implements IDeleteTransitionRouteGroupRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteTransitionRouteGroupRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest=} [properties] Properties to set */ function DeleteTransitionRouteGroupRequest(properties) { if (properties) @@ -30368,7 +32287,7 @@ /** * DeleteTransitionRouteGroupRequest name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest * @instance */ DeleteTransitionRouteGroupRequest.prototype.name = ""; @@ -30376,7 +32295,7 @@ /** * DeleteTransitionRouteGroupRequest force. * @member {boolean} force - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest * @instance */ DeleteTransitionRouteGroupRequest.prototype.force = false; @@ -30384,21 +32303,21 @@ /** * Creates a new DeleteTransitionRouteGroupRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteTransitionRouteGroupRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest} DeleteTransitionRouteGroupRequest instance + * @param {google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest} DeleteTransitionRouteGroupRequest instance */ DeleteTransitionRouteGroupRequest.create = function create(properties) { return new DeleteTransitionRouteGroupRequest(properties); }; /** - * Encodes the specified DeleteTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest.verify|verify} messages. + * Encodes the specified DeleteTransitionRouteGroupRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteTransitionRouteGroupRequest} message DeleteTransitionRouteGroupRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest} message DeleteTransitionRouteGroupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -30413,11 +32332,11 @@ }; /** - * Encodes the specified DeleteTransitionRouteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest.verify|verify} messages. + * Encodes the specified DeleteTransitionRouteGroupRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteTransitionRouteGroupRequest} message DeleteTransitionRouteGroupRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest} message DeleteTransitionRouteGroupRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -30428,18 +32347,18 @@ /** * Decodes a DeleteTransitionRouteGroupRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest} DeleteTransitionRouteGroupRequest + * @returns {google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest} DeleteTransitionRouteGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ DeleteTransitionRouteGroupRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -30460,10 +32379,10 @@ /** * Decodes a DeleteTransitionRouteGroupRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest} DeleteTransitionRouteGroupRequest + * @returns {google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest} DeleteTransitionRouteGroupRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ @@ -30476,7 +32395,7 @@ /** * Verifies a DeleteTransitionRouteGroupRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not @@ -30496,15 +32415,15 @@ /** * Creates a DeleteTransitionRouteGroupRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest} DeleteTransitionRouteGroupRequest + * @returns {google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest} DeleteTransitionRouteGroupRequest */ DeleteTransitionRouteGroupRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest(); if (object.name != null) message.name = String(object.name); if (object.force != null) @@ -30515,9 +32434,9 @@ /** * Creates a plain object from a DeleteTransitionRouteGroupRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest} message DeleteTransitionRouteGroupRequest + * @param {google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest} message DeleteTransitionRouteGroupRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -30539,7 +32458,7 @@ /** * Converts this DeleteTransitionRouteGroupRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest * @instance * @returns {Object.} JSON object */ @@ -30550,11 +32469,11 @@ return DeleteTransitionRouteGroupRequest; })(); - v3beta1.Versions = (function() { + v3.Versions = (function() { /** * Constructs a new Versions service. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a Versions * @extends $protobuf.rpc.Service * @constructor @@ -30571,7 +32490,7 @@ /** * Creates new Versions service using the specified rpc implementation. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Versions + * @memberof google.cloud.dialogflow.cx.v3.Versions * @static * @param {$protobuf.RPCImpl} rpcImpl RPC implementation * @param {boolean} [requestDelimited=false] Whether requests are length-delimited @@ -30583,74 +32502,74 @@ }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Versions#listVersions}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Versions + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Versions#listVersions}. + * @memberof google.cloud.dialogflow.cx.v3.Versions * @typedef ListVersionsCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse} [response] ListVersionsResponse + * @param {google.cloud.dialogflow.cx.v3.ListVersionsResponse} [response] ListVersionsResponse */ /** * Calls ListVersions. * @function listVersions - * @memberof google.cloud.dialogflow.cx.v3beta1.Versions + * @memberof google.cloud.dialogflow.cx.v3.Versions * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IListVersionsRequest} request ListVersionsRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Versions.ListVersionsCallback} callback Node-style callback called with the error, if any, and ListVersionsResponse + * @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.v3beta1.ListVersionsRequest, $root.google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse, 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.v3beta1.Versions + * @memberof google.cloud.dialogflow.cx.v3.Versions * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IListVersionsRequest} request ListVersionsRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3.IListVersionsRequest} request ListVersionsRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Versions#getVersion}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Versions + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Versions#getVersion}. + * @memberof google.cloud.dialogflow.cx.v3.Versions * @typedef GetVersionCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.Version} [response] Version + * @param {google.cloud.dialogflow.cx.v3.Version} [response] Version */ /** * Calls GetVersion. * @function getVersion - * @memberof google.cloud.dialogflow.cx.v3beta1.Versions + * @memberof google.cloud.dialogflow.cx.v3.Versions * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetVersionRequest} request GetVersionRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Versions.GetVersionCallback} callback Node-style callback called with the error, if any, and Version + * @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.v3beta1.GetVersionRequest, $root.google.cloud.dialogflow.cx.v3beta1.Version, 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.v3beta1.Versions + * @memberof google.cloud.dialogflow.cx.v3.Versions * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetVersionRequest} request GetVersionRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3.IGetVersionRequest} request GetVersionRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Versions#createVersion}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Versions + * 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 @@ -30660,63 +32579,63 @@ /** * Calls CreateVersion. * @function createVersion - * @memberof google.cloud.dialogflow.cx.v3beta1.Versions + * @memberof google.cloud.dialogflow.cx.v3.Versions * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateVersionRequest} request CreateVersionRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Versions.CreateVersionCallback} callback Node-style callback called with the error, if any, and Operation + * @param {google.cloud.dialogflow.cx.v3.ICreateVersionRequest} request CreateVersionRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Versions.CreateVersionCallback} callback Node-style callback called with the error, if any, and Operation * @returns {undefined} * @variation 1 */ Object.defineProperty(Versions.prototype.createVersion = function createVersion(request, callback) { - return this.rpcCall(createVersion, $root.google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest, $root.google.longrunning.Operation, request, callback); + return this.rpcCall(createVersion, $root.google.cloud.dialogflow.cx.v3.CreateVersionRequest, $root.google.longrunning.Operation, request, callback); }, "name", { value: "CreateVersion" }); /** * Calls CreateVersion. * @function createVersion - * @memberof google.cloud.dialogflow.cx.v3beta1.Versions + * @memberof google.cloud.dialogflow.cx.v3.Versions * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateVersionRequest} request CreateVersionRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.ICreateVersionRequest} request CreateVersionRequest message or plain object * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Versions#updateVersion}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Versions + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Versions#updateVersion}. + * @memberof google.cloud.dialogflow.cx.v3.Versions * @typedef UpdateVersionCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.Version} [response] Version + * @param {google.cloud.dialogflow.cx.v3.Version} [response] Version */ /** * Calls UpdateVersion. * @function updateVersion - * @memberof google.cloud.dialogflow.cx.v3beta1.Versions + * @memberof google.cloud.dialogflow.cx.v3.Versions * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateVersionRequest} request UpdateVersionRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Versions.UpdateVersionCallback} callback Node-style callback called with the error, if any, and Version + * @param {google.cloud.dialogflow.cx.v3.IUpdateVersionRequest} request UpdateVersionRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Versions.UpdateVersionCallback} callback Node-style callback called with the error, if any, and Version * @returns {undefined} * @variation 1 */ Object.defineProperty(Versions.prototype.updateVersion = function updateVersion(request, callback) { - return this.rpcCall(updateVersion, $root.google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest, $root.google.cloud.dialogflow.cx.v3beta1.Version, request, callback); + return this.rpcCall(updateVersion, $root.google.cloud.dialogflow.cx.v3.UpdateVersionRequest, $root.google.cloud.dialogflow.cx.v3.Version, request, callback); }, "name", { value: "UpdateVersion" }); /** * Calls UpdateVersion. * @function updateVersion - * @memberof google.cloud.dialogflow.cx.v3beta1.Versions + * @memberof google.cloud.dialogflow.cx.v3.Versions * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateVersionRequest} request UpdateVersionRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.dialogflow.cx.v3.IUpdateVersionRequest} request UpdateVersionRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Versions#deleteVersion}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Versions + * 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 @@ -30726,30 +32645,30 @@ /** * Calls DeleteVersion. * @function deleteVersion - * @memberof google.cloud.dialogflow.cx.v3beta1.Versions + * @memberof google.cloud.dialogflow.cx.v3.Versions * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteVersionRequest} request DeleteVersionRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Versions.DeleteVersionCallback} callback Node-style callback called with the error, if any, and Empty + * @param {google.cloud.dialogflow.cx.v3.IDeleteVersionRequest} request DeleteVersionRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Versions.DeleteVersionCallback} callback Node-style callback called with the error, if any, and Empty * @returns {undefined} * @variation 1 */ Object.defineProperty(Versions.prototype.deleteVersion = function deleteVersion(request, callback) { - return this.rpcCall(deleteVersion, $root.google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest, $root.google.protobuf.Empty, request, callback); + return this.rpcCall(deleteVersion, $root.google.cloud.dialogflow.cx.v3.DeleteVersionRequest, $root.google.protobuf.Empty, request, callback); }, "name", { value: "DeleteVersion" }); /** * Calls DeleteVersion. * @function deleteVersion - * @memberof google.cloud.dialogflow.cx.v3beta1.Versions + * @memberof google.cloud.dialogflow.cx.v3.Versions * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteVersionRequest} request DeleteVersionRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.IDeleteVersionRequest} request DeleteVersionRequest message or plain object * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Versions#loadVersion}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Versions + * 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 @@ -30759,23 +32678,23 @@ /** * Calls LoadVersion. * @function loadVersion - * @memberof google.cloud.dialogflow.cx.v3beta1.Versions + * @memberof google.cloud.dialogflow.cx.v3.Versions * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ILoadVersionRequest} request LoadVersionRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Versions.LoadVersionCallback} callback Node-style callback called with the error, if any, and Operation + * @param {google.cloud.dialogflow.cx.v3.ILoadVersionRequest} request LoadVersionRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Versions.LoadVersionCallback} callback Node-style callback called with the error, if any, and Operation * @returns {undefined} * @variation 1 */ Object.defineProperty(Versions.prototype.loadVersion = function loadVersion(request, callback) { - return this.rpcCall(loadVersion, $root.google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest, $root.google.longrunning.Operation, request, callback); + return this.rpcCall(loadVersion, $root.google.cloud.dialogflow.cx.v3.LoadVersionRequest, $root.google.longrunning.Operation, request, callback); }, "name", { value: "LoadVersion" }); /** * Calls LoadVersion. * @function loadVersion - * @memberof google.cloud.dialogflow.cx.v3beta1.Versions + * @memberof google.cloud.dialogflow.cx.v3.Versions * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ILoadVersionRequest} request LoadVersionRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.ILoadVersionRequest} request LoadVersionRequest message or plain object * @returns {Promise} Promise * @variation 2 */ @@ -30783,22 +32702,22 @@ return Versions; })(); - v3beta1.CreateVersionOperationMetadata = (function() { + v3.CreateVersionOperationMetadata = (function() { /** * Properties of a CreateVersionOperationMetadata. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface ICreateVersionOperationMetadata * @property {string|null} [version] CreateVersionOperationMetadata version */ /** * Constructs a new CreateVersionOperationMetadata. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a CreateVersionOperationMetadata. * @implements ICreateVersionOperationMetadata * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateVersionOperationMetadata=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ICreateVersionOperationMetadata=} [properties] Properties to set */ function CreateVersionOperationMetadata(properties) { if (properties) @@ -30810,7 +32729,7 @@ /** * CreateVersionOperationMetadata version. * @member {string} version - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata + * @memberof google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata * @instance */ CreateVersionOperationMetadata.prototype.version = ""; @@ -30818,21 +32737,21 @@ /** * Creates a new CreateVersionOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata + * @memberof google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateVersionOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata} CreateVersionOperationMetadata instance + * @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.v3beta1.CreateVersionOperationMetadata.verify|verify} messages. + * Encodes the specified CreateVersionOperationMetadata message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata + * @memberof google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateVersionOperationMetadata} message CreateVersionOperationMetadata 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 */ @@ -30845,11 +32764,11 @@ }; /** - * Encodes the specified CreateVersionOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata.verify|verify} messages. + * Encodes the specified CreateVersionOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata + * @memberof google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateVersionOperationMetadata} message CreateVersionOperationMetadata 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 */ @@ -30860,18 +32779,18 @@ /** * Decodes a CreateVersionOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata + * @memberof google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata} CreateVersionOperationMetadata + * @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 */ CreateVersionOperationMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata(); + 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) { @@ -30889,10 +32808,10 @@ /** * Decodes a CreateVersionOperationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata + * @memberof google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata} CreateVersionOperationMetadata + * @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 */ @@ -30905,7 +32824,7 @@ /** * Verifies a CreateVersionOperationMetadata message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata + * @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 @@ -30922,15 +32841,15 @@ /** * Creates a CreateVersionOperationMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata + * @memberof google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata} CreateVersionOperationMetadata + * @returns {google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata} CreateVersionOperationMetadata */ CreateVersionOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata(); + var message = new $root.google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata(); if (object.version != null) message.version = String(object.version); return message; @@ -30939,9 +32858,9 @@ /** * Creates a plain object from a CreateVersionOperationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata + * @memberof google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata * @static - * @param {google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata} message CreateVersionOperationMetadata + * @param {google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata} message CreateVersionOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -30959,7 +32878,7 @@ /** * Converts this CreateVersionOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata + * @memberof google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata * @instance * @returns {Object.} JSON object */ @@ -30970,27 +32889,27 @@ return CreateVersionOperationMetadata; })(); - v3beta1.Version = (function() { + v3.Version = (function() { /** * Properties of a Version. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @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.v3beta1.INluSettings|null} [nluSettings] Version nluSettings + * @property {google.cloud.dialogflow.cx.v3.INluSettings|null} [nluSettings] Version nluSettings * @property {google.protobuf.ITimestamp|null} [createTime] Version createTime - * @property {google.cloud.dialogflow.cx.v3beta1.Version.State|null} [state] Version state + * @property {google.cloud.dialogflow.cx.v3.Version.State|null} [state] Version state */ /** * Constructs a new Version. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a Version. * @implements IVersion * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IVersion=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IVersion=} [properties] Properties to set */ function Version(properties) { if (properties) @@ -31002,7 +32921,7 @@ /** * Version name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.Version + * @memberof google.cloud.dialogflow.cx.v3.Version * @instance */ Version.prototype.name = ""; @@ -31010,7 +32929,7 @@ /** * Version displayName. * @member {string} displayName - * @memberof google.cloud.dialogflow.cx.v3beta1.Version + * @memberof google.cloud.dialogflow.cx.v3.Version * @instance */ Version.prototype.displayName = ""; @@ -31018,15 +32937,15 @@ /** * Version description. * @member {string} description - * @memberof google.cloud.dialogflow.cx.v3beta1.Version + * @memberof google.cloud.dialogflow.cx.v3.Version * @instance */ Version.prototype.description = ""; /** * Version nluSettings. - * @member {google.cloud.dialogflow.cx.v3beta1.INluSettings|null|undefined} nluSettings - * @memberof google.cloud.dialogflow.cx.v3beta1.Version + * @member {google.cloud.dialogflow.cx.v3.INluSettings|null|undefined} nluSettings + * @memberof google.cloud.dialogflow.cx.v3.Version * @instance */ Version.prototype.nluSettings = null; @@ -31034,15 +32953,15 @@ /** * Version createTime. * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.dialogflow.cx.v3beta1.Version + * @memberof google.cloud.dialogflow.cx.v3.Version * @instance */ Version.prototype.createTime = null; /** * Version state. - * @member {google.cloud.dialogflow.cx.v3beta1.Version.State} state - * @memberof google.cloud.dialogflow.cx.v3beta1.Version + * @member {google.cloud.dialogflow.cx.v3.Version.State} state + * @memberof google.cloud.dialogflow.cx.v3.Version * @instance */ Version.prototype.state = 0; @@ -31050,21 +32969,21 @@ /** * Creates a new Version instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Version + * @memberof google.cloud.dialogflow.cx.v3.Version * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IVersion=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Version} Version instance + * @param {google.cloud.dialogflow.cx.v3.IVersion=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.Version} Version instance */ Version.create = function create(properties) { return new Version(properties); }; /** - * Encodes the specified Version message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Version.verify|verify} messages. + * Encodes the specified Version message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Version.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Version + * @memberof google.cloud.dialogflow.cx.v3.Version * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IVersion} message Version 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 */ @@ -31078,7 +32997,7 @@ 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.v3beta1.NluSettings.encode(message.nluSettings, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + $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")) @@ -31087,11 +33006,11 @@ }; /** - * Encodes the specified Version message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Version.verify|verify} messages. + * Encodes the specified Version message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Version.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Version + * @memberof google.cloud.dialogflow.cx.v3.Version * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IVersion} message Version 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 */ @@ -31102,18 +33021,18 @@ /** * Decodes a Version message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Version + * @memberof google.cloud.dialogflow.cx.v3.Version * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.Version} Version + * @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 */ Version.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Version(); + 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) { @@ -31127,7 +33046,7 @@ message.description = reader.string(); break; case 4: - message.nluSettings = $root.google.cloud.dialogflow.cx.v3beta1.NluSettings.decode(reader, reader.uint32()); + message.nluSettings = $root.google.cloud.dialogflow.cx.v3.NluSettings.decode(reader, reader.uint32()); break; case 5: message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); @@ -31146,10 +33065,10 @@ /** * Decodes a Version message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Version + * @memberof google.cloud.dialogflow.cx.v3.Version * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Version} Version + * @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 */ @@ -31162,7 +33081,7 @@ /** * Verifies a Version message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Version + * @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 @@ -31180,7 +33099,7 @@ if (!$util.isString(message.description)) return "description: string expected"; if (message.nluSettings != null && message.hasOwnProperty("nluSettings")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.NluSettings.verify(message.nluSettings); + var error = $root.google.cloud.dialogflow.cx.v3.NluSettings.verify(message.nluSettings); if (error) return "nluSettings." + error; } @@ -31205,15 +33124,15 @@ /** * Creates a Version message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Version + * @memberof google.cloud.dialogflow.cx.v3.Version * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Version} Version + * @returns {google.cloud.dialogflow.cx.v3.Version} Version */ Version.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Version) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.Version) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Version(); + var message = new $root.google.cloud.dialogflow.cx.v3.Version(); if (object.name != null) message.name = String(object.name); if (object.displayName != null) @@ -31222,12 +33141,12 @@ message.description = String(object.description); if (object.nluSettings != null) { if (typeof object.nluSettings !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Version.nluSettings: object expected"); - message.nluSettings = $root.google.cloud.dialogflow.cx.v3beta1.NluSettings.fromObject(object.nluSettings); + 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.v3beta1.Version.createTime: object expected"); + throw TypeError(".google.cloud.dialogflow.cx.v3.Version.createTime: object expected"); message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); } switch (object.state) { @@ -31254,9 +33173,9 @@ /** * Creates a plain object from a Version message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Version + * @memberof google.cloud.dialogflow.cx.v3.Version * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Version} message Version + * @param {google.cloud.dialogflow.cx.v3.Version} message Version * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -31279,18 +33198,18 @@ 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.v3beta1.NluSettings.toObject(message.nluSettings, options); + 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.v3beta1.Version.State[message.state] : message.state; + object.state = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.Version.State[message.state] : message.state; return object; }; /** * Converts this Version to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Version + * @memberof google.cloud.dialogflow.cx.v3.Version * @instance * @returns {Object.} JSON object */ @@ -31300,7 +33219,7 @@ /** * State enum. - * @name google.cloud.dialogflow.cx.v3beta1.Version.State + * @name google.cloud.dialogflow.cx.v3.Version.State * @enum {number} * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value * @property {number} RUNNING=1 RUNNING value @@ -31319,11 +33238,11 @@ return Version; })(); - v3beta1.ListVersionsRequest = (function() { + v3.ListVersionsRequest = (function() { /** * Properties of a ListVersionsRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface IListVersionsRequest * @property {string|null} [parent] ListVersionsRequest parent * @property {number|null} [pageSize] ListVersionsRequest pageSize @@ -31332,11 +33251,11 @@ /** * Constructs a new ListVersionsRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a ListVersionsRequest. * @implements IListVersionsRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListVersionsRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IListVersionsRequest=} [properties] Properties to set */ function ListVersionsRequest(properties) { if (properties) @@ -31348,7 +33267,7 @@ /** * ListVersionsRequest parent. * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsRequest * @instance */ ListVersionsRequest.prototype.parent = ""; @@ -31356,7 +33275,7 @@ /** * ListVersionsRequest pageSize. * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsRequest * @instance */ ListVersionsRequest.prototype.pageSize = 0; @@ -31364,7 +33283,7 @@ /** * ListVersionsRequest pageToken. * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsRequest * @instance */ ListVersionsRequest.prototype.pageToken = ""; @@ -31372,21 +33291,21 @@ /** * Creates a new ListVersionsRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListVersionsRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest} ListVersionsRequest instance + * @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 ListVersionsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest.verify|verify} messages. + * Encodes the specified ListVersionsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListVersionsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListVersionsRequest} message ListVersionsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListVersionsRequest} message ListVersionsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -31403,11 +33322,11 @@ }; /** - * Encodes the specified ListVersionsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest.verify|verify} messages. + * Encodes the specified ListVersionsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListVersionsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListVersionsRequest} message ListVersionsRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListVersionsRequest} message ListVersionsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -31418,18 +33337,18 @@ /** * Decodes a ListVersionsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest} ListVersionsRequest + * @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.v3beta1.ListVersionsRequest(); + 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) { @@ -31453,10 +33372,10 @@ /** * Decodes a ListVersionsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest} ListVersionsRequest + * @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 */ @@ -31469,7 +33388,7 @@ /** * Verifies a ListVersionsRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest + * @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 @@ -31492,15 +33411,15 @@ /** * Creates a ListVersionsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest} ListVersionsRequest + * @returns {google.cloud.dialogflow.cx.v3.ListVersionsRequest} ListVersionsRequest */ ListVersionsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListVersionsRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.ListVersionsRequest(); if (object.parent != null) message.parent = String(object.parent); if (object.pageSize != null) @@ -31513,9 +33432,9 @@ /** * Creates a plain object from a ListVersionsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest} message ListVersionsRequest + * @param {google.cloud.dialogflow.cx.v3.ListVersionsRequest} message ListVersionsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -31540,7 +33459,7 @@ /** * Converts this ListVersionsRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsRequest * @instance * @returns {Object.} JSON object */ @@ -31551,23 +33470,23 @@ return ListVersionsRequest; })(); - v3beta1.ListVersionsResponse = (function() { + v3.ListVersionsResponse = (function() { /** * Properties of a ListVersionsResponse. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface IListVersionsResponse - * @property {Array.|null} [versions] ListVersionsResponse versions + * @property {Array.|null} [versions] ListVersionsResponse versions * @property {string|null} [nextPageToken] ListVersionsResponse nextPageToken */ /** * Constructs a new ListVersionsResponse. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a ListVersionsResponse. * @implements IListVersionsResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListVersionsResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IListVersionsResponse=} [properties] Properties to set */ function ListVersionsResponse(properties) { this.versions = []; @@ -31579,8 +33498,8 @@ /** * ListVersionsResponse versions. - * @member {Array.} versions - * @memberof google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse + * @member {Array.} versions + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsResponse * @instance */ ListVersionsResponse.prototype.versions = $util.emptyArray; @@ -31588,7 +33507,7 @@ /** * ListVersionsResponse nextPageToken. * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsResponse * @instance */ ListVersionsResponse.prototype.nextPageToken = ""; @@ -31596,21 +33515,21 @@ /** * Creates a new ListVersionsResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListVersionsResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse} ListVersionsResponse instance + * @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); }; /** - * Encodes the specified ListVersionsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse.verify|verify} messages. + * Encodes the specified ListVersionsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListVersionsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListVersionsResponse} message ListVersionsResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListVersionsResponse} message ListVersionsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -31619,18 +33538,18 @@ writer = $Writer.create(); if (message.versions != null && message.versions.length) for (var i = 0; i < message.versions.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.Version.encode(message.versions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $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 ListVersionsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse.verify|verify} messages. + * Encodes the specified ListVersionsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListVersionsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListVersionsResponse} message ListVersionsResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListVersionsResponse} message ListVersionsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -31641,25 +33560,25 @@ /** * Decodes a ListVersionsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse} ListVersionsResponse + * @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.v3beta1.ListVersionsResponse(); + 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.v3beta1.Version.decode(reader, reader.uint32())); + message.versions.push($root.google.cloud.dialogflow.cx.v3.Version.decode(reader, reader.uint32())); break; case 2: message.nextPageToken = reader.string(); @@ -31675,10 +33594,10 @@ /** * Decodes a ListVersionsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse} ListVersionsResponse + * @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 */ @@ -31691,7 +33610,7 @@ /** * Verifies a ListVersionsResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse + * @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 @@ -31703,7 +33622,7 @@ 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.v3beta1.Version.verify(message.versions[i]); + var error = $root.google.cloud.dialogflow.cx.v3.Version.verify(message.versions[i]); if (error) return "versions." + error; } @@ -31717,23 +33636,23 @@ /** * Creates a ListVersionsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse} ListVersionsResponse + * @returns {google.cloud.dialogflow.cx.v3.ListVersionsResponse} ListVersionsResponse */ ListVersionsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListVersionsResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse(); + var message = new $root.google.cloud.dialogflow.cx.v3.ListVersionsResponse(); if (object.versions) { if (!Array.isArray(object.versions)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse.versions: array expected"); + 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.v3beta1.ListVersionsResponse.versions: object expected"); - message.versions[i] = $root.google.cloud.dialogflow.cx.v3beta1.Version.fromObject(object.versions[i]); + 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) @@ -31744,9 +33663,9 @@ /** * Creates a plain object from a ListVersionsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse} message ListVersionsResponse + * @param {google.cloud.dialogflow.cx.v3.ListVersionsResponse} message ListVersionsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -31761,7 +33680,7 @@ 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.v3beta1.Version.toObject(message.versions[j], options); + 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; @@ -31771,7 +33690,7 @@ /** * Converts this ListVersionsResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListVersionsResponse * @instance * @returns {Object.} JSON object */ @@ -31782,22 +33701,22 @@ return ListVersionsResponse; })(); - v3beta1.GetVersionRequest = (function() { + v3.GetVersionRequest = (function() { /** * Properties of a GetVersionRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface IGetVersionRequest * @property {string|null} [name] GetVersionRequest name */ /** * Constructs a new GetVersionRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a GetVersionRequest. * @implements IGetVersionRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IGetVersionRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IGetVersionRequest=} [properties] Properties to set */ function GetVersionRequest(properties) { if (properties) @@ -31809,7 +33728,7 @@ /** * GetVersionRequest name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.GetVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.GetVersionRequest * @instance */ GetVersionRequest.prototype.name = ""; @@ -31817,21 +33736,21 @@ /** * Creates a new GetVersionRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.GetVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.GetVersionRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetVersionRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.GetVersionRequest} GetVersionRequest instance + * @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 GetVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetVersionRequest.verify|verify} messages. + * Encodes the specified GetVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetVersionRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.GetVersionRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetVersionRequest} message GetVersionRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IGetVersionRequest} message GetVersionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -31844,11 +33763,11 @@ }; /** - * Encodes the specified GetVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetVersionRequest.verify|verify} messages. + * Encodes the specified GetVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetVersionRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.GetVersionRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetVersionRequest} message GetVersionRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IGetVersionRequest} message GetVersionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -31859,18 +33778,18 @@ /** * Decodes a GetVersionRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.GetVersionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.GetVersionRequest} GetVersionRequest + * @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.v3beta1.GetVersionRequest(); + 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) { @@ -31888,10 +33807,10 @@ /** * Decodes a GetVersionRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.GetVersionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.GetVersionRequest} GetVersionRequest + * @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 */ @@ -31904,7 +33823,7 @@ /** * Verifies a GetVersionRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.GetVersionRequest + * @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 @@ -31921,15 +33840,15 @@ /** * Creates a GetVersionRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.GetVersionRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.GetVersionRequest} GetVersionRequest + * @returns {google.cloud.dialogflow.cx.v3.GetVersionRequest} GetVersionRequest */ GetVersionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GetVersionRequest) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.GetVersionRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.GetVersionRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.GetVersionRequest(); if (object.name != null) message.name = String(object.name); return message; @@ -31938,9 +33857,9 @@ /** * Creates a plain object from a GetVersionRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.GetVersionRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.GetVersionRequest} message GetVersionRequest + * @param {google.cloud.dialogflow.cx.v3.GetVersionRequest} message GetVersionRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -31958,7 +33877,7 @@ /** * Converts this GetVersionRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.GetVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.GetVersionRequest * @instance * @returns {Object.} JSON object */ @@ -31969,23 +33888,23 @@ return GetVersionRequest; })(); - v3beta1.CreateVersionRequest = (function() { + v3.CreateVersionRequest = (function() { /** * Properties of a CreateVersionRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface ICreateVersionRequest * @property {string|null} [parent] CreateVersionRequest parent - * @property {google.cloud.dialogflow.cx.v3beta1.IVersion|null} [version] CreateVersionRequest version + * @property {google.cloud.dialogflow.cx.v3.IVersion|null} [version] CreateVersionRequest version */ /** * Constructs a new CreateVersionRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a CreateVersionRequest. * @implements ICreateVersionRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateVersionRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ICreateVersionRequest=} [properties] Properties to set */ function CreateVersionRequest(properties) { if (properties) @@ -31997,15 +33916,15 @@ /** * CreateVersionRequest parent. * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateVersionRequest * @instance */ CreateVersionRequest.prototype.parent = ""; /** * CreateVersionRequest version. - * @member {google.cloud.dialogflow.cx.v3beta1.IVersion|null|undefined} version - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest + * @member {google.cloud.dialogflow.cx.v3.IVersion|null|undefined} version + * @memberof google.cloud.dialogflow.cx.v3.CreateVersionRequest * @instance */ CreateVersionRequest.prototype.version = null; @@ -32013,21 +33932,21 @@ /** * Creates a new CreateVersionRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateVersionRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateVersionRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest} CreateVersionRequest instance + * @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); }; /** - * Encodes the specified CreateVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest.verify|verify} messages. + * Encodes the specified CreateVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateVersionRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateVersionRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateVersionRequest} message CreateVersionRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ICreateVersionRequest} message CreateVersionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -32037,16 +33956,16 @@ 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.v3beta1.Version.encode(message.version, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.Version.encode(message.version, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified CreateVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest.verify|verify} messages. + * Encodes the specified CreateVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateVersionRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateVersionRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateVersionRequest} message CreateVersionRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ICreateVersionRequest} message CreateVersionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -32057,18 +33976,18 @@ /** * Decodes a CreateVersionRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateVersionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest} CreateVersionRequest + * @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.v3beta1.CreateVersionRequest(); + 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) { @@ -32076,7 +33995,7 @@ message.parent = reader.string(); break; case 2: - message.version = $root.google.cloud.dialogflow.cx.v3beta1.Version.decode(reader, reader.uint32()); + message.version = $root.google.cloud.dialogflow.cx.v3.Version.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -32089,10 +34008,10 @@ /** * Decodes a CreateVersionRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateVersionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest} CreateVersionRequest + * @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 */ @@ -32105,7 +34024,7 @@ /** * Verifies a CreateVersionRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest + * @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 @@ -32117,7 +34036,7 @@ if (!$util.isString(message.parent)) return "parent: string expected"; if (message.version != null && message.hasOwnProperty("version")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Version.verify(message.version); + var error = $root.google.cloud.dialogflow.cx.v3.Version.verify(message.version); if (error) return "version." + error; } @@ -32127,21 +34046,21 @@ /** * Creates a CreateVersionRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateVersionRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest} CreateVersionRequest + * @returns {google.cloud.dialogflow.cx.v3.CreateVersionRequest} CreateVersionRequest */ CreateVersionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.CreateVersionRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest(); + 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.v3beta1.CreateVersionRequest.version: object expected"); - message.version = $root.google.cloud.dialogflow.cx.v3beta1.Version.fromObject(object.version); + 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; }; @@ -32149,9 +34068,9 @@ /** * Creates a plain object from a CreateVersionRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateVersionRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest} message CreateVersionRequest + * @param {google.cloud.dialogflow.cx.v3.CreateVersionRequest} message CreateVersionRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -32166,14 +34085,14 @@ 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.v3beta1.Version.toObject(message.version, options); + 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.v3beta1.CreateVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateVersionRequest * @instance * @returns {Object.} JSON object */ @@ -32184,23 +34103,23 @@ return CreateVersionRequest; })(); - v3beta1.UpdateVersionRequest = (function() { + v3.UpdateVersionRequest = (function() { /** * Properties of an UpdateVersionRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface IUpdateVersionRequest - * @property {google.cloud.dialogflow.cx.v3beta1.IVersion|null} [version] UpdateVersionRequest version + * @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.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents an UpdateVersionRequest. * @implements IUpdateVersionRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateVersionRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IUpdateVersionRequest=} [properties] Properties to set */ function UpdateVersionRequest(properties) { if (properties) @@ -32211,8 +34130,8 @@ /** * UpdateVersionRequest version. - * @member {google.cloud.dialogflow.cx.v3beta1.IVersion|null|undefined} version - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest + * @member {google.cloud.dialogflow.cx.v3.IVersion|null|undefined} version + * @memberof google.cloud.dialogflow.cx.v3.UpdateVersionRequest * @instance */ UpdateVersionRequest.prototype.version = null; @@ -32220,7 +34139,7 @@ /** * UpdateVersionRequest updateMask. * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateVersionRequest * @instance */ UpdateVersionRequest.prototype.updateMask = null; @@ -32228,21 +34147,21 @@ /** * Creates a new UpdateVersionRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateVersionRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateVersionRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest} UpdateVersionRequest instance + * @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); }; /** - * Encodes the specified UpdateVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest.verify|verify} messages. + * Encodes the specified UpdateVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateVersionRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateVersionRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateVersionRequest} message UpdateVersionRequest 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 */ @@ -32250,18 +34169,18 @@ if (!writer) writer = $Writer.create(); if (message.version != null && Object.hasOwnProperty.call(message, "version")) - $root.google.cloud.dialogflow.cx.v3beta1.Version.encode(message.version, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $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 UpdateVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest.verify|verify} messages. + * Encodes the specified UpdateVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateVersionRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateVersionRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateVersionRequest} message UpdateVersionRequest 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 */ @@ -32272,23 +34191,23 @@ /** * Decodes an UpdateVersionRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateVersionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest} UpdateVersionRequest + * @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.v3beta1.UpdateVersionRequest(); + 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.v3beta1.Version.decode(reader, reader.uint32()); + 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()); @@ -32304,10 +34223,10 @@ /** * Decodes an UpdateVersionRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateVersionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest} UpdateVersionRequest + * @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 */ @@ -32320,7 +34239,7 @@ /** * Verifies an UpdateVersionRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest + * @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 @@ -32329,7 +34248,7 @@ if (typeof message !== "object" || message === null) return "object expected"; if (message.version != null && message.hasOwnProperty("version")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Version.verify(message.version); + var error = $root.google.cloud.dialogflow.cx.v3.Version.verify(message.version); if (error) return "version." + error; } @@ -32344,23 +34263,23 @@ /** * Creates an UpdateVersionRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateVersionRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest} UpdateVersionRequest + * @returns {google.cloud.dialogflow.cx.v3.UpdateVersionRequest} UpdateVersionRequest */ UpdateVersionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.UpdateVersionRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest(); + 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.v3beta1.UpdateVersionRequest.version: object expected"); - message.version = $root.google.cloud.dialogflow.cx.v3beta1.Version.fromObject(object.version); + throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateVersionRequest.version: object expected"); + message.version = $root.google.cloud.dialogflow.cx.v3.Version.fromObject(object.version); } if (object.updateMask != null) { if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest.updateMask: object expected"); + throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateVersionRequest.updateMask: object expected"); message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } return message; @@ -32369,9 +34288,9 @@ /** * Creates a plain object from an UpdateVersionRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateVersionRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest} message UpdateVersionRequest + * @param {google.cloud.dialogflow.cx.v3.UpdateVersionRequest} message UpdateVersionRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -32384,7 +34303,7 @@ object.updateMask = null; } if (message.version != null && message.hasOwnProperty("version")) - object.version = $root.google.cloud.dialogflow.cx.v3beta1.Version.toObject(message.version, options); + 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; @@ -32393,7 +34312,7 @@ /** * Converts this UpdateVersionRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateVersionRequest * @instance * @returns {Object.} JSON object */ @@ -32404,22 +34323,22 @@ return UpdateVersionRequest; })(); - v3beta1.DeleteVersionRequest = (function() { + v3.DeleteVersionRequest = (function() { /** * Properties of a DeleteVersionRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface IDeleteVersionRequest * @property {string|null} [name] DeleteVersionRequest name */ /** * Constructs a new DeleteVersionRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a DeleteVersionRequest. * @implements IDeleteVersionRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteVersionRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IDeleteVersionRequest=} [properties] Properties to set */ function DeleteVersionRequest(properties) { if (properties) @@ -32431,7 +34350,7 @@ /** * DeleteVersionRequest name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteVersionRequest * @instance */ DeleteVersionRequest.prototype.name = ""; @@ -32439,21 +34358,21 @@ /** * Creates a new DeleteVersionRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteVersionRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteVersionRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest} DeleteVersionRequest instance + * @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.v3beta1.DeleteVersionRequest.verify|verify} messages. + * Encodes the specified DeleteVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteVersionRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteVersionRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteVersionRequest} message DeleteVersionRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IDeleteVersionRequest} message DeleteVersionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -32466,11 +34385,11 @@ }; /** - * Encodes the specified DeleteVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest.verify|verify} messages. + * Encodes the specified DeleteVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteVersionRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteVersionRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteVersionRequest} message DeleteVersionRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IDeleteVersionRequest} message DeleteVersionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -32481,18 +34400,18 @@ /** * Decodes a DeleteVersionRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteVersionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest} DeleteVersionRequest + * @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.v3beta1.DeleteVersionRequest(); + 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) { @@ -32510,10 +34429,10 @@ /** * Decodes a DeleteVersionRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteVersionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest} DeleteVersionRequest + * @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 */ @@ -32526,7 +34445,7 @@ /** * Verifies a DeleteVersionRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest + * @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 @@ -32543,15 +34462,15 @@ /** * Creates a DeleteVersionRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteVersionRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest} DeleteVersionRequest + * @returns {google.cloud.dialogflow.cx.v3.DeleteVersionRequest} DeleteVersionRequest */ DeleteVersionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.DeleteVersionRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.DeleteVersionRequest(); if (object.name != null) message.name = String(object.name); return message; @@ -32560,9 +34479,9 @@ /** * Creates a plain object from a DeleteVersionRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteVersionRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest} message DeleteVersionRequest + * @param {google.cloud.dialogflow.cx.v3.DeleteVersionRequest} message DeleteVersionRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -32580,7 +34499,7 @@ /** * Converts this DeleteVersionRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteVersionRequest * @instance * @returns {Object.} JSON object */ @@ -32591,11 +34510,11 @@ return DeleteVersionRequest; })(); - v3beta1.LoadVersionRequest = (function() { + v3.LoadVersionRequest = (function() { /** * Properties of a LoadVersionRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface ILoadVersionRequest * @property {string|null} [name] LoadVersionRequest name * @property {boolean|null} [allowOverrideAgentResources] LoadVersionRequest allowOverrideAgentResources @@ -32603,11 +34522,11 @@ /** * Constructs a new LoadVersionRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a LoadVersionRequest. * @implements ILoadVersionRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ILoadVersionRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ILoadVersionRequest=} [properties] Properties to set */ function LoadVersionRequest(properties) { if (properties) @@ -32619,7 +34538,7 @@ /** * LoadVersionRequest name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.LoadVersionRequest * @instance */ LoadVersionRequest.prototype.name = ""; @@ -32627,7 +34546,7 @@ /** * LoadVersionRequest allowOverrideAgentResources. * @member {boolean} allowOverrideAgentResources - * @memberof google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.LoadVersionRequest * @instance */ LoadVersionRequest.prototype.allowOverrideAgentResources = false; @@ -32635,21 +34554,21 @@ /** * Creates a new LoadVersionRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.LoadVersionRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ILoadVersionRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest} LoadVersionRequest instance + * @param {google.cloud.dialogflow.cx.v3.ILoadVersionRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.LoadVersionRequest} LoadVersionRequest instance */ LoadVersionRequest.create = function create(properties) { return new LoadVersionRequest(properties); }; /** - * Encodes the specified LoadVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest.verify|verify} messages. + * Encodes the specified LoadVersionRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.LoadVersionRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.LoadVersionRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ILoadVersionRequest} message LoadVersionRequest 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 */ @@ -32664,11 +34583,11 @@ }; /** - * Encodes the specified LoadVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest.verify|verify} messages. + * Encodes the specified LoadVersionRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.LoadVersionRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.LoadVersionRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ILoadVersionRequest} message LoadVersionRequest 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 */ @@ -32679,18 +34598,18 @@ /** * Decodes a LoadVersionRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.LoadVersionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest} LoadVersionRequest + * @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 */ LoadVersionRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest(); + 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) { @@ -32711,10 +34630,10 @@ /** * Decodes a LoadVersionRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.LoadVersionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest} LoadVersionRequest + * @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 */ @@ -32727,7 +34646,7 @@ /** * Verifies a LoadVersionRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest + * @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 @@ -32747,15 +34666,15 @@ /** * Creates a LoadVersionRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.LoadVersionRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest} LoadVersionRequest + * @returns {google.cloud.dialogflow.cx.v3.LoadVersionRequest} LoadVersionRequest */ LoadVersionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.LoadVersionRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.LoadVersionRequest(); if (object.name != null) message.name = String(object.name); if (object.allowOverrideAgentResources != null) @@ -32766,9 +34685,9 @@ /** * Creates a plain object from a LoadVersionRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.LoadVersionRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest} message LoadVersionRequest + * @param {google.cloud.dialogflow.cx.v3.LoadVersionRequest} message LoadVersionRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -32790,7 +34709,7 @@ /** * Converts this LoadVersionRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest + * @memberof google.cloud.dialogflow.cx.v3.LoadVersionRequest * @instance * @returns {Object.} JSON object */ @@ -32801,11 +34720,11 @@ return LoadVersionRequest; })(); - v3beta1.Webhooks = (function() { + v3.Webhooks = (function() { /** * Constructs a new Webhooks service. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a Webhooks * @extends $protobuf.rpc.Service * @constructor @@ -32822,7 +34741,7 @@ /** * Creates new Webhooks service using the specified rpc implementation. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhooks + * @memberof google.cloud.dialogflow.cx.v3.Webhooks * @static * @param {$protobuf.RPCImpl} rpcImpl RPC implementation * @param {boolean} [requestDelimited=false] Whether requests are length-delimited @@ -32834,140 +34753,140 @@ }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Webhooks#listWebhooks}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhooks + * 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.v3beta1.ListWebhooksResponse} [response] ListWebhooksResponse + * @param {google.cloud.dialogflow.cx.v3.ListWebhooksResponse} [response] ListWebhooksResponse */ /** * Calls ListWebhooks. * @function listWebhooks - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhooks + * @memberof google.cloud.dialogflow.cx.v3.Webhooks * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IListWebhooksRequest} request ListWebhooksRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Webhooks.ListWebhooksCallback} callback Node-style callback called with the error, if any, and ListWebhooksResponse + * @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.v3beta1.ListWebhooksRequest, $root.google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse, 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.v3beta1.Webhooks + * @memberof google.cloud.dialogflow.cx.v3.Webhooks * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IListWebhooksRequest} request ListWebhooksRequest 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.v3beta1.Webhooks#getWebhook}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhooks + * 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.v3beta1.Webhook} [response] Webhook + * @param {google.cloud.dialogflow.cx.v3.Webhook} [response] Webhook */ /** * Calls GetWebhook. * @function getWebhook - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhooks + * @memberof google.cloud.dialogflow.cx.v3.Webhooks * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetWebhookRequest} request GetWebhookRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Webhooks.GetWebhookCallback} callback Node-style callback called with the error, if any, and Webhook + * @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.v3beta1.GetWebhookRequest, $root.google.cloud.dialogflow.cx.v3beta1.Webhook, 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.v3beta1.Webhooks + * @memberof google.cloud.dialogflow.cx.v3.Webhooks * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetWebhookRequest} request GetWebhookRequest 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.v3beta1.Webhooks#createWebhook}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhooks + * 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.v3beta1.Webhook} [response] Webhook + * @param {google.cloud.dialogflow.cx.v3.Webhook} [response] Webhook */ /** * Calls CreateWebhook. * @function createWebhook - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhooks + * @memberof google.cloud.dialogflow.cx.v3.Webhooks * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateWebhookRequest} request CreateWebhookRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Webhooks.CreateWebhookCallback} callback Node-style callback called with the error, if any, and Webhook + * @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.v3beta1.CreateWebhookRequest, $root.google.cloud.dialogflow.cx.v3beta1.Webhook, 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.v3beta1.Webhooks + * @memberof google.cloud.dialogflow.cx.v3.Webhooks * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateWebhookRequest} request CreateWebhookRequest 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.v3beta1.Webhooks#updateWebhook}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhooks + * 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.v3beta1.Webhook} [response] Webhook + * @param {google.cloud.dialogflow.cx.v3.Webhook} [response] Webhook */ /** * Calls UpdateWebhook. * @function updateWebhook - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhooks + * @memberof google.cloud.dialogflow.cx.v3.Webhooks * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateWebhookRequest} request UpdateWebhookRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Webhooks.UpdateWebhookCallback} callback Node-style callback called with the error, if any, and Webhook + * @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.v3beta1.UpdateWebhookRequest, $root.google.cloud.dialogflow.cx.v3beta1.Webhook, 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.v3beta1.Webhooks + * @memberof google.cloud.dialogflow.cx.v3.Webhooks * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateWebhookRequest} request UpdateWebhookRequest 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.v3beta1.Webhooks#deleteWebhook}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhooks + * 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 @@ -32977,23 +34896,23 @@ /** * Calls DeleteWebhook. * @function deleteWebhook - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhooks + * @memberof google.cloud.dialogflow.cx.v3.Webhooks * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteWebhookRequest} request DeleteWebhookRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Webhooks.DeleteWebhookCallback} 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(Webhooks.prototype.deleteWebhook = function deleteWebhook(request, callback) { - return this.rpcCall(deleteWebhook, $root.google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest, $root.google.protobuf.Empty, 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.v3beta1.Webhooks + * @memberof google.cloud.dialogflow.cx.v3.Webhooks * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteWebhookRequest} request DeleteWebhookRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest} request DeleteWebhookRequest message or plain object * @returns {Promise} Promise * @variation 2 */ @@ -33001,26 +34920,26 @@ return Webhooks; })(); - v3beta1.Webhook = (function() { + v3.Webhook = (function() { /** * Properties of a Webhook. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @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.v3beta1.Webhook.IGenericWebService|null} [genericWebService] Webhook genericWebService + * @property {google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService|null} [genericWebService] Webhook genericWebService * @property {google.protobuf.IDuration|null} [timeout] Webhook timeout * @property {boolean|null} [disabled] Webhook disabled */ /** * Constructs a new Webhook. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a Webhook. * @implements IWebhook * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IWebhook=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IWebhook=} [properties] Properties to set */ function Webhook(properties) { if (properties) @@ -33032,7 +34951,7 @@ /** * Webhook name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook + * @memberof google.cloud.dialogflow.cx.v3.Webhook * @instance */ Webhook.prototype.name = ""; @@ -33040,15 +34959,15 @@ /** * Webhook displayName. * @member {string} displayName - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook + * @memberof google.cloud.dialogflow.cx.v3.Webhook * @instance */ Webhook.prototype.displayName = ""; /** * Webhook genericWebService. - * @member {google.cloud.dialogflow.cx.v3beta1.Webhook.IGenericWebService|null|undefined} genericWebService - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook + * @member {google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService|null|undefined} genericWebService + * @memberof google.cloud.dialogflow.cx.v3.Webhook * @instance */ Webhook.prototype.genericWebService = null; @@ -33056,7 +34975,7 @@ /** * Webhook timeout. * @member {google.protobuf.IDuration|null|undefined} timeout - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook + * @memberof google.cloud.dialogflow.cx.v3.Webhook * @instance */ Webhook.prototype.timeout = null; @@ -33064,7 +34983,7 @@ /** * Webhook disabled. * @member {boolean} disabled - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook + * @memberof google.cloud.dialogflow.cx.v3.Webhook * @instance */ Webhook.prototype.disabled = false; @@ -33075,7 +34994,7 @@ /** * Webhook webhook. * @member {"genericWebService"|undefined} webhook - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook + * @memberof google.cloud.dialogflow.cx.v3.Webhook * @instance */ Object.defineProperty(Webhook.prototype, "webhook", { @@ -33086,21 +35005,21 @@ /** * Creates a new Webhook instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook + * @memberof google.cloud.dialogflow.cx.v3.Webhook * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IWebhook=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Webhook} Webhook instance + * @param {google.cloud.dialogflow.cx.v3.IWebhook=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.Webhook} Webhook instance */ Webhook.create = function create(properties) { return new Webhook(properties); }; /** - * Encodes the specified Webhook message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Webhook.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.v3beta1.Webhook + * @memberof google.cloud.dialogflow.cx.v3.Webhook * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IWebhook} message Webhook 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 */ @@ -33112,7 +35031,7 @@ 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.v3beta1.Webhook.GenericWebService.encode(message.genericWebService, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + $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")) @@ -33121,11 +35040,11 @@ }; /** - * Encodes the specified Webhook message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Webhook.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.v3beta1.Webhook + * @memberof google.cloud.dialogflow.cx.v3.Webhook * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IWebhook} message Webhook 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 */ @@ -33136,18 +35055,18 @@ /** * Decodes a Webhook message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook + * @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.v3beta1.Webhook} Webhook + * @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 */ 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.v3beta1.Webhook(); + 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) { @@ -33158,7 +35077,7 @@ message.displayName = reader.string(); break; case 4: - message.genericWebService = $root.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.decode(reader, reader.uint32()); + message.genericWebService = $root.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.decode(reader, reader.uint32()); break; case 6: message.timeout = $root.google.protobuf.Duration.decode(reader, reader.uint32()); @@ -33177,10 +35096,10 @@ /** * Decodes a Webhook message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook + * @memberof google.cloud.dialogflow.cx.v3.Webhook * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Webhook} Webhook + * @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 */ @@ -33193,7 +35112,7 @@ /** * Verifies a Webhook message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook + * @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 @@ -33211,7 +35130,7 @@ if (message.genericWebService != null && message.hasOwnProperty("genericWebService")) { properties.webhook = 1; { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.verify(message.genericWebService); + var error = $root.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.verify(message.genericWebService); if (error) return "genericWebService." + error; } @@ -33230,27 +35149,27 @@ /** * Creates a Webhook message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook + * @memberof google.cloud.dialogflow.cx.v3.Webhook * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Webhook} Webhook + * @returns {google.cloud.dialogflow.cx.v3.Webhook} Webhook */ Webhook.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Webhook) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.Webhook) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Webhook(); + 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.v3beta1.Webhook.genericWebService: object expected"); - message.genericWebService = $root.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.fromObject(object.genericWebService); + 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.timeout != null) { if (typeof object.timeout !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Webhook.timeout: object expected"); + throw TypeError(".google.cloud.dialogflow.cx.v3.Webhook.timeout: object expected"); message.timeout = $root.google.protobuf.Duration.fromObject(object.timeout); } if (object.disabled != null) @@ -33261,9 +35180,9 @@ /** * Creates a plain object from a Webhook message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook + * @memberof google.cloud.dialogflow.cx.v3.Webhook * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Webhook} message Webhook + * @param {google.cloud.dialogflow.cx.v3.Webhook} message Webhook * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -33282,7 +35201,7 @@ 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.v3beta1.Webhook.GenericWebService.toObject(message.genericWebService, options); + object.genericWebService = $root.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.toObject(message.genericWebService, options); if (options.oneofs) object.webhook = "genericWebService"; } @@ -33296,7 +35215,7 @@ /** * Converts this Webhook to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook + * @memberof google.cloud.dialogflow.cx.v3.Webhook * @instance * @returns {Object.} JSON object */ @@ -33308,7 +35227,7 @@ /** * Properties of a GenericWebService. - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook + * @memberof google.cloud.dialogflow.cx.v3.Webhook * @interface IGenericWebService * @property {string|null} [uri] GenericWebService uri * @property {string|null} [username] GenericWebService username @@ -33318,11 +35237,11 @@ /** * Constructs a new GenericWebService. - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook + * @memberof google.cloud.dialogflow.cx.v3.Webhook * @classdesc Represents a GenericWebService. * @implements IGenericWebService * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.Webhook.IGenericWebService=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.Webhook.IGenericWebService=} [properties] Properties to set */ function GenericWebService(properties) { this.requestHeaders = {}; @@ -33335,7 +35254,7 @@ /** * GenericWebService uri. * @member {string} uri - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService * @instance */ GenericWebService.prototype.uri = ""; @@ -33343,7 +35262,7 @@ /** * GenericWebService username. * @member {string} username - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService * @instance */ GenericWebService.prototype.username = ""; @@ -33351,7 +35270,7 @@ /** * GenericWebService password. * @member {string} password - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService * @instance */ GenericWebService.prototype.password = ""; @@ -33359,7 +35278,7 @@ /** * GenericWebService requestHeaders. * @member {Object.} requestHeaders - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService * @instance */ GenericWebService.prototype.requestHeaders = $util.emptyObject; @@ -33367,21 +35286,21 @@ /** * Creates a new GenericWebService instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Webhook.IGenericWebService=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService} GenericWebService instance + * @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.v3beta1.Webhook.GenericWebService.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.v3beta1.Webhook.GenericWebService + * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Webhook.IGenericWebService} message GenericWebService 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 */ @@ -33401,11 +35320,11 @@ }; /** - * Encodes the specified GenericWebService message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.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.v3beta1.Webhook.GenericWebService + * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Webhook.IGenericWebService} message GenericWebService 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 */ @@ -33416,18 +35335,18 @@ /** * Decodes a GenericWebService message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + * @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.v3beta1.Webhook.GenericWebService} GenericWebService + * @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.v3beta1.Webhook.GenericWebService(), key, value; + 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) { @@ -33473,10 +35392,10 @@ /** * Decodes a GenericWebService message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + * @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.v3beta1.Webhook.GenericWebService} GenericWebService + * @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 */ @@ -33489,7 +35408,7 @@ /** * Verifies a GenericWebService message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + * @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 @@ -33520,15 +35439,15 @@ /** * Creates a GenericWebService message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService} GenericWebService + * @returns {google.cloud.dialogflow.cx.v3.Webhook.GenericWebService} GenericWebService */ GenericWebService.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService(); + var message = new $root.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService(); if (object.uri != null) message.uri = String(object.uri); if (object.username != null) @@ -33537,7 +35456,7 @@ message.password = String(object.password); if (object.requestHeaders) { if (typeof object.requestHeaders !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.requestHeaders: object expected"); + 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]]); @@ -33548,9 +35467,9 @@ /** * Creates a plain object from a GenericWebService message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService} message GenericWebService + * @param {google.cloud.dialogflow.cx.v3.Webhook.GenericWebService} message GenericWebService * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -33583,7 +35502,7 @@ /** * Converts this GenericWebService to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + * @memberof google.cloud.dialogflow.cx.v3.Webhook.GenericWebService * @instance * @returns {Object.} JSON object */ @@ -33597,11 +35516,11 @@ return Webhook; })(); - v3beta1.ListWebhooksRequest = (function() { + v3.ListWebhooksRequest = (function() { /** * Properties of a ListWebhooksRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface IListWebhooksRequest * @property {string|null} [parent] ListWebhooksRequest parent * @property {number|null} [pageSize] ListWebhooksRequest pageSize @@ -33610,11 +35529,11 @@ /** * Constructs a new ListWebhooksRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a ListWebhooksRequest. * @implements IListWebhooksRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListWebhooksRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IListWebhooksRequest=} [properties] Properties to set */ function ListWebhooksRequest(properties) { if (properties) @@ -33626,7 +35545,7 @@ /** * ListWebhooksRequest parent. * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest + * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksRequest * @instance */ ListWebhooksRequest.prototype.parent = ""; @@ -33634,7 +35553,7 @@ /** * ListWebhooksRequest pageSize. * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest + * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksRequest * @instance */ ListWebhooksRequest.prototype.pageSize = 0; @@ -33642,7 +35561,7 @@ /** * ListWebhooksRequest pageToken. * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest + * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksRequest * @instance */ ListWebhooksRequest.prototype.pageToken = ""; @@ -33650,21 +35569,21 @@ /** * Creates a new ListWebhooksRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest + * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListWebhooksRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest} ListWebhooksRequest instance + * @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); }; /** - * Encodes the specified ListWebhooksRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest.verify|verify} messages. + * 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.v3beta1.ListWebhooksRequest + * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListWebhooksRequest} message ListWebhooksRequest message or plain object to encode + * @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 */ @@ -33681,11 +35600,11 @@ }; /** - * Encodes the specified ListWebhooksRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest.verify|verify} messages. + * 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.v3beta1.ListWebhooksRequest + * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListWebhooksRequest} message ListWebhooksRequest message or plain object to encode + * @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 */ @@ -33696,18 +35615,18 @@ /** * Decodes a ListWebhooksRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest + * @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.v3beta1.ListWebhooksRequest} ListWebhooksRequest + * @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.v3beta1.ListWebhooksRequest(); + 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) { @@ -33731,10 +35650,10 @@ /** * Decodes a ListWebhooksRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest + * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest} ListWebhooksRequest + * @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 */ @@ -33747,7 +35666,7 @@ /** * Verifies a ListWebhooksRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest + * @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 @@ -33770,15 +35689,15 @@ /** * Creates a ListWebhooksRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest + * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest} ListWebhooksRequest + * @returns {google.cloud.dialogflow.cx.v3.ListWebhooksRequest} ListWebhooksRequest */ ListWebhooksRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListWebhooksRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.ListWebhooksRequest(); if (object.parent != null) message.parent = String(object.parent); if (object.pageSize != null) @@ -33791,9 +35710,9 @@ /** * Creates a plain object from a ListWebhooksRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest + * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest} message ListWebhooksRequest + * @param {google.cloud.dialogflow.cx.v3.ListWebhooksRequest} message ListWebhooksRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -33818,7 +35737,7 @@ /** * Converts this ListWebhooksRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest + * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksRequest * @instance * @returns {Object.} JSON object */ @@ -33829,23 +35748,23 @@ return ListWebhooksRequest; })(); - v3beta1.ListWebhooksResponse = (function() { + v3.ListWebhooksResponse = (function() { /** * Properties of a ListWebhooksResponse. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface IListWebhooksResponse - * @property {Array.|null} [webhooks] ListWebhooksResponse webhooks + * @property {Array.|null} [webhooks] ListWebhooksResponse webhooks * @property {string|null} [nextPageToken] ListWebhooksResponse nextPageToken */ /** * Constructs a new ListWebhooksResponse. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a ListWebhooksResponse. * @implements IListWebhooksResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListWebhooksResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IListWebhooksResponse=} [properties] Properties to set */ function ListWebhooksResponse(properties) { this.webhooks = []; @@ -33857,8 +35776,8 @@ /** * ListWebhooksResponse webhooks. - * @member {Array.} webhooks - * @memberof google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse + * @member {Array.} webhooks + * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksResponse * @instance */ ListWebhooksResponse.prototype.webhooks = $util.emptyArray; @@ -33866,7 +35785,7 @@ /** * ListWebhooksResponse nextPageToken. * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse + * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksResponse * @instance */ ListWebhooksResponse.prototype.nextPageToken = ""; @@ -33874,21 +35793,21 @@ /** * Creates a new ListWebhooksResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse + * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListWebhooksResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse} ListWebhooksResponse instance + * @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); }; /** - * Encodes the specified ListWebhooksResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse.verify|verify} messages. + * Encodes the specified ListWebhooksResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListWebhooksResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse + * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListWebhooksResponse} message ListWebhooksResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListWebhooksResponse} message ListWebhooksResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -33897,18 +35816,18 @@ writer = $Writer.create(); if (message.webhooks != null && message.webhooks.length) for (var i = 0; i < message.webhooks.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.Webhook.encode(message.webhooks[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.Webhook.encode(message.webhooks[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified ListWebhooksResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse.verify|verify} messages. + * Encodes the specified ListWebhooksResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListWebhooksResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse + * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListWebhooksResponse} message ListWebhooksResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListWebhooksResponse} message ListWebhooksResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -33919,25 +35838,25 @@ /** * Decodes a ListWebhooksResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse + * @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.v3beta1.ListWebhooksResponse} ListWebhooksResponse + * @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.v3beta1.ListWebhooksResponse(); + 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.v3beta1.Webhook.decode(reader, reader.uint32())); + message.webhooks.push($root.google.cloud.dialogflow.cx.v3.Webhook.decode(reader, reader.uint32())); break; case 2: message.nextPageToken = reader.string(); @@ -33953,10 +35872,10 @@ /** * Decodes a ListWebhooksResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse + * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse} ListWebhooksResponse + * @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 */ @@ -33969,7 +35888,7 @@ /** * Verifies a ListWebhooksResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse + * @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 @@ -33981,7 +35900,7 @@ 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.v3beta1.Webhook.verify(message.webhooks[i]); + var error = $root.google.cloud.dialogflow.cx.v3.Webhook.verify(message.webhooks[i]); if (error) return "webhooks." + error; } @@ -33995,23 +35914,23 @@ /** * Creates a ListWebhooksResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse + * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse} ListWebhooksResponse + * @returns {google.cloud.dialogflow.cx.v3.ListWebhooksResponse} ListWebhooksResponse */ ListWebhooksResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListWebhooksResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse(); + var message = new $root.google.cloud.dialogflow.cx.v3.ListWebhooksResponse(); if (object.webhooks) { if (!Array.isArray(object.webhooks)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse.webhooks: array expected"); + 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.v3beta1.ListWebhooksResponse.webhooks: object expected"); - message.webhooks[i] = $root.google.cloud.dialogflow.cx.v3beta1.Webhook.fromObject(object.webhooks[i]); + 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) @@ -34022,9 +35941,9 @@ /** * Creates a plain object from a ListWebhooksResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse + * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse} message ListWebhooksResponse + * @param {google.cloud.dialogflow.cx.v3.ListWebhooksResponse} message ListWebhooksResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -34039,7 +35958,7 @@ 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.v3beta1.Webhook.toObject(message.webhooks[j], options); + 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; @@ -34049,7 +35968,7 @@ /** * Converts this ListWebhooksResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse + * @memberof google.cloud.dialogflow.cx.v3.ListWebhooksResponse * @instance * @returns {Object.} JSON object */ @@ -34060,22 +35979,22 @@ return ListWebhooksResponse; })(); - v3beta1.GetWebhookRequest = (function() { + v3.GetWebhookRequest = (function() { /** * Properties of a GetWebhookRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface IGetWebhookRequest * @property {string|null} [name] GetWebhookRequest name */ /** * Constructs a new GetWebhookRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a GetWebhookRequest. * @implements IGetWebhookRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IGetWebhookRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IGetWebhookRequest=} [properties] Properties to set */ function GetWebhookRequest(properties) { if (properties) @@ -34087,7 +36006,7 @@ /** * GetWebhookRequest name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.GetWebhookRequest * @instance */ GetWebhookRequest.prototype.name = ""; @@ -34095,21 +36014,21 @@ /** * Creates a new GetWebhookRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.GetWebhookRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetWebhookRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest} GetWebhookRequest instance + * @param {google.cloud.dialogflow.cx.v3.IGetWebhookRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.GetWebhookRequest} GetWebhookRequest instance */ GetWebhookRequest.create = function create(properties) { return new GetWebhookRequest(properties); }; /** - * Encodes the specified GetWebhookRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest.verify|verify} messages. + * 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.v3beta1.GetWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.GetWebhookRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetWebhookRequest} message GetWebhookRequest message or plain object to encode + * @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 */ @@ -34122,11 +36041,11 @@ }; /** - * Encodes the specified GetWebhookRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest.verify|verify} messages. + * 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.v3beta1.GetWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.GetWebhookRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetWebhookRequest} message GetWebhookRequest message or plain object to encode + * @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 */ @@ -34137,18 +36056,18 @@ /** * Decodes a GetWebhookRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest + * @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.v3beta1.GetWebhookRequest} GetWebhookRequest + * @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.v3beta1.GetWebhookRequest(); + 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) { @@ -34166,10 +36085,10 @@ /** * Decodes a GetWebhookRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.GetWebhookRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest} GetWebhookRequest + * @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 */ @@ -34182,7 +36101,7 @@ /** * Verifies a GetWebhookRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest + * @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 @@ -34199,15 +36118,15 @@ /** * Creates a GetWebhookRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.GetWebhookRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest} GetWebhookRequest + * @returns {google.cloud.dialogflow.cx.v3.GetWebhookRequest} GetWebhookRequest */ GetWebhookRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.GetWebhookRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.GetWebhookRequest(); if (object.name != null) message.name = String(object.name); return message; @@ -34216,9 +36135,9 @@ /** * Creates a plain object from a GetWebhookRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.GetWebhookRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest} message GetWebhookRequest + * @param {google.cloud.dialogflow.cx.v3.GetWebhookRequest} message GetWebhookRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -34236,7 +36155,7 @@ /** * Converts this GetWebhookRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.GetWebhookRequest * @instance * @returns {Object.} JSON object */ @@ -34247,23 +36166,23 @@ return GetWebhookRequest; })(); - v3beta1.CreateWebhookRequest = (function() { + v3.CreateWebhookRequest = (function() { /** * Properties of a CreateWebhookRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface ICreateWebhookRequest * @property {string|null} [parent] CreateWebhookRequest parent - * @property {google.cloud.dialogflow.cx.v3beta1.IWebhook|null} [webhook] CreateWebhookRequest webhook + * @property {google.cloud.dialogflow.cx.v3.IWebhook|null} [webhook] CreateWebhookRequest webhook */ /** * Constructs a new CreateWebhookRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a CreateWebhookRequest. * @implements ICreateWebhookRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateWebhookRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ICreateWebhookRequest=} [properties] Properties to set */ function CreateWebhookRequest(properties) { if (properties) @@ -34275,15 +36194,15 @@ /** * CreateWebhookRequest parent. * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateWebhookRequest * @instance */ CreateWebhookRequest.prototype.parent = ""; /** * CreateWebhookRequest webhook. - * @member {google.cloud.dialogflow.cx.v3beta1.IWebhook|null|undefined} webhook - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest + * @member {google.cloud.dialogflow.cx.v3.IWebhook|null|undefined} webhook + * @memberof google.cloud.dialogflow.cx.v3.CreateWebhookRequest * @instance */ CreateWebhookRequest.prototype.webhook = null; @@ -34291,21 +36210,21 @@ /** * Creates a new CreateWebhookRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateWebhookRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateWebhookRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest} CreateWebhookRequest instance + * @param {google.cloud.dialogflow.cx.v3.ICreateWebhookRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.CreateWebhookRequest} CreateWebhookRequest instance */ CreateWebhookRequest.create = function create(properties) { return new CreateWebhookRequest(properties); }; /** - * Encodes the specified CreateWebhookRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest.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.v3beta1.CreateWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateWebhookRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateWebhookRequest} message CreateWebhookRequest 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 */ @@ -34315,16 +36234,16 @@ 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.v3beta1.Webhook.encode(message.webhook, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.Webhook.encode(message.webhook, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified CreateWebhookRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest.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.v3beta1.CreateWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateWebhookRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateWebhookRequest} message CreateWebhookRequest 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 */ @@ -34335,18 +36254,18 @@ /** * Decodes a CreateWebhookRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest + * @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.v3beta1.CreateWebhookRequest} CreateWebhookRequest + * @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 */ 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.v3beta1.CreateWebhookRequest(); + 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) { @@ -34354,7 +36273,7 @@ message.parent = reader.string(); break; case 2: - message.webhook = $root.google.cloud.dialogflow.cx.v3beta1.Webhook.decode(reader, reader.uint32()); + message.webhook = $root.google.cloud.dialogflow.cx.v3.Webhook.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -34367,10 +36286,10 @@ /** * Decodes a CreateWebhookRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateWebhookRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest} CreateWebhookRequest + * @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 */ @@ -34383,7 +36302,7 @@ /** * Verifies a CreateWebhookRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest + * @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 @@ -34395,7 +36314,7 @@ if (!$util.isString(message.parent)) return "parent: string expected"; if (message.webhook != null && message.hasOwnProperty("webhook")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Webhook.verify(message.webhook); + var error = $root.google.cloud.dialogflow.cx.v3.Webhook.verify(message.webhook); if (error) return "webhook." + error; } @@ -34405,21 +36324,21 @@ /** * Creates a CreateWebhookRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateWebhookRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest} CreateWebhookRequest + * @returns {google.cloud.dialogflow.cx.v3.CreateWebhookRequest} CreateWebhookRequest */ CreateWebhookRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.CreateWebhookRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest(); + 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.v3beta1.CreateWebhookRequest.webhook: object expected"); - message.webhook = $root.google.cloud.dialogflow.cx.v3beta1.Webhook.fromObject(object.webhook); + 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; }; @@ -34427,9 +36346,9 @@ /** * Creates a plain object from a CreateWebhookRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateWebhookRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest} message CreateWebhookRequest + * @param {google.cloud.dialogflow.cx.v3.CreateWebhookRequest} message CreateWebhookRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -34444,14 +36363,14 @@ 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.v3beta1.Webhook.toObject(message.webhook, options); + object.webhook = $root.google.cloud.dialogflow.cx.v3.Webhook.toObject(message.webhook, options); return object; }; /** * Converts this CreateWebhookRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateWebhookRequest * @instance * @returns {Object.} JSON object */ @@ -34462,23 +36381,23 @@ return CreateWebhookRequest; })(); - v3beta1.UpdateWebhookRequest = (function() { + v3.UpdateWebhookRequest = (function() { /** * Properties of an UpdateWebhookRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface IUpdateWebhookRequest - * @property {google.cloud.dialogflow.cx.v3beta1.IWebhook|null} [webhook] UpdateWebhookRequest webhook + * @property {google.cloud.dialogflow.cx.v3.IWebhook|null} [webhook] UpdateWebhookRequest webhook * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateWebhookRequest updateMask */ /** * Constructs a new UpdateWebhookRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents an UpdateWebhookRequest. * @implements IUpdateWebhookRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateWebhookRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest=} [properties] Properties to set */ function UpdateWebhookRequest(properties) { if (properties) @@ -34489,8 +36408,8 @@ /** * UpdateWebhookRequest webhook. - * @member {google.cloud.dialogflow.cx.v3beta1.IWebhook|null|undefined} webhook - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest + * @member {google.cloud.dialogflow.cx.v3.IWebhook|null|undefined} webhook + * @memberof google.cloud.dialogflow.cx.v3.UpdateWebhookRequest * @instance */ UpdateWebhookRequest.prototype.webhook = null; @@ -34498,7 +36417,7 @@ /** * UpdateWebhookRequest updateMask. * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateWebhookRequest * @instance */ UpdateWebhookRequest.prototype.updateMask = null; @@ -34506,21 +36425,21 @@ /** * Creates a new UpdateWebhookRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateWebhookRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateWebhookRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest} UpdateWebhookRequest instance + * @param {google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.UpdateWebhookRequest} UpdateWebhookRequest instance */ UpdateWebhookRequest.create = function create(properties) { return new UpdateWebhookRequest(properties); }; /** - * Encodes the specified UpdateWebhookRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest.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.v3beta1.UpdateWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateWebhookRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateWebhookRequest} message UpdateWebhookRequest 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 */ @@ -34528,18 +36447,18 @@ if (!writer) writer = $Writer.create(); if (message.webhook != null && Object.hasOwnProperty.call(message, "webhook")) - $root.google.cloud.dialogflow.cx.v3beta1.Webhook.encode(message.webhook, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.google.cloud.dialogflow.cx.v3.Webhook.encode(message.webhook, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified UpdateWebhookRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest.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.v3beta1.UpdateWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateWebhookRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateWebhookRequest} message UpdateWebhookRequest 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 */ @@ -34550,23 +36469,23 @@ /** * Decodes an UpdateWebhookRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest + * @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.v3beta1.UpdateWebhookRequest} UpdateWebhookRequest + * @returns {google.cloud.dialogflow.cx.v3.UpdateWebhookRequest} UpdateWebhookRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UpdateWebhookRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest(); + 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.v3beta1.Webhook.decode(reader, reader.uint32()); + 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()); @@ -34582,10 +36501,10 @@ /** * Decodes an UpdateWebhookRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateWebhookRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest} UpdateWebhookRequest + * @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 */ @@ -34598,7 +36517,7 @@ /** * Verifies an UpdateWebhookRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest + * @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 @@ -34607,7 +36526,7 @@ if (typeof message !== "object" || message === null) return "object expected"; if (message.webhook != null && message.hasOwnProperty("webhook")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Webhook.verify(message.webhook); + var error = $root.google.cloud.dialogflow.cx.v3.Webhook.verify(message.webhook); if (error) return "webhook." + error; } @@ -34622,23 +36541,23 @@ /** * Creates an UpdateWebhookRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateWebhookRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest} UpdateWebhookRequest + * @returns {google.cloud.dialogflow.cx.v3.UpdateWebhookRequest} UpdateWebhookRequest */ UpdateWebhookRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.UpdateWebhookRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest(); + 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.v3beta1.UpdateWebhookRequest.webhook: object expected"); - message.webhook = $root.google.cloud.dialogflow.cx.v3beta1.Webhook.fromObject(object.webhook); + 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.v3beta1.UpdateWebhookRequest.updateMask: object expected"); + throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateWebhookRequest.updateMask: object expected"); message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } return message; @@ -34647,9 +36566,9 @@ /** * Creates a plain object from an UpdateWebhookRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateWebhookRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest} message UpdateWebhookRequest + * @param {google.cloud.dialogflow.cx.v3.UpdateWebhookRequest} message UpdateWebhookRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -34662,7 +36581,7 @@ object.updateMask = null; } if (message.webhook != null && message.hasOwnProperty("webhook")) - object.webhook = $root.google.cloud.dialogflow.cx.v3beta1.Webhook.toObject(message.webhook, options); + 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; @@ -34671,7 +36590,7 @@ /** * Converts this UpdateWebhookRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateWebhookRequest * @instance * @returns {Object.} JSON object */ @@ -34682,11 +36601,11 @@ return UpdateWebhookRequest; })(); - v3beta1.DeleteWebhookRequest = (function() { + v3.DeleteWebhookRequest = (function() { /** * Properties of a DeleteWebhookRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface IDeleteWebhookRequest * @property {string|null} [name] DeleteWebhookRequest name * @property {boolean|null} [force] DeleteWebhookRequest force @@ -34694,11 +36613,11 @@ /** * Constructs a new DeleteWebhookRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a DeleteWebhookRequest. * @implements IDeleteWebhookRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteWebhookRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest=} [properties] Properties to set */ function DeleteWebhookRequest(properties) { if (properties) @@ -34710,7 +36629,7 @@ /** * DeleteWebhookRequest name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteWebhookRequest * @instance */ DeleteWebhookRequest.prototype.name = ""; @@ -34718,7 +36637,7 @@ /** * DeleteWebhookRequest force. * @member {boolean} force - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteWebhookRequest * @instance */ DeleteWebhookRequest.prototype.force = false; @@ -34726,21 +36645,21 @@ /** * Creates a new DeleteWebhookRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteWebhookRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteWebhookRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest} DeleteWebhookRequest instance + * @param {google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.DeleteWebhookRequest} DeleteWebhookRequest instance */ DeleteWebhookRequest.create = function create(properties) { return new DeleteWebhookRequest(properties); }; /** - * Encodes the specified DeleteWebhookRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest.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.v3beta1.DeleteWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteWebhookRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteWebhookRequest} message DeleteWebhookRequest 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 */ @@ -34755,11 +36674,11 @@ }; /** - * Encodes the specified DeleteWebhookRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest.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.v3beta1.DeleteWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteWebhookRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteWebhookRequest} message DeleteWebhookRequest 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 */ @@ -34770,18 +36689,18 @@ /** * Decodes a DeleteWebhookRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest + * @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.v3beta1.DeleteWebhookRequest} DeleteWebhookRequest + * @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 */ 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.v3beta1.DeleteWebhookRequest(); + 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) { @@ -34802,10 +36721,10 @@ /** * Decodes a DeleteWebhookRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteWebhookRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest} DeleteWebhookRequest + * @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 */ @@ -34818,7 +36737,7 @@ /** * Verifies a DeleteWebhookRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest + * @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 @@ -34838,15 +36757,15 @@ /** * Creates a DeleteWebhookRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteWebhookRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest} DeleteWebhookRequest + * @returns {google.cloud.dialogflow.cx.v3.DeleteWebhookRequest} DeleteWebhookRequest */ DeleteWebhookRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.DeleteWebhookRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.DeleteWebhookRequest(); if (object.name != null) message.name = String(object.name); if (object.force != null) @@ -34857,9 +36776,9 @@ /** * Creates a plain object from a DeleteWebhookRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteWebhookRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest} message DeleteWebhookRequest + * @param {google.cloud.dialogflow.cx.v3.DeleteWebhookRequest} message DeleteWebhookRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -34881,7 +36800,7 @@ /** * Converts this DeleteWebhookRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteWebhookRequest * @instance * @returns {Object.} JSON object */ @@ -34892,28 +36811,28 @@ return DeleteWebhookRequest; })(); - v3beta1.WebhookRequest = (function() { + v3.WebhookRequest = (function() { /** * Properties of a WebhookRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface IWebhookRequest * @property {string|null} [detectIntentResponseId] WebhookRequest detectIntentResponseId - * @property {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IFulfillmentInfo|null} [fulfillmentInfo] WebhookRequest fulfillmentInfo - * @property {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IIntentInfo|null} [intentInfo] WebhookRequest intentInfo - * @property {google.cloud.dialogflow.cx.v3beta1.IPageInfo|null} [pageInfo] WebhookRequest pageInfo - * @property {google.cloud.dialogflow.cx.v3beta1.ISessionInfo|null} [sessionInfo] WebhookRequest sessionInfo - * @property {Array.|null} [messages] WebhookRequest messages + * @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 */ /** * Constructs a new WebhookRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a WebhookRequest. * @implements IWebhookRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IWebhookRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IWebhookRequest=} [properties] Properties to set */ function WebhookRequest(properties) { this.messages = []; @@ -34926,47 +36845,47 @@ /** * WebhookRequest detectIntentResponseId. * @member {string} detectIntentResponseId - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest * @instance */ WebhookRequest.prototype.detectIntentResponseId = ""; /** * WebhookRequest fulfillmentInfo. - * @member {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IFulfillmentInfo|null|undefined} fulfillmentInfo - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest + * @member {google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo|null|undefined} fulfillmentInfo + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest * @instance */ WebhookRequest.prototype.fulfillmentInfo = null; /** * WebhookRequest intentInfo. - * @member {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IIntentInfo|null|undefined} intentInfo - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest + * @member {google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo|null|undefined} intentInfo + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest * @instance */ WebhookRequest.prototype.intentInfo = null; /** * WebhookRequest pageInfo. - * @member {google.cloud.dialogflow.cx.v3beta1.IPageInfo|null|undefined} pageInfo - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest + * @member {google.cloud.dialogflow.cx.v3.IPageInfo|null|undefined} pageInfo + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest * @instance */ WebhookRequest.prototype.pageInfo = null; /** * WebhookRequest sessionInfo. - * @member {google.cloud.dialogflow.cx.v3beta1.ISessionInfo|null|undefined} sessionInfo - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest + * @member {google.cloud.dialogflow.cx.v3.ISessionInfo|null|undefined} sessionInfo + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest * @instance */ WebhookRequest.prototype.sessionInfo = null; /** * WebhookRequest messages. - * @member {Array.} messages - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest + * @member {Array.} messages + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest * @instance */ WebhookRequest.prototype.messages = $util.emptyArray; @@ -34974,7 +36893,7 @@ /** * WebhookRequest payload. * @member {google.protobuf.IStruct|null|undefined} payload - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest * @instance */ WebhookRequest.prototype.payload = null; @@ -34982,21 +36901,21 @@ /** * Creates a new WebhookRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IWebhookRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.WebhookRequest} WebhookRequest instance + * @param {google.cloud.dialogflow.cx.v3.IWebhookRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest} WebhookRequest instance */ WebhookRequest.create = function create(properties) { return new WebhookRequest(properties); }; /** - * Encodes the specified WebhookRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.WebhookRequest.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.v3beta1.WebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IWebhookRequest} message WebhookRequest 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 */ @@ -35006,27 +36925,27 @@ 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.v3beta1.WebhookRequest.IntentInfo.encode(message.intentInfo, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + $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.v3beta1.PageInfo.encode(message.pageInfo, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + $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.v3beta1.SessionInfo.encode(message.sessionInfo, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + $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.v3beta1.WebhookRequest.FulfillmentInfo.encode(message.fulfillmentInfo, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + $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.v3beta1.ResponseMessage.encode(message.messages[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + $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(); return writer; }; /** - * Encodes the specified WebhookRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.WebhookRequest.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.v3beta1.WebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IWebhookRequest} message WebhookRequest 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 */ @@ -35037,18 +36956,18 @@ /** * Decodes a WebhookRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest + * @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.v3beta1.WebhookRequest} WebhookRequest + * @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 */ 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.v3beta1.WebhookRequest(); + 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) { @@ -35056,21 +36975,21 @@ message.detectIntentResponseId = reader.string(); break; case 6: - message.fulfillmentInfo = $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo.decode(reader, reader.uint32()); + message.fulfillmentInfo = $root.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo.decode(reader, reader.uint32()); break; case 3: - message.intentInfo = $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.decode(reader, reader.uint32()); + message.intentInfo = $root.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.decode(reader, reader.uint32()); break; case 4: - message.pageInfo = $root.google.cloud.dialogflow.cx.v3beta1.PageInfo.decode(reader, reader.uint32()); + message.pageInfo = $root.google.cloud.dialogflow.cx.v3.PageInfo.decode(reader, reader.uint32()); break; case 5: - message.sessionInfo = $root.google.cloud.dialogflow.cx.v3beta1.SessionInfo.decode(reader, reader.uint32()); + 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.v3beta1.ResponseMessage.decode(reader, reader.uint32())); + 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()); @@ -35086,10 +37005,10 @@ /** * Decodes a WebhookRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.WebhookRequest} WebhookRequest + * @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 */ @@ -35102,7 +37021,7 @@ /** * Verifies a WebhookRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest + * @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 @@ -35114,22 +37033,22 @@ if (!$util.isString(message.detectIntentResponseId)) return "detectIntentResponseId: string expected"; if (message.fulfillmentInfo != null && message.hasOwnProperty("fulfillmentInfo")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo.verify(message.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.v3beta1.WebhookRequest.IntentInfo.verify(message.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.v3beta1.PageInfo.verify(message.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.v3beta1.SessionInfo.verify(message.sessionInfo); + var error = $root.google.cloud.dialogflow.cx.v3.SessionInfo.verify(message.sessionInfo); if (error) return "sessionInfo." + error; } @@ -35137,7 +37056,7 @@ if (!Array.isArray(message.messages)) return "messages: array expected"; for (var i = 0; i < message.messages.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.verify(message.messages[i]); + var error = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.verify(message.messages[i]); if (error) return "messages." + error; } @@ -35153,50 +37072,50 @@ /** * Creates a WebhookRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.WebhookRequest} WebhookRequest + * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest} WebhookRequest */ WebhookRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.WebhookRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.WebhookRequest(); if (object.detectIntentResponseId != null) message.detectIntentResponseId = String(object.detectIntentResponseId); if (object.fulfillmentInfo != null) { if (typeof object.fulfillmentInfo !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.WebhookRequest.fulfillmentInfo: object expected"); - message.fulfillmentInfo = $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo.fromObject(object.fulfillmentInfo); + 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.v3beta1.WebhookRequest.intentInfo: object expected"); - message.intentInfo = $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.fromObject(object.intentInfo); + 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.v3beta1.WebhookRequest.pageInfo: object expected"); - message.pageInfo = $root.google.cloud.dialogflow.cx.v3beta1.PageInfo.fromObject(object.pageInfo); + 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.v3beta1.WebhookRequest.sessionInfo: object expected"); - message.sessionInfo = $root.google.cloud.dialogflow.cx.v3beta1.SessionInfo.fromObject(object.sessionInfo); + 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.v3beta1.WebhookRequest.messages: array expected"); + 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.v3beta1.WebhookRequest.messages: object expected"); - message.messages[i] = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.fromObject(object.messages[i]); + 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.v3beta1.WebhookRequest.payload: object expected"); + throw TypeError(".google.cloud.dialogflow.cx.v3.WebhookRequest.payload: object expected"); message.payload = $root.google.protobuf.Struct.fromObject(object.payload); } return message; @@ -35205,9 +37124,9 @@ /** * Creates a plain object from a WebhookRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.WebhookRequest} message WebhookRequest + * @param {google.cloud.dialogflow.cx.v3.WebhookRequest} message WebhookRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -35228,17 +37147,17 @@ 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.v3beta1.WebhookRequest.IntentInfo.toObject(message.intentInfo, options); + 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.v3beta1.PageInfo.toObject(message.pageInfo, options); + 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.v3beta1.SessionInfo.toObject(message.sessionInfo, options); + 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.v3beta1.WebhookRequest.FulfillmentInfo.toObject(message.fulfillmentInfo, options); + 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.v3beta1.ResponseMessage.toObject(message.messages[j], options); + 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); @@ -35248,7 +37167,7 @@ /** * Converts this WebhookRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest * @instance * @returns {Object.} JSON object */ @@ -35260,18 +37179,18 @@ /** * Properties of a FulfillmentInfo. - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest * @interface IFulfillmentInfo * @property {string|null} [tag] FulfillmentInfo tag */ /** * Constructs a new FulfillmentInfo. - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest * @classdesc Represents a FulfillmentInfo. * @implements IFulfillmentInfo * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IFulfillmentInfo=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo=} [properties] Properties to set */ function FulfillmentInfo(properties) { if (properties) @@ -35283,7 +37202,7 @@ /** * FulfillmentInfo tag. * @member {string} tag - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo * @instance */ FulfillmentInfo.prototype.tag = ""; @@ -35291,21 +37210,21 @@ /** * Creates a new FulfillmentInfo instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo * @static - * @param {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IFulfillmentInfo=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo} FulfillmentInfo instance + * @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.v3beta1.WebhookRequest.FulfillmentInfo.verify|verify} messages. + * Encodes the specified FulfillmentInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo * @static - * @param {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IFulfillmentInfo} message FulfillmentInfo message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo} message FulfillmentInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -35318,11 +37237,11 @@ }; /** - * Encodes the specified FulfillmentInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo.verify|verify} messages. + * Encodes the specified FulfillmentInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo * @static - * @param {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IFulfillmentInfo} message FulfillmentInfo message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.IFulfillmentInfo} message FulfillmentInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -35333,18 +37252,18 @@ /** * Decodes a FulfillmentInfo message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo + * @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.v3beta1.WebhookRequest.FulfillmentInfo} FulfillmentInfo + * @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.v3beta1.WebhookRequest.FulfillmentInfo(); + 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) { @@ -35362,10 +37281,10 @@ /** * Decodes a FulfillmentInfo message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo + * @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.v3beta1.WebhookRequest.FulfillmentInfo} FulfillmentInfo + * @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 */ @@ -35378,7 +37297,7 @@ /** * Verifies a FulfillmentInfo message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo + * @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 @@ -35395,15 +37314,15 @@ /** * Creates a FulfillmentInfo message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo} FulfillmentInfo + * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo} FulfillmentInfo */ FulfillmentInfo.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo(); + var message = new $root.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo(); if (object.tag != null) message.tag = String(object.tag); return message; @@ -35412,9 +37331,9 @@ /** * Creates a plain object from a FulfillmentInfo message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo * @static - * @param {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo} message FulfillmentInfo + * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo} message FulfillmentInfo * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -35432,7 +37351,7 @@ /** * Converts this FulfillmentInfo to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo * @instance * @returns {Object.} JSON object */ @@ -35447,19 +37366,19 @@ /** * Properties of an IntentInfo. - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest * @interface IIntentInfo * @property {string|null} [lastMatchedIntent] IntentInfo lastMatchedIntent - * @property {Object.|null} [parameters] IntentInfo parameters + * @property {Object.|null} [parameters] IntentInfo parameters */ /** * Constructs a new IntentInfo. - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest * @classdesc Represents an IntentInfo. * @implements IIntentInfo * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IIntentInfo=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo=} [properties] Properties to set */ function IntentInfo(properties) { this.parameters = {}; @@ -35472,15 +37391,15 @@ /** * IntentInfo lastMatchedIntent. * @member {string} lastMatchedIntent - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo * @instance */ IntentInfo.prototype.lastMatchedIntent = ""; /** * IntentInfo parameters. - * @member {Object.} parameters - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo + * @member {Object.} parameters + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo * @instance */ IntentInfo.prototype.parameters = $util.emptyObject; @@ -35488,21 +37407,21 @@ /** * Creates a new IntentInfo instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo * @static - * @param {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IIntentInfo=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo} IntentInfo instance + * @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 IntentInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.verify|verify} messages. + * Encodes the specified IntentInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo * @static - * @param {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IIntentInfo} message IntentInfo message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo} message IntentInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -35514,17 +37433,17 @@ 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.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue.encode(message.parameters[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + $root.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue.encode(message.parameters[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); } return writer; }; /** - * Encodes the specified IntentInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.verify|verify} messages. + * Encodes the specified IntentInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo * @static - * @param {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IIntentInfo} message IntentInfo message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.IIntentInfo} message IntentInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -35535,18 +37454,18 @@ /** * Decodes an IntentInfo message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo + * @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.v3beta1.WebhookRequest.IntentInfo} IntentInfo + * @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.v3beta1.WebhookRequest.IntentInfo(), key, value; + 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) { @@ -35566,7 +37485,7 @@ key = reader.string(); break; case 2: - value = $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue.decode(reader, reader.uint32()); + value = $root.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue.decode(reader, reader.uint32()); break; default: reader.skipType(tag2 & 7); @@ -35586,10 +37505,10 @@ /** * Decodes an IntentInfo message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo + * @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.v3beta1.WebhookRequest.IntentInfo} IntentInfo + * @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 */ @@ -35602,7 +37521,7 @@ /** * Verifies an IntentInfo message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo + * @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 @@ -35618,7 +37537,7 @@ 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.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue.verify(message.parameters[key[i]]); + var error = $root.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue.verify(message.parameters[key[i]]); if (error) return "parameters." + error; } @@ -35629,25 +37548,25 @@ /** * Creates an IntentInfo message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo} IntentInfo + * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo} IntentInfo */ IntentInfo.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo(); + var message = new $root.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo(); if (object.lastMatchedIntent != null) message.lastMatchedIntent = String(object.lastMatchedIntent); if (object.parameters) { if (typeof object.parameters !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.parameters: object expected"); + 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.v3beta1.WebhookRequest.IntentInfo.parameters: object expected"); - message.parameters[keys[i]] = $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue.fromObject(object.parameters[keys[i]]); + 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]]); } } return message; @@ -35656,9 +37575,9 @@ /** * Creates a plain object from an IntentInfo message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo * @static - * @param {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo} message IntentInfo + * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo} message IntentInfo * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -35676,7 +37595,7 @@ 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.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue.toObject(message.parameters[keys2[j]], options); + object.parameters[keys2[j]] = $root.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue.toObject(message.parameters[keys2[j]], options); } return object; }; @@ -35684,7 +37603,7 @@ /** * Converts this IntentInfo to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo * @instance * @returns {Object.} JSON object */ @@ -35696,7 +37615,7 @@ /** * Properties of an IntentParameterValue. - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo * @interface IIntentParameterValue * @property {string|null} [originalValue] IntentParameterValue originalValue * @property {google.protobuf.IValue|null} [resolvedValue] IntentParameterValue resolvedValue @@ -35704,11 +37623,11 @@ /** * Constructs a new IntentParameterValue. - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo * @classdesc Represents an IntentParameterValue. * @implements IIntentParameterValue * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IIntentParameterValue=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IIntentParameterValue=} [properties] Properties to set */ function IntentParameterValue(properties) { if (properties) @@ -35720,7 +37639,7 @@ /** * IntentParameterValue originalValue. * @member {string} originalValue - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue * @instance */ IntentParameterValue.prototype.originalValue = ""; @@ -35728,7 +37647,7 @@ /** * IntentParameterValue resolvedValue. * @member {google.protobuf.IValue|null|undefined} resolvedValue - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue * @instance */ IntentParameterValue.prototype.resolvedValue = null; @@ -35736,21 +37655,21 @@ /** * Creates a new IntentParameterValue instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue * @static - * @param {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IIntentParameterValue=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue} IntentParameterValue instance + * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IIntentParameterValue=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue} IntentParameterValue instance */ IntentParameterValue.create = function create(properties) { return new IntentParameterValue(properties); }; /** - * Encodes the specified IntentParameterValue message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue.verify|verify} messages. + * Encodes the specified IntentParameterValue message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue * @static - * @param {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IIntentParameterValue} message IntentParameterValue message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IIntentParameterValue} message IntentParameterValue message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -35765,11 +37684,11 @@ }; /** - * Encodes the specified IntentParameterValue message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue.verify|verify} messages. + * Encodes the specified IntentParameterValue message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue * @static - * @param {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IIntentParameterValue} message IntentParameterValue message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IIntentParameterValue} message IntentParameterValue message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -35780,18 +37699,18 @@ /** * Decodes an IntentParameterValue message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue + * @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.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue} IntentParameterValue + * @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.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue(); + 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) { @@ -35812,10 +37731,10 @@ /** * Decodes an IntentParameterValue message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue + * @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.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue} IntentParameterValue + * @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 */ @@ -35828,7 +37747,7 @@ /** * Verifies an IntentParameterValue message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue + * @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 @@ -35850,20 +37769,20 @@ /** * Creates an IntentParameterValue message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue} IntentParameterValue + * @returns {google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue} IntentParameterValue */ IntentParameterValue.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue(); + 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.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue.resolvedValue: object expected"); + throw TypeError(".google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue.resolvedValue: object expected"); message.resolvedValue = $root.google.protobuf.Value.fromObject(object.resolvedValue); } return message; @@ -35872,9 +37791,9 @@ /** * Creates a plain object from an IntentParameterValue message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue * @static - * @param {google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue} message IntentParameterValue + * @param {google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue} message IntentParameterValue * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -35896,7 +37815,7 @@ /** * Converts this IntentParameterValue to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue + * @memberof google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue * @instance * @returns {Object.} JSON object */ @@ -35913,15 +37832,15 @@ return WebhookRequest; })(); - v3beta1.WebhookResponse = (function() { + v3.WebhookResponse = (function() { /** * Properties of a WebhookResponse. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface IWebhookResponse - * @property {google.cloud.dialogflow.cx.v3beta1.WebhookResponse.IFulfillmentResponse|null} [fulfillmentResponse] WebhookResponse fulfillmentResponse - * @property {google.cloud.dialogflow.cx.v3beta1.IPageInfo|null} [pageInfo] WebhookResponse pageInfo - * @property {google.cloud.dialogflow.cx.v3beta1.ISessionInfo|null} [sessionInfo] WebhookResponse sessionInfo + * @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 @@ -35929,11 +37848,11 @@ /** * Constructs a new WebhookResponse. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a WebhookResponse. * @implements IWebhookResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IWebhookResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IWebhookResponse=} [properties] Properties to set */ function WebhookResponse(properties) { if (properties) @@ -35944,24 +37863,24 @@ /** * WebhookResponse fulfillmentResponse. - * @member {google.cloud.dialogflow.cx.v3beta1.WebhookResponse.IFulfillmentResponse|null|undefined} fulfillmentResponse - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse + * @member {google.cloud.dialogflow.cx.v3.WebhookResponse.IFulfillmentResponse|null|undefined} fulfillmentResponse + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse * @instance */ WebhookResponse.prototype.fulfillmentResponse = null; /** * WebhookResponse pageInfo. - * @member {google.cloud.dialogflow.cx.v3beta1.IPageInfo|null|undefined} pageInfo - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse + * @member {google.cloud.dialogflow.cx.v3.IPageInfo|null|undefined} pageInfo + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse * @instance */ WebhookResponse.prototype.pageInfo = null; /** * WebhookResponse sessionInfo. - * @member {google.cloud.dialogflow.cx.v3beta1.ISessionInfo|null|undefined} sessionInfo - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse + * @member {google.cloud.dialogflow.cx.v3.ISessionInfo|null|undefined} sessionInfo + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse * @instance */ WebhookResponse.prototype.sessionInfo = null; @@ -35969,7 +37888,7 @@ /** * WebhookResponse payload. * @member {google.protobuf.IStruct|null|undefined} payload - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse * @instance */ WebhookResponse.prototype.payload = null; @@ -35977,7 +37896,7 @@ /** * WebhookResponse targetPage. * @member {string} targetPage - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse * @instance */ WebhookResponse.prototype.targetPage = ""; @@ -35985,7 +37904,7 @@ /** * WebhookResponse targetFlow. * @member {string} targetFlow - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse * @instance */ WebhookResponse.prototype.targetFlow = ""; @@ -35996,7 +37915,7 @@ /** * WebhookResponse transition. * @member {"targetPage"|"targetFlow"|undefined} transition - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse * @instance */ Object.defineProperty(WebhookResponse.prototype, "transition", { @@ -36007,21 +37926,21 @@ /** * Creates a new WebhookResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IWebhookResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.WebhookResponse} WebhookResponse instance + * @param {google.cloud.dialogflow.cx.v3.IWebhookResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.WebhookResponse} WebhookResponse instance */ WebhookResponse.create = function create(properties) { return new WebhookResponse(properties); }; /** - * Encodes the specified WebhookResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.WebhookResponse.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.v3beta1.WebhookResponse + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IWebhookResponse} message WebhookResponse 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 */ @@ -36029,11 +37948,11 @@ if (!writer) writer = $Writer.create(); if (message.fulfillmentResponse != null && Object.hasOwnProperty.call(message, "fulfillmentResponse")) - $root.google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse.encode(message.fulfillmentResponse, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $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.v3beta1.PageInfo.encode(message.pageInfo, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $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.v3beta1.SessionInfo.encode(message.sessionInfo, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + $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")) @@ -36044,11 +37963,11 @@ }; /** - * Encodes the specified WebhookResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.WebhookResponse.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.v3beta1.WebhookResponse + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IWebhookResponse} message WebhookResponse 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 */ @@ -36059,29 +37978,29 @@ /** * Decodes a WebhookResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse + * @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.v3beta1.WebhookResponse} WebhookResponse + * @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 */ 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.v3beta1.WebhookResponse(); + 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.fulfillmentResponse = $root.google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse.decode(reader, reader.uint32()); + message.fulfillmentResponse = $root.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.decode(reader, reader.uint32()); break; case 2: - message.pageInfo = $root.google.cloud.dialogflow.cx.v3beta1.PageInfo.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.v3beta1.SessionInfo.decode(reader, reader.uint32()); + 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()); @@ -36103,10 +38022,10 @@ /** * Decodes a WebhookResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.WebhookResponse} WebhookResponse + * @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 */ @@ -36119,7 +38038,7 @@ /** * Verifies a WebhookResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse + * @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 @@ -36129,17 +38048,17 @@ return "object expected"; var properties = {}; if (message.fulfillmentResponse != null && message.hasOwnProperty("fulfillmentResponse")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse.verify(message.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.v3beta1.PageInfo.verify(message.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.v3beta1.SessionInfo.verify(message.sessionInfo); + var error = $root.google.cloud.dialogflow.cx.v3.SessionInfo.verify(message.sessionInfo); if (error) return "sessionInfo." + error; } @@ -36166,33 +38085,33 @@ /** * Creates a WebhookResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.WebhookResponse} WebhookResponse + * @returns {google.cloud.dialogflow.cx.v3.WebhookResponse} WebhookResponse */ WebhookResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.WebhookResponse) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.WebhookResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.WebhookResponse(); + 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.v3beta1.WebhookResponse.fulfillmentResponse: object expected"); - message.fulfillmentResponse = $root.google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse.fromObject(object.fulfillmentResponse); + 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.v3beta1.WebhookResponse.pageInfo: object expected"); - message.pageInfo = $root.google.cloud.dialogflow.cx.v3beta1.PageInfo.fromObject(object.pageInfo); + 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.v3beta1.WebhookResponse.sessionInfo: object expected"); - message.sessionInfo = $root.google.cloud.dialogflow.cx.v3beta1.SessionInfo.fromObject(object.sessionInfo); + 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.v3beta1.WebhookResponse.payload: object expected"); + throw TypeError(".google.cloud.dialogflow.cx.v3.WebhookResponse.payload: object expected"); message.payload = $root.google.protobuf.Struct.fromObject(object.payload); } if (object.targetPage != null) @@ -36205,9 +38124,9 @@ /** * Creates a plain object from a WebhookResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.WebhookResponse} message WebhookResponse + * @param {google.cloud.dialogflow.cx.v3.WebhookResponse} message WebhookResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -36222,11 +38141,11 @@ object.payload = null; } if (message.fulfillmentResponse != null && message.hasOwnProperty("fulfillmentResponse")) - object.fulfillmentResponse = $root.google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse.toObject(message.fulfillmentResponse, options); + 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.v3beta1.PageInfo.toObject(message.pageInfo, options); + 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.v3beta1.SessionInfo.toObject(message.sessionInfo, options); + 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")) { @@ -36245,7 +38164,7 @@ /** * Converts this WebhookResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse * @instance * @returns {Object.} JSON object */ @@ -36257,19 +38176,19 @@ /** * Properties of a FulfillmentResponse. - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse * @interface IFulfillmentResponse - * @property {Array.|null} [messages] FulfillmentResponse messages - * @property {google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse.MergeBehavior|null} [mergeBehavior] FulfillmentResponse mergeBehavior + * @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.v3beta1.WebhookResponse + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse * @classdesc Represents a FulfillmentResponse. * @implements IFulfillmentResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.WebhookResponse.IFulfillmentResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.WebhookResponse.IFulfillmentResponse=} [properties] Properties to set */ function FulfillmentResponse(properties) { this.messages = []; @@ -36281,16 +38200,16 @@ /** * FulfillmentResponse messages. - * @member {Array.} messages - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse + * @member {Array.} messages + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse * @instance */ FulfillmentResponse.prototype.messages = $util.emptyArray; /** * FulfillmentResponse mergeBehavior. - * @member {google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse.MergeBehavior} mergeBehavior - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse + * @member {google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.MergeBehavior} mergeBehavior + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse * @instance */ FulfillmentResponse.prototype.mergeBehavior = 0; @@ -36298,21 +38217,21 @@ /** * Creates a new FulfillmentResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.WebhookResponse.IFulfillmentResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse} FulfillmentResponse instance + * @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.v3beta1.WebhookResponse.FulfillmentResponse.verify|verify} messages. + * Encodes the specified FulfillmentResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.WebhookResponse.IFulfillmentResponse} message FulfillmentResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.WebhookResponse.IFulfillmentResponse} message FulfillmentResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -36321,18 +38240,18 @@ writer = $Writer.create(); if (message.messages != null && message.messages.length) for (var i = 0; i < message.messages.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.encode(message.messages[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $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.v3beta1.WebhookResponse.FulfillmentResponse.verify|verify} messages. + * Encodes the specified FulfillmentResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.WebhookResponse.IFulfillmentResponse} message FulfillmentResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.WebhookResponse.IFulfillmentResponse} message FulfillmentResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ @@ -36343,25 +38262,25 @@ /** * Decodes a FulfillmentResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse + * @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.v3beta1.WebhookResponse.FulfillmentResponse} FulfillmentResponse + * @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.v3beta1.WebhookResponse.FulfillmentResponse(); + 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.v3beta1.ResponseMessage.decode(reader, reader.uint32())); + message.messages.push($root.google.cloud.dialogflow.cx.v3.ResponseMessage.decode(reader, reader.uint32())); break; case 2: message.mergeBehavior = reader.int32(); @@ -36377,10 +38296,10 @@ /** * Decodes a FulfillmentResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse + * @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.v3beta1.WebhookResponse.FulfillmentResponse} FulfillmentResponse + * @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 */ @@ -36393,7 +38312,7 @@ /** * Verifies a FulfillmentResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse + * @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 @@ -36405,7 +38324,7 @@ if (!Array.isArray(message.messages)) return "messages: array expected"; for (var i = 0; i < message.messages.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.verify(message.messages[i]); + var error = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.verify(message.messages[i]); if (error) return "messages." + error; } @@ -36425,23 +38344,23 @@ /** * Creates a FulfillmentResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse} FulfillmentResponse + * @returns {google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse} FulfillmentResponse */ FulfillmentResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse(); + 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.v3beta1.WebhookResponse.FulfillmentResponse.messages: array expected"); + 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.v3beta1.WebhookResponse.FulfillmentResponse.messages: object expected"); - message.messages[i] = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.fromObject(object.messages[i]); + 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) { @@ -36464,9 +38383,9 @@ /** * Creates a plain object from a FulfillmentResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse} message FulfillmentResponse + * @param {google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse} message FulfillmentResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -36481,17 +38400,17 @@ if (message.messages && message.messages.length) { object.messages = []; for (var j = 0; j < message.messages.length; ++j) - object.messages[j] = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.toObject(message.messages[j], options); + object.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.v3beta1.WebhookResponse.FulfillmentResponse.MergeBehavior[message.mergeBehavior] : message.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.v3beta1.WebhookResponse.FulfillmentResponse + * @memberof google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse * @instance * @returns {Object.} JSON object */ @@ -36501,7 +38420,7 @@ /** * MergeBehavior enum. - * @name google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse.MergeBehavior + * @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 @@ -36521,23 +38440,23 @@ return WebhookResponse; })(); - v3beta1.PageInfo = (function() { + v3.PageInfo = (function() { /** * Properties of a PageInfo. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface IPageInfo * @property {string|null} [currentPage] PageInfo currentPage - * @property {google.cloud.dialogflow.cx.v3beta1.PageInfo.IFormInfo|null} [formInfo] PageInfo formInfo + * @property {google.cloud.dialogflow.cx.v3.PageInfo.IFormInfo|null} [formInfo] PageInfo formInfo */ /** * Constructs a new PageInfo. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a PageInfo. * @implements IPageInfo * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IPageInfo=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IPageInfo=} [properties] Properties to set */ function PageInfo(properties) { if (properties) @@ -36549,15 +38468,15 @@ /** * PageInfo currentPage. * @member {string} currentPage - * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo + * @memberof google.cloud.dialogflow.cx.v3.PageInfo * @instance */ PageInfo.prototype.currentPage = ""; /** * PageInfo formInfo. - * @member {google.cloud.dialogflow.cx.v3beta1.PageInfo.IFormInfo|null|undefined} formInfo - * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo + * @member {google.cloud.dialogflow.cx.v3.PageInfo.IFormInfo|null|undefined} formInfo + * @memberof google.cloud.dialogflow.cx.v3.PageInfo * @instance */ PageInfo.prototype.formInfo = null; @@ -36565,21 +38484,21 @@ /** * Creates a new PageInfo instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo + * @memberof google.cloud.dialogflow.cx.v3.PageInfo * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IPageInfo=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.PageInfo} PageInfo instance + * @param {google.cloud.dialogflow.cx.v3.IPageInfo=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.PageInfo} PageInfo instance */ PageInfo.create = function create(properties) { return new PageInfo(properties); }; /** - * Encodes the specified PageInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.PageInfo.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.v3beta1.PageInfo + * @memberof google.cloud.dialogflow.cx.v3.PageInfo * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IPageInfo} message PageInfo 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 */ @@ -36589,16 +38508,16 @@ 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.v3beta1.PageInfo.FormInfo.encode(message.formInfo, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + $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 PageInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.PageInfo.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.v3beta1.PageInfo + * @memberof google.cloud.dialogflow.cx.v3.PageInfo * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IPageInfo} message PageInfo 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 */ @@ -36609,18 +38528,18 @@ /** * Decodes a PageInfo message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo + * @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.v3beta1.PageInfo} PageInfo + * @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 */ 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.v3beta1.PageInfo(); + 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) { @@ -36628,7 +38547,7 @@ message.currentPage = reader.string(); break; case 3: - message.formInfo = $root.google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.decode(reader, reader.uint32()); + message.formInfo = $root.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -36641,10 +38560,10 @@ /** * Decodes a PageInfo message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo + * @memberof google.cloud.dialogflow.cx.v3.PageInfo * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.PageInfo} PageInfo + * @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 */ @@ -36657,7 +38576,7 @@ /** * Verifies a PageInfo message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo + * @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 @@ -36669,7 +38588,7 @@ if (!$util.isString(message.currentPage)) return "currentPage: string expected"; if (message.formInfo != null && message.hasOwnProperty("formInfo")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.verify(message.formInfo); + var error = $root.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.verify(message.formInfo); if (error) return "formInfo." + error; } @@ -36679,21 +38598,21 @@ /** * Creates a PageInfo message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo + * @memberof google.cloud.dialogflow.cx.v3.PageInfo * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.PageInfo} PageInfo + * @returns {google.cloud.dialogflow.cx.v3.PageInfo} PageInfo */ PageInfo.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.PageInfo) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.PageInfo) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.PageInfo(); + 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.v3beta1.PageInfo.formInfo: object expected"); - message.formInfo = $root.google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.fromObject(object.formInfo); + 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; }; @@ -36701,9 +38620,9 @@ /** * Creates a plain object from a PageInfo message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo + * @memberof google.cloud.dialogflow.cx.v3.PageInfo * @static - * @param {google.cloud.dialogflow.cx.v3beta1.PageInfo} message PageInfo + * @param {google.cloud.dialogflow.cx.v3.PageInfo} message PageInfo * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -36718,14 +38637,14 @@ 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.v3beta1.PageInfo.FormInfo.toObject(message.formInfo, options); + object.formInfo = $root.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.toObject(message.formInfo, options); return object; }; /** * Converts this PageInfo to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo + * @memberof google.cloud.dialogflow.cx.v3.PageInfo * @instance * @returns {Object.} JSON object */ @@ -36737,18 +38656,18 @@ /** * Properties of a FormInfo. - * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo + * @memberof google.cloud.dialogflow.cx.v3.PageInfo * @interface IFormInfo - * @property {Array.|null} [parameterInfo] FormInfo parameterInfo + * @property {Array.|null} [parameterInfo] FormInfo parameterInfo */ /** * Constructs a new FormInfo. - * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo + * @memberof google.cloud.dialogflow.cx.v3.PageInfo * @classdesc Represents a FormInfo. * @implements IFormInfo * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.PageInfo.IFormInfo=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.PageInfo.IFormInfo=} [properties] Properties to set */ function FormInfo(properties) { this.parameterInfo = []; @@ -36760,8 +38679,8 @@ /** * FormInfo parameterInfo. - * @member {Array.} parameterInfo - * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo + * @member {Array.} parameterInfo + * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo * @instance */ FormInfo.prototype.parameterInfo = $util.emptyArray; @@ -36769,21 +38688,21 @@ /** * Creates a new FormInfo instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo + * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo * @static - * @param {google.cloud.dialogflow.cx.v3beta1.PageInfo.IFormInfo=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo} FormInfo instance + * @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.v3beta1.PageInfo.FormInfo.verify|verify} messages. + * 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.v3beta1.PageInfo.FormInfo + * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo * @static - * @param {google.cloud.dialogflow.cx.v3beta1.PageInfo.IFormInfo} message FormInfo message or plain object to encode + * @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 */ @@ -36792,16 +38711,16 @@ writer = $Writer.create(); if (message.parameterInfo != null && message.parameterInfo.length) for (var i = 0; i < message.parameterInfo.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo.encode(message.parameterInfo[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $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.v3beta1.PageInfo.FormInfo.verify|verify} messages. + * 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.v3beta1.PageInfo.FormInfo + * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo * @static - * @param {google.cloud.dialogflow.cx.v3beta1.PageInfo.IFormInfo} message FormInfo message or plain object to encode + * @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 */ @@ -36812,25 +38731,25 @@ /** * Decodes a FormInfo message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo + * @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.v3beta1.PageInfo.FormInfo} FormInfo + * @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.v3beta1.PageInfo.FormInfo(); + 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.v3beta1.PageInfo.FormInfo.ParameterInfo.decode(reader, reader.uint32())); + message.parameterInfo.push($root.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -36843,10 +38762,10 @@ /** * Decodes a FormInfo message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo + * @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.v3beta1.PageInfo.FormInfo} FormInfo + * @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 */ @@ -36859,7 +38778,7 @@ /** * Verifies a FormInfo message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo + * @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 @@ -36871,7 +38790,7 @@ 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.v3beta1.PageInfo.FormInfo.ParameterInfo.verify(message.parameterInfo[i]); + var error = $root.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.verify(message.parameterInfo[i]); if (error) return "parameterInfo." + error; } @@ -36882,23 +38801,23 @@ /** * Creates a FormInfo message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo + * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo} FormInfo + * @returns {google.cloud.dialogflow.cx.v3.PageInfo.FormInfo} FormInfo */ FormInfo.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo(); + 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.v3beta1.PageInfo.FormInfo.parameterInfo: array expected"); + 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.v3beta1.PageInfo.FormInfo.parameterInfo: object expected"); - message.parameterInfo[i] = $root.google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo.fromObject(object.parameterInfo[i]); + 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; @@ -36907,9 +38826,9 @@ /** * Creates a plain object from a FormInfo message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo + * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo * @static - * @param {google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo} message FormInfo + * @param {google.cloud.dialogflow.cx.v3.PageInfo.FormInfo} message FormInfo * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -36922,7 +38841,7 @@ 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.v3beta1.PageInfo.FormInfo.ParameterInfo.toObject(message.parameterInfo[j], options); + object.parameterInfo[j] = $root.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.toObject(message.parameterInfo[j], options); } return object; }; @@ -36930,7 +38849,7 @@ /** * Converts this FormInfo to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo + * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo * @instance * @returns {Object.} JSON object */ @@ -36942,22 +38861,22 @@ /** * Properties of a ParameterInfo. - * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo + * @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.v3beta1.PageInfo.FormInfo.ParameterInfo.ParameterState|null} [state] ParameterInfo state + * @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.v3beta1.PageInfo.FormInfo + * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo * @classdesc Represents a ParameterInfo. * @implements IParameterInfo * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.IParameterInfo=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.IParameterInfo=} [properties] Properties to set */ function ParameterInfo(properties) { if (properties) @@ -36969,7 +38888,7 @@ /** * ParameterInfo displayName. * @member {string} displayName - * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo + * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo * @instance */ ParameterInfo.prototype.displayName = ""; @@ -36977,15 +38896,15 @@ /** * ParameterInfo required. * @member {boolean} required - * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo + * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo * @instance */ ParameterInfo.prototype.required = false; /** * ParameterInfo state. - * @member {google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo.ParameterState} state - * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo + * @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; @@ -36993,7 +38912,7 @@ /** * ParameterInfo value. * @member {google.protobuf.IValue|null|undefined} value - * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo + * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo * @instance */ ParameterInfo.prototype.value = null; @@ -37001,7 +38920,7 @@ /** * ParameterInfo justCollected. * @member {boolean} justCollected - * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo + * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo * @instance */ ParameterInfo.prototype.justCollected = false; @@ -37009,21 +38928,21 @@ /** * Creates a new ParameterInfo instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo + * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo * @static - * @param {google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.IParameterInfo=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo} ParameterInfo instance + * @param {google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.IParameterInfo=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo} ParameterInfo instance */ ParameterInfo.create = function create(properties) { return new ParameterInfo(properties); }; /** - * Encodes the specified ParameterInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo.verify|verify} messages. + * 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.v3beta1.PageInfo.FormInfo.ParameterInfo + * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo * @static - * @param {google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.IParameterInfo} message ParameterInfo message or plain object to encode + * @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 */ @@ -37044,11 +38963,11 @@ }; /** - * Encodes the specified ParameterInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo.verify|verify} messages. + * 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.v3beta1.PageInfo.FormInfo.ParameterInfo + * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo * @static - * @param {google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.IParameterInfo} message ParameterInfo message or plain object to encode + * @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 */ @@ -37059,18 +38978,18 @@ /** * Decodes a ParameterInfo message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo + * @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.v3beta1.PageInfo.FormInfo.ParameterInfo} ParameterInfo + * @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.v3beta1.PageInfo.FormInfo.ParameterInfo(); + 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) { @@ -37100,10 +39019,10 @@ /** * Decodes a ParameterInfo message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo + * @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.v3beta1.PageInfo.FormInfo.ParameterInfo} ParameterInfo + * @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 */ @@ -37116,7 +39035,7 @@ /** * Verifies a ParameterInfo message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo + * @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 @@ -37154,15 +39073,15 @@ /** * Creates a ParameterInfo message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo + * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo} ParameterInfo + * @returns {google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo} ParameterInfo */ ParameterInfo.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo(); + 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) @@ -37187,7 +39106,7 @@ } if (object.value != null) { if (typeof object.value !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo.value: object expected"); + 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) @@ -37198,9 +39117,9 @@ /** * Creates a plain object from a ParameterInfo message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo + * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo * @static - * @param {google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo} message ParameterInfo + * @param {google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo} message ParameterInfo * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -37220,7 +39139,7 @@ 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.v3beta1.PageInfo.FormInfo.ParameterInfo.ParameterState[message.state] : message.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")) @@ -37231,7 +39150,7 @@ /** * Converts this ParameterInfo to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo + * @memberof google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo * @instance * @returns {Object.} JSON object */ @@ -37241,7 +39160,7 @@ /** * ParameterState enum. - * @name google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo.ParameterState + * @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 @@ -37266,11 +39185,11 @@ return PageInfo; })(); - v3beta1.SessionInfo = (function() { + v3.SessionInfo = (function() { /** * Properties of a SessionInfo. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @interface ISessionInfo * @property {string|null} [session] SessionInfo session * @property {Object.|null} [parameters] SessionInfo parameters @@ -37278,11 +39197,11 @@ /** * Constructs a new SessionInfo. - * @memberof google.cloud.dialogflow.cx.v3beta1 + * @memberof google.cloud.dialogflow.cx.v3 * @classdesc Represents a SessionInfo. * @implements ISessionInfo * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ISessionInfo=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ISessionInfo=} [properties] Properties to set */ function SessionInfo(properties) { this.parameters = {}; @@ -37295,7 +39214,7 @@ /** * SessionInfo session. * @member {string} session - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionInfo + * @memberof google.cloud.dialogflow.cx.v3.SessionInfo * @instance */ SessionInfo.prototype.session = ""; @@ -37303,7 +39222,7 @@ /** * SessionInfo parameters. * @member {Object.} parameters - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionInfo + * @memberof google.cloud.dialogflow.cx.v3.SessionInfo * @instance */ SessionInfo.prototype.parameters = $util.emptyObject; @@ -37311,21 +39230,21 @@ /** * Creates a new SessionInfo instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionInfo + * @memberof google.cloud.dialogflow.cx.v3.SessionInfo * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ISessionInfo=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.SessionInfo} SessionInfo instance + * @param {google.cloud.dialogflow.cx.v3.ISessionInfo=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.SessionInfo} SessionInfo instance */ SessionInfo.create = function create(properties) { return new SessionInfo(properties); }; /** - * Encodes the specified SessionInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SessionInfo.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.v3beta1.SessionInfo + * @memberof google.cloud.dialogflow.cx.v3.SessionInfo * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ISessionInfo} message SessionInfo 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 */ @@ -37343,11 +39262,11 @@ }; /** - * Encodes the specified SessionInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SessionInfo.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.v3beta1.SessionInfo + * @memberof google.cloud.dialogflow.cx.v3.SessionInfo * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ISessionInfo} message SessionInfo 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 */ @@ -37358,18 +39277,18 @@ /** * Decodes a SessionInfo message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionInfo + * @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.v3beta1.SessionInfo} SessionInfo + * @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 */ 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.v3beta1.SessionInfo(), key, value; + 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) { @@ -37409,10 +39328,10 @@ /** * Decodes a SessionInfo message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionInfo + * @memberof google.cloud.dialogflow.cx.v3.SessionInfo * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.SessionInfo} SessionInfo + * @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 */ @@ -37425,7 +39344,7 @@ /** * Verifies a SessionInfo message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionInfo + * @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 @@ -37452,24 +39371,24 @@ /** * Creates a SessionInfo message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionInfo + * @memberof google.cloud.dialogflow.cx.v3.SessionInfo * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.SessionInfo} SessionInfo + * @returns {google.cloud.dialogflow.cx.v3.SessionInfo} SessionInfo */ SessionInfo.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.SessionInfo) + if (object instanceof $root.google.cloud.dialogflow.cx.v3.SessionInfo) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.SessionInfo(); + 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.v3beta1.SessionInfo.parameters: object expected"); + 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.v3beta1.SessionInfo.parameters: object expected"); + throw TypeError(".google.cloud.dialogflow.cx.v3.SessionInfo.parameters: object expected"); message.parameters[keys[i]] = $root.google.protobuf.Value.fromObject(object.parameters[keys[i]]); } } @@ -37479,9 +39398,9 @@ /** * Creates a plain object from a SessionInfo message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionInfo + * @memberof google.cloud.dialogflow.cx.v3.SessionInfo * @static - * @param {google.cloud.dialogflow.cx.v3beta1.SessionInfo} message SessionInfo + * @param {google.cloud.dialogflow.cx.v3.SessionInfo} message SessionInfo * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ @@ -37507,7 +39426,7 @@ /** * Converts this SessionInfo to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.SessionInfo + * @memberof google.cloud.dialogflow.cx.v3.SessionInfo * @instance * @returns {Object.} JSON object */ @@ -37518,7 +39437,7 @@ return SessionInfo; })(); - return v3beta1; + return v3; })(); return cx; diff --git a/protos/protos.json b/protos/protos.json index 35d31a73..9bc62bf4 100644 --- a/protos/protos.json +++ b/protos/protos.json @@ -8,14 +8,14 @@ "nested": { "cx": { "nested": { - "v3beta1": { + "v3": { "options": { "cc_enable_arenas": true, - "csharp_namespace": "Google.Cloud.Dialogflow.Cx.V3Beta1", - "go_package": "google.golang.org/genproto/googleapis/cloud/dialogflow/cx/v3beta1;cx", + "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_package": "com.google.cloud.dialogflow.cx.v3beta1", + "java_package": "com.google.cloud.dialogflow.cx.v3", "objc_class_prefix": "DF", "(google.api.resource_definition).type": "dialogflow.googleapis.com/Session", "(google.api.resource_definition).pattern": "projects/{project}/locations/{location}/agents/{agent}/environments/{environment}/sessions/{session}" @@ -31,13 +31,13 @@ "requestType": "ListAgentsRequest", "responseType": "ListAgentsResponse", "options": { - "(google.api.http).get": "/v3beta1/{parent=projects/*/locations/*}/agents", + "(google.api.http).get": "/v3/{parent=projects/*/locations/*}/agents", "(google.api.method_signature)": "parent" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v3beta1/{parent=projects/*/locations/*}/agents" + "get": "/v3/{parent=projects/*/locations/*}/agents" } }, { @@ -49,13 +49,13 @@ "requestType": "GetAgentRequest", "responseType": "Agent", "options": { - "(google.api.http).get": "/v3beta1/{name=projects/*/locations/*/agents/*}", + "(google.api.http).get": "/v3/{name=projects/*/locations/*/agents/*}", "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v3beta1/{name=projects/*/locations/*/agents/*}" + "get": "/v3/{name=projects/*/locations/*/agents/*}" } }, { @@ -67,14 +67,14 @@ "requestType": "CreateAgentRequest", "responseType": "Agent", "options": { - "(google.api.http).post": "/v3beta1/{parent=projects/*/locations/*}/agents", + "(google.api.http).post": "/v3/{parent=projects/*/locations/*}/agents", "(google.api.http).body": "agent", "(google.api.method_signature)": "parent,agent" }, "parsedOptions": [ { "(google.api.http)": { - "post": "/v3beta1/{parent=projects/*/locations/*}/agents", + "post": "/v3/{parent=projects/*/locations/*}/agents", "body": "agent" } }, @@ -87,14 +87,14 @@ "requestType": "UpdateAgentRequest", "responseType": "Agent", "options": { - "(google.api.http).patch": "/v3beta1/{agent.name=projects/*/locations/*/agents/*}", + "(google.api.http).patch": "/v3/{agent.name=projects/*/locations/*/agents/*}", "(google.api.http).body": "agent", "(google.api.method_signature)": "agent,update_mask" }, "parsedOptions": [ { "(google.api.http)": { - "patch": "/v3beta1/{agent.name=projects/*/locations/*/agents/*}", + "patch": "/v3/{agent.name=projects/*/locations/*/agents/*}", "body": "agent" } }, @@ -107,13 +107,13 @@ "requestType": "DeleteAgentRequest", "responseType": "google.protobuf.Empty", "options": { - "(google.api.http).delete": "/v3beta1/{name=projects/*/locations/*/agents/*}", + "(google.api.http).delete": "/v3/{name=projects/*/locations/*/agents/*}", "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { - "delete": "/v3beta1/{name=projects/*/locations/*/agents/*}" + "delete": "/v3/{name=projects/*/locations/*/agents/*}" } }, { @@ -125,7 +125,7 @@ "requestType": "ExportAgentRequest", "responseType": "google.longrunning.Operation", "options": { - "(google.api.http).post": "/v3beta1/{name=projects/*/locations/*/agents/*}:export", + "(google.api.http).post": "/v3/{name=projects/*/locations/*/agents/*}:export", "(google.api.http).body": "*", "(google.longrunning.operation_info).response_type": "ExportAgentResponse", "(google.longrunning.operation_info).metadata_type": "google.protobuf.Struct" @@ -133,7 +133,7 @@ "parsedOptions": [ { "(google.api.http)": { - "post": "/v3beta1/{name=projects/*/locations/*/agents/*}:export", + "post": "/v3/{name=projects/*/locations/*/agents/*}:export", "body": "*" } }, @@ -149,7 +149,7 @@ "requestType": "RestoreAgentRequest", "responseType": "google.longrunning.Operation", "options": { - "(google.api.http).post": "/v3beta1/{name=projects/*/locations/*/agents/*}:restore", + "(google.api.http).post": "/v3/{name=projects/*/locations/*/agents/*}:restore", "(google.api.http).body": "*", "(google.longrunning.operation_info).response_type": "google.protobuf.Empty", "(google.longrunning.operation_info).metadata_type": "google.protobuf.Struct" @@ -157,7 +157,7 @@ "parsedOptions": [ { "(google.api.http)": { - "post": "/v3beta1/{name=projects/*/locations/*/agents/*}:restore", + "post": "/v3/{name=projects/*/locations/*/agents/*}:restore", "body": "*" } }, @@ -408,14 +408,14 @@ "requestType": "CreateFlowRequest", "responseType": "Flow", "options": { - "(google.api.http).post": "/v3beta1/{parent=projects/*/locations/*/agents/*}/flows", + "(google.api.http).post": "/v3/{parent=projects/*/locations/*/agents/*}/flows", "(google.api.http).body": "flow", "(google.api.method_signature)": "parent,flow" }, "parsedOptions": [ { "(google.api.http)": { - "post": "/v3beta1/{parent=projects/*/locations/*/agents/*}/flows", + "post": "/v3/{parent=projects/*/locations/*/agents/*}/flows", "body": "flow" } }, @@ -428,13 +428,13 @@ "requestType": "DeleteFlowRequest", "responseType": "google.protobuf.Empty", "options": { - "(google.api.http).delete": "/v3beta1/{name=projects/*/locations/*/agents/*/flows/*}", + "(google.api.http).delete": "/v3/{name=projects/*/locations/*/agents/*/flows/*}", "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { - "delete": "/v3beta1/{name=projects/*/locations/*/agents/*/flows/*}" + "delete": "/v3/{name=projects/*/locations/*/agents/*/flows/*}" } }, { @@ -446,13 +446,13 @@ "requestType": "ListFlowsRequest", "responseType": "ListFlowsResponse", "options": { - "(google.api.http).get": "/v3beta1/{parent=projects/*/locations/*/agents/*}/flows", + "(google.api.http).get": "/v3/{parent=projects/*/locations/*/agents/*}/flows", "(google.api.method_signature)": "parent" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v3beta1/{parent=projects/*/locations/*/agents/*}/flows" + "get": "/v3/{parent=projects/*/locations/*/agents/*}/flows" } }, { @@ -464,13 +464,13 @@ "requestType": "GetFlowRequest", "responseType": "Flow", "options": { - "(google.api.http).get": "/v3beta1/{name=projects/*/locations/*/agents/*/flows/*}", + "(google.api.http).get": "/v3/{name=projects/*/locations/*/agents/*/flows/*}", "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v3beta1/{name=projects/*/locations/*/agents/*/flows/*}" + "get": "/v3/{name=projects/*/locations/*/agents/*/flows/*}" } }, { @@ -482,14 +482,14 @@ "requestType": "UpdateFlowRequest", "responseType": "Flow", "options": { - "(google.api.http).patch": "/v3beta1/{flow.name=projects/*/locations/*/agents/*/flows/*}", + "(google.api.http).patch": "/v3/{flow.name=projects/*/locations/*/agents/*/flows/*}", "(google.api.http).body": "flow", "(google.api.method_signature)": "flow,update_mask" }, "parsedOptions": [ { "(google.api.http)": { - "patch": "/v3beta1/{flow.name=projects/*/locations/*/agents/*/flows/*}", + "patch": "/v3/{flow.name=projects/*/locations/*/agents/*/flows/*}", "body": "flow" } }, @@ -502,7 +502,7 @@ "requestType": "TrainFlowRequest", "responseType": "google.longrunning.Operation", "options": { - "(google.api.http).post": "/v3beta1/{name=projects/*/locations/*/agents/*/flows/*}:train", + "(google.api.http).post": "/v3/{name=projects/*/locations/*/agents/*/flows/*}:train", "(google.api.http).body": "*", "(google.api.method_signature)": "name", "(google.longrunning.operation_info).response_type": "google.protobuf.Empty", @@ -511,7 +511,7 @@ "parsedOptions": [ { "(google.api.http)": { - "post": "/v3beta1/{name=projects/*/locations/*/agents/*/flows/*}:train", + "post": "/v3/{name=projects/*/locations/*/agents/*/flows/*}:train", "body": "*" } }, @@ -733,13 +733,13 @@ "requestType": "ListPagesRequest", "responseType": "ListPagesResponse", "options": { - "(google.api.http).get": "/v3beta1/{parent=projects/*/locations/*/agents/*/flows/*}/pages", + "(google.api.http).get": "/v3/{parent=projects/*/locations/*/agents/*/flows/*}/pages", "(google.api.method_signature)": "parent" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v3beta1/{parent=projects/*/locations/*/agents/*/flows/*}/pages" + "get": "/v3/{parent=projects/*/locations/*/agents/*/flows/*}/pages" } }, { @@ -751,13 +751,13 @@ "requestType": "GetPageRequest", "responseType": "Page", "options": { - "(google.api.http).get": "/v3beta1/{name=projects/*/locations/*/agents/*/flows/*/pages/*}", + "(google.api.http).get": "/v3/{name=projects/*/locations/*/agents/*/flows/*/pages/*}", "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v3beta1/{name=projects/*/locations/*/agents/*/flows/*/pages/*}" + "get": "/v3/{name=projects/*/locations/*/agents/*/flows/*/pages/*}" } }, { @@ -769,14 +769,14 @@ "requestType": "CreatePageRequest", "responseType": "Page", "options": { - "(google.api.http).post": "/v3beta1/{parent=projects/*/locations/*/agents/*/flows/*}/pages", + "(google.api.http).post": "/v3/{parent=projects/*/locations/*/agents/*/flows/*}/pages", "(google.api.http).body": "page", "(google.api.method_signature)": "parent,page" }, "parsedOptions": [ { "(google.api.http)": { - "post": "/v3beta1/{parent=projects/*/locations/*/agents/*/flows/*}/pages", + "post": "/v3/{parent=projects/*/locations/*/agents/*/flows/*}/pages", "body": "page" } }, @@ -789,14 +789,14 @@ "requestType": "UpdatePageRequest", "responseType": "Page", "options": { - "(google.api.http).patch": "/v3beta1/{page.name=projects/*/locations/*/agents/*/flows/*/pages/*}", + "(google.api.http).patch": "/v3/{page.name=projects/*/locations/*/agents/*/flows/*/pages/*}", "(google.api.http).body": "page", "(google.api.method_signature)": "page,update_mask" }, "parsedOptions": [ { "(google.api.http)": { - "patch": "/v3beta1/{page.name=projects/*/locations/*/agents/*/flows/*/pages/*}", + "patch": "/v3/{page.name=projects/*/locations/*/agents/*/flows/*/pages/*}", "body": "page" } }, @@ -809,13 +809,13 @@ "requestType": "DeletePageRequest", "responseType": "google.protobuf.Empty", "options": { - "(google.api.http).delete": "/v3beta1/{name=projects/*/locations/*/agents/*/flows/*/pages/*}", + "(google.api.http).delete": "/v3/{name=projects/*/locations/*/agents/*/flows/*/pages/*}", "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { - "delete": "/v3beta1/{name=projects/*/locations/*/agents/*/flows/*/pages/*}" + "delete": "/v3/{name=projects/*/locations/*/agents/*/flows/*/pages/*}" } }, { @@ -1352,6 +1352,27 @@ } } }, + "EndInteraction": { + "fields": {} + }, + "PlayAudio": { + "fields": { + "audioUri": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "allowPlaybackInterruption": { + "type": "bool", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + } + }, "MixedAudio": { "fields": { "segments": { @@ -1389,27 +1410,6 @@ } } } - }, - "EndInteraction": { - "fields": {} - }, - "PlayAudio": { - "fields": { - "audioUri": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "allowPlaybackInterruption": { - "type": "bool", - "id": 2, - "options": { - "(google.api.field_behavior)": "OUTPUT_ONLY" - } - } - } } } }, @@ -1573,13 +1573,13 @@ "requestType": "ListEntityTypesRequest", "responseType": "ListEntityTypesResponse", "options": { - "(google.api.http).get": "/v3beta1/{parent=projects/*/locations/*/agents/*}/entityTypes", + "(google.api.http).get": "/v3/{parent=projects/*/locations/*/agents/*}/entityTypes", "(google.api.method_signature)": "parent" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v3beta1/{parent=projects/*/locations/*/agents/*}/entityTypes" + "get": "/v3/{parent=projects/*/locations/*/agents/*}/entityTypes" } }, { @@ -1591,13 +1591,13 @@ "requestType": "GetEntityTypeRequest", "responseType": "EntityType", "options": { - "(google.api.http).get": "/v3beta1/{name=projects/*/locations/*/agents/*/entityTypes/*}", + "(google.api.http).get": "/v3/{name=projects/*/locations/*/agents/*/entityTypes/*}", "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v3beta1/{name=projects/*/locations/*/agents/*/entityTypes/*}" + "get": "/v3/{name=projects/*/locations/*/agents/*/entityTypes/*}" } }, { @@ -1609,14 +1609,14 @@ "requestType": "CreateEntityTypeRequest", "responseType": "EntityType", "options": { - "(google.api.http).post": "/v3beta1/{parent=projects/*/locations/*/agents/*}/entityTypes", + "(google.api.http).post": "/v3/{parent=projects/*/locations/*/agents/*}/entityTypes", "(google.api.http).body": "entity_type", "(google.api.method_signature)": "parent,entity_type" }, "parsedOptions": [ { "(google.api.http)": { - "post": "/v3beta1/{parent=projects/*/locations/*/agents/*}/entityTypes", + "post": "/v3/{parent=projects/*/locations/*/agents/*}/entityTypes", "body": "entity_type" } }, @@ -1629,14 +1629,14 @@ "requestType": "UpdateEntityTypeRequest", "responseType": "EntityType", "options": { - "(google.api.http).patch": "/v3beta1/{entity_type.name=projects/*/locations/*/agents/*/entityTypes/*}", + "(google.api.http).patch": "/v3/{entity_type.name=projects/*/locations/*/agents/*/entityTypes/*}", "(google.api.http).body": "entity_type", "(google.api.method_signature)": "entity_type,update_mask" }, "parsedOptions": [ { "(google.api.http)": { - "patch": "/v3beta1/{entity_type.name=projects/*/locations/*/agents/*/entityTypes/*}", + "patch": "/v3/{entity_type.name=projects/*/locations/*/agents/*/entityTypes/*}", "body": "entity_type" } }, @@ -1649,13 +1649,13 @@ "requestType": "DeleteEntityTypeRequest", "responseType": "google.protobuf.Empty", "options": { - "(google.api.http).delete": "/v3beta1/{name=projects/*/locations/*/agents/*/entityTypes/*}", + "(google.api.http).delete": "/v3/{name=projects/*/locations/*/agents/*/entityTypes/*}", "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { - "delete": "/v3beta1/{name=projects/*/locations/*/agents/*/entityTypes/*}" + "delete": "/v3/{name=projects/*/locations/*/agents/*/entityTypes/*}" } }, { @@ -1876,13 +1876,13 @@ "requestType": "ListEnvironmentsRequest", "responseType": "ListEnvironmentsResponse", "options": { - "(google.api.http).get": "/v3beta1/{parent=projects/*/locations/*/agents/*}/environments", + "(google.api.http).get": "/v3/{parent=projects/*/locations/*/agents/*}/environments", "(google.api.method_signature)": "parent" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v3beta1/{parent=projects/*/locations/*/agents/*}/environments" + "get": "/v3/{parent=projects/*/locations/*/agents/*}/environments" } }, { @@ -1894,13 +1894,13 @@ "requestType": "GetEnvironmentRequest", "responseType": "Environment", "options": { - "(google.api.http).get": "/v3beta1/{name=projects/*/locations/*/agents/*/environments/*}", + "(google.api.http).get": "/v3/{name=projects/*/locations/*/agents/*/environments/*}", "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v3beta1/{name=projects/*/locations/*/agents/*/environments/*}" + "get": "/v3/{name=projects/*/locations/*/agents/*/environments/*}" } }, { @@ -1912,7 +1912,7 @@ "requestType": "CreateEnvironmentRequest", "responseType": "google.longrunning.Operation", "options": { - "(google.api.http).post": "/v3beta1/{parent=projects/*/locations/*/agents/*}/environments", + "(google.api.http).post": "/v3/{parent=projects/*/locations/*/agents/*}/environments", "(google.api.http).body": "environment", "(google.api.method_signature)": "parent,environment", "(google.longrunning.operation_info).response_type": "Environment", @@ -1921,7 +1921,7 @@ "parsedOptions": [ { "(google.api.http)": { - "post": "/v3beta1/{parent=projects/*/locations/*/agents/*}/environments", + "post": "/v3/{parent=projects/*/locations/*/agents/*}/environments", "body": "environment" } }, @@ -1940,7 +1940,7 @@ "requestType": "UpdateEnvironmentRequest", "responseType": "google.longrunning.Operation", "options": { - "(google.api.http).patch": "/v3beta1/{environment.name=projects/*/locations/*/agents/*/environments/*}", + "(google.api.http).patch": "/v3/{environment.name=projects/*/locations/*/agents/*/environments/*}", "(google.api.http).body": "environment", "(google.api.method_signature)": "environment,update_mask", "(google.longrunning.operation_info).response_type": "Environment", @@ -1949,7 +1949,7 @@ "parsedOptions": [ { "(google.api.http)": { - "patch": "/v3beta1/{environment.name=projects/*/locations/*/agents/*/environments/*}", + "patch": "/v3/{environment.name=projects/*/locations/*/agents/*/environments/*}", "body": "environment" } }, @@ -1968,13 +1968,13 @@ "requestType": "DeleteEnvironmentRequest", "responseType": "google.protobuf.Empty", "options": { - "(google.api.http).delete": "/v3beta1/{name=projects/*/locations/*/agents/*/environments/*}", + "(google.api.http).delete": "/v3/{name=projects/*/locations/*/agents/*/environments/*}", "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { - "delete": "/v3beta1/{name=projects/*/locations/*/agents/*/environments/*}" + "delete": "/v3/{name=projects/*/locations/*/agents/*/environments/*}" } }, { @@ -1986,13 +1986,13 @@ "requestType": "LookupEnvironmentHistoryRequest", "responseType": "LookupEnvironmentHistoryResponse", "options": { - "(google.api.http).get": "/v3beta1/{name=projects/*/locations/*/agents/*/environments/*}:lookupEnvironmentHistory", + "(google.api.http).get": "/v3/{name=projects/*/locations/*/agents/*/environments/*}:lookupEnvironmentHistory", "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v3beta1/{name=projects/*/locations/*/agents/*/environments/*}:lookupEnvironmentHistory" + "get": "/v3/{name=projects/*/locations/*/agents/*/environments/*}:lookupEnvironmentHistory" } }, { @@ -2191,13 +2191,13 @@ "requestType": "ListIntentsRequest", "responseType": "ListIntentsResponse", "options": { - "(google.api.http).get": "/v3beta1/{parent=projects/*/locations/*/agents/*}/intents", + "(google.api.http).get": "/v3/{parent=projects/*/locations/*/agents/*}/intents", "(google.api.method_signature)": "parent" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v3beta1/{parent=projects/*/locations/*/agents/*}/intents" + "get": "/v3/{parent=projects/*/locations/*/agents/*}/intents" } }, { @@ -2209,13 +2209,13 @@ "requestType": "GetIntentRequest", "responseType": "Intent", "options": { - "(google.api.http).get": "/v3beta1/{name=projects/*/locations/*/agents/*/intents/*}", + "(google.api.http).get": "/v3/{name=projects/*/locations/*/agents/*/intents/*}", "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v3beta1/{name=projects/*/locations/*/agents/*/intents/*}" + "get": "/v3/{name=projects/*/locations/*/agents/*/intents/*}" } }, { @@ -2227,14 +2227,14 @@ "requestType": "CreateIntentRequest", "responseType": "Intent", "options": { - "(google.api.http).post": "/v3beta1/{parent=projects/*/locations/*/agents/*}/intents", + "(google.api.http).post": "/v3/{parent=projects/*/locations/*/agents/*}/intents", "(google.api.http).body": "intent", "(google.api.method_signature)": "parent,intent" }, "parsedOptions": [ { "(google.api.http)": { - "post": "/v3beta1/{parent=projects/*/locations/*/agents/*}/intents", + "post": "/v3/{parent=projects/*/locations/*/agents/*}/intents", "body": "intent" } }, @@ -2247,14 +2247,14 @@ "requestType": "UpdateIntentRequest", "responseType": "Intent", "options": { - "(google.api.http).patch": "/v3beta1/{intent.name=projects/*/locations/*/agents/*/intents/*}", + "(google.api.http).patch": "/v3/{intent.name=projects/*/locations/*/agents/*/intents/*}", "(google.api.http).body": "intent", "(google.api.method_signature)": "intent,update_mask" }, "parsedOptions": [ { "(google.api.http)": { - "patch": "/v3beta1/{intent.name=projects/*/locations/*/agents/*/intents/*}", + "patch": "/v3/{intent.name=projects/*/locations/*/agents/*/intents/*}", "body": "intent" } }, @@ -2267,13 +2267,13 @@ "requestType": "DeleteIntentRequest", "responseType": "google.protobuf.Empty", "options": { - "(google.api.http).delete": "/v3beta1/{name=projects/*/locations/*/agents/*/intents/*}", + "(google.api.http).delete": "/v3/{name=projects/*/locations/*/agents/*/intents/*}", "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { - "delete": "/v3beta1/{name=projects/*/locations/*/agents/*/intents/*}" + "delete": "/v3/{name=projects/*/locations/*/agents/*/intents/*}" } }, { @@ -2519,6 +2519,272 @@ "INTENT_VIEW_FULL": 2 } }, + "SecuritySettingsService": { + "options": { + "(google.api.default_host)": "dialogflow.googleapis.com", + "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflow" + }, + "methods": { + "CreateSecuritySettings": { + "requestType": "CreateSecuritySettingsRequest", + "responseType": "SecuritySettings", + "options": { + "(google.api.http).post": "/v3/{parent=projects/*/locations/*}/securitySettings", + "(google.api.http).body": "security_settings", + "(google.api.method_signature)": "parent,security_settings" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v3/{parent=projects/*/locations/*}/securitySettings", + "body": "security_settings" + } + }, + { + "(google.api.method_signature)": "parent,security_settings" + } + ] + }, + "GetSecuritySettings": { + "requestType": "GetSecuritySettingsRequest", + "responseType": "SecuritySettings", + "options": { + "(google.api.http).get": "/v3/{name=projects/*/locations/*/securitySettings/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v3/{name=projects/*/locations/*/securitySettings/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "UpdateSecuritySettings": { + "requestType": "UpdateSecuritySettingsRequest", + "responseType": "SecuritySettings", + "options": { + "(google.api.http).patch": "/v3/{security_settings.name=projects/*/locations/*/securitySettings/*}", + "(google.api.http).body": "security_settings", + "(google.api.method_signature)": "security_settings,update_mask" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "patch": "/v3/{security_settings.name=projects/*/locations/*/securitySettings/*}", + "body": "security_settings" + } + }, + { + "(google.api.method_signature)": "security_settings,update_mask" + } + ] + }, + "ListSecuritySettings": { + "requestType": "ListSecuritySettingsRequest", + "responseType": "ListSecuritySettingsResponse", + "options": { + "(google.api.http).get": "/v3/{parent=projects/*/locations/*}/securitySettings", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v3/{parent=projects/*/locations/*}/securitySettings" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] + }, + "DeleteSecuritySettings": { + "requestType": "DeleteSecuritySettingsRequest", + "responseType": "google.protobuf.Empty", + "options": { + "(google.api.http).delete": "/v3/{name=projects/*/locations/*/securitySettings/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/v3/{name=projects/*/locations/*/securitySettings/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + } + } + }, + "GetSecuritySettingsRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "dialogflow.googleapis.com/SecuritySettings" + } + } + } + }, + "UpdateSecuritySettingsRequest": { + "fields": { + "securitySettings": { + "type": "SecuritySettings", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "updateMask": { + "type": "google.protobuf.FieldMask", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "ListSecuritySettingsRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/SecuritySettings" + } + }, + "pageSize": { + "type": "int32", + "id": 2 + }, + "pageToken": { + "type": "string", + "id": 3 + } + } + }, + "ListSecuritySettingsResponse": { + "fields": { + "securitySettings": { + "rule": "repeated", + "type": "SecuritySettings", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "CreateSecuritySettingsRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "dialogflow.googleapis.com/SecuritySettings" + } + }, + "securitySettings": { + "type": "SecuritySettings", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "DeleteSecuritySettingsRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "dialogflow.googleapis.com/SecuritySettings" + } + } + } + }, + "SecuritySettings": { + "options": { + "(google.api.resource).type": "dialogflow.googleapis.com/SecuritySettings", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/securitySettings/{security_settings}" + }, + "oneofs": { + "dataRetention": { + "oneof": [ + "retentionWindowDays" + ] + } + }, + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "displayName": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "redactionStrategy": { + "type": "RedactionStrategy", + "id": 3 + }, + "redactionScope": { + "type": "RedactionScope", + "id": 4 + }, + "inspectTemplate": { + "type": "string", + "id": 9 + }, + "retentionWindowDays": { + "type": "int32", + "id": 6 + }, + "purgeDataTypes": { + "rule": "repeated", + "type": "PurgeDataType", + "id": 8 + } + }, + "nested": { + "RedactionStrategy": { + "values": { + "REDACTION_STRATEGY_UNSPECIFIED": 0, + "REDACT_WITH_SERVICE": 1 + } + }, + "RedactionScope": { + "values": { + "REDACTION_SCOPE_UNSPECIFIED": 0, + "REDACT_DISK_STORAGE": 2 + } + }, + "PurgeDataType": { + "values": { + "PURGE_DATA_TYPE_UNSPECIFIED": 0, + "DIALOGFLOW_HISTORY": 1 + } + } + } + }, "Sessions": { "options": { "(google.api.default_host)": "dialogflow.googleapis.com", @@ -2529,18 +2795,18 @@ "requestType": "DetectIntentRequest", "responseType": "DetectIntentResponse", "options": { - "(google.api.http).post": "/v3beta1/{session=projects/*/locations/*/agents/*/sessions/*}:detectIntent", + "(google.api.http).post": "/v3/{session=projects/*/locations/*/agents/*/sessions/*}:detectIntent", "(google.api.http).body": "*", - "(google.api.http).additional_bindings.post": "/v3beta1/{session=projects/*/locations/*/agents/*/environments/*/sessions/*}:detectIntent", + "(google.api.http).additional_bindings.post": "/v3/{session=projects/*/locations/*/agents/*/environments/*/sessions/*}:detectIntent", "(google.api.http).additional_bindings.body": "*" }, "parsedOptions": [ { "(google.api.http)": { - "post": "/v3beta1/{session=projects/*/locations/*/agents/*/sessions/*}:detectIntent", + "post": "/v3/{session=projects/*/locations/*/agents/*/sessions/*}:detectIntent", "body": "*", "additional_bindings": { - "post": "/v3beta1/{session=projects/*/locations/*/agents/*/environments/*/sessions/*}:detectIntent", + "post": "/v3/{session=projects/*/locations/*/agents/*/environments/*/sessions/*}:detectIntent", "body": "*" } } @@ -2557,18 +2823,18 @@ "requestType": "MatchIntentRequest", "responseType": "MatchIntentResponse", "options": { - "(google.api.http).post": "/v3beta1/{session=projects/*/locations/*/agents/*/sessions/*}:matchIntent", + "(google.api.http).post": "/v3/{session=projects/*/locations/*/agents/*/sessions/*}:matchIntent", "(google.api.http).body": "*", - "(google.api.http).additional_bindings.post": "/v3beta1/{session=projects/*/locations/*/agents/*/environments/*/sessions/*}:matchIntent", + "(google.api.http).additional_bindings.post": "/v3/{session=projects/*/locations/*/agents/*/environments/*/sessions/*}:matchIntent", "(google.api.http).additional_bindings.body": "*" }, "parsedOptions": [ { "(google.api.http)": { - "post": "/v3beta1/{session=projects/*/locations/*/agents/*/sessions/*}:matchIntent", + "post": "/v3/{session=projects/*/locations/*/agents/*/sessions/*}:matchIntent", "body": "*", "additional_bindings": { - "post": "/v3beta1/{session=projects/*/locations/*/agents/*/environments/*/sessions/*}:matchIntent", + "post": "/v3/{session=projects/*/locations/*/agents/*/environments/*/sessions/*}:matchIntent", "body": "*" } } @@ -2579,18 +2845,18 @@ "requestType": "FulfillIntentRequest", "responseType": "FulfillIntentResponse", "options": { - "(google.api.http).post": "/v3beta1/{match_intent_request.session=projects/*/locations/*/agents/*/sessions/*}:fulfillIntent", + "(google.api.http).post": "/v3/{match_intent_request.session=projects/*/locations/*/agents/*/sessions/*}:fulfillIntent", "(google.api.http).body": "*", - "(google.api.http).additional_bindings.post": "/v3beta1/{match_intent_request.session=projects/*/locations/*/agents/*/environments/*/sessions/*}:fulfillIntent", + "(google.api.http).additional_bindings.post": "/v3/{match_intent_request.session=projects/*/locations/*/agents/*/environments/*/sessions/*}:fulfillIntent", "(google.api.http).additional_bindings.body": "*" }, "parsedOptions": [ { "(google.api.http)": { - "post": "/v3beta1/{match_intent_request.session=projects/*/locations/*/agents/*/sessions/*}:fulfillIntent", + "post": "/v3/{match_intent_request.session=projects/*/locations/*/agents/*/sessions/*}:fulfillIntent", "body": "*", "additional_bindings": { - "post": "/v3beta1/{match_intent_request.session=projects/*/locations/*/agents/*/environments/*/sessions/*}:fulfillIntent", + "post": "/v3/{match_intent_request.session=projects/*/locations/*/agents/*/environments/*/sessions/*}:fulfillIntent", "body": "*" } } @@ -3107,16 +3373,16 @@ "requestType": "ListSessionEntityTypesRequest", "responseType": "ListSessionEntityTypesResponse", "options": { - "(google.api.http).get": "/v3beta1/{parent=projects/*/locations/*/agents/*/sessions/*}/entityTypes", - "(google.api.http).additional_bindings.get": "/v3beta1/{parent=projects/*/locations/*/agents/*/environments/*/sessions/*}/entityTypes", + "(google.api.http).get": "/v3/{parent=projects/*/locations/*/agents/*/sessions/*}/entityTypes", + "(google.api.http).additional_bindings.get": "/v3/{parent=projects/*/locations/*/agents/*/environments/*/sessions/*}/entityTypes", "(google.api.method_signature)": "parent" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v3beta1/{parent=projects/*/locations/*/agents/*/sessions/*}/entityTypes", + "get": "/v3/{parent=projects/*/locations/*/agents/*/sessions/*}/entityTypes", "additional_bindings": { - "get": "/v3beta1/{parent=projects/*/locations/*/agents/*/environments/*/sessions/*}/entityTypes" + "get": "/v3/{parent=projects/*/locations/*/agents/*/environments/*/sessions/*}/entityTypes" } } }, @@ -3129,16 +3395,16 @@ "requestType": "GetSessionEntityTypeRequest", "responseType": "SessionEntityType", "options": { - "(google.api.http).get": "/v3beta1/{name=projects/*/locations/*/agents/*/sessions/*/entityTypes/*}", - "(google.api.http).additional_bindings.get": "/v3beta1/{name=projects/*/locations/*/agents/*/environments/*/sessions/*/entityTypes/*}", + "(google.api.http).get": "/v3/{name=projects/*/locations/*/agents/*/sessions/*/entityTypes/*}", + "(google.api.http).additional_bindings.get": "/v3/{name=projects/*/locations/*/agents/*/environments/*/sessions/*/entityTypes/*}", "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v3beta1/{name=projects/*/locations/*/agents/*/sessions/*/entityTypes/*}", + "get": "/v3/{name=projects/*/locations/*/agents/*/sessions/*/entityTypes/*}", "additional_bindings": { - "get": "/v3beta1/{name=projects/*/locations/*/agents/*/environments/*/sessions/*/entityTypes/*}" + "get": "/v3/{name=projects/*/locations/*/agents/*/environments/*/sessions/*/entityTypes/*}" } } }, @@ -3151,19 +3417,19 @@ "requestType": "CreateSessionEntityTypeRequest", "responseType": "SessionEntityType", "options": { - "(google.api.http).post": "/v3beta1/{parent=projects/*/locations/*/agents/*/sessions/*}/entityTypes", + "(google.api.http).post": "/v3/{parent=projects/*/locations/*/agents/*/sessions/*}/entityTypes", "(google.api.http).body": "session_entity_type", - "(google.api.http).additional_bindings.post": "/v3beta1/{parent=projects/*/locations/*/agents/*/environments/*/sessions/*}/entityTypes", + "(google.api.http).additional_bindings.post": "/v3/{parent=projects/*/locations/*/agents/*/environments/*/sessions/*}/entityTypes", "(google.api.http).additional_bindings.body": "session_entity_type", "(google.api.method_signature)": "parent,session_entity_type" }, "parsedOptions": [ { "(google.api.http)": { - "post": "/v3beta1/{parent=projects/*/locations/*/agents/*/sessions/*}/entityTypes", + "post": "/v3/{parent=projects/*/locations/*/agents/*/sessions/*}/entityTypes", "body": "session_entity_type", "additional_bindings": { - "post": "/v3beta1/{parent=projects/*/locations/*/agents/*/environments/*/sessions/*}/entityTypes", + "post": "/v3/{parent=projects/*/locations/*/agents/*/environments/*/sessions/*}/entityTypes", "body": "session_entity_type" } } @@ -3177,19 +3443,19 @@ "requestType": "UpdateSessionEntityTypeRequest", "responseType": "SessionEntityType", "options": { - "(google.api.http).patch": "/v3beta1/{session_entity_type.name=projects/*/locations/*/agents/*/sessions/*/entityTypes/*}", + "(google.api.http).patch": "/v3/{session_entity_type.name=projects/*/locations/*/agents/*/sessions/*/entityTypes/*}", "(google.api.http).body": "session_entity_type", - "(google.api.http).additional_bindings.patch": "/v3beta1/{session_entity_type.name=projects/*/locations/*/agents/*/environments/*/sessions/*/entityTypes/*}", + "(google.api.http).additional_bindings.patch": "/v3/{session_entity_type.name=projects/*/locations/*/agents/*/environments/*/sessions/*/entityTypes/*}", "(google.api.http).additional_bindings.body": "session_entity_type", "(google.api.method_signature)": "session_entity_type,update_mask" }, "parsedOptions": [ { "(google.api.http)": { - "patch": "/v3beta1/{session_entity_type.name=projects/*/locations/*/agents/*/sessions/*/entityTypes/*}", + "patch": "/v3/{session_entity_type.name=projects/*/locations/*/agents/*/sessions/*/entityTypes/*}", "body": "session_entity_type", "additional_bindings": { - "patch": "/v3beta1/{session_entity_type.name=projects/*/locations/*/agents/*/environments/*/sessions/*/entityTypes/*}", + "patch": "/v3/{session_entity_type.name=projects/*/locations/*/agents/*/environments/*/sessions/*/entityTypes/*}", "body": "session_entity_type" } } @@ -3203,16 +3469,16 @@ "requestType": "DeleteSessionEntityTypeRequest", "responseType": "google.protobuf.Empty", "options": { - "(google.api.http).delete": "/v3beta1/{name=projects/*/locations/*/agents/*/sessions/*/entityTypes/*}", - "(google.api.http).additional_bindings.delete": "/v3beta1/{name=projects/*/locations/*/agents/*/environments/*/sessions/*/entityTypes/*}", + "(google.api.http).delete": "/v3/{name=projects/*/locations/*/agents/*/sessions/*/entityTypes/*}", + "(google.api.http).additional_bindings.delete": "/v3/{name=projects/*/locations/*/agents/*/environments/*/sessions/*/entityTypes/*}", "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { - "delete": "/v3beta1/{name=projects/*/locations/*/agents/*/sessions/*/entityTypes/*}", + "delete": "/v3/{name=projects/*/locations/*/agents/*/sessions/*/entityTypes/*}", "additional_bindings": { - "delete": "/v3beta1/{name=projects/*/locations/*/agents/*/environments/*/sessions/*/entityTypes/*}" + "delete": "/v3/{name=projects/*/locations/*/agents/*/environments/*/sessions/*/entityTypes/*}" } } }, @@ -3363,13 +3629,13 @@ "requestType": "ListTransitionRouteGroupsRequest", "responseType": "ListTransitionRouteGroupsResponse", "options": { - "(google.api.http).get": "/v3beta1/{parent=projects/*/locations/*/agents/*/flows/*}/transitionRouteGroups", + "(google.api.http).get": "/v3/{parent=projects/*/locations/*/agents/*/flows/*}/transitionRouteGroups", "(google.api.method_signature)": "parent" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v3beta1/{parent=projects/*/locations/*/agents/*/flows/*}/transitionRouteGroups" + "get": "/v3/{parent=projects/*/locations/*/agents/*/flows/*}/transitionRouteGroups" } }, { @@ -3381,13 +3647,13 @@ "requestType": "GetTransitionRouteGroupRequest", "responseType": "TransitionRouteGroup", "options": { - "(google.api.http).get": "/v3beta1/{name=projects/*/locations/*/agents/*/flows/*/transitionRouteGroups/*}", + "(google.api.http).get": "/v3/{name=projects/*/locations/*/agents/*/flows/*/transitionRouteGroups/*}", "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v3beta1/{name=projects/*/locations/*/agents/*/flows/*/transitionRouteGroups/*}" + "get": "/v3/{name=projects/*/locations/*/agents/*/flows/*/transitionRouteGroups/*}" } }, { @@ -3399,14 +3665,14 @@ "requestType": "CreateTransitionRouteGroupRequest", "responseType": "TransitionRouteGroup", "options": { - "(google.api.http).post": "/v3beta1/{parent=projects/*/locations/*/agents/*/flows/*}/transitionRouteGroups", + "(google.api.http).post": "/v3/{parent=projects/*/locations/*/agents/*/flows/*}/transitionRouteGroups", "(google.api.http).body": "transition_route_group", "(google.api.method_signature)": "parent,transition_route_group" }, "parsedOptions": [ { "(google.api.http)": { - "post": "/v3beta1/{parent=projects/*/locations/*/agents/*/flows/*}/transitionRouteGroups", + "post": "/v3/{parent=projects/*/locations/*/agents/*/flows/*}/transitionRouteGroups", "body": "transition_route_group" } }, @@ -3419,14 +3685,14 @@ "requestType": "UpdateTransitionRouteGroupRequest", "responseType": "TransitionRouteGroup", "options": { - "(google.api.http).patch": "/v3beta1/{transition_route_group.name=projects/*/locations/*/agents/*/flows/*/transitionRouteGroups/*}", + "(google.api.http).patch": "/v3/{transition_route_group.name=projects/*/locations/*/agents/*/flows/*/transitionRouteGroups/*}", "(google.api.http).body": "transition_route_group", "(google.api.method_signature)": "transition_route_group,update_mask" }, "parsedOptions": [ { "(google.api.http)": { - "patch": "/v3beta1/{transition_route_group.name=projects/*/locations/*/agents/*/flows/*/transitionRouteGroups/*}", + "patch": "/v3/{transition_route_group.name=projects/*/locations/*/agents/*/flows/*/transitionRouteGroups/*}", "body": "transition_route_group" } }, @@ -3439,13 +3705,13 @@ "requestType": "DeleteTransitionRouteGroupRequest", "responseType": "google.protobuf.Empty", "options": { - "(google.api.http).delete": "/v3beta1/{name=projects/*/locations/*/agents/*/flows/*/transitionRouteGroups/*}", + "(google.api.http).delete": "/v3/{name=projects/*/locations/*/agents/*/flows/*/transitionRouteGroups/*}", "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { - "delete": "/v3beta1/{name=projects/*/locations/*/agents/*/flows/*/transitionRouteGroups/*}" + "delete": "/v3/{name=projects/*/locations/*/agents/*/flows/*/transitionRouteGroups/*}" } }, { @@ -3600,13 +3866,13 @@ "requestType": "ListVersionsRequest", "responseType": "ListVersionsResponse", "options": { - "(google.api.http).get": "/v3beta1/{parent=projects/*/locations/*/agents/*/flows/*}/versions", + "(google.api.http).get": "/v3/{parent=projects/*/locations/*/agents/*/flows/*}/versions", "(google.api.method_signature)": "parent" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v3beta1/{parent=projects/*/locations/*/agents/*/flows/*}/versions" + "get": "/v3/{parent=projects/*/locations/*/agents/*/flows/*}/versions" } }, { @@ -3618,13 +3884,13 @@ "requestType": "GetVersionRequest", "responseType": "Version", "options": { - "(google.api.http).get": "/v3beta1/{name=projects/*/locations/*/agents/*/flows/*/versions/*}", + "(google.api.http).get": "/v3/{name=projects/*/locations/*/agents/*/flows/*/versions/*}", "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v3beta1/{name=projects/*/locations/*/agents/*/flows/*/versions/*}" + "get": "/v3/{name=projects/*/locations/*/agents/*/flows/*/versions/*}" } }, { @@ -3636,7 +3902,7 @@ "requestType": "CreateVersionRequest", "responseType": "google.longrunning.Operation", "options": { - "(google.api.http).post": "/v3beta1/{parent=projects/*/locations/*/agents/*/flows/*}/versions", + "(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", @@ -3645,7 +3911,7 @@ "parsedOptions": [ { "(google.api.http)": { - "post": "/v3beta1/{parent=projects/*/locations/*/agents/*/flows/*}/versions", + "post": "/v3/{parent=projects/*/locations/*/agents/*/flows/*}/versions", "body": "version" } }, @@ -3664,14 +3930,14 @@ "requestType": "UpdateVersionRequest", "responseType": "Version", "options": { - "(google.api.http).patch": "/v3beta1/{version.name=projects/*/locations/*/agents/*/flows/*/versions/*}", + "(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": "/v3beta1/{version.name=projects/*/locations/*/agents/*/flows/*/versions/*}", + "patch": "/v3/{version.name=projects/*/locations/*/agents/*/flows/*/versions/*}", "body": "version" } }, @@ -3684,13 +3950,13 @@ "requestType": "DeleteVersionRequest", "responseType": "google.protobuf.Empty", "options": { - "(google.api.http).delete": "/v3beta1/{name=projects/*/locations/*/agents/*/flows/*/versions/*}", + "(google.api.http).delete": "/v3/{name=projects/*/locations/*/agents/*/flows/*/versions/*}", "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { - "delete": "/v3beta1/{name=projects/*/locations/*/agents/*/flows/*/versions/*}" + "delete": "/v3/{name=projects/*/locations/*/agents/*/flows/*/versions/*}" } }, { @@ -3702,7 +3968,7 @@ "requestType": "LoadVersionRequest", "responseType": "google.longrunning.Operation", "options": { - "(google.api.http).post": "/v3beta1/{name=projects/*/locations/*/agents/*/flows/*/versions/*}:load", + "(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", @@ -3711,7 +3977,7 @@ "parsedOptions": [ { "(google.api.http)": { - "post": "/v3beta1/{name=projects/*/locations/*/agents/*/flows/*/versions/*}:load", + "post": "/v3/{name=projects/*/locations/*/agents/*/flows/*/versions/*}:load", "body": "*" } }, @@ -3913,13 +4179,13 @@ "requestType": "ListWebhooksRequest", "responseType": "ListWebhooksResponse", "options": { - "(google.api.http).get": "/v3beta1/{parent=projects/*/locations/*/agents/*}/webhooks", + "(google.api.http).get": "/v3/{parent=projects/*/locations/*/agents/*}/webhooks", "(google.api.method_signature)": "parent" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v3beta1/{parent=projects/*/locations/*/agents/*}/webhooks" + "get": "/v3/{parent=projects/*/locations/*/agents/*}/webhooks" } }, { @@ -3931,13 +4197,13 @@ "requestType": "GetWebhookRequest", "responseType": "Webhook", "options": { - "(google.api.http).get": "/v3beta1/{name=projects/*/locations/*/agents/*/webhooks/*}", + "(google.api.http).get": "/v3/{name=projects/*/locations/*/agents/*/webhooks/*}", "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v3beta1/{name=projects/*/locations/*/agents/*/webhooks/*}" + "get": "/v3/{name=projects/*/locations/*/agents/*/webhooks/*}" } }, { @@ -3949,14 +4215,14 @@ "requestType": "CreateWebhookRequest", "responseType": "Webhook", "options": { - "(google.api.http).post": "/v3beta1/{parent=projects/*/locations/*/agents/*}/webhooks", + "(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": "/v3beta1/{parent=projects/*/locations/*/agents/*}/webhooks", + "post": "/v3/{parent=projects/*/locations/*/agents/*}/webhooks", "body": "webhook" } }, @@ -3969,14 +4235,14 @@ "requestType": "UpdateWebhookRequest", "responseType": "Webhook", "options": { - "(google.api.http).patch": "/v3beta1/{webhook.name=projects/*/locations/*/agents/*/webhooks/*}", + "(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": "/v3beta1/{webhook.name=projects/*/locations/*/agents/*/webhooks/*}", + "patch": "/v3/{webhook.name=projects/*/locations/*/agents/*/webhooks/*}", "body": "webhook" } }, @@ -3989,13 +4255,13 @@ "requestType": "DeleteWebhookRequest", "responseType": "google.protobuf.Empty", "options": { - "(google.api.http).delete": "/v3beta1/{name=projects/*/locations/*/agents/*/webhooks/*}", + "(google.api.http).delete": "/v3/{name=projects/*/locations/*/agents/*/webhooks/*}", "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { - "delete": "/v3beta1/{name=projects/*/locations/*/agents/*/webhooks/*}" + "delete": "/v3/{name=projects/*/locations/*/agents/*/webhooks/*}" } }, { diff --git a/src/index.ts b/src/index.ts index af9f820f..889a07f3 100644 --- a/src/index.ts +++ b/src/index.ts @@ -12,41 +12,46 @@ // See the License for the specific language governing permissions and // limitations under the License. // -// ** This file is automatically generated by gapic-generator-typescript. ** -// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** This file is automatically generated by synthtool. ** +// ** https://github.com/googleapis/synthtool ** // ** All changes to this file may be overwritten. ** -import * as v3beta1 from './v3beta1'; -const AgentsClient = v3beta1.AgentsClient; -type AgentsClient = v3beta1.AgentsClient; -const EntityTypesClient = v3beta1.EntityTypesClient; -type EntityTypesClient = v3beta1.EntityTypesClient; -const EnvironmentsClient = v3beta1.EnvironmentsClient; -type EnvironmentsClient = v3beta1.EnvironmentsClient; -const FlowsClient = v3beta1.FlowsClient; -type FlowsClient = v3beta1.FlowsClient; -const IntentsClient = v3beta1.IntentsClient; -type IntentsClient = v3beta1.IntentsClient; -const PagesClient = v3beta1.PagesClient; -type PagesClient = v3beta1.PagesClient; -const SessionEntityTypesClient = v3beta1.SessionEntityTypesClient; -type SessionEntityTypesClient = v3beta1.SessionEntityTypesClient; -const SessionsClient = v3beta1.SessionsClient; -type SessionsClient = v3beta1.SessionsClient; -const TransitionRouteGroupsClient = v3beta1.TransitionRouteGroupsClient; -type TransitionRouteGroupsClient = v3beta1.TransitionRouteGroupsClient; -const VersionsClient = v3beta1.VersionsClient; -type VersionsClient = v3beta1.VersionsClient; -const WebhooksClient = v3beta1.WebhooksClient; -type WebhooksClient = v3beta1.WebhooksClient; +import * as v3 from './v3'; + +const AgentsClient = v3.AgentsClient; +type AgentsClient = v3.AgentsClient; +const EntityTypesClient = v3.EntityTypesClient; +type EntityTypesClient = v3.EntityTypesClient; +const EnvironmentsClient = v3.EnvironmentsClient; +type EnvironmentsClient = v3.EnvironmentsClient; +const FlowsClient = v3.FlowsClient; +type FlowsClient = v3.FlowsClient; +const IntentsClient = v3.IntentsClient; +type IntentsClient = v3.IntentsClient; +const PagesClient = v3.PagesClient; +type PagesClient = v3.PagesClient; +const SecuritySettingsServiceClient = v3.SecuritySettingsServiceClient; +type SecuritySettingsServiceClient = v3.SecuritySettingsServiceClient; +const SessionEntityTypesClient = v3.SessionEntityTypesClient; +type SessionEntityTypesClient = v3.SessionEntityTypesClient; +const SessionsClient = v3.SessionsClient; +type SessionsClient = v3.SessionsClient; +const TransitionRouteGroupsClient = v3.TransitionRouteGroupsClient; +type TransitionRouteGroupsClient = v3.TransitionRouteGroupsClient; +const VersionsClient = v3.VersionsClient; +type VersionsClient = v3.VersionsClient; +const WebhooksClient = v3.WebhooksClient; +type WebhooksClient = v3.WebhooksClient; + export { - v3beta1, + v3, AgentsClient, EntityTypesClient, EnvironmentsClient, FlowsClient, IntentsClient, PagesClient, + SecuritySettingsServiceClient, SessionEntityTypesClient, SessionsClient, TransitionRouteGroupsClient, @@ -54,13 +59,14 @@ export { WebhooksClient, }; export default { - v3beta1, + v3, AgentsClient, EntityTypesClient, EnvironmentsClient, FlowsClient, IntentsClient, PagesClient, + SecuritySettingsServiceClient, SessionEntityTypesClient, SessionsClient, TransitionRouteGroupsClient, diff --git a/src/v3beta1/agents_client.ts b/src/v3/agents_client.ts similarity index 86% rename from src/v3beta1/agents_client.ts rename to src/v3/agents_client.ts index ccdc4a57..b8cfb860 100644 --- a/src/v3beta1/agents_client.ts +++ b/src/v3/agents_client.ts @@ -16,6 +16,7 @@ // ** https://github.com/googleapis/gapic-generator-typescript ** // ** All changes to this file may be overwritten. ** +/* global window */ import * as gax from 'google-gax'; import { Callback, @@ -31,14 +32,19 @@ import * as path from 'path'; import {Transform} from 'stream'; import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; +/** + * Client JSON configuration object, loaded from + * `src/v3/agents_client_config.json`. + * This file defines retry strategy and timeouts for all API methods in this library. + */ import * as gapicConfig from './agents_client_config.json'; import {operationsProtos} from 'google-gax'; const version = require('../../../package.json').version; /** - * Service for managing {@link google.cloud.dialogflow.cx.v3beta1.Agent|Agents}. + * Service for managing {@link google.cloud.dialogflow.cx.v3.Agent|Agents}. * @class - * @memberof v3beta1 + * @memberof v3 */ export class AgentsClient { private _terminated = false; @@ -85,9 +91,9 @@ export class AgentsClient { * your project ID will be detected automatically. * @param {string} [options.apiEndpoint] - The domain name of the * API remote host. - * @param {gax.ClientConfig} [options.clientConfig] - client configuration override. - * TODO(@alexander-fenster): link to gax documentation. - * @param {boolean} fallback - Use HTTP fallback mode. + * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. + * Follows the structure of {@link gapicConfig}. + * @param {boolean} [options.fallback] - Use HTTP fallback mode. * In fallback mode, a special browser-compatible transport implementation is used * instead of gRPC transport. In browser context (if the `window` object is defined) * the fallback mode is enabled automatically; set `options.fallback` to `false` @@ -100,7 +106,9 @@ export class AgentsClient { opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; - const fallback = opts?.fallback ?? typeof window !== 'undefined'; + const fallback = + opts?.fallback ?? + (typeof window !== 'undefined' && typeof window?.fetch === 'function'); opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. @@ -190,6 +198,9 @@ export class AgentsClient { projectLocationAgentSessionEntityTypePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/agents/{agent}/sessions/{session}/entityTypes/{entity_type}' ), + securitySettingsPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/securitySettings/{security_settings}' + ), transitionRouteGroupPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/agents/{agent}/flows/{flow}/transitionRouteGroups/{transition_route_group}' ), @@ -229,7 +240,7 @@ export class AgentsClient { }) .operationsClient(opts); const exportAgentResponse = protoFilesRoot.lookup( - '.google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse' + '.google.cloud.dialogflow.cx.v3.ExportAgentResponse' ) as gax.protobuf.Type; const exportAgentMetadata = protoFilesRoot.lookup( '.google.protobuf.Struct' @@ -256,7 +267,7 @@ export class AgentsClient { // Put together the default options sent with requests. this._defaults = this._gaxGrpc.constructSettings( - 'google.cloud.dialogflow.cx.v3beta1.Agents', + 'google.cloud.dialogflow.cx.v3.Agents', gapicConfig as gax.ClientConfig, opts.clientConfig || {}, {'x-goog-api-client': clientHeader.join(' ')} @@ -286,14 +297,14 @@ export class AgentsClient { } // Put together the "service stub" for - // google.cloud.dialogflow.cx.v3beta1.Agents. + // google.cloud.dialogflow.cx.v3.Agents. this.agentsStub = this._gaxGrpc.createStub( this._opts.fallback ? (this._protos as protobuf.Root).lookupService( - 'google.cloud.dialogflow.cx.v3beta1.Agents' + 'google.cloud.dialogflow.cx.v3.Agents' ) : // eslint-disable-next-line @typescript-eslint/no-explicit-any - (this._protos as any).google.cloud.dialogflow.cx.v3beta1.Agents, + (this._protos as any).google.cloud.dialogflow.cx.v3.Agents, this._opts ) as Promise<{[method: string]: Function}>; @@ -395,33 +406,29 @@ export class AgentsClient { // -- Service calls -- // ------------------- getAgent( - request: protos.google.cloud.dialogflow.cx.v3beta1.IGetAgentRequest, - options?: gax.CallOptions + request: protos.google.cloud.dialogflow.cx.v3.IGetAgentRequest, + options?: CallOptions ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.IAgent, - protos.google.cloud.dialogflow.cx.v3beta1.IGetAgentRequest | undefined, + protos.google.cloud.dialogflow.cx.v3.IAgent, + protos.google.cloud.dialogflow.cx.v3.IGetAgentRequest | undefined, {} | undefined ] >; getAgent( - request: protos.google.cloud.dialogflow.cx.v3beta1.IGetAgentRequest, - options: gax.CallOptions, + request: protos.google.cloud.dialogflow.cx.v3.IGetAgentRequest, + options: CallOptions, callback: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IAgent, - | protos.google.cloud.dialogflow.cx.v3beta1.IGetAgentRequest - | null - | undefined, + protos.google.cloud.dialogflow.cx.v3.IAgent, + protos.google.cloud.dialogflow.cx.v3.IGetAgentRequest | null | undefined, {} | null | undefined > ): void; getAgent( - request: protos.google.cloud.dialogflow.cx.v3beta1.IGetAgentRequest, + request: protos.google.cloud.dialogflow.cx.v3.IGetAgentRequest, callback: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IAgent, - | protos.google.cloud.dialogflow.cx.v3beta1.IGetAgentRequest - | null - | undefined, + protos.google.cloud.dialogflow.cx.v3.IAgent, + protos.google.cloud.dialogflow.cx.v3.IGetAgentRequest | null | undefined, {} | null | undefined > ): void; @@ -436,7 +443,7 @@ export class AgentsClient { * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Agent]{@link google.cloud.dialogflow.cx.v3beta1.Agent}. + * The first element of the array is an object representing [Agent]{@link google.cloud.dialogflow.cx.v3.Agent}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. @@ -444,37 +451,35 @@ export class AgentsClient { * const [response] = await client.getAgent(request); */ getAgent( - request: protos.google.cloud.dialogflow.cx.v3beta1.IGetAgentRequest, + request: protos.google.cloud.dialogflow.cx.v3.IGetAgentRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IAgent, - | protos.google.cloud.dialogflow.cx.v3beta1.IGetAgentRequest + protos.google.cloud.dialogflow.cx.v3.IAgent, + | protos.google.cloud.dialogflow.cx.v3.IGetAgentRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IAgent, - | protos.google.cloud.dialogflow.cx.v3beta1.IGetAgentRequest - | null - | undefined, + protos.google.cloud.dialogflow.cx.v3.IAgent, + protos.google.cloud.dialogflow.cx.v3.IGetAgentRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.IAgent, - protos.google.cloud.dialogflow.cx.v3beta1.IGetAgentRequest | undefined, + protos.google.cloud.dialogflow.cx.v3.IAgent, + protos.google.cloud.dialogflow.cx.v3.IGetAgentRequest | undefined, {} | undefined ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -488,31 +493,31 @@ export class AgentsClient { return this.innerApiCalls.getAgent(request, options, callback); } createAgent( - request: protos.google.cloud.dialogflow.cx.v3beta1.ICreateAgentRequest, - options?: gax.CallOptions + request: protos.google.cloud.dialogflow.cx.v3.ICreateAgentRequest, + options?: CallOptions ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.IAgent, - protos.google.cloud.dialogflow.cx.v3beta1.ICreateAgentRequest | undefined, + protos.google.cloud.dialogflow.cx.v3.IAgent, + protos.google.cloud.dialogflow.cx.v3.ICreateAgentRequest | undefined, {} | undefined ] >; createAgent( - request: protos.google.cloud.dialogflow.cx.v3beta1.ICreateAgentRequest, - options: gax.CallOptions, + request: protos.google.cloud.dialogflow.cx.v3.ICreateAgentRequest, + options: CallOptions, callback: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IAgent, - | protos.google.cloud.dialogflow.cx.v3beta1.ICreateAgentRequest + protos.google.cloud.dialogflow.cx.v3.IAgent, + | protos.google.cloud.dialogflow.cx.v3.ICreateAgentRequest | null | undefined, {} | null | undefined > ): void; createAgent( - request: protos.google.cloud.dialogflow.cx.v3beta1.ICreateAgentRequest, + request: protos.google.cloud.dialogflow.cx.v3.ICreateAgentRequest, callback: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IAgent, - | protos.google.cloud.dialogflow.cx.v3beta1.ICreateAgentRequest + protos.google.cloud.dialogflow.cx.v3.IAgent, + | protos.google.cloud.dialogflow.cx.v3.ICreateAgentRequest | null | undefined, {} | null | undefined @@ -526,12 +531,12 @@ export class AgentsClient { * @param {string} request.parent * Required. The location to create a agent for. * Format: `projects//locations/`. - * @param {google.cloud.dialogflow.cx.v3beta1.Agent} request.agent + * @param {google.cloud.dialogflow.cx.v3.Agent} request.agent * Required. The agent to create. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Agent]{@link google.cloud.dialogflow.cx.v3beta1.Agent}. + * The first element of the array is an object representing [Agent]{@link google.cloud.dialogflow.cx.v3.Agent}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. @@ -539,37 +544,37 @@ export class AgentsClient { * const [response] = await client.createAgent(request); */ createAgent( - request: protos.google.cloud.dialogflow.cx.v3beta1.ICreateAgentRequest, + request: protos.google.cloud.dialogflow.cx.v3.ICreateAgentRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IAgent, - | protos.google.cloud.dialogflow.cx.v3beta1.ICreateAgentRequest + protos.google.cloud.dialogflow.cx.v3.IAgent, + | protos.google.cloud.dialogflow.cx.v3.ICreateAgentRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IAgent, - | protos.google.cloud.dialogflow.cx.v3beta1.ICreateAgentRequest + protos.google.cloud.dialogflow.cx.v3.IAgent, + | protos.google.cloud.dialogflow.cx.v3.ICreateAgentRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.IAgent, - protos.google.cloud.dialogflow.cx.v3beta1.ICreateAgentRequest | undefined, + protos.google.cloud.dialogflow.cx.v3.IAgent, + protos.google.cloud.dialogflow.cx.v3.ICreateAgentRequest | undefined, {} | undefined ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -583,31 +588,31 @@ export class AgentsClient { return this.innerApiCalls.createAgent(request, options, callback); } updateAgent( - request: protos.google.cloud.dialogflow.cx.v3beta1.IUpdateAgentRequest, - options?: gax.CallOptions + request: protos.google.cloud.dialogflow.cx.v3.IUpdateAgentRequest, + options?: CallOptions ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.IAgent, - protos.google.cloud.dialogflow.cx.v3beta1.IUpdateAgentRequest | undefined, + protos.google.cloud.dialogflow.cx.v3.IAgent, + protos.google.cloud.dialogflow.cx.v3.IUpdateAgentRequest | undefined, {} | undefined ] >; updateAgent( - request: protos.google.cloud.dialogflow.cx.v3beta1.IUpdateAgentRequest, - options: gax.CallOptions, + request: protos.google.cloud.dialogflow.cx.v3.IUpdateAgentRequest, + options: CallOptions, callback: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IAgent, - | protos.google.cloud.dialogflow.cx.v3beta1.IUpdateAgentRequest + protos.google.cloud.dialogflow.cx.v3.IAgent, + | protos.google.cloud.dialogflow.cx.v3.IUpdateAgentRequest | null | undefined, {} | null | undefined > ): void; updateAgent( - request: protos.google.cloud.dialogflow.cx.v3beta1.IUpdateAgentRequest, + request: protos.google.cloud.dialogflow.cx.v3.IUpdateAgentRequest, callback: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IAgent, - | protos.google.cloud.dialogflow.cx.v3beta1.IUpdateAgentRequest + protos.google.cloud.dialogflow.cx.v3.IAgent, + | protos.google.cloud.dialogflow.cx.v3.IUpdateAgentRequest | null | undefined, {} | null | undefined @@ -618,7 +623,7 @@ export class AgentsClient { * * @param {Object} request * The request object that will be sent. - * @param {google.cloud.dialogflow.cx.v3beta1.Agent} request.agent + * @param {google.cloud.dialogflow.cx.v3.Agent} request.agent * Required. The agent to update. * @param {google.protobuf.FieldMask} request.updateMask * The mask to control which fields get updated. If the mask is not present, @@ -626,7 +631,7 @@ export class AgentsClient { * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Agent]{@link google.cloud.dialogflow.cx.v3beta1.Agent}. + * The first element of the array is an object representing [Agent]{@link google.cloud.dialogflow.cx.v3.Agent}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. @@ -634,37 +639,37 @@ export class AgentsClient { * const [response] = await client.updateAgent(request); */ updateAgent( - request: protos.google.cloud.dialogflow.cx.v3beta1.IUpdateAgentRequest, + request: protos.google.cloud.dialogflow.cx.v3.IUpdateAgentRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IAgent, - | protos.google.cloud.dialogflow.cx.v3beta1.IUpdateAgentRequest + protos.google.cloud.dialogflow.cx.v3.IAgent, + | protos.google.cloud.dialogflow.cx.v3.IUpdateAgentRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IAgent, - | protos.google.cloud.dialogflow.cx.v3beta1.IUpdateAgentRequest + protos.google.cloud.dialogflow.cx.v3.IAgent, + | protos.google.cloud.dialogflow.cx.v3.IUpdateAgentRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.IAgent, - protos.google.cloud.dialogflow.cx.v3beta1.IUpdateAgentRequest | undefined, + protos.google.cloud.dialogflow.cx.v3.IAgent, + protos.google.cloud.dialogflow.cx.v3.IUpdateAgentRequest | undefined, {} | undefined ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -678,31 +683,31 @@ export class AgentsClient { return this.innerApiCalls.updateAgent(request, options, callback); } deleteAgent( - request: protos.google.cloud.dialogflow.cx.v3beta1.IDeleteAgentRequest, - options?: gax.CallOptions + request: protos.google.cloud.dialogflow.cx.v3.IDeleteAgentRequest, + options?: CallOptions ): Promise< [ protos.google.protobuf.IEmpty, - protos.google.cloud.dialogflow.cx.v3beta1.IDeleteAgentRequest | undefined, + protos.google.cloud.dialogflow.cx.v3.IDeleteAgentRequest | undefined, {} | undefined ] >; deleteAgent( - request: protos.google.cloud.dialogflow.cx.v3beta1.IDeleteAgentRequest, - options: gax.CallOptions, + request: protos.google.cloud.dialogflow.cx.v3.IDeleteAgentRequest, + options: CallOptions, callback: Callback< protos.google.protobuf.IEmpty, - | protos.google.cloud.dialogflow.cx.v3beta1.IDeleteAgentRequest + | protos.google.cloud.dialogflow.cx.v3.IDeleteAgentRequest | null | undefined, {} | null | undefined > ): void; deleteAgent( - request: protos.google.cloud.dialogflow.cx.v3beta1.IDeleteAgentRequest, + request: protos.google.cloud.dialogflow.cx.v3.IDeleteAgentRequest, callback: Callback< protos.google.protobuf.IEmpty, - | protos.google.cloud.dialogflow.cx.v3beta1.IDeleteAgentRequest + | protos.google.cloud.dialogflow.cx.v3.IDeleteAgentRequest | null | undefined, {} | null | undefined @@ -727,19 +732,19 @@ export class AgentsClient { * const [response] = await client.deleteAgent(request); */ deleteAgent( - request: protos.google.cloud.dialogflow.cx.v3beta1.IDeleteAgentRequest, + request: protos.google.cloud.dialogflow.cx.v3.IDeleteAgentRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.protobuf.IEmpty, - | protos.google.cloud.dialogflow.cx.v3beta1.IDeleteAgentRequest + | protos.google.cloud.dialogflow.cx.v3.IDeleteAgentRequest | null | undefined, {} | null | undefined >, callback?: Callback< protos.google.protobuf.IEmpty, - | protos.google.cloud.dialogflow.cx.v3beta1.IDeleteAgentRequest + | protos.google.cloud.dialogflow.cx.v3.IDeleteAgentRequest | null | undefined, {} | null | undefined @@ -747,17 +752,17 @@ export class AgentsClient { ): Promise< [ protos.google.protobuf.IEmpty, - protos.google.cloud.dialogflow.cx.v3beta1.IDeleteAgentRequest | undefined, + protos.google.cloud.dialogflow.cx.v3.IDeleteAgentRequest | undefined, {} | undefined ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -772,12 +777,12 @@ export class AgentsClient { } exportAgent( - request: protos.google.cloud.dialogflow.cx.v3beta1.IExportAgentRequest, - options?: gax.CallOptions + request: protos.google.cloud.dialogflow.cx.v3.IExportAgentRequest, + options?: CallOptions ): Promise< [ LROperation< - protos.google.cloud.dialogflow.cx.v3beta1.IExportAgentResponse, + protos.google.cloud.dialogflow.cx.v3.IExportAgentResponse, protos.google.protobuf.IStruct >, protos.google.longrunning.IOperation | undefined, @@ -785,11 +790,11 @@ export class AgentsClient { ] >; exportAgent( - request: protos.google.cloud.dialogflow.cx.v3beta1.IExportAgentRequest, - options: gax.CallOptions, + request: protos.google.cloud.dialogflow.cx.v3.IExportAgentRequest, + options: CallOptions, callback: Callback< LROperation< - protos.google.cloud.dialogflow.cx.v3beta1.IExportAgentResponse, + protos.google.cloud.dialogflow.cx.v3.IExportAgentResponse, protos.google.protobuf.IStruct >, protos.google.longrunning.IOperation | null | undefined, @@ -797,10 +802,10 @@ export class AgentsClient { > ): void; exportAgent( - request: protos.google.cloud.dialogflow.cx.v3beta1.IExportAgentRequest, + request: protos.google.cloud.dialogflow.cx.v3.IExportAgentRequest, callback: Callback< LROperation< - protos.google.cloud.dialogflow.cx.v3beta1.IExportAgentResponse, + protos.google.cloud.dialogflow.cx.v3.IExportAgentResponse, protos.google.protobuf.IStruct >, protos.google.longrunning.IOperation | null | undefined, @@ -834,12 +839,12 @@ export class AgentsClient { * const [response] = await operation.promise(); */ exportAgent( - request: protos.google.cloud.dialogflow.cx.v3beta1.IExportAgentRequest, + request: protos.google.cloud.dialogflow.cx.v3.IExportAgentRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< LROperation< - protos.google.cloud.dialogflow.cx.v3beta1.IExportAgentResponse, + protos.google.cloud.dialogflow.cx.v3.IExportAgentResponse, protos.google.protobuf.IStruct >, protos.google.longrunning.IOperation | null | undefined, @@ -847,7 +852,7 @@ export class AgentsClient { >, callback?: Callback< LROperation< - protos.google.cloud.dialogflow.cx.v3beta1.IExportAgentResponse, + protos.google.cloud.dialogflow.cx.v3.IExportAgentResponse, protos.google.protobuf.IStruct >, protos.google.longrunning.IOperation | null | undefined, @@ -856,7 +861,7 @@ export class AgentsClient { ): Promise< [ LROperation< - protos.google.cloud.dialogflow.cx.v3beta1.IExportAgentResponse, + protos.google.cloud.dialogflow.cx.v3.IExportAgentResponse, protos.google.protobuf.IStruct >, protos.google.longrunning.IOperation | undefined, @@ -864,12 +869,12 @@ export class AgentsClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -901,7 +906,7 @@ export class AgentsClient { name: string ): Promise< LROperation< - protos.google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse, + protos.google.cloud.dialogflow.cx.v3.ExportAgentResponse, protos.google.protobuf.Struct > > { @@ -915,13 +920,13 @@ export class AgentsClient { gax.createDefaultBackoffSettings() ); return decodeOperation as LROperation< - protos.google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse, + protos.google.cloud.dialogflow.cx.v3.ExportAgentResponse, protos.google.protobuf.Struct >; } restoreAgent( - request: protos.google.cloud.dialogflow.cx.v3beta1.IRestoreAgentRequest, - options?: gax.CallOptions + request: protos.google.cloud.dialogflow.cx.v3.IRestoreAgentRequest, + options?: CallOptions ): Promise< [ LROperation< @@ -933,8 +938,8 @@ export class AgentsClient { ] >; restoreAgent( - request: protos.google.cloud.dialogflow.cx.v3beta1.IRestoreAgentRequest, - options: gax.CallOptions, + request: protos.google.cloud.dialogflow.cx.v3.IRestoreAgentRequest, + options: CallOptions, callback: Callback< LROperation< protos.google.protobuf.IEmpty, @@ -945,7 +950,7 @@ export class AgentsClient { > ): void; restoreAgent( - request: protos.google.cloud.dialogflow.cx.v3beta1.IRestoreAgentRequest, + request: protos.google.cloud.dialogflow.cx.v3.IRestoreAgentRequest, callback: Callback< LROperation< protos.google.protobuf.IEmpty, @@ -986,9 +991,9 @@ export class AgentsClient { * const [response] = await operation.promise(); */ restoreAgent( - request: protos.google.cloud.dialogflow.cx.v3beta1.IRestoreAgentRequest, + request: protos.google.cloud.dialogflow.cx.v3.IRestoreAgentRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< LROperation< protos.google.protobuf.IEmpty, @@ -1016,12 +1021,12 @@ export class AgentsClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1069,34 +1074,34 @@ export class AgentsClient { >; } listAgents( - request: protos.google.cloud.dialogflow.cx.v3beta1.IListAgentsRequest, - options?: gax.CallOptions + request: protos.google.cloud.dialogflow.cx.v3.IListAgentsRequest, + options?: CallOptions ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.IAgent[], - protos.google.cloud.dialogflow.cx.v3beta1.IListAgentsRequest | null, - protos.google.cloud.dialogflow.cx.v3beta1.IListAgentsResponse + protos.google.cloud.dialogflow.cx.v3.IAgent[], + protos.google.cloud.dialogflow.cx.v3.IListAgentsRequest | null, + protos.google.cloud.dialogflow.cx.v3.IListAgentsResponse ] >; listAgents( - request: protos.google.cloud.dialogflow.cx.v3beta1.IListAgentsRequest, - options: gax.CallOptions, + request: protos.google.cloud.dialogflow.cx.v3.IListAgentsRequest, + options: CallOptions, callback: PaginationCallback< - protos.google.cloud.dialogflow.cx.v3beta1.IListAgentsRequest, - | protos.google.cloud.dialogflow.cx.v3beta1.IListAgentsResponse + protos.google.cloud.dialogflow.cx.v3.IListAgentsRequest, + | protos.google.cloud.dialogflow.cx.v3.IListAgentsResponse | null | undefined, - protos.google.cloud.dialogflow.cx.v3beta1.IAgent + protos.google.cloud.dialogflow.cx.v3.IAgent > ): void; listAgents( - request: protos.google.cloud.dialogflow.cx.v3beta1.IListAgentsRequest, + request: protos.google.cloud.dialogflow.cx.v3.IListAgentsRequest, callback: PaginationCallback< - protos.google.cloud.dialogflow.cx.v3beta1.IListAgentsRequest, - | protos.google.cloud.dialogflow.cx.v3beta1.IListAgentsResponse + protos.google.cloud.dialogflow.cx.v3.IListAgentsRequest, + | protos.google.cloud.dialogflow.cx.v3.IListAgentsResponse | null | undefined, - protos.google.cloud.dialogflow.cx.v3beta1.IAgent + protos.google.cloud.dialogflow.cx.v3.IAgent > ): void; /** @@ -1115,7 +1120,7 @@ export class AgentsClient { * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of [Agent]{@link google.cloud.dialogflow.cx.v3beta1.Agent}. + * The first element of the array is Array of [Agent]{@link google.cloud.dialogflow.cx.v3.Agent}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. @@ -1126,37 +1131,37 @@ export class AgentsClient { * for more details and examples. */ listAgents( - request: protos.google.cloud.dialogflow.cx.v3beta1.IListAgentsRequest, + request: protos.google.cloud.dialogflow.cx.v3.IListAgentsRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | PaginationCallback< - protos.google.cloud.dialogflow.cx.v3beta1.IListAgentsRequest, - | protos.google.cloud.dialogflow.cx.v3beta1.IListAgentsResponse + protos.google.cloud.dialogflow.cx.v3.IListAgentsRequest, + | protos.google.cloud.dialogflow.cx.v3.IListAgentsResponse | null | undefined, - protos.google.cloud.dialogflow.cx.v3beta1.IAgent + protos.google.cloud.dialogflow.cx.v3.IAgent >, callback?: PaginationCallback< - protos.google.cloud.dialogflow.cx.v3beta1.IListAgentsRequest, - | protos.google.cloud.dialogflow.cx.v3beta1.IListAgentsResponse + protos.google.cloud.dialogflow.cx.v3.IListAgentsRequest, + | protos.google.cloud.dialogflow.cx.v3.IListAgentsResponse | null | undefined, - protos.google.cloud.dialogflow.cx.v3beta1.IAgent + protos.google.cloud.dialogflow.cx.v3.IAgent > ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.IAgent[], - protos.google.cloud.dialogflow.cx.v3beta1.IListAgentsRequest | null, - protos.google.cloud.dialogflow.cx.v3beta1.IListAgentsResponse + protos.google.cloud.dialogflow.cx.v3.IAgent[], + protos.google.cloud.dialogflow.cx.v3.IListAgentsRequest | null, + protos.google.cloud.dialogflow.cx.v3.IListAgentsResponse ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1185,7 +1190,7 @@ export class AgentsClient { * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing [Agent]{@link google.cloud.dialogflow.cx.v3beta1.Agent} on 'data' event. + * An object stream which emits an object representing [Agent]{@link google.cloud.dialogflow.cx.v3.Agent} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. * We recommend using `listAgentsAsync()` @@ -1195,8 +1200,8 @@ export class AgentsClient { * for more details and examples. */ listAgentsStream( - request?: protos.google.cloud.dialogflow.cx.v3beta1.IListAgentsRequest, - options?: gax.CallOptions + request?: protos.google.cloud.dialogflow.cx.v3.IListAgentsRequest, + options?: CallOptions ): Transform { request = request || {}; options = options || {}; @@ -1235,7 +1240,7 @@ export class AgentsClient { * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * [Agent]{@link google.cloud.dialogflow.cx.v3beta1.Agent}. The API will be called under the hood as needed, once per the page, + * [Agent]{@link google.cloud.dialogflow.cx.v3.Agent}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) @@ -1247,9 +1252,9 @@ export class AgentsClient { * } */ listAgentsAsync( - request?: protos.google.cloud.dialogflow.cx.v3beta1.IListAgentsRequest, - options?: gax.CallOptions - ): AsyncIterable { + request?: protos.google.cloud.dialogflow.cx.v3.IListAgentsRequest, + options?: CallOptions + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1266,7 +1271,7 @@ export class AgentsClient { this.innerApiCalls['listAgents'] as GaxCall, (request as unknown) as RequestType, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } // -------------------- // -- Path templates -- @@ -1951,6 +1956,65 @@ export class AgentsClient { ).entity_type; } + /** + * Return a fully-qualified securitySettings resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} security_settings + * @returns {string} Resource name string. + */ + securitySettingsPath( + project: string, + location: string, + securitySettings: string + ) { + return this.pathTemplates.securitySettingsPathTemplate.render({ + project: project, + location: location, + security_settings: securitySettings, + }); + } + + /** + * Parse the project from SecuritySettings resource. + * + * @param {string} securitySettingsName + * A fully-qualified path representing SecuritySettings resource. + * @returns {string} A string representing the project. + */ + matchProjectFromSecuritySettingsName(securitySettingsName: string) { + return this.pathTemplates.securitySettingsPathTemplate.match( + securitySettingsName + ).project; + } + + /** + * Parse the location from SecuritySettings resource. + * + * @param {string} securitySettingsName + * A fully-qualified path representing SecuritySettings resource. + * @returns {string} A string representing the location. + */ + matchLocationFromSecuritySettingsName(securitySettingsName: string) { + return this.pathTemplates.securitySettingsPathTemplate.match( + securitySettingsName + ).location; + } + + /** + * Parse the security_settings from SecuritySettings resource. + * + * @param {string} securitySettingsName + * A fully-qualified path representing SecuritySettings resource. + * @returns {string} A string representing the security_settings. + */ + matchSecuritySettingsFromSecuritySettingsName(securitySettingsName: string) { + return this.pathTemplates.securitySettingsPathTemplate.match( + securitySettingsName + ).security_settings; + } + /** * Return a fully-qualified transitionRouteGroup resource name string. * diff --git a/src/v3beta1/agents_client_config.json b/src/v3/agents_client_config.json similarity index 97% rename from src/v3beta1/agents_client_config.json rename to src/v3/agents_client_config.json index 200253aa..0a3730f9 100644 --- a/src/v3beta1/agents_client_config.json +++ b/src/v3/agents_client_config.json @@ -1,6 +1,6 @@ { "interfaces": { - "google.cloud.dialogflow.cx.v3beta1.Agents": { + "google.cloud.dialogflow.cx.v3.Agents": { "retry_codes": { "non_idempotent": [], "idempotent": [ diff --git a/src/v3/agents_proto_list.json b/src/v3/agents_proto_list.json new file mode 100644 index 00000000..622b657f --- /dev/null +++ b/src/v3/agents_proto_list.json @@ -0,0 +1,17 @@ +[ + "../../protos/google/cloud/dialogflow/cx/v3/agent.proto", + "../../protos/google/cloud/dialogflow/cx/v3/audio_config.proto", + "../../protos/google/cloud/dialogflow/cx/v3/entity_type.proto", + "../../protos/google/cloud/dialogflow/cx/v3/environment.proto", + "../../protos/google/cloud/dialogflow/cx/v3/flow.proto", + "../../protos/google/cloud/dialogflow/cx/v3/fulfillment.proto", + "../../protos/google/cloud/dialogflow/cx/v3/intent.proto", + "../../protos/google/cloud/dialogflow/cx/v3/page.proto", + "../../protos/google/cloud/dialogflow/cx/v3/response_message.proto", + "../../protos/google/cloud/dialogflow/cx/v3/security_settings.proto", + "../../protos/google/cloud/dialogflow/cx/v3/session.proto", + "../../protos/google/cloud/dialogflow/cx/v3/session_entity_type.proto", + "../../protos/google/cloud/dialogflow/cx/v3/transition_route_group.proto", + "../../protos/google/cloud/dialogflow/cx/v3/version.proto", + "../../protos/google/cloud/dialogflow/cx/v3/webhook.proto" +] diff --git a/src/v3beta1/entity_types_client.ts b/src/v3/entity_types_client.ts similarity index 85% rename from src/v3beta1/entity_types_client.ts rename to src/v3/entity_types_client.ts index 2cf06b56..8258570e 100644 --- a/src/v3beta1/entity_types_client.ts +++ b/src/v3/entity_types_client.ts @@ -16,6 +16,7 @@ // ** https://github.com/googleapis/gapic-generator-typescript ** // ** All changes to this file may be overwritten. ** +/* global window */ import * as gax from 'google-gax'; import { Callback, @@ -30,14 +31,19 @@ import * as path from 'path'; import {Transform} from 'stream'; import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; +/** + * Client JSON configuration object, loaded from + * `src/v3/entity_types_client_config.json`. + * This file defines retry strategy and timeouts for all API methods in this library. + */ import * as gapicConfig from './entity_types_client_config.json'; const version = require('../../../package.json').version; /** - * Service for managing {@link google.cloud.dialogflow.cx.v3beta1.EntityType|EntityTypes}. + * Service for managing {@link google.cloud.dialogflow.cx.v3.EntityType|EntityTypes}. * @class - * @memberof v3beta1 + * @memberof v3 */ export class EntityTypesClient { private _terminated = false; @@ -83,9 +89,9 @@ export class EntityTypesClient { * your project ID will be detected automatically. * @param {string} [options.apiEndpoint] - The domain name of the * API remote host. - * @param {gax.ClientConfig} [options.clientConfig] - client configuration override. - * TODO(@alexander-fenster): link to gax documentation. - * @param {boolean} fallback - Use HTTP fallback mode. + * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. + * Follows the structure of {@link gapicConfig}. + * @param {boolean} [options.fallback] - Use HTTP fallback mode. * In fallback mode, a special browser-compatible transport implementation is used * instead of gRPC transport. In browser context (if the `window` object is defined) * the fallback mode is enabled automatically; set `options.fallback` to `false` @@ -98,7 +104,9 @@ export class EntityTypesClient { opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; - const fallback = opts?.fallback ?? typeof window !== 'undefined'; + const fallback = + opts?.fallback ?? + (typeof window !== 'undefined' && typeof window?.fetch === 'function'); opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. @@ -188,6 +196,9 @@ export class EntityTypesClient { projectLocationAgentSessionEntityTypePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/agents/{agent}/sessions/{session}/entityTypes/{entity_type}' ), + securitySettingsPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/securitySettings/{security_settings}' + ), transitionRouteGroupPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/agents/{agent}/flows/{flow}/transitionRouteGroups/{transition_route_group}' ), @@ -212,7 +223,7 @@ export class EntityTypesClient { // Put together the default options sent with requests. this._defaults = this._gaxGrpc.constructSettings( - 'google.cloud.dialogflow.cx.v3beta1.EntityTypes', + 'google.cloud.dialogflow.cx.v3.EntityTypes', gapicConfig as gax.ClientConfig, opts.clientConfig || {}, {'x-goog-api-client': clientHeader.join(' ')} @@ -242,14 +253,14 @@ export class EntityTypesClient { } // Put together the "service stub" for - // google.cloud.dialogflow.cx.v3beta1.EntityTypes. + // google.cloud.dialogflow.cx.v3.EntityTypes. this.entityTypesStub = this._gaxGrpc.createStub( this._opts.fallback ? (this._protos as protobuf.Root).lookupService( - 'google.cloud.dialogflow.cx.v3beta1.EntityTypes' + 'google.cloud.dialogflow.cx.v3.EntityTypes' ) : // eslint-disable-next-line @typescript-eslint/no-explicit-any - (this._protos as any).google.cloud.dialogflow.cx.v3beta1.EntityTypes, + (this._protos as any).google.cloud.dialogflow.cx.v3.EntityTypes, this._opts ) as Promise<{[method: string]: Function}>; @@ -346,34 +357,31 @@ export class EntityTypesClient { // -- Service calls -- // ------------------- getEntityType( - request: protos.google.cloud.dialogflow.cx.v3beta1.IGetEntityTypeRequest, - options?: gax.CallOptions + request: protos.google.cloud.dialogflow.cx.v3.IGetEntityTypeRequest, + options?: CallOptions ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.IEntityType, - ( - | protos.google.cloud.dialogflow.cx.v3beta1.IGetEntityTypeRequest - | undefined - ), + protos.google.cloud.dialogflow.cx.v3.IEntityType, + protos.google.cloud.dialogflow.cx.v3.IGetEntityTypeRequest | undefined, {} | undefined ] >; getEntityType( - request: protos.google.cloud.dialogflow.cx.v3beta1.IGetEntityTypeRequest, - options: gax.CallOptions, + request: protos.google.cloud.dialogflow.cx.v3.IGetEntityTypeRequest, + options: CallOptions, callback: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IEntityType, - | protos.google.cloud.dialogflow.cx.v3beta1.IGetEntityTypeRequest + protos.google.cloud.dialogflow.cx.v3.IEntityType, + | protos.google.cloud.dialogflow.cx.v3.IGetEntityTypeRequest | null | undefined, {} | null | undefined > ): void; getEntityType( - request: protos.google.cloud.dialogflow.cx.v3beta1.IGetEntityTypeRequest, + request: protos.google.cloud.dialogflow.cx.v3.IGetEntityTypeRequest, callback: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IEntityType, - | protos.google.cloud.dialogflow.cx.v3beta1.IGetEntityTypeRequest + protos.google.cloud.dialogflow.cx.v3.IEntityType, + | protos.google.cloud.dialogflow.cx.v3.IGetEntityTypeRequest | null | undefined, {} | null | undefined @@ -404,7 +412,7 @@ export class EntityTypesClient { * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [EntityType]{@link google.cloud.dialogflow.cx.v3beta1.EntityType}. + * The first element of the array is an object representing [EntityType]{@link google.cloud.dialogflow.cx.v3.EntityType}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. @@ -412,40 +420,37 @@ export class EntityTypesClient { * const [response] = await client.getEntityType(request); */ getEntityType( - request: protos.google.cloud.dialogflow.cx.v3beta1.IGetEntityTypeRequest, + request: protos.google.cloud.dialogflow.cx.v3.IGetEntityTypeRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IEntityType, - | protos.google.cloud.dialogflow.cx.v3beta1.IGetEntityTypeRequest + protos.google.cloud.dialogflow.cx.v3.IEntityType, + | protos.google.cloud.dialogflow.cx.v3.IGetEntityTypeRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IEntityType, - | protos.google.cloud.dialogflow.cx.v3beta1.IGetEntityTypeRequest + protos.google.cloud.dialogflow.cx.v3.IEntityType, + | protos.google.cloud.dialogflow.cx.v3.IGetEntityTypeRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.IEntityType, - ( - | protos.google.cloud.dialogflow.cx.v3beta1.IGetEntityTypeRequest - | undefined - ), + protos.google.cloud.dialogflow.cx.v3.IEntityType, + protos.google.cloud.dialogflow.cx.v3.IGetEntityTypeRequest | undefined, {} | undefined ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -459,34 +464,31 @@ export class EntityTypesClient { return this.innerApiCalls.getEntityType(request, options, callback); } createEntityType( - request: protos.google.cloud.dialogflow.cx.v3beta1.ICreateEntityTypeRequest, - options?: gax.CallOptions + request: protos.google.cloud.dialogflow.cx.v3.ICreateEntityTypeRequest, + options?: CallOptions ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.IEntityType, - ( - | protos.google.cloud.dialogflow.cx.v3beta1.ICreateEntityTypeRequest - | undefined - ), + protos.google.cloud.dialogflow.cx.v3.IEntityType, + protos.google.cloud.dialogflow.cx.v3.ICreateEntityTypeRequest | undefined, {} | undefined ] >; createEntityType( - request: protos.google.cloud.dialogflow.cx.v3beta1.ICreateEntityTypeRequest, - options: gax.CallOptions, + request: protos.google.cloud.dialogflow.cx.v3.ICreateEntityTypeRequest, + options: CallOptions, callback: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IEntityType, - | protos.google.cloud.dialogflow.cx.v3beta1.ICreateEntityTypeRequest + protos.google.cloud.dialogflow.cx.v3.IEntityType, + | protos.google.cloud.dialogflow.cx.v3.ICreateEntityTypeRequest | null | undefined, {} | null | undefined > ): void; createEntityType( - request: protos.google.cloud.dialogflow.cx.v3beta1.ICreateEntityTypeRequest, + request: protos.google.cloud.dialogflow.cx.v3.ICreateEntityTypeRequest, callback: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IEntityType, - | protos.google.cloud.dialogflow.cx.v3beta1.ICreateEntityTypeRequest + protos.google.cloud.dialogflow.cx.v3.IEntityType, + | protos.google.cloud.dialogflow.cx.v3.ICreateEntityTypeRequest | null | undefined, {} | null | undefined @@ -500,7 +502,7 @@ export class EntityTypesClient { * @param {string} request.parent * Required. The agent to create a entity type for. * Format: `projects//locations//agents/`. - * @param {google.cloud.dialogflow.cx.v3beta1.EntityType} request.entityType + * @param {google.cloud.dialogflow.cx.v3.EntityType} request.entityType * Required. The entity type to create. * @param {string} request.languageCode * The language of the following fields in `entity_type`: @@ -517,7 +519,7 @@ export class EntityTypesClient { * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [EntityType]{@link google.cloud.dialogflow.cx.v3beta1.EntityType}. + * The first element of the array is an object representing [EntityType]{@link google.cloud.dialogflow.cx.v3.EntityType}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. @@ -525,40 +527,37 @@ export class EntityTypesClient { * const [response] = await client.createEntityType(request); */ createEntityType( - request: protos.google.cloud.dialogflow.cx.v3beta1.ICreateEntityTypeRequest, + request: protos.google.cloud.dialogflow.cx.v3.ICreateEntityTypeRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IEntityType, - | protos.google.cloud.dialogflow.cx.v3beta1.ICreateEntityTypeRequest + protos.google.cloud.dialogflow.cx.v3.IEntityType, + | protos.google.cloud.dialogflow.cx.v3.ICreateEntityTypeRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IEntityType, - | protos.google.cloud.dialogflow.cx.v3beta1.ICreateEntityTypeRequest + protos.google.cloud.dialogflow.cx.v3.IEntityType, + | protos.google.cloud.dialogflow.cx.v3.ICreateEntityTypeRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.IEntityType, - ( - | protos.google.cloud.dialogflow.cx.v3beta1.ICreateEntityTypeRequest - | undefined - ), + protos.google.cloud.dialogflow.cx.v3.IEntityType, + protos.google.cloud.dialogflow.cx.v3.ICreateEntityTypeRequest | undefined, {} | undefined ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -572,34 +571,31 @@ export class EntityTypesClient { return this.innerApiCalls.createEntityType(request, options, callback); } updateEntityType( - request: protos.google.cloud.dialogflow.cx.v3beta1.IUpdateEntityTypeRequest, - options?: gax.CallOptions + request: protos.google.cloud.dialogflow.cx.v3.IUpdateEntityTypeRequest, + options?: CallOptions ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.IEntityType, - ( - | protos.google.cloud.dialogflow.cx.v3beta1.IUpdateEntityTypeRequest - | undefined - ), + protos.google.cloud.dialogflow.cx.v3.IEntityType, + protos.google.cloud.dialogflow.cx.v3.IUpdateEntityTypeRequest | undefined, {} | undefined ] >; updateEntityType( - request: protos.google.cloud.dialogflow.cx.v3beta1.IUpdateEntityTypeRequest, - options: gax.CallOptions, + request: protos.google.cloud.dialogflow.cx.v3.IUpdateEntityTypeRequest, + options: CallOptions, callback: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IEntityType, - | protos.google.cloud.dialogflow.cx.v3beta1.IUpdateEntityTypeRequest + protos.google.cloud.dialogflow.cx.v3.IEntityType, + | protos.google.cloud.dialogflow.cx.v3.IUpdateEntityTypeRequest | null | undefined, {} | null | undefined > ): void; updateEntityType( - request: protos.google.cloud.dialogflow.cx.v3beta1.IUpdateEntityTypeRequest, + request: protos.google.cloud.dialogflow.cx.v3.IUpdateEntityTypeRequest, callback: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IEntityType, - | protos.google.cloud.dialogflow.cx.v3beta1.IUpdateEntityTypeRequest + protos.google.cloud.dialogflow.cx.v3.IEntityType, + | protos.google.cloud.dialogflow.cx.v3.IUpdateEntityTypeRequest | null | undefined, {} | null | undefined @@ -610,7 +606,7 @@ export class EntityTypesClient { * * @param {Object} request * The request object that will be sent. - * @param {google.cloud.dialogflow.cx.v3beta1.EntityType} request.entityType + * @param {google.cloud.dialogflow.cx.v3.EntityType} request.entityType * Required. The entity type to update. * @param {string} request.languageCode * The language of the following fields in `entity_type`: @@ -629,7 +625,7 @@ export class EntityTypesClient { * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [EntityType]{@link google.cloud.dialogflow.cx.v3beta1.EntityType}. + * The first element of the array is an object representing [EntityType]{@link google.cloud.dialogflow.cx.v3.EntityType}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. @@ -637,40 +633,37 @@ export class EntityTypesClient { * const [response] = await client.updateEntityType(request); */ updateEntityType( - request: protos.google.cloud.dialogflow.cx.v3beta1.IUpdateEntityTypeRequest, + request: protos.google.cloud.dialogflow.cx.v3.IUpdateEntityTypeRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IEntityType, - | protos.google.cloud.dialogflow.cx.v3beta1.IUpdateEntityTypeRequest + protos.google.cloud.dialogflow.cx.v3.IEntityType, + | protos.google.cloud.dialogflow.cx.v3.IUpdateEntityTypeRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IEntityType, - | protos.google.cloud.dialogflow.cx.v3beta1.IUpdateEntityTypeRequest + protos.google.cloud.dialogflow.cx.v3.IEntityType, + | protos.google.cloud.dialogflow.cx.v3.IUpdateEntityTypeRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.IEntityType, - ( - | protos.google.cloud.dialogflow.cx.v3beta1.IUpdateEntityTypeRequest - | undefined - ), + protos.google.cloud.dialogflow.cx.v3.IEntityType, + protos.google.cloud.dialogflow.cx.v3.IUpdateEntityTypeRequest | undefined, {} | undefined ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -684,34 +677,31 @@ export class EntityTypesClient { return this.innerApiCalls.updateEntityType(request, options, callback); } deleteEntityType( - request: protos.google.cloud.dialogflow.cx.v3beta1.IDeleteEntityTypeRequest, - options?: gax.CallOptions + request: protos.google.cloud.dialogflow.cx.v3.IDeleteEntityTypeRequest, + options?: CallOptions ): Promise< [ protos.google.protobuf.IEmpty, - ( - | protos.google.cloud.dialogflow.cx.v3beta1.IDeleteEntityTypeRequest - | undefined - ), + protos.google.cloud.dialogflow.cx.v3.IDeleteEntityTypeRequest | undefined, {} | undefined ] >; deleteEntityType( - request: protos.google.cloud.dialogflow.cx.v3beta1.IDeleteEntityTypeRequest, - options: gax.CallOptions, + request: protos.google.cloud.dialogflow.cx.v3.IDeleteEntityTypeRequest, + options: CallOptions, callback: Callback< protos.google.protobuf.IEmpty, - | protos.google.cloud.dialogflow.cx.v3beta1.IDeleteEntityTypeRequest + | protos.google.cloud.dialogflow.cx.v3.IDeleteEntityTypeRequest | null | undefined, {} | null | undefined > ): void; deleteEntityType( - request: protos.google.cloud.dialogflow.cx.v3beta1.IDeleteEntityTypeRequest, + request: protos.google.cloud.dialogflow.cx.v3.IDeleteEntityTypeRequest, callback: Callback< protos.google.protobuf.IEmpty, - | protos.google.cloud.dialogflow.cx.v3beta1.IDeleteEntityTypeRequest + | protos.google.cloud.dialogflow.cx.v3.IDeleteEntityTypeRequest | null | undefined, {} | null | undefined @@ -734,8 +724,8 @@ export class EntityTypesClient { * indicating the referencing resources. * * If `force` is set to true, Dialogflow will remove the entity type, as * well as any references to the entity type (i.e. Page - * {@link google.cloud.dialogflow.cx.v3beta1.Form.Parameter|parameter} of the entity type will be changed to - * '@sys.any' and intent {@link google.cloud.dialogflow.cx.v3beta1.Intent.Parameter|parameter} of the entity type + * {@link google.cloud.dialogflow.cx.v3.Form.Parameter|parameter} of the entity type will be changed to + * '@sys.any' and intent {@link google.cloud.dialogflow.cx.v3.Intent.Parameter|parameter} of the entity type * will be removed). * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. @@ -748,19 +738,19 @@ export class EntityTypesClient { * const [response] = await client.deleteEntityType(request); */ deleteEntityType( - request: protos.google.cloud.dialogflow.cx.v3beta1.IDeleteEntityTypeRequest, + request: protos.google.cloud.dialogflow.cx.v3.IDeleteEntityTypeRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.protobuf.IEmpty, - | protos.google.cloud.dialogflow.cx.v3beta1.IDeleteEntityTypeRequest + | protos.google.cloud.dialogflow.cx.v3.IDeleteEntityTypeRequest | null | undefined, {} | null | undefined >, callback?: Callback< protos.google.protobuf.IEmpty, - | protos.google.cloud.dialogflow.cx.v3beta1.IDeleteEntityTypeRequest + | protos.google.cloud.dialogflow.cx.v3.IDeleteEntityTypeRequest | null | undefined, {} | null | undefined @@ -768,20 +758,17 @@ export class EntityTypesClient { ): Promise< [ protos.google.protobuf.IEmpty, - ( - | protos.google.cloud.dialogflow.cx.v3beta1.IDeleteEntityTypeRequest - | undefined - ), + protos.google.cloud.dialogflow.cx.v3.IDeleteEntityTypeRequest | undefined, {} | undefined ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -796,34 +783,34 @@ export class EntityTypesClient { } listEntityTypes( - request: protos.google.cloud.dialogflow.cx.v3beta1.IListEntityTypesRequest, - options?: gax.CallOptions + request: protos.google.cloud.dialogflow.cx.v3.IListEntityTypesRequest, + options?: CallOptions ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.IEntityType[], - protos.google.cloud.dialogflow.cx.v3beta1.IListEntityTypesRequest | null, - protos.google.cloud.dialogflow.cx.v3beta1.IListEntityTypesResponse + protos.google.cloud.dialogflow.cx.v3.IEntityType[], + protos.google.cloud.dialogflow.cx.v3.IListEntityTypesRequest | null, + protos.google.cloud.dialogflow.cx.v3.IListEntityTypesResponse ] >; listEntityTypes( - request: protos.google.cloud.dialogflow.cx.v3beta1.IListEntityTypesRequest, - options: gax.CallOptions, + request: protos.google.cloud.dialogflow.cx.v3.IListEntityTypesRequest, + options: CallOptions, callback: PaginationCallback< - protos.google.cloud.dialogflow.cx.v3beta1.IListEntityTypesRequest, - | protos.google.cloud.dialogflow.cx.v3beta1.IListEntityTypesResponse + protos.google.cloud.dialogflow.cx.v3.IListEntityTypesRequest, + | protos.google.cloud.dialogflow.cx.v3.IListEntityTypesResponse | null | undefined, - protos.google.cloud.dialogflow.cx.v3beta1.IEntityType + protos.google.cloud.dialogflow.cx.v3.IEntityType > ): void; listEntityTypes( - request: protos.google.cloud.dialogflow.cx.v3beta1.IListEntityTypesRequest, + request: protos.google.cloud.dialogflow.cx.v3.IListEntityTypesRequest, callback: PaginationCallback< - protos.google.cloud.dialogflow.cx.v3beta1.IListEntityTypesRequest, - | protos.google.cloud.dialogflow.cx.v3beta1.IListEntityTypesResponse + protos.google.cloud.dialogflow.cx.v3.IListEntityTypesRequest, + | protos.google.cloud.dialogflow.cx.v3.IListEntityTypesResponse | null | undefined, - protos.google.cloud.dialogflow.cx.v3beta1.IEntityType + protos.google.cloud.dialogflow.cx.v3.IEntityType > ): void; /** @@ -855,7 +842,7 @@ export class EntityTypesClient { * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of [EntityType]{@link google.cloud.dialogflow.cx.v3beta1.EntityType}. + * The first element of the array is Array of [EntityType]{@link google.cloud.dialogflow.cx.v3.EntityType}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. @@ -866,37 +853,37 @@ export class EntityTypesClient { * for more details and examples. */ listEntityTypes( - request: protos.google.cloud.dialogflow.cx.v3beta1.IListEntityTypesRequest, + request: protos.google.cloud.dialogflow.cx.v3.IListEntityTypesRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | PaginationCallback< - protos.google.cloud.dialogflow.cx.v3beta1.IListEntityTypesRequest, - | protos.google.cloud.dialogflow.cx.v3beta1.IListEntityTypesResponse + protos.google.cloud.dialogflow.cx.v3.IListEntityTypesRequest, + | protos.google.cloud.dialogflow.cx.v3.IListEntityTypesResponse | null | undefined, - protos.google.cloud.dialogflow.cx.v3beta1.IEntityType + protos.google.cloud.dialogflow.cx.v3.IEntityType >, callback?: PaginationCallback< - protos.google.cloud.dialogflow.cx.v3beta1.IListEntityTypesRequest, - | protos.google.cloud.dialogflow.cx.v3beta1.IListEntityTypesResponse + protos.google.cloud.dialogflow.cx.v3.IListEntityTypesRequest, + | protos.google.cloud.dialogflow.cx.v3.IListEntityTypesResponse | null | undefined, - protos.google.cloud.dialogflow.cx.v3beta1.IEntityType + protos.google.cloud.dialogflow.cx.v3.IEntityType > ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.IEntityType[], - protos.google.cloud.dialogflow.cx.v3beta1.IListEntityTypesRequest | null, - protos.google.cloud.dialogflow.cx.v3beta1.IListEntityTypesResponse + protos.google.cloud.dialogflow.cx.v3.IEntityType[], + protos.google.cloud.dialogflow.cx.v3.IListEntityTypesRequest | null, + protos.google.cloud.dialogflow.cx.v3.IListEntityTypesResponse ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -938,7 +925,7 @@ export class EntityTypesClient { * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing [EntityType]{@link google.cloud.dialogflow.cx.v3beta1.EntityType} on 'data' event. + * An object stream which emits an object representing [EntityType]{@link google.cloud.dialogflow.cx.v3.EntityType} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. * We recommend using `listEntityTypesAsync()` @@ -948,8 +935,8 @@ export class EntityTypesClient { * for more details and examples. */ listEntityTypesStream( - request?: protos.google.cloud.dialogflow.cx.v3beta1.IListEntityTypesRequest, - options?: gax.CallOptions + request?: protos.google.cloud.dialogflow.cx.v3.IListEntityTypesRequest, + options?: CallOptions ): Transform { request = request || {}; options = options || {}; @@ -1001,7 +988,7 @@ export class EntityTypesClient { * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * [EntityType]{@link google.cloud.dialogflow.cx.v3beta1.EntityType}. The API will be called under the hood as needed, once per the page, + * [EntityType]{@link google.cloud.dialogflow.cx.v3.EntityType}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) @@ -1013,9 +1000,9 @@ export class EntityTypesClient { * } */ listEntityTypesAsync( - request?: protos.google.cloud.dialogflow.cx.v3beta1.IListEntityTypesRequest, - options?: gax.CallOptions - ): AsyncIterable { + request?: protos.google.cloud.dialogflow.cx.v3.IListEntityTypesRequest, + options?: CallOptions + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1032,7 +1019,7 @@ export class EntityTypesClient { this.innerApiCalls['listEntityTypes'] as GaxCall, (request as unknown) as RequestType, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } // -------------------- // -- Path templates -- @@ -1717,6 +1704,65 @@ export class EntityTypesClient { ).entity_type; } + /** + * Return a fully-qualified securitySettings resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} security_settings + * @returns {string} Resource name string. + */ + securitySettingsPath( + project: string, + location: string, + securitySettings: string + ) { + return this.pathTemplates.securitySettingsPathTemplate.render({ + project: project, + location: location, + security_settings: securitySettings, + }); + } + + /** + * Parse the project from SecuritySettings resource. + * + * @param {string} securitySettingsName + * A fully-qualified path representing SecuritySettings resource. + * @returns {string} A string representing the project. + */ + matchProjectFromSecuritySettingsName(securitySettingsName: string) { + return this.pathTemplates.securitySettingsPathTemplate.match( + securitySettingsName + ).project; + } + + /** + * Parse the location from SecuritySettings resource. + * + * @param {string} securitySettingsName + * A fully-qualified path representing SecuritySettings resource. + * @returns {string} A string representing the location. + */ + matchLocationFromSecuritySettingsName(securitySettingsName: string) { + return this.pathTemplates.securitySettingsPathTemplate.match( + securitySettingsName + ).location; + } + + /** + * Parse the security_settings from SecuritySettings resource. + * + * @param {string} securitySettingsName + * A fully-qualified path representing SecuritySettings resource. + * @returns {string} A string representing the security_settings. + */ + matchSecuritySettingsFromSecuritySettingsName(securitySettingsName: string) { + return this.pathTemplates.securitySettingsPathTemplate.match( + securitySettingsName + ).security_settings; + } + /** * Return a fully-qualified transitionRouteGroup resource name string. * diff --git a/src/v3beta1/entity_types_client_config.json b/src/v3/entity_types_client_config.json similarity index 96% rename from src/v3beta1/entity_types_client_config.json rename to src/v3/entity_types_client_config.json index fe9484a1..7add64f1 100644 --- a/src/v3beta1/entity_types_client_config.json +++ b/src/v3/entity_types_client_config.json @@ -1,6 +1,6 @@ { "interfaces": { - "google.cloud.dialogflow.cx.v3beta1.EntityTypes": { + "google.cloud.dialogflow.cx.v3.EntityTypes": { "retry_codes": { "non_idempotent": [], "idempotent": [ diff --git a/src/v3/entity_types_proto_list.json b/src/v3/entity_types_proto_list.json new file mode 100644 index 00000000..622b657f --- /dev/null +++ b/src/v3/entity_types_proto_list.json @@ -0,0 +1,17 @@ +[ + "../../protos/google/cloud/dialogflow/cx/v3/agent.proto", + "../../protos/google/cloud/dialogflow/cx/v3/audio_config.proto", + "../../protos/google/cloud/dialogflow/cx/v3/entity_type.proto", + "../../protos/google/cloud/dialogflow/cx/v3/environment.proto", + "../../protos/google/cloud/dialogflow/cx/v3/flow.proto", + "../../protos/google/cloud/dialogflow/cx/v3/fulfillment.proto", + "../../protos/google/cloud/dialogflow/cx/v3/intent.proto", + "../../protos/google/cloud/dialogflow/cx/v3/page.proto", + "../../protos/google/cloud/dialogflow/cx/v3/response_message.proto", + "../../protos/google/cloud/dialogflow/cx/v3/security_settings.proto", + "../../protos/google/cloud/dialogflow/cx/v3/session.proto", + "../../protos/google/cloud/dialogflow/cx/v3/session_entity_type.proto", + "../../protos/google/cloud/dialogflow/cx/v3/transition_route_group.proto", + "../../protos/google/cloud/dialogflow/cx/v3/version.proto", + "../../protos/google/cloud/dialogflow/cx/v3/webhook.proto" +] diff --git a/src/v3beta1/environments_client.ts b/src/v3/environments_client.ts similarity index 84% rename from src/v3beta1/environments_client.ts rename to src/v3/environments_client.ts index b5638a31..006aa398 100644 --- a/src/v3beta1/environments_client.ts +++ b/src/v3/environments_client.ts @@ -16,6 +16,7 @@ // ** https://github.com/googleapis/gapic-generator-typescript ** // ** All changes to this file may be overwritten. ** +/* global window */ import * as gax from 'google-gax'; import { Callback, @@ -31,14 +32,19 @@ import * as path from 'path'; import {Transform} from 'stream'; import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; +/** + * Client JSON configuration object, loaded from + * `src/v3/environments_client_config.json`. + * This file defines retry strategy and timeouts for all API methods in this library. + */ import * as gapicConfig from './environments_client_config.json'; import {operationsProtos} from 'google-gax'; const version = require('../../../package.json').version; /** - * Service for managing {@link google.cloud.dialogflow.cx.v3beta1.Environment|Environments}. + * Service for managing {@link google.cloud.dialogflow.cx.v3.Environment|Environments}. * @class - * @memberof v3beta1 + * @memberof v3 */ export class EnvironmentsClient { private _terminated = false; @@ -85,9 +91,9 @@ export class EnvironmentsClient { * your project ID will be detected automatically. * @param {string} [options.apiEndpoint] - The domain name of the * API remote host. - * @param {gax.ClientConfig} [options.clientConfig] - client configuration override. - * TODO(@alexander-fenster): link to gax documentation. - * @param {boolean} fallback - Use HTTP fallback mode. + * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. + * Follows the structure of {@link gapicConfig}. + * @param {boolean} [options.fallback] - Use HTTP fallback mode. * In fallback mode, a special browser-compatible transport implementation is used * instead of gRPC transport. In browser context (if the `window` object is defined) * the fallback mode is enabled automatically; set `options.fallback` to `false` @@ -100,7 +106,9 @@ export class EnvironmentsClient { opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; - const fallback = opts?.fallback ?? typeof window !== 'undefined'; + const fallback = + opts?.fallback ?? + (typeof window !== 'undefined' && typeof window?.fetch === 'function'); opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. @@ -190,6 +198,9 @@ export class EnvironmentsClient { projectLocationAgentSessionEntityTypePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/agents/{agent}/sessions/{session}/entityTypes/{entity_type}' ), + securitySettingsPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/securitySettings/{security_settings}' + ), transitionRouteGroupPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/agents/{agent}/flows/{flow}/transitionRouteGroups/{transition_route_group}' ), @@ -234,13 +245,13 @@ export class EnvironmentsClient { }) .operationsClient(opts); const createEnvironmentResponse = protoFilesRoot.lookup( - '.google.cloud.dialogflow.cx.v3beta1.Environment' + '.google.cloud.dialogflow.cx.v3.Environment' ) as gax.protobuf.Type; const createEnvironmentMetadata = protoFilesRoot.lookup( '.google.protobuf.Struct' ) as gax.protobuf.Type; const updateEnvironmentResponse = protoFilesRoot.lookup( - '.google.cloud.dialogflow.cx.v3beta1.Environment' + '.google.cloud.dialogflow.cx.v3.Environment' ) as gax.protobuf.Type; const updateEnvironmentMetadata = protoFilesRoot.lookup( '.google.protobuf.Struct' @@ -261,7 +272,7 @@ export class EnvironmentsClient { // Put together the default options sent with requests. this._defaults = this._gaxGrpc.constructSettings( - 'google.cloud.dialogflow.cx.v3beta1.Environments', + 'google.cloud.dialogflow.cx.v3.Environments', gapicConfig as gax.ClientConfig, opts.clientConfig || {}, {'x-goog-api-client': clientHeader.join(' ')} @@ -291,14 +302,14 @@ export class EnvironmentsClient { } // Put together the "service stub" for - // google.cloud.dialogflow.cx.v3beta1.Environments. + // google.cloud.dialogflow.cx.v3.Environments. this.environmentsStub = this._gaxGrpc.createStub( this._opts.fallback ? (this._protos as protobuf.Root).lookupService( - 'google.cloud.dialogflow.cx.v3beta1.Environments' + 'google.cloud.dialogflow.cx.v3.Environments' ) : // eslint-disable-next-line @typescript-eslint/no-explicit-any - (this._protos as any).google.cloud.dialogflow.cx.v3beta1.Environments, + (this._protos as any).google.cloud.dialogflow.cx.v3.Environments, this._opts ) as Promise<{[method: string]: Function}>; @@ -399,52 +410,49 @@ export class EnvironmentsClient { // -- Service calls -- // ------------------- getEnvironment( - request: protos.google.cloud.dialogflow.cx.v3beta1.IGetEnvironmentRequest, - options?: gax.CallOptions + request: protos.google.cloud.dialogflow.cx.v3.IGetEnvironmentRequest, + options?: CallOptions ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.IEnvironment, - ( - | protos.google.cloud.dialogflow.cx.v3beta1.IGetEnvironmentRequest - | undefined - ), + protos.google.cloud.dialogflow.cx.v3.IEnvironment, + protos.google.cloud.dialogflow.cx.v3.IGetEnvironmentRequest | undefined, {} | undefined ] >; getEnvironment( - request: protos.google.cloud.dialogflow.cx.v3beta1.IGetEnvironmentRequest, - options: gax.CallOptions, + request: protos.google.cloud.dialogflow.cx.v3.IGetEnvironmentRequest, + options: CallOptions, callback: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IEnvironment, - | protos.google.cloud.dialogflow.cx.v3beta1.IGetEnvironmentRequest + protos.google.cloud.dialogflow.cx.v3.IEnvironment, + | protos.google.cloud.dialogflow.cx.v3.IGetEnvironmentRequest | null | undefined, {} | null | undefined > ): void; getEnvironment( - request: protos.google.cloud.dialogflow.cx.v3beta1.IGetEnvironmentRequest, + request: protos.google.cloud.dialogflow.cx.v3.IGetEnvironmentRequest, callback: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IEnvironment, - | protos.google.cloud.dialogflow.cx.v3beta1.IGetEnvironmentRequest + protos.google.cloud.dialogflow.cx.v3.IEnvironment, + | protos.google.cloud.dialogflow.cx.v3.IGetEnvironmentRequest | null | undefined, {} | null | undefined > ): void; /** - * Retrieves the specified {@link google.cloud.dialogflow.cx.v3beta1.Environment|Environment}. + * Retrieves the specified {@link google.cloud.dialogflow.cx.v3.Environment|Environment}. * * @param {Object} request * The request object that will be sent. * @param {string} request.name - * Required. The name of the {@link google.cloud.dialogflow.cx.v3beta1.Environment|Environment}. + * Required. The name of the {@link google.cloud.dialogflow.cx.v3.Environment|Environment}. * Format: `projects//locations//agents//environments/`. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Environment]{@link google.cloud.dialogflow.cx.v3beta1.Environment}. + * The first element of the array is an object representing [Environment]{@link google.cloud.dialogflow.cx.v3.Environment}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. @@ -452,40 +460,37 @@ export class EnvironmentsClient { * const [response] = await client.getEnvironment(request); */ getEnvironment( - request: protos.google.cloud.dialogflow.cx.v3beta1.IGetEnvironmentRequest, + request: protos.google.cloud.dialogflow.cx.v3.IGetEnvironmentRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IEnvironment, - | protos.google.cloud.dialogflow.cx.v3beta1.IGetEnvironmentRequest + protos.google.cloud.dialogflow.cx.v3.IEnvironment, + | protos.google.cloud.dialogflow.cx.v3.IGetEnvironmentRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IEnvironment, - | protos.google.cloud.dialogflow.cx.v3beta1.IGetEnvironmentRequest + protos.google.cloud.dialogflow.cx.v3.IEnvironment, + | protos.google.cloud.dialogflow.cx.v3.IGetEnvironmentRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.IEnvironment, - ( - | protos.google.cloud.dialogflow.cx.v3beta1.IGetEnvironmentRequest - | undefined - ), + protos.google.cloud.dialogflow.cx.v3.IEnvironment, + protos.google.cloud.dialogflow.cx.v3.IGetEnvironmentRequest | undefined, {} | undefined ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -499,46 +504,46 @@ export class EnvironmentsClient { return this.innerApiCalls.getEnvironment(request, options, callback); } deleteEnvironment( - request: protos.google.cloud.dialogflow.cx.v3beta1.IDeleteEnvironmentRequest, - options?: gax.CallOptions + request: protos.google.cloud.dialogflow.cx.v3.IDeleteEnvironmentRequest, + options?: CallOptions ): Promise< [ protos.google.protobuf.IEmpty, ( - | protos.google.cloud.dialogflow.cx.v3beta1.IDeleteEnvironmentRequest + | protos.google.cloud.dialogflow.cx.v3.IDeleteEnvironmentRequest | undefined ), {} | undefined ] >; deleteEnvironment( - request: protos.google.cloud.dialogflow.cx.v3beta1.IDeleteEnvironmentRequest, - options: gax.CallOptions, + request: protos.google.cloud.dialogflow.cx.v3.IDeleteEnvironmentRequest, + options: CallOptions, callback: Callback< protos.google.protobuf.IEmpty, - | protos.google.cloud.dialogflow.cx.v3beta1.IDeleteEnvironmentRequest + | protos.google.cloud.dialogflow.cx.v3.IDeleteEnvironmentRequest | null | undefined, {} | null | undefined > ): void; deleteEnvironment( - request: protos.google.cloud.dialogflow.cx.v3beta1.IDeleteEnvironmentRequest, + request: protos.google.cloud.dialogflow.cx.v3.IDeleteEnvironmentRequest, callback: Callback< protos.google.protobuf.IEmpty, - | protos.google.cloud.dialogflow.cx.v3beta1.IDeleteEnvironmentRequest + | protos.google.cloud.dialogflow.cx.v3.IDeleteEnvironmentRequest | null | undefined, {} | null | undefined > ): void; /** - * Deletes the specified {@link google.cloud.dialogflow.cx.v3beta1.Environment|Environment}. + * Deletes the specified {@link google.cloud.dialogflow.cx.v3.Environment|Environment}. * * @param {Object} request * The request object that will be sent. * @param {string} request.name - * Required. The name of the {@link google.cloud.dialogflow.cx.v3beta1.Environment|Environment} to delete. + * Required. The name of the {@link google.cloud.dialogflow.cx.v3.Environment|Environment} to delete. * Format: `projects//locations//agents//environments/`. * @param {object} [options] @@ -552,19 +557,19 @@ export class EnvironmentsClient { * const [response] = await client.deleteEnvironment(request); */ deleteEnvironment( - request: protos.google.cloud.dialogflow.cx.v3beta1.IDeleteEnvironmentRequest, + request: protos.google.cloud.dialogflow.cx.v3.IDeleteEnvironmentRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.protobuf.IEmpty, - | protos.google.cloud.dialogflow.cx.v3beta1.IDeleteEnvironmentRequest + | protos.google.cloud.dialogflow.cx.v3.IDeleteEnvironmentRequest | null | undefined, {} | null | undefined >, callback?: Callback< protos.google.protobuf.IEmpty, - | protos.google.cloud.dialogflow.cx.v3beta1.IDeleteEnvironmentRequest + | protos.google.cloud.dialogflow.cx.v3.IDeleteEnvironmentRequest | null | undefined, {} | null | undefined @@ -573,19 +578,19 @@ export class EnvironmentsClient { [ protos.google.protobuf.IEmpty, ( - | protos.google.cloud.dialogflow.cx.v3beta1.IDeleteEnvironmentRequest + | protos.google.cloud.dialogflow.cx.v3.IDeleteEnvironmentRequest | undefined ), {} | undefined ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -600,12 +605,12 @@ export class EnvironmentsClient { } createEnvironment( - request: protos.google.cloud.dialogflow.cx.v3beta1.ICreateEnvironmentRequest, - options?: gax.CallOptions + request: protos.google.cloud.dialogflow.cx.v3.ICreateEnvironmentRequest, + options?: CallOptions ): Promise< [ LROperation< - protos.google.cloud.dialogflow.cx.v3beta1.IEnvironment, + protos.google.cloud.dialogflow.cx.v3.IEnvironment, protos.google.protobuf.IStruct >, protos.google.longrunning.IOperation | undefined, @@ -613,11 +618,11 @@ export class EnvironmentsClient { ] >; createEnvironment( - request: protos.google.cloud.dialogflow.cx.v3beta1.ICreateEnvironmentRequest, - options: gax.CallOptions, + request: protos.google.cloud.dialogflow.cx.v3.ICreateEnvironmentRequest, + options: CallOptions, callback: Callback< LROperation< - protos.google.cloud.dialogflow.cx.v3beta1.IEnvironment, + protos.google.cloud.dialogflow.cx.v3.IEnvironment, protos.google.protobuf.IStruct >, protos.google.longrunning.IOperation | null | undefined, @@ -625,10 +630,10 @@ export class EnvironmentsClient { > ): void; createEnvironment( - request: protos.google.cloud.dialogflow.cx.v3beta1.ICreateEnvironmentRequest, + request: protos.google.cloud.dialogflow.cx.v3.ICreateEnvironmentRequest, callback: Callback< LROperation< - protos.google.cloud.dialogflow.cx.v3beta1.IEnvironment, + protos.google.cloud.dialogflow.cx.v3.IEnvironment, protos.google.protobuf.IStruct >, protos.google.longrunning.IOperation | null | undefined, @@ -636,14 +641,14 @@ export class EnvironmentsClient { > ): void; /** - * Creates an {@link google.cloud.dialogflow.cx.v3beta1.Environment|Environment} in the specified {@link google.cloud.dialogflow.cx.v3beta1.Agent|Agent}. + * Creates an {@link google.cloud.dialogflow.cx.v3.Environment|Environment} in the specified {@link google.cloud.dialogflow.cx.v3.Agent|Agent}. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The {@link google.cloud.dialogflow.cx.v3beta1.Agent|Agent} to create an {@link google.cloud.dialogflow.cx.v3beta1.Environment|Environment} for. + * Required. The {@link google.cloud.dialogflow.cx.v3.Agent|Agent} to create an {@link google.cloud.dialogflow.cx.v3.Environment|Environment} for. * Format: `projects//locations//agents/`. - * @param {google.cloud.dialogflow.cx.v3beta1.Environment} request.environment + * @param {google.cloud.dialogflow.cx.v3.Environment} request.environment * Required. The environment to create. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. @@ -659,12 +664,12 @@ export class EnvironmentsClient { * const [response] = await operation.promise(); */ createEnvironment( - request: protos.google.cloud.dialogflow.cx.v3beta1.ICreateEnvironmentRequest, + request: protos.google.cloud.dialogflow.cx.v3.ICreateEnvironmentRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< LROperation< - protos.google.cloud.dialogflow.cx.v3beta1.IEnvironment, + protos.google.cloud.dialogflow.cx.v3.IEnvironment, protos.google.protobuf.IStruct >, protos.google.longrunning.IOperation | null | undefined, @@ -672,7 +677,7 @@ export class EnvironmentsClient { >, callback?: Callback< LROperation< - protos.google.cloud.dialogflow.cx.v3beta1.IEnvironment, + protos.google.cloud.dialogflow.cx.v3.IEnvironment, protos.google.protobuf.IStruct >, protos.google.longrunning.IOperation | null | undefined, @@ -681,7 +686,7 @@ export class EnvironmentsClient { ): Promise< [ LROperation< - protos.google.cloud.dialogflow.cx.v3beta1.IEnvironment, + protos.google.cloud.dialogflow.cx.v3.IEnvironment, protos.google.protobuf.IStruct >, protos.google.longrunning.IOperation | undefined, @@ -689,12 +694,12 @@ export class EnvironmentsClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -726,7 +731,7 @@ export class EnvironmentsClient { name: string ): Promise< LROperation< - protos.google.cloud.dialogflow.cx.v3beta1.Environment, + protos.google.cloud.dialogflow.cx.v3.Environment, protos.google.protobuf.Struct > > { @@ -740,17 +745,17 @@ export class EnvironmentsClient { gax.createDefaultBackoffSettings() ); return decodeOperation as LROperation< - protos.google.cloud.dialogflow.cx.v3beta1.Environment, + protos.google.cloud.dialogflow.cx.v3.Environment, protos.google.protobuf.Struct >; } updateEnvironment( - request: protos.google.cloud.dialogflow.cx.v3beta1.IUpdateEnvironmentRequest, - options?: gax.CallOptions + request: protos.google.cloud.dialogflow.cx.v3.IUpdateEnvironmentRequest, + options?: CallOptions ): Promise< [ LROperation< - protos.google.cloud.dialogflow.cx.v3beta1.IEnvironment, + protos.google.cloud.dialogflow.cx.v3.IEnvironment, protos.google.protobuf.IStruct >, protos.google.longrunning.IOperation | undefined, @@ -758,11 +763,11 @@ export class EnvironmentsClient { ] >; updateEnvironment( - request: protos.google.cloud.dialogflow.cx.v3beta1.IUpdateEnvironmentRequest, - options: gax.CallOptions, + request: protos.google.cloud.dialogflow.cx.v3.IUpdateEnvironmentRequest, + options: CallOptions, callback: Callback< LROperation< - protos.google.cloud.dialogflow.cx.v3beta1.IEnvironment, + protos.google.cloud.dialogflow.cx.v3.IEnvironment, protos.google.protobuf.IStruct >, protos.google.longrunning.IOperation | null | undefined, @@ -770,10 +775,10 @@ export class EnvironmentsClient { > ): void; updateEnvironment( - request: protos.google.cloud.dialogflow.cx.v3beta1.IUpdateEnvironmentRequest, + request: protos.google.cloud.dialogflow.cx.v3.IUpdateEnvironmentRequest, callback: Callback< LROperation< - protos.google.cloud.dialogflow.cx.v3beta1.IEnvironment, + protos.google.cloud.dialogflow.cx.v3.IEnvironment, protos.google.protobuf.IStruct >, protos.google.longrunning.IOperation | null | undefined, @@ -781,11 +786,11 @@ export class EnvironmentsClient { > ): void; /** - * Updates the specified {@link google.cloud.dialogflow.cx.v3beta1.Environment|Environment}. + * Updates the specified {@link google.cloud.dialogflow.cx.v3.Environment|Environment}. * * @param {Object} request * The request object that will be sent. - * @param {google.cloud.dialogflow.cx.v3beta1.Environment} request.environment + * @param {google.cloud.dialogflow.cx.v3.Environment} request.environment * Required. The environment to update. * @param {google.protobuf.FieldMask} request.updateMask * Required. The mask to control which fields get updated. @@ -803,12 +808,12 @@ export class EnvironmentsClient { * const [response] = await operation.promise(); */ updateEnvironment( - request: protos.google.cloud.dialogflow.cx.v3beta1.IUpdateEnvironmentRequest, + request: protos.google.cloud.dialogflow.cx.v3.IUpdateEnvironmentRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< LROperation< - protos.google.cloud.dialogflow.cx.v3beta1.IEnvironment, + protos.google.cloud.dialogflow.cx.v3.IEnvironment, protos.google.protobuf.IStruct >, protos.google.longrunning.IOperation | null | undefined, @@ -816,7 +821,7 @@ export class EnvironmentsClient { >, callback?: Callback< LROperation< - protos.google.cloud.dialogflow.cx.v3beta1.IEnvironment, + protos.google.cloud.dialogflow.cx.v3.IEnvironment, protos.google.protobuf.IStruct >, protos.google.longrunning.IOperation | null | undefined, @@ -825,7 +830,7 @@ export class EnvironmentsClient { ): Promise< [ LROperation< - protos.google.cloud.dialogflow.cx.v3beta1.IEnvironment, + protos.google.cloud.dialogflow.cx.v3.IEnvironment, protos.google.protobuf.IStruct >, protos.google.longrunning.IOperation | undefined, @@ -833,12 +838,12 @@ export class EnvironmentsClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -870,7 +875,7 @@ export class EnvironmentsClient { name: string ): Promise< LROperation< - protos.google.cloud.dialogflow.cx.v3beta1.Environment, + protos.google.cloud.dialogflow.cx.v3.Environment, protos.google.protobuf.Struct > > { @@ -884,48 +889,48 @@ export class EnvironmentsClient { gax.createDefaultBackoffSettings() ); return decodeOperation as LROperation< - protos.google.cloud.dialogflow.cx.v3beta1.Environment, + protos.google.cloud.dialogflow.cx.v3.Environment, protos.google.protobuf.Struct >; } listEnvironments( - request: protos.google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsRequest, - options?: gax.CallOptions + request: protos.google.cloud.dialogflow.cx.v3.IListEnvironmentsRequest, + options?: CallOptions ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.IEnvironment[], - protos.google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsRequest | null, - protos.google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsResponse + protos.google.cloud.dialogflow.cx.v3.IEnvironment[], + protos.google.cloud.dialogflow.cx.v3.IListEnvironmentsRequest | null, + protos.google.cloud.dialogflow.cx.v3.IListEnvironmentsResponse ] >; listEnvironments( - request: protos.google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsRequest, - options: gax.CallOptions, + request: protos.google.cloud.dialogflow.cx.v3.IListEnvironmentsRequest, + options: CallOptions, callback: PaginationCallback< - protos.google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsRequest, - | protos.google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsResponse + protos.google.cloud.dialogflow.cx.v3.IListEnvironmentsRequest, + | protos.google.cloud.dialogflow.cx.v3.IListEnvironmentsResponse | null | undefined, - protos.google.cloud.dialogflow.cx.v3beta1.IEnvironment + protos.google.cloud.dialogflow.cx.v3.IEnvironment > ): void; listEnvironments( - request: protos.google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsRequest, + request: protos.google.cloud.dialogflow.cx.v3.IListEnvironmentsRequest, callback: PaginationCallback< - protos.google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsRequest, - | protos.google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsResponse + protos.google.cloud.dialogflow.cx.v3.IListEnvironmentsRequest, + | protos.google.cloud.dialogflow.cx.v3.IListEnvironmentsResponse | null | undefined, - protos.google.cloud.dialogflow.cx.v3beta1.IEnvironment + protos.google.cloud.dialogflow.cx.v3.IEnvironment > ): void; /** - * Returns the list of all environments in the specified {@link google.cloud.dialogflow.cx.v3beta1.Agent|Agent}. + * Returns the list of all environments in the specified {@link google.cloud.dialogflow.cx.v3.Agent|Agent}. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The {@link google.cloud.dialogflow.cx.v3beta1.Agent|Agent} to list all environments for. + * Required. The {@link google.cloud.dialogflow.cx.v3.Agent|Agent} to list all environments for. * Format: `projects//locations//agents/`. * @param {number} request.pageSize * The maximum number of items to return in a single page. By default 20 and @@ -935,7 +940,7 @@ export class EnvironmentsClient { * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of [Environment]{@link google.cloud.dialogflow.cx.v3beta1.Environment}. + * The first element of the array is Array of [Environment]{@link google.cloud.dialogflow.cx.v3.Environment}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. @@ -946,37 +951,37 @@ export class EnvironmentsClient { * for more details and examples. */ listEnvironments( - request: protos.google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsRequest, + request: protos.google.cloud.dialogflow.cx.v3.IListEnvironmentsRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | PaginationCallback< - protos.google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsRequest, - | protos.google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsResponse + protos.google.cloud.dialogflow.cx.v3.IListEnvironmentsRequest, + | protos.google.cloud.dialogflow.cx.v3.IListEnvironmentsResponse | null | undefined, - protos.google.cloud.dialogflow.cx.v3beta1.IEnvironment + protos.google.cloud.dialogflow.cx.v3.IEnvironment >, callback?: PaginationCallback< - protos.google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsRequest, - | protos.google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsResponse + protos.google.cloud.dialogflow.cx.v3.IListEnvironmentsRequest, + | protos.google.cloud.dialogflow.cx.v3.IListEnvironmentsResponse | null | undefined, - protos.google.cloud.dialogflow.cx.v3beta1.IEnvironment + protos.google.cloud.dialogflow.cx.v3.IEnvironment > ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.IEnvironment[], - protos.google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsRequest | null, - protos.google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsResponse + protos.google.cloud.dialogflow.cx.v3.IEnvironment[], + protos.google.cloud.dialogflow.cx.v3.IListEnvironmentsRequest | null, + protos.google.cloud.dialogflow.cx.v3.IListEnvironmentsResponse ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -995,7 +1000,7 @@ export class EnvironmentsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The {@link google.cloud.dialogflow.cx.v3beta1.Agent|Agent} to list all environments for. + * Required. The {@link google.cloud.dialogflow.cx.v3.Agent|Agent} to list all environments for. * Format: `projects//locations//agents/`. * @param {number} request.pageSize * The maximum number of items to return in a single page. By default 20 and @@ -1005,7 +1010,7 @@ export class EnvironmentsClient { * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing [Environment]{@link google.cloud.dialogflow.cx.v3beta1.Environment} on 'data' event. + * An object stream which emits an object representing [Environment]{@link google.cloud.dialogflow.cx.v3.Environment} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. * We recommend using `listEnvironmentsAsync()` @@ -1015,8 +1020,8 @@ export class EnvironmentsClient { * for more details and examples. */ listEnvironmentsStream( - request?: protos.google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsRequest, - options?: gax.CallOptions + request?: protos.google.cloud.dialogflow.cx.v3.IListEnvironmentsRequest, + options?: CallOptions ): Transform { request = request || {}; options = options || {}; @@ -1043,7 +1048,7 @@ export class EnvironmentsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The {@link google.cloud.dialogflow.cx.v3beta1.Agent|Agent} to list all environments for. + * Required. The {@link google.cloud.dialogflow.cx.v3.Agent|Agent} to list all environments for. * Format: `projects//locations//agents/`. * @param {number} request.pageSize * The maximum number of items to return in a single page. By default 20 and @@ -1055,7 +1060,7 @@ export class EnvironmentsClient { * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * [Environment]{@link google.cloud.dialogflow.cx.v3beta1.Environment}. The API will be called under the hood as needed, once per the page, + * [Environment]{@link google.cloud.dialogflow.cx.v3.Environment}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) @@ -1067,9 +1072,9 @@ export class EnvironmentsClient { * } */ listEnvironmentsAsync( - request?: protos.google.cloud.dialogflow.cx.v3beta1.IListEnvironmentsRequest, - options?: gax.CallOptions - ): AsyncIterable { + request?: protos.google.cloud.dialogflow.cx.v3.IListEnvironmentsRequest, + options?: CallOptions + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1086,41 +1091,41 @@ export class EnvironmentsClient { this.innerApiCalls['listEnvironments'] as GaxCall, (request as unknown) as RequestType, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } lookupEnvironmentHistory( - request: protos.google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryRequest, - options?: gax.CallOptions + request: protos.google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryRequest, + options?: CallOptions ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.IEnvironment[], - protos.google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryRequest | null, - protos.google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryResponse + protos.google.cloud.dialogflow.cx.v3.IEnvironment[], + protos.google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryRequest | null, + protos.google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryResponse ] >; lookupEnvironmentHistory( - request: protos.google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryRequest, - options: gax.CallOptions, + request: protos.google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryRequest, + options: CallOptions, callback: PaginationCallback< - protos.google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryRequest, - | protos.google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryResponse + protos.google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryRequest, + | protos.google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryResponse | null | undefined, - protos.google.cloud.dialogflow.cx.v3beta1.IEnvironment + protos.google.cloud.dialogflow.cx.v3.IEnvironment > ): void; lookupEnvironmentHistory( - request: protos.google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryRequest, + request: protos.google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryRequest, callback: PaginationCallback< - protos.google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryRequest, - | protos.google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryResponse + protos.google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryRequest, + | protos.google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryResponse | null | undefined, - protos.google.cloud.dialogflow.cx.v3beta1.IEnvironment + protos.google.cloud.dialogflow.cx.v3.IEnvironment > ): void; /** - * Looks up the history of the specified {@link google.cloud.dialogflow.cx.v3beta1.Environment|Environment}. + * Looks up the history of the specified {@link google.cloud.dialogflow.cx.v3.Environment|Environment}. * * @param {Object} request * The request object that will be sent. @@ -1136,7 +1141,7 @@ export class EnvironmentsClient { * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of [Environment]{@link google.cloud.dialogflow.cx.v3beta1.Environment}. + * The first element of the array is Array of [Environment]{@link google.cloud.dialogflow.cx.v3.Environment}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. @@ -1147,37 +1152,37 @@ export class EnvironmentsClient { * for more details and examples. */ lookupEnvironmentHistory( - request: protos.google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryRequest, + request: protos.google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | PaginationCallback< - protos.google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryRequest, - | protos.google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryResponse + protos.google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryRequest, + | protos.google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryResponse | null | undefined, - protos.google.cloud.dialogflow.cx.v3beta1.IEnvironment + protos.google.cloud.dialogflow.cx.v3.IEnvironment >, callback?: PaginationCallback< - protos.google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryRequest, - | protos.google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryResponse + protos.google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryRequest, + | protos.google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryResponse | null | undefined, - protos.google.cloud.dialogflow.cx.v3beta1.IEnvironment + protos.google.cloud.dialogflow.cx.v3.IEnvironment > ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.IEnvironment[], - protos.google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryRequest | null, - protos.google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryResponse + protos.google.cloud.dialogflow.cx.v3.IEnvironment[], + protos.google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryRequest | null, + protos.google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryResponse ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1211,7 +1216,7 @@ export class EnvironmentsClient { * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing [Environment]{@link google.cloud.dialogflow.cx.v3beta1.Environment} on 'data' event. + * An object stream which emits an object representing [Environment]{@link google.cloud.dialogflow.cx.v3.Environment} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. * We recommend using `lookupEnvironmentHistoryAsync()` @@ -1221,8 +1226,8 @@ export class EnvironmentsClient { * for more details and examples. */ lookupEnvironmentHistoryStream( - request?: protos.google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryRequest, - options?: gax.CallOptions + request?: protos.google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryRequest, + options?: CallOptions ): Transform { request = request || {}; options = options || {}; @@ -1262,7 +1267,7 @@ export class EnvironmentsClient { * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * [Environment]{@link google.cloud.dialogflow.cx.v3beta1.Environment}. The API will be called under the hood as needed, once per the page, + * [Environment]{@link google.cloud.dialogflow.cx.v3.Environment}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) @@ -1274,9 +1279,9 @@ export class EnvironmentsClient { * } */ lookupEnvironmentHistoryAsync( - request?: protos.google.cloud.dialogflow.cx.v3beta1.ILookupEnvironmentHistoryRequest, - options?: gax.CallOptions - ): AsyncIterable { + request?: protos.google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryRequest, + options?: CallOptions + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1293,7 +1298,7 @@ export class EnvironmentsClient { this.innerApiCalls['lookupEnvironmentHistory'] as GaxCall, (request as unknown) as RequestType, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } // -------------------- // -- Path templates -- @@ -1978,6 +1983,65 @@ export class EnvironmentsClient { ).entity_type; } + /** + * Return a fully-qualified securitySettings resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} security_settings + * @returns {string} Resource name string. + */ + securitySettingsPath( + project: string, + location: string, + securitySettings: string + ) { + return this.pathTemplates.securitySettingsPathTemplate.render({ + project: project, + location: location, + security_settings: securitySettings, + }); + } + + /** + * Parse the project from SecuritySettings resource. + * + * @param {string} securitySettingsName + * A fully-qualified path representing SecuritySettings resource. + * @returns {string} A string representing the project. + */ + matchProjectFromSecuritySettingsName(securitySettingsName: string) { + return this.pathTemplates.securitySettingsPathTemplate.match( + securitySettingsName + ).project; + } + + /** + * Parse the location from SecuritySettings resource. + * + * @param {string} securitySettingsName + * A fully-qualified path representing SecuritySettings resource. + * @returns {string} A string representing the location. + */ + matchLocationFromSecuritySettingsName(securitySettingsName: string) { + return this.pathTemplates.securitySettingsPathTemplate.match( + securitySettingsName + ).location; + } + + /** + * Parse the security_settings from SecuritySettings resource. + * + * @param {string} securitySettingsName + * A fully-qualified path representing SecuritySettings resource. + * @returns {string} A string representing the security_settings. + */ + matchSecuritySettingsFromSecuritySettingsName(securitySettingsName: string) { + return this.pathTemplates.securitySettingsPathTemplate.match( + securitySettingsName + ).security_settings; + } + /** * Return a fully-qualified transitionRouteGroup resource name string. * diff --git a/src/v3beta1/environments_client_config.json b/src/v3/environments_client_config.json similarity index 96% rename from src/v3beta1/environments_client_config.json rename to src/v3/environments_client_config.json index df0e636e..3875718b 100644 --- a/src/v3beta1/environments_client_config.json +++ b/src/v3/environments_client_config.json @@ -1,6 +1,6 @@ { "interfaces": { - "google.cloud.dialogflow.cx.v3beta1.Environments": { + "google.cloud.dialogflow.cx.v3.Environments": { "retry_codes": { "non_idempotent": [], "idempotent": [ diff --git a/src/v3/environments_proto_list.json b/src/v3/environments_proto_list.json new file mode 100644 index 00000000..622b657f --- /dev/null +++ b/src/v3/environments_proto_list.json @@ -0,0 +1,17 @@ +[ + "../../protos/google/cloud/dialogflow/cx/v3/agent.proto", + "../../protos/google/cloud/dialogflow/cx/v3/audio_config.proto", + "../../protos/google/cloud/dialogflow/cx/v3/entity_type.proto", + "../../protos/google/cloud/dialogflow/cx/v3/environment.proto", + "../../protos/google/cloud/dialogflow/cx/v3/flow.proto", + "../../protos/google/cloud/dialogflow/cx/v3/fulfillment.proto", + "../../protos/google/cloud/dialogflow/cx/v3/intent.proto", + "../../protos/google/cloud/dialogflow/cx/v3/page.proto", + "../../protos/google/cloud/dialogflow/cx/v3/response_message.proto", + "../../protos/google/cloud/dialogflow/cx/v3/security_settings.proto", + "../../protos/google/cloud/dialogflow/cx/v3/session.proto", + "../../protos/google/cloud/dialogflow/cx/v3/session_entity_type.proto", + "../../protos/google/cloud/dialogflow/cx/v3/transition_route_group.proto", + "../../protos/google/cloud/dialogflow/cx/v3/version.proto", + "../../protos/google/cloud/dialogflow/cx/v3/webhook.proto" +] diff --git a/src/v3beta1/flows_client.ts b/src/v3/flows_client.ts similarity index 87% rename from src/v3beta1/flows_client.ts rename to src/v3/flows_client.ts index ad92b94c..1b16459e 100644 --- a/src/v3beta1/flows_client.ts +++ b/src/v3/flows_client.ts @@ -16,6 +16,7 @@ // ** https://github.com/googleapis/gapic-generator-typescript ** // ** All changes to this file may be overwritten. ** +/* global window */ import * as gax from 'google-gax'; import { Callback, @@ -31,14 +32,19 @@ import * as path from 'path'; import {Transform} from 'stream'; import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; +/** + * Client JSON configuration object, loaded from + * `src/v3/flows_client_config.json`. + * This file defines retry strategy and timeouts for all API methods in this library. + */ import * as gapicConfig from './flows_client_config.json'; import {operationsProtos} from 'google-gax'; const version = require('../../../package.json').version; /** - * Service for managing {@link google.cloud.dialogflow.cx.v3beta1.Flow|Flows}. + * Service for managing {@link google.cloud.dialogflow.cx.v3.Flow|Flows}. * @class - * @memberof v3beta1 + * @memberof v3 */ export class FlowsClient { private _terminated = false; @@ -85,9 +91,9 @@ export class FlowsClient { * your project ID will be detected automatically. * @param {string} [options.apiEndpoint] - The domain name of the * API remote host. - * @param {gax.ClientConfig} [options.clientConfig] - client configuration override. - * TODO(@alexander-fenster): link to gax documentation. - * @param {boolean} fallback - Use HTTP fallback mode. + * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. + * Follows the structure of {@link gapicConfig}. + * @param {boolean} [options.fallback] - Use HTTP fallback mode. * In fallback mode, a special browser-compatible transport implementation is used * instead of gRPC transport. In browser context (if the `window` object is defined) * the fallback mode is enabled automatically; set `options.fallback` to `false` @@ -100,7 +106,9 @@ export class FlowsClient { opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; - const fallback = opts?.fallback ?? typeof window !== 'undefined'; + const fallback = + opts?.fallback ?? + (typeof window !== 'undefined' && typeof window?.fetch === 'function'); opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. @@ -190,6 +198,9 @@ export class FlowsClient { projectLocationAgentSessionEntityTypePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/agents/{agent}/sessions/{session}/entityTypes/{entity_type}' ), + securitySettingsPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/securitySettings/{security_settings}' + ), transitionRouteGroupPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/agents/{agent}/flows/{flow}/transitionRouteGroups/{transition_route_group}' ), @@ -245,7 +256,7 @@ export class FlowsClient { // Put together the default options sent with requests. this._defaults = this._gaxGrpc.constructSettings( - 'google.cloud.dialogflow.cx.v3beta1.Flows', + 'google.cloud.dialogflow.cx.v3.Flows', gapicConfig as gax.ClientConfig, opts.clientConfig || {}, {'x-goog-api-client': clientHeader.join(' ')} @@ -275,14 +286,14 @@ export class FlowsClient { } // Put together the "service stub" for - // google.cloud.dialogflow.cx.v3beta1.Flows. + // google.cloud.dialogflow.cx.v3.Flows. this.flowsStub = this._gaxGrpc.createStub( this._opts.fallback ? (this._protos as protobuf.Root).lookupService( - 'google.cloud.dialogflow.cx.v3beta1.Flows' + 'google.cloud.dialogflow.cx.v3.Flows' ) : // eslint-disable-next-line @typescript-eslint/no-explicit-any - (this._protos as any).google.cloud.dialogflow.cx.v3beta1.Flows, + (this._protos as any).google.cloud.dialogflow.cx.v3.Flows, this._opts ) as Promise<{[method: string]: Function}>; @@ -383,31 +394,31 @@ export class FlowsClient { // -- Service calls -- // ------------------- createFlow( - request: protos.google.cloud.dialogflow.cx.v3beta1.ICreateFlowRequest, - options?: gax.CallOptions + request: protos.google.cloud.dialogflow.cx.v3.ICreateFlowRequest, + options?: CallOptions ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.IFlow, - protos.google.cloud.dialogflow.cx.v3beta1.ICreateFlowRequest | undefined, + protos.google.cloud.dialogflow.cx.v3.IFlow, + protos.google.cloud.dialogflow.cx.v3.ICreateFlowRequest | undefined, {} | undefined ] >; createFlow( - request: protos.google.cloud.dialogflow.cx.v3beta1.ICreateFlowRequest, - options: gax.CallOptions, + request: protos.google.cloud.dialogflow.cx.v3.ICreateFlowRequest, + options: CallOptions, callback: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IFlow, - | protos.google.cloud.dialogflow.cx.v3beta1.ICreateFlowRequest + protos.google.cloud.dialogflow.cx.v3.IFlow, + | protos.google.cloud.dialogflow.cx.v3.ICreateFlowRequest | null | undefined, {} | null | undefined > ): void; createFlow( - request: protos.google.cloud.dialogflow.cx.v3beta1.ICreateFlowRequest, + request: protos.google.cloud.dialogflow.cx.v3.ICreateFlowRequest, callback: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IFlow, - | protos.google.cloud.dialogflow.cx.v3beta1.ICreateFlowRequest + protos.google.cloud.dialogflow.cx.v3.IFlow, + | protos.google.cloud.dialogflow.cx.v3.ICreateFlowRequest | null | undefined, {} | null | undefined @@ -421,7 +432,7 @@ export class FlowsClient { * @param {string} request.parent * Required. The agent to create a flow for. * Format: `projects//locations//agents/`. - * @param {google.cloud.dialogflow.cx.v3beta1.Flow} request.flow + * @param {google.cloud.dialogflow.cx.v3.Flow} request.flow * Required. The flow to create. * @param {string} request.languageCode * The language of the following fields in `flow`: @@ -437,7 +448,7 @@ export class FlowsClient { * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Flow]{@link google.cloud.dialogflow.cx.v3beta1.Flow}. + * The first element of the array is an object representing [Flow]{@link google.cloud.dialogflow.cx.v3.Flow}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. @@ -445,37 +456,37 @@ export class FlowsClient { * const [response] = await client.createFlow(request); */ createFlow( - request: protos.google.cloud.dialogflow.cx.v3beta1.ICreateFlowRequest, + request: protos.google.cloud.dialogflow.cx.v3.ICreateFlowRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IFlow, - | protos.google.cloud.dialogflow.cx.v3beta1.ICreateFlowRequest + protos.google.cloud.dialogflow.cx.v3.IFlow, + | protos.google.cloud.dialogflow.cx.v3.ICreateFlowRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IFlow, - | protos.google.cloud.dialogflow.cx.v3beta1.ICreateFlowRequest + protos.google.cloud.dialogflow.cx.v3.IFlow, + | protos.google.cloud.dialogflow.cx.v3.ICreateFlowRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.IFlow, - protos.google.cloud.dialogflow.cx.v3beta1.ICreateFlowRequest | undefined, + protos.google.cloud.dialogflow.cx.v3.IFlow, + protos.google.cloud.dialogflow.cx.v3.ICreateFlowRequest | undefined, {} | undefined ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -489,31 +500,31 @@ export class FlowsClient { return this.innerApiCalls.createFlow(request, options, callback); } deleteFlow( - request: protos.google.cloud.dialogflow.cx.v3beta1.IDeleteFlowRequest, - options?: gax.CallOptions + request: protos.google.cloud.dialogflow.cx.v3.IDeleteFlowRequest, + options?: CallOptions ): Promise< [ protos.google.protobuf.IEmpty, - protos.google.cloud.dialogflow.cx.v3beta1.IDeleteFlowRequest | undefined, + protos.google.cloud.dialogflow.cx.v3.IDeleteFlowRequest | undefined, {} | undefined ] >; deleteFlow( - request: protos.google.cloud.dialogflow.cx.v3beta1.IDeleteFlowRequest, - options: gax.CallOptions, + request: protos.google.cloud.dialogflow.cx.v3.IDeleteFlowRequest, + options: CallOptions, callback: Callback< protos.google.protobuf.IEmpty, - | protos.google.cloud.dialogflow.cx.v3beta1.IDeleteFlowRequest + | protos.google.cloud.dialogflow.cx.v3.IDeleteFlowRequest | null | undefined, {} | null | undefined > ): void; deleteFlow( - request: protos.google.cloud.dialogflow.cx.v3beta1.IDeleteFlowRequest, + request: protos.google.cloud.dialogflow.cx.v3.IDeleteFlowRequest, callback: Callback< protos.google.protobuf.IEmpty, - | protos.google.cloud.dialogflow.cx.v3beta1.IDeleteFlowRequest + | protos.google.cloud.dialogflow.cx.v3.IDeleteFlowRequest | null | undefined, {} | null | undefined @@ -550,19 +561,19 @@ export class FlowsClient { * const [response] = await client.deleteFlow(request); */ deleteFlow( - request: protos.google.cloud.dialogflow.cx.v3beta1.IDeleteFlowRequest, + request: protos.google.cloud.dialogflow.cx.v3.IDeleteFlowRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.protobuf.IEmpty, - | protos.google.cloud.dialogflow.cx.v3beta1.IDeleteFlowRequest + | protos.google.cloud.dialogflow.cx.v3.IDeleteFlowRequest | null | undefined, {} | null | undefined >, callback?: Callback< protos.google.protobuf.IEmpty, - | protos.google.cloud.dialogflow.cx.v3beta1.IDeleteFlowRequest + | protos.google.cloud.dialogflow.cx.v3.IDeleteFlowRequest | null | undefined, {} | null | undefined @@ -570,17 +581,17 @@ export class FlowsClient { ): Promise< [ protos.google.protobuf.IEmpty, - protos.google.cloud.dialogflow.cx.v3beta1.IDeleteFlowRequest | undefined, + protos.google.cloud.dialogflow.cx.v3.IDeleteFlowRequest | undefined, {} | undefined ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -594,33 +605,29 @@ export class FlowsClient { return this.innerApiCalls.deleteFlow(request, options, callback); } getFlow( - request: protos.google.cloud.dialogflow.cx.v3beta1.IGetFlowRequest, - options?: gax.CallOptions + request: protos.google.cloud.dialogflow.cx.v3.IGetFlowRequest, + options?: CallOptions ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.IFlow, - protos.google.cloud.dialogflow.cx.v3beta1.IGetFlowRequest | undefined, + protos.google.cloud.dialogflow.cx.v3.IFlow, + protos.google.cloud.dialogflow.cx.v3.IGetFlowRequest | undefined, {} | undefined ] >; getFlow( - request: protos.google.cloud.dialogflow.cx.v3beta1.IGetFlowRequest, - options: gax.CallOptions, + request: protos.google.cloud.dialogflow.cx.v3.IGetFlowRequest, + options: CallOptions, callback: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IFlow, - | protos.google.cloud.dialogflow.cx.v3beta1.IGetFlowRequest - | null - | undefined, + protos.google.cloud.dialogflow.cx.v3.IFlow, + protos.google.cloud.dialogflow.cx.v3.IGetFlowRequest | null | undefined, {} | null | undefined > ): void; getFlow( - request: protos.google.cloud.dialogflow.cx.v3beta1.IGetFlowRequest, + request: protos.google.cloud.dialogflow.cx.v3.IGetFlowRequest, callback: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IFlow, - | protos.google.cloud.dialogflow.cx.v3beta1.IGetFlowRequest - | null - | undefined, + protos.google.cloud.dialogflow.cx.v3.IFlow, + protos.google.cloud.dialogflow.cx.v3.IGetFlowRequest | null | undefined, {} | null | undefined > ): void; @@ -648,7 +655,7 @@ export class FlowsClient { * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Flow]{@link google.cloud.dialogflow.cx.v3beta1.Flow}. + * The first element of the array is an object representing [Flow]{@link google.cloud.dialogflow.cx.v3.Flow}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. @@ -656,37 +663,35 @@ export class FlowsClient { * const [response] = await client.getFlow(request); */ getFlow( - request: protos.google.cloud.dialogflow.cx.v3beta1.IGetFlowRequest, + request: protos.google.cloud.dialogflow.cx.v3.IGetFlowRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IFlow, - | protos.google.cloud.dialogflow.cx.v3beta1.IGetFlowRequest + protos.google.cloud.dialogflow.cx.v3.IFlow, + | protos.google.cloud.dialogflow.cx.v3.IGetFlowRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IFlow, - | protos.google.cloud.dialogflow.cx.v3beta1.IGetFlowRequest - | null - | undefined, + protos.google.cloud.dialogflow.cx.v3.IFlow, + protos.google.cloud.dialogflow.cx.v3.IGetFlowRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.IFlow, - protos.google.cloud.dialogflow.cx.v3beta1.IGetFlowRequest | undefined, + protos.google.cloud.dialogflow.cx.v3.IFlow, + protos.google.cloud.dialogflow.cx.v3.IGetFlowRequest | undefined, {} | undefined ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -700,31 +705,31 @@ export class FlowsClient { return this.innerApiCalls.getFlow(request, options, callback); } updateFlow( - request: protos.google.cloud.dialogflow.cx.v3beta1.IUpdateFlowRequest, - options?: gax.CallOptions + request: protos.google.cloud.dialogflow.cx.v3.IUpdateFlowRequest, + options?: CallOptions ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.IFlow, - protos.google.cloud.dialogflow.cx.v3beta1.IUpdateFlowRequest | undefined, + protos.google.cloud.dialogflow.cx.v3.IFlow, + protos.google.cloud.dialogflow.cx.v3.IUpdateFlowRequest | undefined, {} | undefined ] >; updateFlow( - request: protos.google.cloud.dialogflow.cx.v3beta1.IUpdateFlowRequest, - options: gax.CallOptions, + request: protos.google.cloud.dialogflow.cx.v3.IUpdateFlowRequest, + options: CallOptions, callback: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IFlow, - | protos.google.cloud.dialogflow.cx.v3beta1.IUpdateFlowRequest + protos.google.cloud.dialogflow.cx.v3.IFlow, + | protos.google.cloud.dialogflow.cx.v3.IUpdateFlowRequest | null | undefined, {} | null | undefined > ): void; updateFlow( - request: protos.google.cloud.dialogflow.cx.v3beta1.IUpdateFlowRequest, + request: protos.google.cloud.dialogflow.cx.v3.IUpdateFlowRequest, callback: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IFlow, - | protos.google.cloud.dialogflow.cx.v3beta1.IUpdateFlowRequest + protos.google.cloud.dialogflow.cx.v3.IFlow, + | protos.google.cloud.dialogflow.cx.v3.IUpdateFlowRequest | null | undefined, {} | null | undefined @@ -735,7 +740,7 @@ export class FlowsClient { * * @param {Object} request * The request object that will be sent. - * @param {google.cloud.dialogflow.cx.v3beta1.Flow} request.flow + * @param {google.cloud.dialogflow.cx.v3.Flow} request.flow * Required. The flow to update. * @param {google.protobuf.FieldMask} request.updateMask * Required. The mask to control which fields get updated. If `update_mask` is not @@ -754,7 +759,7 @@ export class FlowsClient { * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Flow]{@link google.cloud.dialogflow.cx.v3beta1.Flow}. + * The first element of the array is an object representing [Flow]{@link google.cloud.dialogflow.cx.v3.Flow}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. @@ -762,37 +767,37 @@ export class FlowsClient { * const [response] = await client.updateFlow(request); */ updateFlow( - request: protos.google.cloud.dialogflow.cx.v3beta1.IUpdateFlowRequest, + request: protos.google.cloud.dialogflow.cx.v3.IUpdateFlowRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IFlow, - | protos.google.cloud.dialogflow.cx.v3beta1.IUpdateFlowRequest + protos.google.cloud.dialogflow.cx.v3.IFlow, + | protos.google.cloud.dialogflow.cx.v3.IUpdateFlowRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IFlow, - | protos.google.cloud.dialogflow.cx.v3beta1.IUpdateFlowRequest + protos.google.cloud.dialogflow.cx.v3.IFlow, + | protos.google.cloud.dialogflow.cx.v3.IUpdateFlowRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.IFlow, - protos.google.cloud.dialogflow.cx.v3beta1.IUpdateFlowRequest | undefined, + protos.google.cloud.dialogflow.cx.v3.IFlow, + protos.google.cloud.dialogflow.cx.v3.IUpdateFlowRequest | undefined, {} | undefined ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -807,8 +812,8 @@ export class FlowsClient { } trainFlow( - request: protos.google.cloud.dialogflow.cx.v3beta1.ITrainFlowRequest, - options?: gax.CallOptions + request: protos.google.cloud.dialogflow.cx.v3.ITrainFlowRequest, + options?: CallOptions ): Promise< [ LROperation< @@ -820,8 +825,8 @@ export class FlowsClient { ] >; trainFlow( - request: protos.google.cloud.dialogflow.cx.v3beta1.ITrainFlowRequest, - options: gax.CallOptions, + request: protos.google.cloud.dialogflow.cx.v3.ITrainFlowRequest, + options: CallOptions, callback: Callback< LROperation< protos.google.protobuf.IEmpty, @@ -832,7 +837,7 @@ export class FlowsClient { > ): void; trainFlow( - request: protos.google.cloud.dialogflow.cx.v3beta1.ITrainFlowRequest, + request: protos.google.cloud.dialogflow.cx.v3.ITrainFlowRequest, callback: Callback< LROperation< protos.google.protobuf.IEmpty, @@ -866,9 +871,9 @@ export class FlowsClient { * const [response] = await operation.promise(); */ trainFlow( - request: protos.google.cloud.dialogflow.cx.v3beta1.ITrainFlowRequest, + request: protos.google.cloud.dialogflow.cx.v3.ITrainFlowRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< LROperation< protos.google.protobuf.IEmpty, @@ -896,12 +901,12 @@ export class FlowsClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -949,34 +954,34 @@ export class FlowsClient { >; } listFlows( - request: protos.google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest, - options?: gax.CallOptions + request: protos.google.cloud.dialogflow.cx.v3.IListFlowsRequest, + options?: CallOptions ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.IFlow[], - protos.google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest | null, - protos.google.cloud.dialogflow.cx.v3beta1.IListFlowsResponse + protos.google.cloud.dialogflow.cx.v3.IFlow[], + protos.google.cloud.dialogflow.cx.v3.IListFlowsRequest | null, + protos.google.cloud.dialogflow.cx.v3.IListFlowsResponse ] >; listFlows( - request: protos.google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest, - options: gax.CallOptions, + request: protos.google.cloud.dialogflow.cx.v3.IListFlowsRequest, + options: CallOptions, callback: PaginationCallback< - protos.google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest, - | protos.google.cloud.dialogflow.cx.v3beta1.IListFlowsResponse + protos.google.cloud.dialogflow.cx.v3.IListFlowsRequest, + | protos.google.cloud.dialogflow.cx.v3.IListFlowsResponse | null | undefined, - protos.google.cloud.dialogflow.cx.v3beta1.IFlow + protos.google.cloud.dialogflow.cx.v3.IFlow > ): void; listFlows( - request: protos.google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest, + request: protos.google.cloud.dialogflow.cx.v3.IListFlowsRequest, callback: PaginationCallback< - protos.google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest, - | protos.google.cloud.dialogflow.cx.v3beta1.IListFlowsResponse + protos.google.cloud.dialogflow.cx.v3.IListFlowsRequest, + | protos.google.cloud.dialogflow.cx.v3.IListFlowsResponse | null | undefined, - protos.google.cloud.dialogflow.cx.v3beta1.IFlow + protos.google.cloud.dialogflow.cx.v3.IFlow > ): void; /** @@ -1007,7 +1012,7 @@ export class FlowsClient { * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of [Flow]{@link google.cloud.dialogflow.cx.v3beta1.Flow}. + * The first element of the array is Array of [Flow]{@link google.cloud.dialogflow.cx.v3.Flow}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. @@ -1018,37 +1023,37 @@ export class FlowsClient { * for more details and examples. */ listFlows( - request: protos.google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest, + request: protos.google.cloud.dialogflow.cx.v3.IListFlowsRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | PaginationCallback< - protos.google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest, - | protos.google.cloud.dialogflow.cx.v3beta1.IListFlowsResponse + protos.google.cloud.dialogflow.cx.v3.IListFlowsRequest, + | protos.google.cloud.dialogflow.cx.v3.IListFlowsResponse | null | undefined, - protos.google.cloud.dialogflow.cx.v3beta1.IFlow + protos.google.cloud.dialogflow.cx.v3.IFlow >, callback?: PaginationCallback< - protos.google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest, - | protos.google.cloud.dialogflow.cx.v3beta1.IListFlowsResponse + protos.google.cloud.dialogflow.cx.v3.IListFlowsRequest, + | protos.google.cloud.dialogflow.cx.v3.IListFlowsResponse | null | undefined, - protos.google.cloud.dialogflow.cx.v3beta1.IFlow + protos.google.cloud.dialogflow.cx.v3.IFlow > ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.IFlow[], - protos.google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest | null, - protos.google.cloud.dialogflow.cx.v3beta1.IListFlowsResponse + protos.google.cloud.dialogflow.cx.v3.IFlow[], + protos.google.cloud.dialogflow.cx.v3.IListFlowsRequest | null, + protos.google.cloud.dialogflow.cx.v3.IListFlowsResponse ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1089,7 +1094,7 @@ export class FlowsClient { * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing [Flow]{@link google.cloud.dialogflow.cx.v3beta1.Flow} on 'data' event. + * An object stream which emits an object representing [Flow]{@link google.cloud.dialogflow.cx.v3.Flow} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. * We recommend using `listFlowsAsync()` @@ -1099,8 +1104,8 @@ export class FlowsClient { * for more details and examples. */ listFlowsStream( - request?: protos.google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest, - options?: gax.CallOptions + request?: protos.google.cloud.dialogflow.cx.v3.IListFlowsRequest, + options?: CallOptions ): Transform { request = request || {}; options = options || {}; @@ -1151,7 +1156,7 @@ export class FlowsClient { * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * [Flow]{@link google.cloud.dialogflow.cx.v3beta1.Flow}. The API will be called under the hood as needed, once per the page, + * [Flow]{@link google.cloud.dialogflow.cx.v3.Flow}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) @@ -1163,9 +1168,9 @@ export class FlowsClient { * } */ listFlowsAsync( - request?: protos.google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest, - options?: gax.CallOptions - ): AsyncIterable { + request?: protos.google.cloud.dialogflow.cx.v3.IListFlowsRequest, + options?: CallOptions + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1182,7 +1187,7 @@ export class FlowsClient { this.innerApiCalls['listFlows'] as GaxCall, (request as unknown) as RequestType, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } // -------------------- // -- Path templates -- @@ -1867,6 +1872,65 @@ export class FlowsClient { ).entity_type; } + /** + * Return a fully-qualified securitySettings resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} security_settings + * @returns {string} Resource name string. + */ + securitySettingsPath( + project: string, + location: string, + securitySettings: string + ) { + return this.pathTemplates.securitySettingsPathTemplate.render({ + project: project, + location: location, + security_settings: securitySettings, + }); + } + + /** + * Parse the project from SecuritySettings resource. + * + * @param {string} securitySettingsName + * A fully-qualified path representing SecuritySettings resource. + * @returns {string} A string representing the project. + */ + matchProjectFromSecuritySettingsName(securitySettingsName: string) { + return this.pathTemplates.securitySettingsPathTemplate.match( + securitySettingsName + ).project; + } + + /** + * Parse the location from SecuritySettings resource. + * + * @param {string} securitySettingsName + * A fully-qualified path representing SecuritySettings resource. + * @returns {string} A string representing the location. + */ + matchLocationFromSecuritySettingsName(securitySettingsName: string) { + return this.pathTemplates.securitySettingsPathTemplate.match( + securitySettingsName + ).location; + } + + /** + * Parse the security_settings from SecuritySettings resource. + * + * @param {string} securitySettingsName + * A fully-qualified path representing SecuritySettings resource. + * @returns {string} A string representing the security_settings. + */ + matchSecuritySettingsFromSecuritySettingsName(securitySettingsName: string) { + return this.pathTemplates.securitySettingsPathTemplate.match( + securitySettingsName + ).security_settings; + } + /** * Return a fully-qualified transitionRouteGroup resource name string. * diff --git a/src/v3beta1/flows_client_config.json b/src/v3/flows_client_config.json similarity index 96% rename from src/v3beta1/flows_client_config.json rename to src/v3/flows_client_config.json index 3e7e8d33..a8677417 100644 --- a/src/v3beta1/flows_client_config.json +++ b/src/v3/flows_client_config.json @@ -1,6 +1,6 @@ { "interfaces": { - "google.cloud.dialogflow.cx.v3beta1.Flows": { + "google.cloud.dialogflow.cx.v3.Flows": { "retry_codes": { "non_idempotent": [], "idempotent": [ diff --git a/src/v3/flows_proto_list.json b/src/v3/flows_proto_list.json new file mode 100644 index 00000000..622b657f --- /dev/null +++ b/src/v3/flows_proto_list.json @@ -0,0 +1,17 @@ +[ + "../../protos/google/cloud/dialogflow/cx/v3/agent.proto", + "../../protos/google/cloud/dialogflow/cx/v3/audio_config.proto", + "../../protos/google/cloud/dialogflow/cx/v3/entity_type.proto", + "../../protos/google/cloud/dialogflow/cx/v3/environment.proto", + "../../protos/google/cloud/dialogflow/cx/v3/flow.proto", + "../../protos/google/cloud/dialogflow/cx/v3/fulfillment.proto", + "../../protos/google/cloud/dialogflow/cx/v3/intent.proto", + "../../protos/google/cloud/dialogflow/cx/v3/page.proto", + "../../protos/google/cloud/dialogflow/cx/v3/response_message.proto", + "../../protos/google/cloud/dialogflow/cx/v3/security_settings.proto", + "../../protos/google/cloud/dialogflow/cx/v3/session.proto", + "../../protos/google/cloud/dialogflow/cx/v3/session_entity_type.proto", + "../../protos/google/cloud/dialogflow/cx/v3/transition_route_group.proto", + "../../protos/google/cloud/dialogflow/cx/v3/version.proto", + "../../protos/google/cloud/dialogflow/cx/v3/webhook.proto" +] diff --git a/src/v3beta1/index.ts b/src/v3/index.ts similarity index 94% rename from src/v3beta1/index.ts rename to src/v3/index.ts index c89332f2..4290247b 100644 --- a/src/v3beta1/index.ts +++ b/src/v3/index.ts @@ -22,6 +22,7 @@ export {EnvironmentsClient} from './environments_client'; export {FlowsClient} from './flows_client'; export {IntentsClient} from './intents_client'; export {PagesClient} from './pages_client'; +export {SecuritySettingsServiceClient} from './security_settings_service_client'; export {SessionEntityTypesClient} from './session_entity_types_client'; export {SessionsClient} from './sessions_client'; export {TransitionRouteGroupsClient} from './transition_route_groups_client'; diff --git a/src/v3beta1/intents_client.ts b/src/v3/intents_client.ts similarity index 85% rename from src/v3beta1/intents_client.ts rename to src/v3/intents_client.ts index d777ccbe..0a1598d6 100644 --- a/src/v3beta1/intents_client.ts +++ b/src/v3/intents_client.ts @@ -16,6 +16,7 @@ // ** https://github.com/googleapis/gapic-generator-typescript ** // ** All changes to this file may be overwritten. ** +/* global window */ import * as gax from 'google-gax'; import { Callback, @@ -30,14 +31,19 @@ import * as path from 'path'; import {Transform} from 'stream'; import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; +/** + * Client JSON configuration object, loaded from + * `src/v3/intents_client_config.json`. + * This file defines retry strategy and timeouts for all API methods in this library. + */ import * as gapicConfig from './intents_client_config.json'; const version = require('../../../package.json').version; /** - * Service for managing {@link google.cloud.dialogflow.cx.v3beta1.Intent|Intents}. + * Service for managing {@link google.cloud.dialogflow.cx.v3.Intent|Intents}. * @class - * @memberof v3beta1 + * @memberof v3 */ export class IntentsClient { private _terminated = false; @@ -83,9 +89,9 @@ export class IntentsClient { * your project ID will be detected automatically. * @param {string} [options.apiEndpoint] - The domain name of the * API remote host. - * @param {gax.ClientConfig} [options.clientConfig] - client configuration override. - * TODO(@alexander-fenster): link to gax documentation. - * @param {boolean} fallback - Use HTTP fallback mode. + * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. + * Follows the structure of {@link gapicConfig}. + * @param {boolean} [options.fallback] - Use HTTP fallback mode. * In fallback mode, a special browser-compatible transport implementation is used * instead of gRPC transport. In browser context (if the `window` object is defined) * the fallback mode is enabled automatically; set `options.fallback` to `false` @@ -98,7 +104,9 @@ export class IntentsClient { opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; - const fallback = opts?.fallback ?? typeof window !== 'undefined'; + const fallback = + opts?.fallback ?? + (typeof window !== 'undefined' && typeof window?.fetch === 'function'); opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. @@ -188,6 +196,9 @@ export class IntentsClient { projectLocationAgentSessionEntityTypePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/agents/{agent}/sessions/{session}/entityTypes/{entity_type}' ), + securitySettingsPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/securitySettings/{security_settings}' + ), transitionRouteGroupPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/agents/{agent}/flows/{flow}/transitionRouteGroups/{transition_route_group}' ), @@ -212,7 +223,7 @@ export class IntentsClient { // Put together the default options sent with requests. this._defaults = this._gaxGrpc.constructSettings( - 'google.cloud.dialogflow.cx.v3beta1.Intents', + 'google.cloud.dialogflow.cx.v3.Intents', gapicConfig as gax.ClientConfig, opts.clientConfig || {}, {'x-goog-api-client': clientHeader.join(' ')} @@ -242,14 +253,14 @@ export class IntentsClient { } // Put together the "service stub" for - // google.cloud.dialogflow.cx.v3beta1.Intents. + // google.cloud.dialogflow.cx.v3.Intents. this.intentsStub = this._gaxGrpc.createStub( this._opts.fallback ? (this._protos as protobuf.Root).lookupService( - 'google.cloud.dialogflow.cx.v3beta1.Intents' + 'google.cloud.dialogflow.cx.v3.Intents' ) : // eslint-disable-next-line @typescript-eslint/no-explicit-any - (this._protos as any).google.cloud.dialogflow.cx.v3beta1.Intents, + (this._protos as any).google.cloud.dialogflow.cx.v3.Intents, this._opts ) as Promise<{[method: string]: Function}>; @@ -346,33 +357,29 @@ export class IntentsClient { // -- Service calls -- // ------------------- getIntent( - request: protos.google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest, - options?: gax.CallOptions + request: protos.google.cloud.dialogflow.cx.v3.IGetIntentRequest, + options?: CallOptions ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.IIntent, - protos.google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest | undefined, + protos.google.cloud.dialogflow.cx.v3.IIntent, + protos.google.cloud.dialogflow.cx.v3.IGetIntentRequest | undefined, {} | undefined ] >; getIntent( - request: protos.google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest, - options: gax.CallOptions, + request: protos.google.cloud.dialogflow.cx.v3.IGetIntentRequest, + options: CallOptions, callback: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IIntent, - | protos.google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest - | null - | undefined, + protos.google.cloud.dialogflow.cx.v3.IIntent, + protos.google.cloud.dialogflow.cx.v3.IGetIntentRequest | null | undefined, {} | null | undefined > ): void; getIntent( - request: protos.google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest, + request: protos.google.cloud.dialogflow.cx.v3.IGetIntentRequest, callback: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IIntent, - | protos.google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest - | null - | undefined, + protos.google.cloud.dialogflow.cx.v3.IIntent, + protos.google.cloud.dialogflow.cx.v3.IGetIntentRequest | null | undefined, {} | null | undefined > ): void; @@ -399,7 +406,7 @@ export class IntentsClient { * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Intent]{@link google.cloud.dialogflow.cx.v3beta1.Intent}. + * The first element of the array is an object representing [Intent]{@link google.cloud.dialogflow.cx.v3.Intent}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. @@ -407,37 +414,35 @@ export class IntentsClient { * const [response] = await client.getIntent(request); */ getIntent( - request: protos.google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest, + request: protos.google.cloud.dialogflow.cx.v3.IGetIntentRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IIntent, - | protos.google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest + protos.google.cloud.dialogflow.cx.v3.IIntent, + | protos.google.cloud.dialogflow.cx.v3.IGetIntentRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IIntent, - | protos.google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest - | null - | undefined, + protos.google.cloud.dialogflow.cx.v3.IIntent, + protos.google.cloud.dialogflow.cx.v3.IGetIntentRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.IIntent, - protos.google.cloud.dialogflow.cx.v3beta1.IGetIntentRequest | undefined, + protos.google.cloud.dialogflow.cx.v3.IIntent, + protos.google.cloud.dialogflow.cx.v3.IGetIntentRequest | undefined, {} | undefined ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -451,34 +456,31 @@ export class IntentsClient { return this.innerApiCalls.getIntent(request, options, callback); } createIntent( - request: protos.google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest, - options?: gax.CallOptions + request: protos.google.cloud.dialogflow.cx.v3.ICreateIntentRequest, + options?: CallOptions ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.IIntent, - ( - | protos.google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest - | undefined - ), + protos.google.cloud.dialogflow.cx.v3.IIntent, + protos.google.cloud.dialogflow.cx.v3.ICreateIntentRequest | undefined, {} | undefined ] >; createIntent( - request: protos.google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest, - options: gax.CallOptions, + request: protos.google.cloud.dialogflow.cx.v3.ICreateIntentRequest, + options: CallOptions, callback: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IIntent, - | protos.google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest + protos.google.cloud.dialogflow.cx.v3.IIntent, + | protos.google.cloud.dialogflow.cx.v3.ICreateIntentRequest | null | undefined, {} | null | undefined > ): void; createIntent( - request: protos.google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest, + request: protos.google.cloud.dialogflow.cx.v3.ICreateIntentRequest, callback: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IIntent, - | protos.google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest + protos.google.cloud.dialogflow.cx.v3.IIntent, + | protos.google.cloud.dialogflow.cx.v3.ICreateIntentRequest | null | undefined, {} | null | undefined @@ -492,7 +494,7 @@ export class IntentsClient { * @param {string} request.parent * Required. The agent to create an intent for. * Format: `projects//locations//agents/`. - * @param {google.cloud.dialogflow.cx.v3beta1.Intent} request.intent + * @param {google.cloud.dialogflow.cx.v3.Intent} request.intent * Required. The intent to create. * @param {string} request.languageCode * The language of the following fields in `intent`: @@ -507,7 +509,7 @@ export class IntentsClient { * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Intent]{@link google.cloud.dialogflow.cx.v3beta1.Intent}. + * The first element of the array is an object representing [Intent]{@link google.cloud.dialogflow.cx.v3.Intent}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. @@ -515,40 +517,37 @@ export class IntentsClient { * const [response] = await client.createIntent(request); */ createIntent( - request: protos.google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest, + request: protos.google.cloud.dialogflow.cx.v3.ICreateIntentRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IIntent, - | protos.google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest + protos.google.cloud.dialogflow.cx.v3.IIntent, + | protos.google.cloud.dialogflow.cx.v3.ICreateIntentRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IIntent, - | protos.google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest + protos.google.cloud.dialogflow.cx.v3.IIntent, + | protos.google.cloud.dialogflow.cx.v3.ICreateIntentRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.IIntent, - ( - | protos.google.cloud.dialogflow.cx.v3beta1.ICreateIntentRequest - | undefined - ), + protos.google.cloud.dialogflow.cx.v3.IIntent, + protos.google.cloud.dialogflow.cx.v3.ICreateIntentRequest | undefined, {} | undefined ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -562,34 +561,31 @@ export class IntentsClient { return this.innerApiCalls.createIntent(request, options, callback); } updateIntent( - request: protos.google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest, - options?: gax.CallOptions + request: protos.google.cloud.dialogflow.cx.v3.IUpdateIntentRequest, + options?: CallOptions ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.IIntent, - ( - | protos.google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest - | undefined - ), + protos.google.cloud.dialogflow.cx.v3.IIntent, + protos.google.cloud.dialogflow.cx.v3.IUpdateIntentRequest | undefined, {} | undefined ] >; updateIntent( - request: protos.google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest, - options: gax.CallOptions, + request: protos.google.cloud.dialogflow.cx.v3.IUpdateIntentRequest, + options: CallOptions, callback: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IIntent, - | protos.google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest + protos.google.cloud.dialogflow.cx.v3.IIntent, + | protos.google.cloud.dialogflow.cx.v3.IUpdateIntentRequest | null | undefined, {} | null | undefined > ): void; updateIntent( - request: protos.google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest, + request: protos.google.cloud.dialogflow.cx.v3.IUpdateIntentRequest, callback: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IIntent, - | protos.google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest + protos.google.cloud.dialogflow.cx.v3.IIntent, + | protos.google.cloud.dialogflow.cx.v3.IUpdateIntentRequest | null | undefined, {} | null | undefined @@ -600,7 +596,7 @@ export class IntentsClient { * * @param {Object} request * The request object that will be sent. - * @param {google.cloud.dialogflow.cx.v3beta1.Intent} request.intent + * @param {google.cloud.dialogflow.cx.v3.Intent} request.intent * Required. The intent to update. * @param {string} request.languageCode * The language of the following fields in `intent`: @@ -618,7 +614,7 @@ export class IntentsClient { * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Intent]{@link google.cloud.dialogflow.cx.v3beta1.Intent}. + * The first element of the array is an object representing [Intent]{@link google.cloud.dialogflow.cx.v3.Intent}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. @@ -626,40 +622,37 @@ export class IntentsClient { * const [response] = await client.updateIntent(request); */ updateIntent( - request: protos.google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest, + request: protos.google.cloud.dialogflow.cx.v3.IUpdateIntentRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IIntent, - | protos.google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest + protos.google.cloud.dialogflow.cx.v3.IIntent, + | protos.google.cloud.dialogflow.cx.v3.IUpdateIntentRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IIntent, - | protos.google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest + protos.google.cloud.dialogflow.cx.v3.IIntent, + | protos.google.cloud.dialogflow.cx.v3.IUpdateIntentRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.IIntent, - ( - | protos.google.cloud.dialogflow.cx.v3beta1.IUpdateIntentRequest - | undefined - ), + protos.google.cloud.dialogflow.cx.v3.IIntent, + protos.google.cloud.dialogflow.cx.v3.IUpdateIntentRequest | undefined, {} | undefined ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -673,34 +666,31 @@ export class IntentsClient { return this.innerApiCalls.updateIntent(request, options, callback); } deleteIntent( - request: protos.google.cloud.dialogflow.cx.v3beta1.IDeleteIntentRequest, - options?: gax.CallOptions + request: protos.google.cloud.dialogflow.cx.v3.IDeleteIntentRequest, + options?: CallOptions ): Promise< [ protos.google.protobuf.IEmpty, - ( - | protos.google.cloud.dialogflow.cx.v3beta1.IDeleteIntentRequest - | undefined - ), + protos.google.cloud.dialogflow.cx.v3.IDeleteIntentRequest | undefined, {} | undefined ] >; deleteIntent( - request: protos.google.cloud.dialogflow.cx.v3beta1.IDeleteIntentRequest, - options: gax.CallOptions, + request: protos.google.cloud.dialogflow.cx.v3.IDeleteIntentRequest, + options: CallOptions, callback: Callback< protos.google.protobuf.IEmpty, - | protos.google.cloud.dialogflow.cx.v3beta1.IDeleteIntentRequest + | protos.google.cloud.dialogflow.cx.v3.IDeleteIntentRequest | null | undefined, {} | null | undefined > ): void; deleteIntent( - request: protos.google.cloud.dialogflow.cx.v3beta1.IDeleteIntentRequest, + request: protos.google.cloud.dialogflow.cx.v3.IDeleteIntentRequest, callback: Callback< protos.google.protobuf.IEmpty, - | protos.google.cloud.dialogflow.cx.v3beta1.IDeleteIntentRequest + | protos.google.cloud.dialogflow.cx.v3.IDeleteIntentRequest | null | undefined, {} | null | undefined @@ -726,19 +716,19 @@ export class IntentsClient { * const [response] = await client.deleteIntent(request); */ deleteIntent( - request: protos.google.cloud.dialogflow.cx.v3beta1.IDeleteIntentRequest, + request: protos.google.cloud.dialogflow.cx.v3.IDeleteIntentRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.protobuf.IEmpty, - | protos.google.cloud.dialogflow.cx.v3beta1.IDeleteIntentRequest + | protos.google.cloud.dialogflow.cx.v3.IDeleteIntentRequest | null | undefined, {} | null | undefined >, callback?: Callback< protos.google.protobuf.IEmpty, - | protos.google.cloud.dialogflow.cx.v3beta1.IDeleteIntentRequest + | protos.google.cloud.dialogflow.cx.v3.IDeleteIntentRequest | null | undefined, {} | null | undefined @@ -746,20 +736,17 @@ export class IntentsClient { ): Promise< [ protos.google.protobuf.IEmpty, - ( - | protos.google.cloud.dialogflow.cx.v3beta1.IDeleteIntentRequest - | undefined - ), + protos.google.cloud.dialogflow.cx.v3.IDeleteIntentRequest | undefined, {} | undefined ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -774,34 +761,34 @@ export class IntentsClient { } listIntents( - request: protos.google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest, - options?: gax.CallOptions + request: protos.google.cloud.dialogflow.cx.v3.IListIntentsRequest, + options?: CallOptions ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.IIntent[], - protos.google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest | null, - protos.google.cloud.dialogflow.cx.v3beta1.IListIntentsResponse + protos.google.cloud.dialogflow.cx.v3.IIntent[], + protos.google.cloud.dialogflow.cx.v3.IListIntentsRequest | null, + protos.google.cloud.dialogflow.cx.v3.IListIntentsResponse ] >; listIntents( - request: protos.google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest, - options: gax.CallOptions, + request: protos.google.cloud.dialogflow.cx.v3.IListIntentsRequest, + options: CallOptions, callback: PaginationCallback< - protos.google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest, - | protos.google.cloud.dialogflow.cx.v3beta1.IListIntentsResponse + protos.google.cloud.dialogflow.cx.v3.IListIntentsRequest, + | protos.google.cloud.dialogflow.cx.v3.IListIntentsResponse | null | undefined, - protos.google.cloud.dialogflow.cx.v3beta1.IIntent + protos.google.cloud.dialogflow.cx.v3.IIntent > ): void; listIntents( - request: protos.google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest, + request: protos.google.cloud.dialogflow.cx.v3.IListIntentsRequest, callback: PaginationCallback< - protos.google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest, - | protos.google.cloud.dialogflow.cx.v3beta1.IListIntentsResponse + protos.google.cloud.dialogflow.cx.v3.IListIntentsRequest, + | protos.google.cloud.dialogflow.cx.v3.IListIntentsResponse | null | undefined, - protos.google.cloud.dialogflow.cx.v3beta1.IIntent + protos.google.cloud.dialogflow.cx.v3.IIntent > ): void; /** @@ -823,7 +810,7 @@ export class IntentsClient { * languages](https://cloud.google.com/dialogflow/docs/reference/language) * are supported. * Note: languages must be enabled in the agent before they can be used. - * @param {google.cloud.dialogflow.cx.v3beta1.IntentView} request.intentView + * @param {google.cloud.dialogflow.cx.v3.IntentView} request.intentView * The resource view to apply to the returned intent. * @param {number} request.pageSize * The maximum number of items to return in a single page. By default 100 and @@ -833,7 +820,7 @@ export class IntentsClient { * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of [Intent]{@link google.cloud.dialogflow.cx.v3beta1.Intent}. + * The first element of the array is Array of [Intent]{@link google.cloud.dialogflow.cx.v3.Intent}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. @@ -844,37 +831,37 @@ export class IntentsClient { * for more details and examples. */ listIntents( - request: protos.google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest, + request: protos.google.cloud.dialogflow.cx.v3.IListIntentsRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | PaginationCallback< - protos.google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest, - | protos.google.cloud.dialogflow.cx.v3beta1.IListIntentsResponse + protos.google.cloud.dialogflow.cx.v3.IListIntentsRequest, + | protos.google.cloud.dialogflow.cx.v3.IListIntentsResponse | null | undefined, - protos.google.cloud.dialogflow.cx.v3beta1.IIntent + protos.google.cloud.dialogflow.cx.v3.IIntent >, callback?: PaginationCallback< - protos.google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest, - | protos.google.cloud.dialogflow.cx.v3beta1.IListIntentsResponse + protos.google.cloud.dialogflow.cx.v3.IListIntentsRequest, + | protos.google.cloud.dialogflow.cx.v3.IListIntentsResponse | null | undefined, - protos.google.cloud.dialogflow.cx.v3beta1.IIntent + protos.google.cloud.dialogflow.cx.v3.IIntent > ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.IIntent[], - protos.google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest | null, - protos.google.cloud.dialogflow.cx.v3beta1.IListIntentsResponse + protos.google.cloud.dialogflow.cx.v3.IIntent[], + protos.google.cloud.dialogflow.cx.v3.IListIntentsRequest | null, + protos.google.cloud.dialogflow.cx.v3.IListIntentsResponse ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -906,7 +893,7 @@ export class IntentsClient { * languages](https://cloud.google.com/dialogflow/docs/reference/language) * are supported. * Note: languages must be enabled in the agent before they can be used. - * @param {google.cloud.dialogflow.cx.v3beta1.IntentView} request.intentView + * @param {google.cloud.dialogflow.cx.v3.IntentView} request.intentView * The resource view to apply to the returned intent. * @param {number} request.pageSize * The maximum number of items to return in a single page. By default 100 and @@ -916,7 +903,7 @@ export class IntentsClient { * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing [Intent]{@link google.cloud.dialogflow.cx.v3beta1.Intent} on 'data' event. + * An object stream which emits an object representing [Intent]{@link google.cloud.dialogflow.cx.v3.Intent} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. * We recommend using `listIntentsAsync()` @@ -926,8 +913,8 @@ export class IntentsClient { * for more details and examples. */ listIntentsStream( - request?: protos.google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest, - options?: gax.CallOptions + request?: protos.google.cloud.dialogflow.cx.v3.IListIntentsRequest, + options?: CallOptions ): Transform { request = request || {}; options = options || {}; @@ -967,7 +954,7 @@ export class IntentsClient { * languages](https://cloud.google.com/dialogflow/docs/reference/language) * are supported. * Note: languages must be enabled in the agent before they can be used. - * @param {google.cloud.dialogflow.cx.v3beta1.IntentView} request.intentView + * @param {google.cloud.dialogflow.cx.v3.IntentView} request.intentView * The resource view to apply to the returned intent. * @param {number} request.pageSize * The maximum number of items to return in a single page. By default 100 and @@ -979,7 +966,7 @@ export class IntentsClient { * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * [Intent]{@link google.cloud.dialogflow.cx.v3beta1.Intent}. The API will be called under the hood as needed, once per the page, + * [Intent]{@link google.cloud.dialogflow.cx.v3.Intent}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) @@ -991,9 +978,9 @@ export class IntentsClient { * } */ listIntentsAsync( - request?: protos.google.cloud.dialogflow.cx.v3beta1.IListIntentsRequest, - options?: gax.CallOptions - ): AsyncIterable { + request?: protos.google.cloud.dialogflow.cx.v3.IListIntentsRequest, + options?: CallOptions + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1010,7 +997,7 @@ export class IntentsClient { this.innerApiCalls['listIntents'] as GaxCall, (request as unknown) as RequestType, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } // -------------------- // -- Path templates -- @@ -1695,6 +1682,65 @@ export class IntentsClient { ).entity_type; } + /** + * Return a fully-qualified securitySettings resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} security_settings + * @returns {string} Resource name string. + */ + securitySettingsPath( + project: string, + location: string, + securitySettings: string + ) { + return this.pathTemplates.securitySettingsPathTemplate.render({ + project: project, + location: location, + security_settings: securitySettings, + }); + } + + /** + * Parse the project from SecuritySettings resource. + * + * @param {string} securitySettingsName + * A fully-qualified path representing SecuritySettings resource. + * @returns {string} A string representing the project. + */ + matchProjectFromSecuritySettingsName(securitySettingsName: string) { + return this.pathTemplates.securitySettingsPathTemplate.match( + securitySettingsName + ).project; + } + + /** + * Parse the location from SecuritySettings resource. + * + * @param {string} securitySettingsName + * A fully-qualified path representing SecuritySettings resource. + * @returns {string} A string representing the location. + */ + matchLocationFromSecuritySettingsName(securitySettingsName: string) { + return this.pathTemplates.securitySettingsPathTemplate.match( + securitySettingsName + ).location; + } + + /** + * Parse the security_settings from SecuritySettings resource. + * + * @param {string} securitySettingsName + * A fully-qualified path representing SecuritySettings resource. + * @returns {string} A string representing the security_settings. + */ + matchSecuritySettingsFromSecuritySettingsName(securitySettingsName: string) { + return this.pathTemplates.securitySettingsPathTemplate.match( + securitySettingsName + ).security_settings; + } + /** * Return a fully-qualified transitionRouteGroup resource name string. * diff --git a/src/v3beta1/intents_client_config.json b/src/v3/intents_client_config.json similarity index 96% rename from src/v3beta1/intents_client_config.json rename to src/v3/intents_client_config.json index dd60bb05..ae0fc178 100644 --- a/src/v3beta1/intents_client_config.json +++ b/src/v3/intents_client_config.json @@ -1,6 +1,6 @@ { "interfaces": { - "google.cloud.dialogflow.cx.v3beta1.Intents": { + "google.cloud.dialogflow.cx.v3.Intents": { "retry_codes": { "non_idempotent": [], "idempotent": [ diff --git a/src/v3/intents_proto_list.json b/src/v3/intents_proto_list.json new file mode 100644 index 00000000..622b657f --- /dev/null +++ b/src/v3/intents_proto_list.json @@ -0,0 +1,17 @@ +[ + "../../protos/google/cloud/dialogflow/cx/v3/agent.proto", + "../../protos/google/cloud/dialogflow/cx/v3/audio_config.proto", + "../../protos/google/cloud/dialogflow/cx/v3/entity_type.proto", + "../../protos/google/cloud/dialogflow/cx/v3/environment.proto", + "../../protos/google/cloud/dialogflow/cx/v3/flow.proto", + "../../protos/google/cloud/dialogflow/cx/v3/fulfillment.proto", + "../../protos/google/cloud/dialogflow/cx/v3/intent.proto", + "../../protos/google/cloud/dialogflow/cx/v3/page.proto", + "../../protos/google/cloud/dialogflow/cx/v3/response_message.proto", + "../../protos/google/cloud/dialogflow/cx/v3/security_settings.proto", + "../../protos/google/cloud/dialogflow/cx/v3/session.proto", + "../../protos/google/cloud/dialogflow/cx/v3/session_entity_type.proto", + "../../protos/google/cloud/dialogflow/cx/v3/transition_route_group.proto", + "../../protos/google/cloud/dialogflow/cx/v3/version.proto", + "../../protos/google/cloud/dialogflow/cx/v3/webhook.proto" +] diff --git a/src/v3beta1/pages_client.ts b/src/v3/pages_client.ts similarity index 86% rename from src/v3beta1/pages_client.ts rename to src/v3/pages_client.ts index a564ccc0..f85872ef 100644 --- a/src/v3beta1/pages_client.ts +++ b/src/v3/pages_client.ts @@ -16,6 +16,7 @@ // ** https://github.com/googleapis/gapic-generator-typescript ** // ** All changes to this file may be overwritten. ** +/* global window */ import * as gax from 'google-gax'; import { Callback, @@ -30,14 +31,19 @@ import * as path from 'path'; import {Transform} from 'stream'; import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; +/** + * Client JSON configuration object, loaded from + * `src/v3/pages_client_config.json`. + * This file defines retry strategy and timeouts for all API methods in this library. + */ import * as gapicConfig from './pages_client_config.json'; const version = require('../../../package.json').version; /** - * Service for managing {@link google.cloud.dialogflow.cx.v3beta1.Page|Pages}. + * Service for managing {@link google.cloud.dialogflow.cx.v3.Page|Pages}. * @class - * @memberof v3beta1 + * @memberof v3 */ export class PagesClient { private _terminated = false; @@ -83,9 +89,9 @@ export class PagesClient { * your project ID will be detected automatically. * @param {string} [options.apiEndpoint] - The domain name of the * API remote host. - * @param {gax.ClientConfig} [options.clientConfig] - client configuration override. - * TODO(@alexander-fenster): link to gax documentation. - * @param {boolean} fallback - Use HTTP fallback mode. + * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. + * Follows the structure of {@link gapicConfig}. + * @param {boolean} [options.fallback] - Use HTTP fallback mode. * In fallback mode, a special browser-compatible transport implementation is used * instead of gRPC transport. In browser context (if the `window` object is defined) * the fallback mode is enabled automatically; set `options.fallback` to `false` @@ -98,7 +104,9 @@ export class PagesClient { opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; - const fallback = opts?.fallback ?? typeof window !== 'undefined'; + const fallback = + opts?.fallback ?? + (typeof window !== 'undefined' && typeof window?.fetch === 'function'); opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. @@ -188,6 +196,9 @@ export class PagesClient { projectLocationAgentSessionEntityTypePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/agents/{agent}/sessions/{session}/entityTypes/{entity_type}' ), + securitySettingsPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/securitySettings/{security_settings}' + ), transitionRouteGroupPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/agents/{agent}/flows/{flow}/transitionRouteGroups/{transition_route_group}' ), @@ -212,7 +223,7 @@ export class PagesClient { // Put together the default options sent with requests. this._defaults = this._gaxGrpc.constructSettings( - 'google.cloud.dialogflow.cx.v3beta1.Pages', + 'google.cloud.dialogflow.cx.v3.Pages', gapicConfig as gax.ClientConfig, opts.clientConfig || {}, {'x-goog-api-client': clientHeader.join(' ')} @@ -242,14 +253,14 @@ export class PagesClient { } // Put together the "service stub" for - // google.cloud.dialogflow.cx.v3beta1.Pages. + // google.cloud.dialogflow.cx.v3.Pages. this.pagesStub = this._gaxGrpc.createStub( this._opts.fallback ? (this._protos as protobuf.Root).lookupService( - 'google.cloud.dialogflow.cx.v3beta1.Pages' + 'google.cloud.dialogflow.cx.v3.Pages' ) : // eslint-disable-next-line @typescript-eslint/no-explicit-any - (this._protos as any).google.cloud.dialogflow.cx.v3beta1.Pages, + (this._protos as any).google.cloud.dialogflow.cx.v3.Pages, this._opts ) as Promise<{[method: string]: Function}>; @@ -346,33 +357,29 @@ export class PagesClient { // -- Service calls -- // ------------------- getPage( - request: protos.google.cloud.dialogflow.cx.v3beta1.IGetPageRequest, - options?: gax.CallOptions + request: protos.google.cloud.dialogflow.cx.v3.IGetPageRequest, + options?: CallOptions ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.IPage, - protos.google.cloud.dialogflow.cx.v3beta1.IGetPageRequest | undefined, + protos.google.cloud.dialogflow.cx.v3.IPage, + protos.google.cloud.dialogflow.cx.v3.IGetPageRequest | undefined, {} | undefined ] >; getPage( - request: protos.google.cloud.dialogflow.cx.v3beta1.IGetPageRequest, - options: gax.CallOptions, + request: protos.google.cloud.dialogflow.cx.v3.IGetPageRequest, + options: CallOptions, callback: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IPage, - | protos.google.cloud.dialogflow.cx.v3beta1.IGetPageRequest - | null - | undefined, + protos.google.cloud.dialogflow.cx.v3.IPage, + protos.google.cloud.dialogflow.cx.v3.IGetPageRequest | null | undefined, {} | null | undefined > ): void; getPage( - request: protos.google.cloud.dialogflow.cx.v3beta1.IGetPageRequest, + request: protos.google.cloud.dialogflow.cx.v3.IGetPageRequest, callback: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IPage, - | protos.google.cloud.dialogflow.cx.v3beta1.IGetPageRequest - | null - | undefined, + protos.google.cloud.dialogflow.cx.v3.IPage, + protos.google.cloud.dialogflow.cx.v3.IGetPageRequest | null | undefined, {} | null | undefined > ): void; @@ -404,7 +411,7 @@ export class PagesClient { * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Page]{@link google.cloud.dialogflow.cx.v3beta1.Page}. + * The first element of the array is an object representing [Page]{@link google.cloud.dialogflow.cx.v3.Page}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. @@ -412,37 +419,35 @@ export class PagesClient { * const [response] = await client.getPage(request); */ getPage( - request: protos.google.cloud.dialogflow.cx.v3beta1.IGetPageRequest, + request: protos.google.cloud.dialogflow.cx.v3.IGetPageRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IPage, - | protos.google.cloud.dialogflow.cx.v3beta1.IGetPageRequest + protos.google.cloud.dialogflow.cx.v3.IPage, + | protos.google.cloud.dialogflow.cx.v3.IGetPageRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IPage, - | protos.google.cloud.dialogflow.cx.v3beta1.IGetPageRequest - | null - | undefined, + protos.google.cloud.dialogflow.cx.v3.IPage, + protos.google.cloud.dialogflow.cx.v3.IGetPageRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.IPage, - protos.google.cloud.dialogflow.cx.v3beta1.IGetPageRequest | undefined, + protos.google.cloud.dialogflow.cx.v3.IPage, + protos.google.cloud.dialogflow.cx.v3.IGetPageRequest | undefined, {} | undefined ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -456,31 +461,31 @@ export class PagesClient { return this.innerApiCalls.getPage(request, options, callback); } createPage( - request: protos.google.cloud.dialogflow.cx.v3beta1.ICreatePageRequest, - options?: gax.CallOptions + request: protos.google.cloud.dialogflow.cx.v3.ICreatePageRequest, + options?: CallOptions ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.IPage, - protos.google.cloud.dialogflow.cx.v3beta1.ICreatePageRequest | undefined, + protos.google.cloud.dialogflow.cx.v3.IPage, + protos.google.cloud.dialogflow.cx.v3.ICreatePageRequest | undefined, {} | undefined ] >; createPage( - request: protos.google.cloud.dialogflow.cx.v3beta1.ICreatePageRequest, - options: gax.CallOptions, + request: protos.google.cloud.dialogflow.cx.v3.ICreatePageRequest, + options: CallOptions, callback: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IPage, - | protos.google.cloud.dialogflow.cx.v3beta1.ICreatePageRequest + protos.google.cloud.dialogflow.cx.v3.IPage, + | protos.google.cloud.dialogflow.cx.v3.ICreatePageRequest | null | undefined, {} | null | undefined > ): void; createPage( - request: protos.google.cloud.dialogflow.cx.v3beta1.ICreatePageRequest, + request: protos.google.cloud.dialogflow.cx.v3.ICreatePageRequest, callback: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IPage, - | protos.google.cloud.dialogflow.cx.v3beta1.ICreatePageRequest + protos.google.cloud.dialogflow.cx.v3.IPage, + | protos.google.cloud.dialogflow.cx.v3.ICreatePageRequest | null | undefined, {} | null | undefined @@ -495,7 +500,7 @@ export class PagesClient { * Required. The flow to create a page for. * Format: `projects//locations//agents//flows/`. - * @param {google.cloud.dialogflow.cx.v3beta1.Page} request.page + * @param {google.cloud.dialogflow.cx.v3.Page} request.page * Required. The page to create. * @param {string} request.languageCode * The language of the following fields in `page`: @@ -515,7 +520,7 @@ export class PagesClient { * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Page]{@link google.cloud.dialogflow.cx.v3beta1.Page}. + * The first element of the array is an object representing [Page]{@link google.cloud.dialogflow.cx.v3.Page}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. @@ -523,37 +528,37 @@ export class PagesClient { * const [response] = await client.createPage(request); */ createPage( - request: protos.google.cloud.dialogflow.cx.v3beta1.ICreatePageRequest, + request: protos.google.cloud.dialogflow.cx.v3.ICreatePageRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IPage, - | protos.google.cloud.dialogflow.cx.v3beta1.ICreatePageRequest + protos.google.cloud.dialogflow.cx.v3.IPage, + | protos.google.cloud.dialogflow.cx.v3.ICreatePageRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IPage, - | protos.google.cloud.dialogflow.cx.v3beta1.ICreatePageRequest + protos.google.cloud.dialogflow.cx.v3.IPage, + | protos.google.cloud.dialogflow.cx.v3.ICreatePageRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.IPage, - protos.google.cloud.dialogflow.cx.v3beta1.ICreatePageRequest | undefined, + protos.google.cloud.dialogflow.cx.v3.IPage, + protos.google.cloud.dialogflow.cx.v3.ICreatePageRequest | undefined, {} | undefined ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -567,31 +572,31 @@ export class PagesClient { return this.innerApiCalls.createPage(request, options, callback); } updatePage( - request: protos.google.cloud.dialogflow.cx.v3beta1.IUpdatePageRequest, - options?: gax.CallOptions + request: protos.google.cloud.dialogflow.cx.v3.IUpdatePageRequest, + options?: CallOptions ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.IPage, - protos.google.cloud.dialogflow.cx.v3beta1.IUpdatePageRequest | undefined, + protos.google.cloud.dialogflow.cx.v3.IPage, + protos.google.cloud.dialogflow.cx.v3.IUpdatePageRequest | undefined, {} | undefined ] >; updatePage( - request: protos.google.cloud.dialogflow.cx.v3beta1.IUpdatePageRequest, - options: gax.CallOptions, + request: protos.google.cloud.dialogflow.cx.v3.IUpdatePageRequest, + options: CallOptions, callback: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IPage, - | protos.google.cloud.dialogflow.cx.v3beta1.IUpdatePageRequest + protos.google.cloud.dialogflow.cx.v3.IPage, + | protos.google.cloud.dialogflow.cx.v3.IUpdatePageRequest | null | undefined, {} | null | undefined > ): void; updatePage( - request: protos.google.cloud.dialogflow.cx.v3beta1.IUpdatePageRequest, + request: protos.google.cloud.dialogflow.cx.v3.IUpdatePageRequest, callback: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IPage, - | protos.google.cloud.dialogflow.cx.v3beta1.IUpdatePageRequest + protos.google.cloud.dialogflow.cx.v3.IPage, + | protos.google.cloud.dialogflow.cx.v3.IUpdatePageRequest | null | undefined, {} | null | undefined @@ -602,7 +607,7 @@ export class PagesClient { * * @param {Object} request * The request object that will be sent. - * @param {google.cloud.dialogflow.cx.v3beta1.Page} request.page + * @param {google.cloud.dialogflow.cx.v3.Page} request.page * Required. The page to update. * @param {string} request.languageCode * The language of the following fields in `page`: @@ -625,7 +630,7 @@ export class PagesClient { * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Page]{@link google.cloud.dialogflow.cx.v3beta1.Page}. + * The first element of the array is an object representing [Page]{@link google.cloud.dialogflow.cx.v3.Page}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. @@ -633,37 +638,37 @@ export class PagesClient { * const [response] = await client.updatePage(request); */ updatePage( - request: protos.google.cloud.dialogflow.cx.v3beta1.IUpdatePageRequest, + request: protos.google.cloud.dialogflow.cx.v3.IUpdatePageRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IPage, - | protos.google.cloud.dialogflow.cx.v3beta1.IUpdatePageRequest + protos.google.cloud.dialogflow.cx.v3.IPage, + | protos.google.cloud.dialogflow.cx.v3.IUpdatePageRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IPage, - | protos.google.cloud.dialogflow.cx.v3beta1.IUpdatePageRequest + protos.google.cloud.dialogflow.cx.v3.IPage, + | protos.google.cloud.dialogflow.cx.v3.IUpdatePageRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.IPage, - protos.google.cloud.dialogflow.cx.v3beta1.IUpdatePageRequest | undefined, + protos.google.cloud.dialogflow.cx.v3.IPage, + protos.google.cloud.dialogflow.cx.v3.IUpdatePageRequest | undefined, {} | undefined ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -677,31 +682,31 @@ export class PagesClient { return this.innerApiCalls.updatePage(request, options, callback); } deletePage( - request: protos.google.cloud.dialogflow.cx.v3beta1.IDeletePageRequest, - options?: gax.CallOptions + request: protos.google.cloud.dialogflow.cx.v3.IDeletePageRequest, + options?: CallOptions ): Promise< [ protos.google.protobuf.IEmpty, - protos.google.cloud.dialogflow.cx.v3beta1.IDeletePageRequest | undefined, + protos.google.cloud.dialogflow.cx.v3.IDeletePageRequest | undefined, {} | undefined ] >; deletePage( - request: protos.google.cloud.dialogflow.cx.v3beta1.IDeletePageRequest, - options: gax.CallOptions, + request: protos.google.cloud.dialogflow.cx.v3.IDeletePageRequest, + options: CallOptions, callback: Callback< protos.google.protobuf.IEmpty, - | protos.google.cloud.dialogflow.cx.v3beta1.IDeletePageRequest + | protos.google.cloud.dialogflow.cx.v3.IDeletePageRequest | null | undefined, {} | null | undefined > ): void; deletePage( - request: protos.google.cloud.dialogflow.cx.v3beta1.IDeletePageRequest, + request: protos.google.cloud.dialogflow.cx.v3.IDeletePageRequest, callback: Callback< protos.google.protobuf.IEmpty, - | protos.google.cloud.dialogflow.cx.v3beta1.IDeletePageRequest + | protos.google.cloud.dialogflow.cx.v3.IDeletePageRequest | null | undefined, {} | null | undefined @@ -738,19 +743,19 @@ export class PagesClient { * const [response] = await client.deletePage(request); */ deletePage( - request: protos.google.cloud.dialogflow.cx.v3beta1.IDeletePageRequest, + request: protos.google.cloud.dialogflow.cx.v3.IDeletePageRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.protobuf.IEmpty, - | protos.google.cloud.dialogflow.cx.v3beta1.IDeletePageRequest + | protos.google.cloud.dialogflow.cx.v3.IDeletePageRequest | null | undefined, {} | null | undefined >, callback?: Callback< protos.google.protobuf.IEmpty, - | protos.google.cloud.dialogflow.cx.v3beta1.IDeletePageRequest + | protos.google.cloud.dialogflow.cx.v3.IDeletePageRequest | null | undefined, {} | null | undefined @@ -758,17 +763,17 @@ export class PagesClient { ): Promise< [ protos.google.protobuf.IEmpty, - protos.google.cloud.dialogflow.cx.v3beta1.IDeletePageRequest | undefined, + protos.google.cloud.dialogflow.cx.v3.IDeletePageRequest | undefined, {} | undefined ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -783,34 +788,34 @@ export class PagesClient { } listPages( - request: protos.google.cloud.dialogflow.cx.v3beta1.IListPagesRequest, - options?: gax.CallOptions + request: protos.google.cloud.dialogflow.cx.v3.IListPagesRequest, + options?: CallOptions ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.IPage[], - protos.google.cloud.dialogflow.cx.v3beta1.IListPagesRequest | null, - protos.google.cloud.dialogflow.cx.v3beta1.IListPagesResponse + protos.google.cloud.dialogflow.cx.v3.IPage[], + protos.google.cloud.dialogflow.cx.v3.IListPagesRequest | null, + protos.google.cloud.dialogflow.cx.v3.IListPagesResponse ] >; listPages( - request: protos.google.cloud.dialogflow.cx.v3beta1.IListPagesRequest, - options: gax.CallOptions, + request: protos.google.cloud.dialogflow.cx.v3.IListPagesRequest, + options: CallOptions, callback: PaginationCallback< - protos.google.cloud.dialogflow.cx.v3beta1.IListPagesRequest, - | protos.google.cloud.dialogflow.cx.v3beta1.IListPagesResponse + protos.google.cloud.dialogflow.cx.v3.IListPagesRequest, + | protos.google.cloud.dialogflow.cx.v3.IListPagesResponse | null | undefined, - protos.google.cloud.dialogflow.cx.v3beta1.IPage + protos.google.cloud.dialogflow.cx.v3.IPage > ): void; listPages( - request: protos.google.cloud.dialogflow.cx.v3beta1.IListPagesRequest, + request: protos.google.cloud.dialogflow.cx.v3.IListPagesRequest, callback: PaginationCallback< - protos.google.cloud.dialogflow.cx.v3beta1.IListPagesRequest, - | protos.google.cloud.dialogflow.cx.v3beta1.IListPagesResponse + protos.google.cloud.dialogflow.cx.v3.IListPagesRequest, + | protos.google.cloud.dialogflow.cx.v3.IListPagesResponse | null | undefined, - protos.google.cloud.dialogflow.cx.v3beta1.IPage + protos.google.cloud.dialogflow.cx.v3.IPage > ): void; /** @@ -846,7 +851,7 @@ export class PagesClient { * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of [Page]{@link google.cloud.dialogflow.cx.v3beta1.Page}. + * The first element of the array is Array of [Page]{@link google.cloud.dialogflow.cx.v3.Page}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. @@ -857,37 +862,37 @@ export class PagesClient { * for more details and examples. */ listPages( - request: protos.google.cloud.dialogflow.cx.v3beta1.IListPagesRequest, + request: protos.google.cloud.dialogflow.cx.v3.IListPagesRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | PaginationCallback< - protos.google.cloud.dialogflow.cx.v3beta1.IListPagesRequest, - | protos.google.cloud.dialogflow.cx.v3beta1.IListPagesResponse + protos.google.cloud.dialogflow.cx.v3.IListPagesRequest, + | protos.google.cloud.dialogflow.cx.v3.IListPagesResponse | null | undefined, - protos.google.cloud.dialogflow.cx.v3beta1.IPage + protos.google.cloud.dialogflow.cx.v3.IPage >, callback?: PaginationCallback< - protos.google.cloud.dialogflow.cx.v3beta1.IListPagesRequest, - | protos.google.cloud.dialogflow.cx.v3beta1.IListPagesResponse + protos.google.cloud.dialogflow.cx.v3.IListPagesRequest, + | protos.google.cloud.dialogflow.cx.v3.IListPagesResponse | null | undefined, - protos.google.cloud.dialogflow.cx.v3beta1.IPage + protos.google.cloud.dialogflow.cx.v3.IPage > ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.IPage[], - protos.google.cloud.dialogflow.cx.v3beta1.IListPagesRequest | null, - protos.google.cloud.dialogflow.cx.v3beta1.IListPagesResponse + protos.google.cloud.dialogflow.cx.v3.IPage[], + protos.google.cloud.dialogflow.cx.v3.IListPagesRequest | null, + protos.google.cloud.dialogflow.cx.v3.IListPagesResponse ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -933,7 +938,7 @@ export class PagesClient { * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing [Page]{@link google.cloud.dialogflow.cx.v3beta1.Page} on 'data' event. + * An object stream which emits an object representing [Page]{@link google.cloud.dialogflow.cx.v3.Page} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. * We recommend using `listPagesAsync()` @@ -943,8 +948,8 @@ export class PagesClient { * for more details and examples. */ listPagesStream( - request?: protos.google.cloud.dialogflow.cx.v3beta1.IListPagesRequest, - options?: gax.CallOptions + request?: protos.google.cloud.dialogflow.cx.v3.IListPagesRequest, + options?: CallOptions ): Transform { request = request || {}; options = options || {}; @@ -1000,7 +1005,7 @@ export class PagesClient { * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * [Page]{@link google.cloud.dialogflow.cx.v3beta1.Page}. The API will be called under the hood as needed, once per the page, + * [Page]{@link google.cloud.dialogflow.cx.v3.Page}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) @@ -1012,9 +1017,9 @@ export class PagesClient { * } */ listPagesAsync( - request?: protos.google.cloud.dialogflow.cx.v3beta1.IListPagesRequest, - options?: gax.CallOptions - ): AsyncIterable { + request?: protos.google.cloud.dialogflow.cx.v3.IListPagesRequest, + options?: CallOptions + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1031,7 +1036,7 @@ export class PagesClient { this.innerApiCalls['listPages'] as GaxCall, (request as unknown) as RequestType, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } // -------------------- // -- Path templates -- @@ -1716,6 +1721,65 @@ export class PagesClient { ).entity_type; } + /** + * Return a fully-qualified securitySettings resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} security_settings + * @returns {string} Resource name string. + */ + securitySettingsPath( + project: string, + location: string, + securitySettings: string + ) { + return this.pathTemplates.securitySettingsPathTemplate.render({ + project: project, + location: location, + security_settings: securitySettings, + }); + } + + /** + * Parse the project from SecuritySettings resource. + * + * @param {string} securitySettingsName + * A fully-qualified path representing SecuritySettings resource. + * @returns {string} A string representing the project. + */ + matchProjectFromSecuritySettingsName(securitySettingsName: string) { + return this.pathTemplates.securitySettingsPathTemplate.match( + securitySettingsName + ).project; + } + + /** + * Parse the location from SecuritySettings resource. + * + * @param {string} securitySettingsName + * A fully-qualified path representing SecuritySettings resource. + * @returns {string} A string representing the location. + */ + matchLocationFromSecuritySettingsName(securitySettingsName: string) { + return this.pathTemplates.securitySettingsPathTemplate.match( + securitySettingsName + ).location; + } + + /** + * Parse the security_settings from SecuritySettings resource. + * + * @param {string} securitySettingsName + * A fully-qualified path representing SecuritySettings resource. + * @returns {string} A string representing the security_settings. + */ + matchSecuritySettingsFromSecuritySettingsName(securitySettingsName: string) { + return this.pathTemplates.securitySettingsPathTemplate.match( + securitySettingsName + ).security_settings; + } + /** * Return a fully-qualified transitionRouteGroup resource name string. * diff --git a/src/v3beta1/pages_client_config.json b/src/v3/pages_client_config.json similarity index 96% rename from src/v3beta1/pages_client_config.json rename to src/v3/pages_client_config.json index df562343..932e877f 100644 --- a/src/v3beta1/pages_client_config.json +++ b/src/v3/pages_client_config.json @@ -1,6 +1,6 @@ { "interfaces": { - "google.cloud.dialogflow.cx.v3beta1.Pages": { + "google.cloud.dialogflow.cx.v3.Pages": { "retry_codes": { "non_idempotent": [], "idempotent": [ diff --git a/src/v3/pages_proto_list.json b/src/v3/pages_proto_list.json new file mode 100644 index 00000000..622b657f --- /dev/null +++ b/src/v3/pages_proto_list.json @@ -0,0 +1,17 @@ +[ + "../../protos/google/cloud/dialogflow/cx/v3/agent.proto", + "../../protos/google/cloud/dialogflow/cx/v3/audio_config.proto", + "../../protos/google/cloud/dialogflow/cx/v3/entity_type.proto", + "../../protos/google/cloud/dialogflow/cx/v3/environment.proto", + "../../protos/google/cloud/dialogflow/cx/v3/flow.proto", + "../../protos/google/cloud/dialogflow/cx/v3/fulfillment.proto", + "../../protos/google/cloud/dialogflow/cx/v3/intent.proto", + "../../protos/google/cloud/dialogflow/cx/v3/page.proto", + "../../protos/google/cloud/dialogflow/cx/v3/response_message.proto", + "../../protos/google/cloud/dialogflow/cx/v3/security_settings.proto", + "../../protos/google/cloud/dialogflow/cx/v3/session.proto", + "../../protos/google/cloud/dialogflow/cx/v3/session_entity_type.proto", + "../../protos/google/cloud/dialogflow/cx/v3/transition_route_group.proto", + "../../protos/google/cloud/dialogflow/cx/v3/version.proto", + "../../protos/google/cloud/dialogflow/cx/v3/webhook.proto" +] diff --git a/src/v3/security_settings_service_client.ts b/src/v3/security_settings_service_client.ts new file mode 100644 index 00000000..3384a765 --- /dev/null +++ b/src/v3/security_settings_service_client.ts @@ -0,0 +1,1977 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + +/* global window */ +import * as gax from 'google-gax'; +import { + Callback, + CallOptions, + Descriptors, + ClientOptions, + PaginationCallback, + GaxCall, +} from 'google-gax'; +import * as path from 'path'; + +import {Transform} from 'stream'; +import {RequestType} from 'google-gax/build/src/apitypes'; +import * as protos from '../../protos/protos'; +/** + * Client JSON configuration object, loaded from + * `src/v3/security_settings_service_client_config.json`. + * This file defines retry strategy and timeouts for all API methods in this library. + */ +import * as gapicConfig from './security_settings_service_client_config.json'; + +const version = require('../../../package.json').version; + +/** + * Service for managing security settings for Dialogflow. + * @class + * @memberof v3 + */ +export class SecuritySettingsServiceClient { + private _terminated = false; + private _opts: ClientOptions; + private _gaxModule: typeof gax | typeof gax.fallback; + private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; + private _protos: {}; + private _defaults: {[method: string]: gax.CallSettings}; + auth: gax.GoogleAuth; + descriptors: Descriptors = { + page: {}, + stream: {}, + longrunning: {}, + batching: {}, + }; + innerApiCalls: {[name: string]: Function}; + pathTemplates: {[name: string]: gax.PathTemplate}; + securitySettingsServiceStub?: Promise<{[name: string]: Function}>; + + /** + * Construct an instance of SecuritySettingsServiceClient. + * + * @param {object} [options] - The configuration object. + * The options accepted by the constructor are described in detail + * in [this document](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#creating-the-client-instance). + * The common options are: + * @param {object} [options.credentials] - Credentials object. + * @param {string} [options.credentials.client_email] + * @param {string} [options.credentials.private_key] + * @param {string} [options.email] - Account email address. Required when + * using a .pem or .p12 keyFilename. + * @param {string} [options.keyFilename] - Full path to the a .json, .pem, or + * .p12 key downloaded from the Google Developers Console. If you provide + * a path to a JSON file, the projectId option below is not necessary. + * NOTE: .pem and .p12 require you to specify options.email as well. + * @param {number} [options.port] - The port on which to connect to + * the remote host. + * @param {string} [options.projectId] - The project ID from the Google + * Developer's Console, e.g. 'grape-spaceship-123'. We will also check + * the environment variable GCLOUD_PROJECT for your project ID. If your + * app is running in an environment which supports + * {@link https://developers.google.com/identity/protocols/application-default-credentials Application Default Credentials}, + * your project ID will be detected automatically. + * @param {string} [options.apiEndpoint] - The domain name of the + * API remote host. + * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. + * Follows the structure of {@link gapicConfig}. + * @param {boolean} [options.fallback] - Use HTTP fallback mode. + * In fallback mode, a special browser-compatible transport implementation is used + * instead of gRPC transport. In browser context (if the `window` object is defined) + * the fallback mode is enabled automatically; set `options.fallback` to `false` + * if you need to override this behavior. + */ + constructor(opts?: ClientOptions) { + // Ensure that options include all the required fields. + const staticMembers = this + .constructor as typeof SecuritySettingsServiceClient; + const servicePath = + opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + const port = opts?.port || staticMembers.port; + const clientConfig = opts?.clientConfig ?? {}; + const fallback = + opts?.fallback ?? + (typeof window !== 'undefined' && typeof window?.fetch === 'function'); + opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); + + // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. + if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + opts['scopes'] = staticMembers.scopes; + } + + // Choose either gRPC or proto-over-HTTP implementation of google-gax. + this._gaxModule = opts.fallback ? gax.fallback : gax; + + // Create a `gaxGrpc` object, with any grpc-specific options sent to the client. + this._gaxGrpc = new this._gaxModule.GrpcClient(opts); + + // Save options to use in initialize() method. + this._opts = opts; + + // Save the auth object to the client, for use by other methods. + this.auth = this._gaxGrpc.auth as gax.GoogleAuth; + + // Set the default scopes in auth client if needed. + if (servicePath === staticMembers.servicePath) { + this.auth.defaultScopes = staticMembers.scopes; + } + + // Determine the client header string. + const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; + if (typeof process !== 'undefined' && 'versions' in process) { + clientHeader.push(`gl-node/${process.versions.node}`); + } else { + clientHeader.push(`gl-web/${this._gaxModule.version}`); + } + if (!opts.fallback) { + clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`); + } + if (opts.libName && opts.libVersion) { + clientHeader.push(`${opts.libName}/${opts.libVersion}`); + } + // Load the applicable protos. + // For Node.js, pass the path to JSON proto file. + // For browsers, pass the JSON content. + + const nodejsProtoPath = path.join( + __dirname, + '..', + '..', + 'protos', + 'protos.json' + ); + this._protos = this._gaxGrpc.loadProto( + opts.fallback + ? // eslint-disable-next-line @typescript-eslint/no-var-requires + require('../../protos/protos.json') + : nodejsProtoPath + ); + + // This API contains "path templates"; forward-slash-separated + // identifiers to uniquely identify resources within the API. + // Create useful helper objects for these. + this.pathTemplates = { + agentPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/agents/{agent}' + ), + entityTypePathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/agents/{agent}/entityTypes/{entity_type}' + ), + environmentPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/agents/{agent}/environments/{environment}' + ), + flowPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/agents/{agent}/flows/{flow}' + ), + intentPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/agents/{agent}/intents/{intent}' + ), + locationPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}' + ), + pagePathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/agents/{agent}/flows/{flow}/pages/{page}' + ), + projectPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}' + ), + projectLocationAgentEnvironmentSessionEntityTypePathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/agents/{agent}/environments/{environment}/sessions/{session}/entityTypes/{entity_type}' + ), + projectLocationAgentSessionEntityTypePathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/agents/{agent}/sessions/{session}/entityTypes/{entity_type}' + ), + securitySettingsPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/securitySettings/{security_settings}' + ), + transitionRouteGroupPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/agents/{agent}/flows/{flow}/transitionRouteGroups/{transition_route_group}' + ), + versionPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/agents/{agent}/flows/{flow}/versions/{version}' + ), + webhookPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/agents/{agent}/webhooks/{webhook}' + ), + }; + + // Some of the methods on this service return "paged" results, + // (e.g. 50 results at a time, with tokens to get subsequent + // pages). Denote the keys used for pagination and results. + this.descriptors.page = { + listSecuritySettings: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'securitySettings' + ), + }; + + // Put together the default options sent with requests. + this._defaults = this._gaxGrpc.constructSettings( + 'google.cloud.dialogflow.cx.v3.SecuritySettingsService', + gapicConfig as gax.ClientConfig, + opts.clientConfig || {}, + {'x-goog-api-client': clientHeader.join(' ')} + ); + + // Set up a dictionary of "inner API calls"; the core implementation + // of calling the API is handled in `google-gax`, with this code + // merely providing the destination and request information. + this.innerApiCalls = {}; + } + + /** + * Initialize the client. + * Performs asynchronous operations (such as authentication) and prepares the client. + * This function will be called automatically when any class method is called for the + * first time, but if you need to initialize it before calling an actual method, + * feel free to call initialize() directly. + * + * You can await on this method if you want to make sure the client is initialized. + * + * @returns {Promise} A promise that resolves to an authenticated service stub. + */ + initialize() { + // If the client stub promise is already initialized, return immediately. + if (this.securitySettingsServiceStub) { + return this.securitySettingsServiceStub; + } + + // Put together the "service stub" for + // google.cloud.dialogflow.cx.v3.SecuritySettingsService. + this.securitySettingsServiceStub = this._gaxGrpc.createStub( + this._opts.fallback + ? (this._protos as protobuf.Root).lookupService( + 'google.cloud.dialogflow.cx.v3.SecuritySettingsService' + ) + : // eslint-disable-next-line @typescript-eslint/no-explicit-any + (this._protos as any).google.cloud.dialogflow.cx.v3 + .SecuritySettingsService, + this._opts + ) as Promise<{[method: string]: Function}>; + + // Iterate over each of the methods that the service provides + // and create an API call method for each. + const securitySettingsServiceStubMethods = [ + 'createSecuritySettings', + 'getSecuritySettings', + 'updateSecuritySettings', + 'listSecuritySettings', + 'deleteSecuritySettings', + ]; + for (const methodName of securitySettingsServiceStubMethods) { + const callPromise = this.securitySettingsServiceStub.then( + stub => (...args: Array<{}>) => { + if (this._terminated) { + return Promise.reject('The client has already been closed.'); + } + const func = stub[methodName]; + return func.apply(stub, args); + }, + (err: Error | null | undefined) => () => { + throw err; + } + ); + + const descriptor = this.descriptors.page[methodName] || undefined; + const apiCall = this._gaxModule.createApiCall( + callPromise, + this._defaults[methodName], + descriptor + ); + + this.innerApiCalls[methodName] = apiCall; + } + + return this.securitySettingsServiceStub; + } + + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + static get servicePath() { + return 'dialogflow.googleapis.com'; + } + + /** + * The DNS address for this API service - same as servicePath(), + * exists for compatibility reasons. + * @returns {string} The DNS address for this service. + */ + static get apiEndpoint() { + return 'dialogflow.googleapis.com'; + } + + /** + * The port for this API service. + * @returns {number} The default port for this service. + */ + static get port() { + return 443; + } + + /** + * The scopes needed to make gRPC calls for every method defined + * in this service. + * @returns {string[]} List of default scopes. + */ + static get scopes() { + return [ + 'https://www.googleapis.com/auth/cloud-platform', + 'https://www.googleapis.com/auth/dialogflow', + ]; + } + + getProjectId(): Promise; + getProjectId(callback: Callback): void; + /** + * Return the project ID used by this class. + * @returns {Promise} A promise that resolves to string containing the project ID. + */ + getProjectId( + callback?: Callback + ): Promise | void { + if (callback) { + this.auth.getProjectId(callback); + return; + } + return this.auth.getProjectId(); + } + + // ------------------- + // -- Service calls -- + // ------------------- + createSecuritySettings( + request: protos.google.cloud.dialogflow.cx.v3.ICreateSecuritySettingsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.dialogflow.cx.v3.ISecuritySettings, + ( + | protos.google.cloud.dialogflow.cx.v3.ICreateSecuritySettingsRequest + | undefined + ), + {} | undefined + ] + >; + createSecuritySettings( + request: protos.google.cloud.dialogflow.cx.v3.ICreateSecuritySettingsRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.dialogflow.cx.v3.ISecuritySettings, + | protos.google.cloud.dialogflow.cx.v3.ICreateSecuritySettingsRequest + | null + | undefined, + {} | null | undefined + > + ): void; + createSecuritySettings( + request: protos.google.cloud.dialogflow.cx.v3.ICreateSecuritySettingsRequest, + callback: Callback< + protos.google.cloud.dialogflow.cx.v3.ISecuritySettings, + | protos.google.cloud.dialogflow.cx.v3.ICreateSecuritySettingsRequest + | null + | undefined, + {} | null | undefined + > + ): void; + /** + * Create security settings in the specified location. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The location to create an {@link google.cloud.dialogflow.cx.v3.SecuritySettings|SecuritySettings} for. + * Format: `projects//locations/`. + * @param {google.cloud.dialogflow.cx.v3.SecuritySettings} request.securitySettings + * Required. The security settings to create. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [SecuritySettings]{@link google.cloud.dialogflow.cx.v3.SecuritySettings}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.createSecuritySettings(request); + */ + createSecuritySettings( + request: protos.google.cloud.dialogflow.cx.v3.ICreateSecuritySettingsRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.dialogflow.cx.v3.ISecuritySettings, + | protos.google.cloud.dialogflow.cx.v3.ICreateSecuritySettingsRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.dialogflow.cx.v3.ISecuritySettings, + | protos.google.cloud.dialogflow.cx.v3.ICreateSecuritySettingsRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.dialogflow.cx.v3.ISecuritySettings, + ( + | protos.google.cloud.dialogflow.cx.v3.ICreateSecuritySettingsRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + this.initialize(); + return this.innerApiCalls.createSecuritySettings( + request, + options, + callback + ); + } + getSecuritySettings( + request: protos.google.cloud.dialogflow.cx.v3.IGetSecuritySettingsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.dialogflow.cx.v3.ISecuritySettings, + ( + | protos.google.cloud.dialogflow.cx.v3.IGetSecuritySettingsRequest + | undefined + ), + {} | undefined + ] + >; + getSecuritySettings( + request: protos.google.cloud.dialogflow.cx.v3.IGetSecuritySettingsRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.dialogflow.cx.v3.ISecuritySettings, + | protos.google.cloud.dialogflow.cx.v3.IGetSecuritySettingsRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getSecuritySettings( + request: protos.google.cloud.dialogflow.cx.v3.IGetSecuritySettingsRequest, + callback: Callback< + protos.google.cloud.dialogflow.cx.v3.ISecuritySettings, + | protos.google.cloud.dialogflow.cx.v3.IGetSecuritySettingsRequest + | null + | undefined, + {} | null | undefined + > + ): void; + /** + * Retrieves the specified {@link google.cloud.dialogflow.cx.v3.SecuritySettings|SecuritySettings}. + * The returned settings may be stale by up to 1 minute. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. Resource name of the settings. + * Format: `projects//locations//securitySettings/`. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [SecuritySettings]{@link google.cloud.dialogflow.cx.v3.SecuritySettings}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.getSecuritySettings(request); + */ + getSecuritySettings( + request: protos.google.cloud.dialogflow.cx.v3.IGetSecuritySettingsRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.dialogflow.cx.v3.ISecuritySettings, + | protos.google.cloud.dialogflow.cx.v3.IGetSecuritySettingsRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.dialogflow.cx.v3.ISecuritySettings, + | protos.google.cloud.dialogflow.cx.v3.IGetSecuritySettingsRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.dialogflow.cx.v3.ISecuritySettings, + ( + | protos.google.cloud.dialogflow.cx.v3.IGetSecuritySettingsRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + name: request.name || '', + }); + this.initialize(); + return this.innerApiCalls.getSecuritySettings(request, options, callback); + } + updateSecuritySettings( + request: protos.google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.dialogflow.cx.v3.ISecuritySettings, + ( + | protos.google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest + | undefined + ), + {} | undefined + ] + >; + updateSecuritySettings( + request: protos.google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.dialogflow.cx.v3.ISecuritySettings, + | protos.google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest + | null + | undefined, + {} | null | undefined + > + ): void; + updateSecuritySettings( + request: protos.google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest, + callback: Callback< + protos.google.cloud.dialogflow.cx.v3.ISecuritySettings, + | protos.google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest + | null + | undefined, + {} | null | undefined + > + ): void; + /** + * Updates the specified {@link google.cloud.dialogflow.cx.v3.SecuritySettings|SecuritySettings}. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.cloud.dialogflow.cx.v3.SecuritySettings} request.securitySettings + * Required. [SecuritySettings] object that contains values for each of the + * fields to update. + * @param {google.protobuf.FieldMask} request.updateMask + * Required. The mask to control which fields get updated. If the mask is not present, + * all fields will 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. + * The first element of the array is an object representing [SecuritySettings]{@link google.cloud.dialogflow.cx.v3.SecuritySettings}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.updateSecuritySettings(request); + */ + updateSecuritySettings( + request: protos.google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.dialogflow.cx.v3.ISecuritySettings, + | protos.google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.dialogflow.cx.v3.ISecuritySettings, + | protos.google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.dialogflow.cx.v3.ISecuritySettings, + ( + | protos.google.cloud.dialogflow.cx.v3.IUpdateSecuritySettingsRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + 'security_settings.name': request.securitySettings!.name || '', + }); + this.initialize(); + return this.innerApiCalls.updateSecuritySettings( + request, + options, + callback + ); + } + deleteSecuritySettings( + request: protos.google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.protobuf.IEmpty, + ( + | protos.google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest + | undefined + ), + {} | undefined + ] + >; + deleteSecuritySettings( + request: protos.google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest, + options: CallOptions, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest + | null + | undefined, + {} | null | undefined + > + ): void; + deleteSecuritySettings( + request: protos.google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest + | null + | undefined, + {} | null | undefined + > + ): void; + /** + * Deletes the specified {@link google.cloud.dialogflow.cx.v3.SecuritySettings|SecuritySettings}. + * + * @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.SecuritySettings|SecuritySettings} to delete. + * Format: `projects//locations//securitySettings/`. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.deleteSecuritySettings(request); + */ + deleteSecuritySettings( + request: protos.google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.protobuf.IEmpty, + | protos.google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.IEmpty, + | protos.google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.protobuf.IEmpty, + ( + | protos.google.cloud.dialogflow.cx.v3.IDeleteSecuritySettingsRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + name: request.name || '', + }); + this.initialize(); + return this.innerApiCalls.deleteSecuritySettings( + request, + options, + callback + ); + } + + listSecuritySettings( + request: protos.google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.dialogflow.cx.v3.ISecuritySettings[], + protos.google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest | null, + protos.google.cloud.dialogflow.cx.v3.IListSecuritySettingsResponse + ] + >; + listSecuritySettings( + request: protos.google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest, + | protos.google.cloud.dialogflow.cx.v3.IListSecuritySettingsResponse + | null + | undefined, + protos.google.cloud.dialogflow.cx.v3.ISecuritySettings + > + ): void; + listSecuritySettings( + request: protos.google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest, + callback: PaginationCallback< + protos.google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest, + | protos.google.cloud.dialogflow.cx.v3.IListSecuritySettingsResponse + | null + | undefined, + protos.google.cloud.dialogflow.cx.v3.ISecuritySettings + > + ): void; + /** + * Returns the list of all security settings in the specified location. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The location to list all security settings for. + * Format: `projects//locations/`. + * @param {number} request.pageSize + * The maximum number of items to return in a single page. By default 20 and + * at most 100. + * @param {string} request.pageToken + * The next_page_token value returned from a previous list request. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of [SecuritySettings]{@link google.cloud.dialogflow.cx.v3.SecuritySettings}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listSecuritySettingsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listSecuritySettings( + request: protos.google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest, + | protos.google.cloud.dialogflow.cx.v3.IListSecuritySettingsResponse + | null + | undefined, + protos.google.cloud.dialogflow.cx.v3.ISecuritySettings + >, + callback?: PaginationCallback< + protos.google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest, + | protos.google.cloud.dialogflow.cx.v3.IListSecuritySettingsResponse + | null + | undefined, + protos.google.cloud.dialogflow.cx.v3.ISecuritySettings + > + ): Promise< + [ + protos.google.cloud.dialogflow.cx.v3.ISecuritySettings[], + protos.google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest | null, + protos.google.cloud.dialogflow.cx.v3.IListSecuritySettingsResponse + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + this.initialize(); + return this.innerApiCalls.listSecuritySettings(request, options, callback); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The location to list all security settings for. + * Format: `projects//locations/`. + * @param {number} request.pageSize + * The maximum number of items to return in a single page. By default 20 and + * at most 100. + * @param {string} request.pageToken + * The next_page_token value returned from a previous list request. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing [SecuritySettings]{@link google.cloud.dialogflow.cx.v3.SecuritySettings} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listSecuritySettingsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listSecuritySettingsStream( + request?: protos.google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest, + options?: CallOptions + ): Transform { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + const callSettings = new gax.CallSettings(options); + this.initialize(); + return this.descriptors.page.listSecuritySettings.createStream( + this.innerApiCalls.listSecuritySettings as gax.GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `listSecuritySettings`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The location to list all security settings for. + * Format: `projects//locations/`. + * @param {number} request.pageSize + * The maximum number of items to return in a single page. By default 20 and + * at most 100. + * @param {string} request.pageToken + * The next_page_token value returned from a previous list request. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [SecuritySettings]{@link google.cloud.dialogflow.cx.v3.SecuritySettings}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example + * const iterable = client.listSecuritySettingsAsync(request); + * for await (const response of iterable) { + * // process response + * } + */ + listSecuritySettingsAsync( + request?: protos.google.cloud.dialogflow.cx.v3.IListSecuritySettingsRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + options = options || {}; + const callSettings = new gax.CallSettings(options); + this.initialize(); + return this.descriptors.page.listSecuritySettings.asyncIterate( + this.innerApiCalls['listSecuritySettings'] as GaxCall, + (request as unknown) as RequestType, + callSettings + ) as AsyncIterable; + } + // -------------------- + // -- Path templates -- + // -------------------- + + /** + * Return a fully-qualified agent resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} agent + * @returns {string} Resource name string. + */ + agentPath(project: string, location: string, agent: string) { + return this.pathTemplates.agentPathTemplate.render({ + project: project, + location: location, + agent: agent, + }); + } + + /** + * Parse the project from Agent resource. + * + * @param {string} agentName + * A fully-qualified path representing Agent resource. + * @returns {string} A string representing the project. + */ + matchProjectFromAgentName(agentName: string) { + return this.pathTemplates.agentPathTemplate.match(agentName).project; + } + + /** + * Parse the location from Agent resource. + * + * @param {string} agentName + * A fully-qualified path representing Agent resource. + * @returns {string} A string representing the location. + */ + matchLocationFromAgentName(agentName: string) { + return this.pathTemplates.agentPathTemplate.match(agentName).location; + } + + /** + * Parse the agent from Agent resource. + * + * @param {string} agentName + * A fully-qualified path representing Agent resource. + * @returns {string} A string representing the agent. + */ + matchAgentFromAgentName(agentName: string) { + return this.pathTemplates.agentPathTemplate.match(agentName).agent; + } + + /** + * Return a fully-qualified entityType resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} agent + * @param {string} entity_type + * @returns {string} Resource name string. + */ + entityTypePath( + project: string, + location: string, + agent: string, + entityType: string + ) { + return this.pathTemplates.entityTypePathTemplate.render({ + project: project, + location: location, + agent: agent, + entity_type: entityType, + }); + } + + /** + * Parse the project from EntityType resource. + * + * @param {string} entityTypeName + * A fully-qualified path representing EntityType resource. + * @returns {string} A string representing the project. + */ + matchProjectFromEntityTypeName(entityTypeName: string) { + return this.pathTemplates.entityTypePathTemplate.match(entityTypeName) + .project; + } + + /** + * Parse the location from EntityType resource. + * + * @param {string} entityTypeName + * A fully-qualified path representing EntityType resource. + * @returns {string} A string representing the location. + */ + matchLocationFromEntityTypeName(entityTypeName: string) { + return this.pathTemplates.entityTypePathTemplate.match(entityTypeName) + .location; + } + + /** + * Parse the agent from EntityType resource. + * + * @param {string} entityTypeName + * A fully-qualified path representing EntityType resource. + * @returns {string} A string representing the agent. + */ + matchAgentFromEntityTypeName(entityTypeName: string) { + return this.pathTemplates.entityTypePathTemplate.match(entityTypeName) + .agent; + } + + /** + * Parse the entity_type from EntityType resource. + * + * @param {string} entityTypeName + * A fully-qualified path representing EntityType resource. + * @returns {string} A string representing the entity_type. + */ + matchEntityTypeFromEntityTypeName(entityTypeName: string) { + return this.pathTemplates.entityTypePathTemplate.match(entityTypeName) + .entity_type; + } + + /** + * Return a fully-qualified environment resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} agent + * @param {string} environment + * @returns {string} Resource name string. + */ + environmentPath( + project: string, + location: string, + agent: string, + environment: string + ) { + return this.pathTemplates.environmentPathTemplate.render({ + project: project, + location: location, + agent: agent, + environment: environment, + }); + } + + /** + * Parse the project from Environment resource. + * + * @param {string} environmentName + * A fully-qualified path representing Environment resource. + * @returns {string} A string representing the project. + */ + matchProjectFromEnvironmentName(environmentName: string) { + return this.pathTemplates.environmentPathTemplate.match(environmentName) + .project; + } + + /** + * Parse the location from Environment resource. + * + * @param {string} environmentName + * A fully-qualified path representing Environment resource. + * @returns {string} A string representing the location. + */ + matchLocationFromEnvironmentName(environmentName: string) { + return this.pathTemplates.environmentPathTemplate.match(environmentName) + .location; + } + + /** + * Parse the agent from Environment resource. + * + * @param {string} environmentName + * A fully-qualified path representing Environment resource. + * @returns {string} A string representing the agent. + */ + matchAgentFromEnvironmentName(environmentName: string) { + return this.pathTemplates.environmentPathTemplate.match(environmentName) + .agent; + } + + /** + * Parse the environment from Environment resource. + * + * @param {string} environmentName + * A fully-qualified path representing Environment resource. + * @returns {string} A string representing the environment. + */ + matchEnvironmentFromEnvironmentName(environmentName: string) { + return this.pathTemplates.environmentPathTemplate.match(environmentName) + .environment; + } + + /** + * Return a fully-qualified flow resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} agent + * @param {string} flow + * @returns {string} Resource name string. + */ + flowPath(project: string, location: string, agent: string, flow: string) { + return this.pathTemplates.flowPathTemplate.render({ + project: project, + location: location, + agent: agent, + flow: flow, + }); + } + + /** + * Parse the project from Flow resource. + * + * @param {string} flowName + * A fully-qualified path representing Flow resource. + * @returns {string} A string representing the project. + */ + matchProjectFromFlowName(flowName: string) { + return this.pathTemplates.flowPathTemplate.match(flowName).project; + } + + /** + * Parse the location from Flow resource. + * + * @param {string} flowName + * A fully-qualified path representing Flow resource. + * @returns {string} A string representing the location. + */ + matchLocationFromFlowName(flowName: string) { + return this.pathTemplates.flowPathTemplate.match(flowName).location; + } + + /** + * Parse the agent from Flow resource. + * + * @param {string} flowName + * A fully-qualified path representing Flow resource. + * @returns {string} A string representing the agent. + */ + matchAgentFromFlowName(flowName: string) { + return this.pathTemplates.flowPathTemplate.match(flowName).agent; + } + + /** + * Parse the flow from Flow resource. + * + * @param {string} flowName + * A fully-qualified path representing Flow resource. + * @returns {string} A string representing the flow. + */ + matchFlowFromFlowName(flowName: string) { + return this.pathTemplates.flowPathTemplate.match(flowName).flow; + } + + /** + * Return a fully-qualified intent resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} agent + * @param {string} intent + * @returns {string} Resource name string. + */ + intentPath(project: string, location: string, agent: string, intent: string) { + return this.pathTemplates.intentPathTemplate.render({ + project: project, + location: location, + agent: agent, + intent: intent, + }); + } + + /** + * Parse the project from Intent resource. + * + * @param {string} intentName + * A fully-qualified path representing Intent resource. + * @returns {string} A string representing the project. + */ + matchProjectFromIntentName(intentName: string) { + return this.pathTemplates.intentPathTemplate.match(intentName).project; + } + + /** + * Parse the location from Intent resource. + * + * @param {string} intentName + * A fully-qualified path representing Intent resource. + * @returns {string} A string representing the location. + */ + matchLocationFromIntentName(intentName: string) { + return this.pathTemplates.intentPathTemplate.match(intentName).location; + } + + /** + * Parse the agent from Intent resource. + * + * @param {string} intentName + * A fully-qualified path representing Intent resource. + * @returns {string} A string representing the agent. + */ + matchAgentFromIntentName(intentName: string) { + return this.pathTemplates.intentPathTemplate.match(intentName).agent; + } + + /** + * Parse the intent from Intent resource. + * + * @param {string} intentName + * A fully-qualified path representing Intent resource. + * @returns {string} A string representing the intent. + */ + matchIntentFromIntentName(intentName: string) { + return this.pathTemplates.intentPathTemplate.match(intentName).intent; + } + + /** + * Return a fully-qualified location resource name string. + * + * @param {string} project + * @param {string} location + * @returns {string} Resource name string. + */ + locationPath(project: string, location: string) { + return this.pathTemplates.locationPathTemplate.render({ + project: project, + location: location, + }); + } + + /** + * Parse the project from Location resource. + * + * @param {string} locationName + * A fully-qualified path representing Location resource. + * @returns {string} A string representing the project. + */ + matchProjectFromLocationName(locationName: string) { + return this.pathTemplates.locationPathTemplate.match(locationName).project; + } + + /** + * Parse the location from Location resource. + * + * @param {string} locationName + * A fully-qualified path representing Location resource. + * @returns {string} A string representing the location. + */ + matchLocationFromLocationName(locationName: string) { + return this.pathTemplates.locationPathTemplate.match(locationName).location; + } + + /** + * Return a fully-qualified page resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} agent + * @param {string} flow + * @param {string} page + * @returns {string} Resource name string. + */ + pagePath( + project: string, + location: string, + agent: string, + flow: string, + page: string + ) { + return this.pathTemplates.pagePathTemplate.render({ + project: project, + location: location, + agent: agent, + flow: flow, + page: page, + }); + } + + /** + * Parse the project from Page resource. + * + * @param {string} pageName + * A fully-qualified path representing Page resource. + * @returns {string} A string representing the project. + */ + matchProjectFromPageName(pageName: string) { + return this.pathTemplates.pagePathTemplate.match(pageName).project; + } + + /** + * Parse the location from Page resource. + * + * @param {string} pageName + * A fully-qualified path representing Page resource. + * @returns {string} A string representing the location. + */ + matchLocationFromPageName(pageName: string) { + return this.pathTemplates.pagePathTemplate.match(pageName).location; + } + + /** + * Parse the agent from Page resource. + * + * @param {string} pageName + * A fully-qualified path representing Page resource. + * @returns {string} A string representing the agent. + */ + matchAgentFromPageName(pageName: string) { + return this.pathTemplates.pagePathTemplate.match(pageName).agent; + } + + /** + * Parse the flow from Page resource. + * + * @param {string} pageName + * A fully-qualified path representing Page resource. + * @returns {string} A string representing the flow. + */ + matchFlowFromPageName(pageName: string) { + return this.pathTemplates.pagePathTemplate.match(pageName).flow; + } + + /** + * Parse the page from Page resource. + * + * @param {string} pageName + * A fully-qualified path representing Page resource. + * @returns {string} A string representing the page. + */ + matchPageFromPageName(pageName: string) { + return this.pathTemplates.pagePathTemplate.match(pageName).page; + } + + /** + * Return a fully-qualified project resource name string. + * + * @param {string} project + * @returns {string} Resource name string. + */ + projectPath(project: string) { + return this.pathTemplates.projectPathTemplate.render({ + project: project, + }); + } + + /** + * Parse the project from Project resource. + * + * @param {string} projectName + * A fully-qualified path representing Project resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectName(projectName: string) { + return this.pathTemplates.projectPathTemplate.match(projectName).project; + } + + /** + * Return a fully-qualified projectLocationAgentEnvironmentSessionEntityType resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} agent + * @param {string} environment + * @param {string} session + * @param {string} entity_type + * @returns {string} Resource name string. + */ + projectLocationAgentEnvironmentSessionEntityTypePath( + project: string, + location: string, + agent: string, + environment: string, + session: string, + entityType: string + ) { + return this.pathTemplates.projectLocationAgentEnvironmentSessionEntityTypePathTemplate.render( + { + project: project, + location: location, + agent: agent, + environment: environment, + session: session, + entity_type: entityType, + } + ); + } + + /** + * Parse the project from ProjectLocationAgentEnvironmentSessionEntityType resource. + * + * @param {string} projectLocationAgentEnvironmentSessionEntityTypeName + * A fully-qualified path representing project_location_agent_environment_session_entity_type resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectLocationAgentEnvironmentSessionEntityTypeName( + projectLocationAgentEnvironmentSessionEntityTypeName: string + ) { + return this.pathTemplates.projectLocationAgentEnvironmentSessionEntityTypePathTemplate.match( + projectLocationAgentEnvironmentSessionEntityTypeName + ).project; + } + + /** + * Parse the location from ProjectLocationAgentEnvironmentSessionEntityType resource. + * + * @param {string} projectLocationAgentEnvironmentSessionEntityTypeName + * A fully-qualified path representing project_location_agent_environment_session_entity_type resource. + * @returns {string} A string representing the location. + */ + matchLocationFromProjectLocationAgentEnvironmentSessionEntityTypeName( + projectLocationAgentEnvironmentSessionEntityTypeName: string + ) { + return this.pathTemplates.projectLocationAgentEnvironmentSessionEntityTypePathTemplate.match( + projectLocationAgentEnvironmentSessionEntityTypeName + ).location; + } + + /** + * Parse the agent from ProjectLocationAgentEnvironmentSessionEntityType resource. + * + * @param {string} projectLocationAgentEnvironmentSessionEntityTypeName + * A fully-qualified path representing project_location_agent_environment_session_entity_type resource. + * @returns {string} A string representing the agent. + */ + matchAgentFromProjectLocationAgentEnvironmentSessionEntityTypeName( + projectLocationAgentEnvironmentSessionEntityTypeName: string + ) { + return this.pathTemplates.projectLocationAgentEnvironmentSessionEntityTypePathTemplate.match( + projectLocationAgentEnvironmentSessionEntityTypeName + ).agent; + } + + /** + * Parse the environment from ProjectLocationAgentEnvironmentSessionEntityType resource. + * + * @param {string} projectLocationAgentEnvironmentSessionEntityTypeName + * A fully-qualified path representing project_location_agent_environment_session_entity_type resource. + * @returns {string} A string representing the environment. + */ + matchEnvironmentFromProjectLocationAgentEnvironmentSessionEntityTypeName( + projectLocationAgentEnvironmentSessionEntityTypeName: string + ) { + return this.pathTemplates.projectLocationAgentEnvironmentSessionEntityTypePathTemplate.match( + projectLocationAgentEnvironmentSessionEntityTypeName + ).environment; + } + + /** + * Parse the session from ProjectLocationAgentEnvironmentSessionEntityType resource. + * + * @param {string} projectLocationAgentEnvironmentSessionEntityTypeName + * A fully-qualified path representing project_location_agent_environment_session_entity_type resource. + * @returns {string} A string representing the session. + */ + matchSessionFromProjectLocationAgentEnvironmentSessionEntityTypeName( + projectLocationAgentEnvironmentSessionEntityTypeName: string + ) { + return this.pathTemplates.projectLocationAgentEnvironmentSessionEntityTypePathTemplate.match( + projectLocationAgentEnvironmentSessionEntityTypeName + ).session; + } + + /** + * Parse the entity_type from ProjectLocationAgentEnvironmentSessionEntityType resource. + * + * @param {string} projectLocationAgentEnvironmentSessionEntityTypeName + * A fully-qualified path representing project_location_agent_environment_session_entity_type resource. + * @returns {string} A string representing the entity_type. + */ + matchEntityTypeFromProjectLocationAgentEnvironmentSessionEntityTypeName( + projectLocationAgentEnvironmentSessionEntityTypeName: string + ) { + return this.pathTemplates.projectLocationAgentEnvironmentSessionEntityTypePathTemplate.match( + projectLocationAgentEnvironmentSessionEntityTypeName + ).entity_type; + } + + /** + * Return a fully-qualified projectLocationAgentSessionEntityType resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} agent + * @param {string} session + * @param {string} entity_type + * @returns {string} Resource name string. + */ + projectLocationAgentSessionEntityTypePath( + project: string, + location: string, + agent: string, + session: string, + entityType: string + ) { + return this.pathTemplates.projectLocationAgentSessionEntityTypePathTemplate.render( + { + project: project, + location: location, + agent: agent, + session: session, + entity_type: entityType, + } + ); + } + + /** + * Parse the project from ProjectLocationAgentSessionEntityType resource. + * + * @param {string} projectLocationAgentSessionEntityTypeName + * A fully-qualified path representing project_location_agent_session_entity_type resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectLocationAgentSessionEntityTypeName( + projectLocationAgentSessionEntityTypeName: string + ) { + return this.pathTemplates.projectLocationAgentSessionEntityTypePathTemplate.match( + projectLocationAgentSessionEntityTypeName + ).project; + } + + /** + * Parse the location from ProjectLocationAgentSessionEntityType resource. + * + * @param {string} projectLocationAgentSessionEntityTypeName + * A fully-qualified path representing project_location_agent_session_entity_type resource. + * @returns {string} A string representing the location. + */ + matchLocationFromProjectLocationAgentSessionEntityTypeName( + projectLocationAgentSessionEntityTypeName: string + ) { + return this.pathTemplates.projectLocationAgentSessionEntityTypePathTemplate.match( + projectLocationAgentSessionEntityTypeName + ).location; + } + + /** + * Parse the agent from ProjectLocationAgentSessionEntityType resource. + * + * @param {string} projectLocationAgentSessionEntityTypeName + * A fully-qualified path representing project_location_agent_session_entity_type resource. + * @returns {string} A string representing the agent. + */ + matchAgentFromProjectLocationAgentSessionEntityTypeName( + projectLocationAgentSessionEntityTypeName: string + ) { + return this.pathTemplates.projectLocationAgentSessionEntityTypePathTemplate.match( + projectLocationAgentSessionEntityTypeName + ).agent; + } + + /** + * Parse the session from ProjectLocationAgentSessionEntityType resource. + * + * @param {string} projectLocationAgentSessionEntityTypeName + * A fully-qualified path representing project_location_agent_session_entity_type resource. + * @returns {string} A string representing the session. + */ + matchSessionFromProjectLocationAgentSessionEntityTypeName( + projectLocationAgentSessionEntityTypeName: string + ) { + return this.pathTemplates.projectLocationAgentSessionEntityTypePathTemplate.match( + projectLocationAgentSessionEntityTypeName + ).session; + } + + /** + * Parse the entity_type from ProjectLocationAgentSessionEntityType resource. + * + * @param {string} projectLocationAgentSessionEntityTypeName + * A fully-qualified path representing project_location_agent_session_entity_type resource. + * @returns {string} A string representing the entity_type. + */ + matchEntityTypeFromProjectLocationAgentSessionEntityTypeName( + projectLocationAgentSessionEntityTypeName: string + ) { + return this.pathTemplates.projectLocationAgentSessionEntityTypePathTemplate.match( + projectLocationAgentSessionEntityTypeName + ).entity_type; + } + + /** + * Return a fully-qualified securitySettings resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} security_settings + * @returns {string} Resource name string. + */ + securitySettingsPath( + project: string, + location: string, + securitySettings: string + ) { + return this.pathTemplates.securitySettingsPathTemplate.render({ + project: project, + location: location, + security_settings: securitySettings, + }); + } + + /** + * Parse the project from SecuritySettings resource. + * + * @param {string} securitySettingsName + * A fully-qualified path representing SecuritySettings resource. + * @returns {string} A string representing the project. + */ + matchProjectFromSecuritySettingsName(securitySettingsName: string) { + return this.pathTemplates.securitySettingsPathTemplate.match( + securitySettingsName + ).project; + } + + /** + * Parse the location from SecuritySettings resource. + * + * @param {string} securitySettingsName + * A fully-qualified path representing SecuritySettings resource. + * @returns {string} A string representing the location. + */ + matchLocationFromSecuritySettingsName(securitySettingsName: string) { + return this.pathTemplates.securitySettingsPathTemplate.match( + securitySettingsName + ).location; + } + + /** + * Parse the security_settings from SecuritySettings resource. + * + * @param {string} securitySettingsName + * A fully-qualified path representing SecuritySettings resource. + * @returns {string} A string representing the security_settings. + */ + matchSecuritySettingsFromSecuritySettingsName(securitySettingsName: string) { + return this.pathTemplates.securitySettingsPathTemplate.match( + securitySettingsName + ).security_settings; + } + + /** + * Return a fully-qualified transitionRouteGroup resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} agent + * @param {string} flow + * @param {string} transition_route_group + * @returns {string} Resource name string. + */ + transitionRouteGroupPath( + project: string, + location: string, + agent: string, + flow: string, + transitionRouteGroup: string + ) { + return this.pathTemplates.transitionRouteGroupPathTemplate.render({ + project: project, + location: location, + agent: agent, + flow: flow, + transition_route_group: transitionRouteGroup, + }); + } + + /** + * Parse the project from TransitionRouteGroup resource. + * + * @param {string} transitionRouteGroupName + * A fully-qualified path representing TransitionRouteGroup resource. + * @returns {string} A string representing the project. + */ + matchProjectFromTransitionRouteGroupName(transitionRouteGroupName: string) { + return this.pathTemplates.transitionRouteGroupPathTemplate.match( + transitionRouteGroupName + ).project; + } + + /** + * Parse the location from TransitionRouteGroup resource. + * + * @param {string} transitionRouteGroupName + * A fully-qualified path representing TransitionRouteGroup resource. + * @returns {string} A string representing the location. + */ + matchLocationFromTransitionRouteGroupName(transitionRouteGroupName: string) { + return this.pathTemplates.transitionRouteGroupPathTemplate.match( + transitionRouteGroupName + ).location; + } + + /** + * Parse the agent from TransitionRouteGroup resource. + * + * @param {string} transitionRouteGroupName + * A fully-qualified path representing TransitionRouteGroup resource. + * @returns {string} A string representing the agent. + */ + matchAgentFromTransitionRouteGroupName(transitionRouteGroupName: string) { + return this.pathTemplates.transitionRouteGroupPathTemplate.match( + transitionRouteGroupName + ).agent; + } + + /** + * Parse the flow from TransitionRouteGroup resource. + * + * @param {string} transitionRouteGroupName + * A fully-qualified path representing TransitionRouteGroup resource. + * @returns {string} A string representing the flow. + */ + matchFlowFromTransitionRouteGroupName(transitionRouteGroupName: string) { + return this.pathTemplates.transitionRouteGroupPathTemplate.match( + transitionRouteGroupName + ).flow; + } + + /** + * Parse the transition_route_group from TransitionRouteGroup resource. + * + * @param {string} transitionRouteGroupName + * A fully-qualified path representing TransitionRouteGroup resource. + * @returns {string} A string representing the transition_route_group. + */ + matchTransitionRouteGroupFromTransitionRouteGroupName( + transitionRouteGroupName: string + ) { + return this.pathTemplates.transitionRouteGroupPathTemplate.match( + transitionRouteGroupName + ).transition_route_group; + } + + /** + * Return a fully-qualified version resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} agent + * @param {string} flow + * @param {string} version + * @returns {string} Resource name string. + */ + versionPath( + project: string, + location: string, + agent: string, + flow: string, + version: string + ) { + return this.pathTemplates.versionPathTemplate.render({ + project: project, + location: location, + agent: agent, + flow: flow, + version: version, + }); + } + + /** + * Parse the project from Version resource. + * + * @param {string} versionName + * A fully-qualified path representing Version resource. + * @returns {string} A string representing the project. + */ + matchProjectFromVersionName(versionName: string) { + return this.pathTemplates.versionPathTemplate.match(versionName).project; + } + + /** + * Parse the location from Version resource. + * + * @param {string} versionName + * A fully-qualified path representing Version resource. + * @returns {string} A string representing the location. + */ + matchLocationFromVersionName(versionName: string) { + return this.pathTemplates.versionPathTemplate.match(versionName).location; + } + + /** + * Parse the agent from Version resource. + * + * @param {string} versionName + * A fully-qualified path representing Version resource. + * @returns {string} A string representing the agent. + */ + matchAgentFromVersionName(versionName: string) { + return this.pathTemplates.versionPathTemplate.match(versionName).agent; + } + + /** + * Parse the flow from Version resource. + * + * @param {string} versionName + * A fully-qualified path representing Version resource. + * @returns {string} A string representing the flow. + */ + matchFlowFromVersionName(versionName: string) { + return this.pathTemplates.versionPathTemplate.match(versionName).flow; + } + + /** + * Parse the version from Version resource. + * + * @param {string} versionName + * A fully-qualified path representing Version resource. + * @returns {string} A string representing the version. + */ + matchVersionFromVersionName(versionName: string) { + return this.pathTemplates.versionPathTemplate.match(versionName).version; + } + + /** + * Return a fully-qualified webhook resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} agent + * @param {string} webhook + * @returns {string} Resource name string. + */ + webhookPath( + project: string, + location: string, + agent: string, + webhook: string + ) { + return this.pathTemplates.webhookPathTemplate.render({ + project: project, + location: location, + agent: agent, + webhook: webhook, + }); + } + + /** + * Parse the project from Webhook resource. + * + * @param {string} webhookName + * A fully-qualified path representing Webhook resource. + * @returns {string} A string representing the project. + */ + matchProjectFromWebhookName(webhookName: string) { + return this.pathTemplates.webhookPathTemplate.match(webhookName).project; + } + + /** + * Parse the location from Webhook resource. + * + * @param {string} webhookName + * A fully-qualified path representing Webhook resource. + * @returns {string} A string representing the location. + */ + matchLocationFromWebhookName(webhookName: string) { + return this.pathTemplates.webhookPathTemplate.match(webhookName).location; + } + + /** + * Parse the agent from Webhook resource. + * + * @param {string} webhookName + * A fully-qualified path representing Webhook resource. + * @returns {string} A string representing the agent. + */ + matchAgentFromWebhookName(webhookName: string) { + return this.pathTemplates.webhookPathTemplate.match(webhookName).agent; + } + + /** + * Parse the webhook from Webhook resource. + * + * @param {string} webhookName + * A fully-qualified path representing Webhook resource. + * @returns {string} A string representing the webhook. + */ + matchWebhookFromWebhookName(webhookName: string) { + return this.pathTemplates.webhookPathTemplate.match(webhookName).webhook; + } + + /** + * Terminate the gRPC channel and close the client. + * + * The client will no longer be usable and all future behavior is undefined. + * @returns {Promise} A promise that resolves when the client is closed. + */ + close(): Promise { + this.initialize(); + if (!this._terminated) { + return this.securitySettingsServiceStub!.then(stub => { + this._terminated = true; + stub.close(); + }); + } + return Promise.resolve(); + } +} diff --git a/src/v3/security_settings_service_client_config.json b/src/v3/security_settings_service_client_config.json new file mode 100644 index 00000000..ac615872 --- /dev/null +++ b/src/v3/security_settings_service_client_config.json @@ -0,0 +1,54 @@ +{ + "interfaces": { + "google.cloud.dialogflow.cx.v3.SecuritySettingsService": { + "retry_codes": { + "non_idempotent": [], + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "unavailable": [ + "UNAVAILABLE" + ] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 600000 + } + }, + "methods": { + "CreateSecuritySettings": { + "timeout_millis": 60000, + "retry_codes_name": "unavailable", + "retry_params_name": "default" + }, + "GetSecuritySettings": { + "timeout_millis": 60000, + "retry_codes_name": "unavailable", + "retry_params_name": "default" + }, + "UpdateSecuritySettings": { + "timeout_millis": 60000, + "retry_codes_name": "unavailable", + "retry_params_name": "default" + }, + "ListSecuritySettings": { + "timeout_millis": 60000, + "retry_codes_name": "unavailable", + "retry_params_name": "default" + }, + "DeleteSecuritySettings": { + "timeout_millis": 60000, + "retry_codes_name": "unavailable", + "retry_params_name": "default" + } + } + } + } +} diff --git a/src/v3/security_settings_service_proto_list.json b/src/v3/security_settings_service_proto_list.json new file mode 100644 index 00000000..622b657f --- /dev/null +++ b/src/v3/security_settings_service_proto_list.json @@ -0,0 +1,17 @@ +[ + "../../protos/google/cloud/dialogflow/cx/v3/agent.proto", + "../../protos/google/cloud/dialogflow/cx/v3/audio_config.proto", + "../../protos/google/cloud/dialogflow/cx/v3/entity_type.proto", + "../../protos/google/cloud/dialogflow/cx/v3/environment.proto", + "../../protos/google/cloud/dialogflow/cx/v3/flow.proto", + "../../protos/google/cloud/dialogflow/cx/v3/fulfillment.proto", + "../../protos/google/cloud/dialogflow/cx/v3/intent.proto", + "../../protos/google/cloud/dialogflow/cx/v3/page.proto", + "../../protos/google/cloud/dialogflow/cx/v3/response_message.proto", + "../../protos/google/cloud/dialogflow/cx/v3/security_settings.proto", + "../../protos/google/cloud/dialogflow/cx/v3/session.proto", + "../../protos/google/cloud/dialogflow/cx/v3/session_entity_type.proto", + "../../protos/google/cloud/dialogflow/cx/v3/transition_route_group.proto", + "../../protos/google/cloud/dialogflow/cx/v3/version.proto", + "../../protos/google/cloud/dialogflow/cx/v3/webhook.proto" +] diff --git a/src/v3beta1/session_entity_types_client.ts b/src/v3/session_entity_types_client.ts similarity index 85% rename from src/v3beta1/session_entity_types_client.ts rename to src/v3/session_entity_types_client.ts index fd301698..6967acbb 100644 --- a/src/v3beta1/session_entity_types_client.ts +++ b/src/v3/session_entity_types_client.ts @@ -16,6 +16,7 @@ // ** https://github.com/googleapis/gapic-generator-typescript ** // ** All changes to this file may be overwritten. ** +/* global window */ import * as gax from 'google-gax'; import { Callback, @@ -30,14 +31,19 @@ import * as path from 'path'; import {Transform} from 'stream'; import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; +/** + * Client JSON configuration object, loaded from + * `src/v3/session_entity_types_client_config.json`. + * This file defines retry strategy and timeouts for all API methods in this library. + */ import * as gapicConfig from './session_entity_types_client_config.json'; const version = require('../../../package.json').version; /** - * Service for managing {@link google.cloud.dialogflow.cx.v3beta1.SessionEntityType|SessionEntityTypes}. + * Service for managing {@link google.cloud.dialogflow.cx.v3.SessionEntityType|SessionEntityTypes}. * @class - * @memberof v3beta1 + * @memberof v3 */ export class SessionEntityTypesClient { private _terminated = false; @@ -83,9 +89,9 @@ export class SessionEntityTypesClient { * your project ID will be detected automatically. * @param {string} [options.apiEndpoint] - The domain name of the * API remote host. - * @param {gax.ClientConfig} [options.clientConfig] - client configuration override. - * TODO(@alexander-fenster): link to gax documentation. - * @param {boolean} fallback - Use HTTP fallback mode. + * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. + * Follows the structure of {@link gapicConfig}. + * @param {boolean} [options.fallback] - Use HTTP fallback mode. * In fallback mode, a special browser-compatible transport implementation is used * instead of gRPC transport. In browser context (if the `window` object is defined) * the fallback mode is enabled automatically; set `options.fallback` to `false` @@ -98,7 +104,9 @@ export class SessionEntityTypesClient { opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; - const fallback = opts?.fallback ?? typeof window !== 'undefined'; + const fallback = + opts?.fallback ?? + (typeof window !== 'undefined' && typeof window?.fetch === 'function'); opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. @@ -191,6 +199,9 @@ export class SessionEntityTypesClient { projectLocationAgentSessionEntityTypePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/agents/{agent}/sessions/{session}/entityTypes/{entity_type}' ), + securitySettingsPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/securitySettings/{security_settings}' + ), transitionRouteGroupPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/agents/{agent}/flows/{flow}/transitionRouteGroups/{transition_route_group}' ), @@ -215,7 +226,7 @@ export class SessionEntityTypesClient { // Put together the default options sent with requests. this._defaults = this._gaxGrpc.constructSettings( - 'google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes', + 'google.cloud.dialogflow.cx.v3.SessionEntityTypes', gapicConfig as gax.ClientConfig, opts.clientConfig || {}, {'x-goog-api-client': clientHeader.join(' ')} @@ -245,14 +256,14 @@ export class SessionEntityTypesClient { } // Put together the "service stub" for - // google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes. + // google.cloud.dialogflow.cx.v3.SessionEntityTypes. this.sessionEntityTypesStub = this._gaxGrpc.createStub( this._opts.fallback ? (this._protos as protobuf.Root).lookupService( - 'google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes' + 'google.cloud.dialogflow.cx.v3.SessionEntityTypes' ) : // eslint-disable-next-line @typescript-eslint/no-explicit-any - (this._protos as any).google.cloud.dialogflow.cx.v3beta1 + (this._protos as any).google.cloud.dialogflow.cx.v3 .SessionEntityTypes, this._opts ) as Promise<{[method: string]: Function}>; @@ -350,34 +361,34 @@ export class SessionEntityTypesClient { // -- Service calls -- // ------------------- getSessionEntityType( - request: protos.google.cloud.dialogflow.cx.v3beta1.IGetSessionEntityTypeRequest, - options?: gax.CallOptions + request: protos.google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest, + options?: CallOptions ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.ISessionEntityType, + protos.google.cloud.dialogflow.cx.v3.ISessionEntityType, ( - | protos.google.cloud.dialogflow.cx.v3beta1.IGetSessionEntityTypeRequest + | protos.google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest | undefined ), {} | undefined ] >; getSessionEntityType( - request: protos.google.cloud.dialogflow.cx.v3beta1.IGetSessionEntityTypeRequest, - options: gax.CallOptions, + request: protos.google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest, + options: CallOptions, callback: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.ISessionEntityType, - | protos.google.cloud.dialogflow.cx.v3beta1.IGetSessionEntityTypeRequest + protos.google.cloud.dialogflow.cx.v3.ISessionEntityType, + | protos.google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest | null | undefined, {} | null | undefined > ): void; getSessionEntityType( - request: protos.google.cloud.dialogflow.cx.v3beta1.IGetSessionEntityTypeRequest, + request: protos.google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest, callback: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.ISessionEntityType, - | protos.google.cloud.dialogflow.cx.v3beta1.IGetSessionEntityTypeRequest + protos.google.cloud.dialogflow.cx.v3.ISessionEntityType, + | protos.google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest | null | undefined, {} | null | undefined @@ -399,7 +410,7 @@ export class SessionEntityTypesClient { * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [SessionEntityType]{@link google.cloud.dialogflow.cx.v3beta1.SessionEntityType}. + * The first element of the array is an object representing [SessionEntityType]{@link google.cloud.dialogflow.cx.v3.SessionEntityType}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. @@ -407,40 +418,40 @@ export class SessionEntityTypesClient { * const [response] = await client.getSessionEntityType(request); */ getSessionEntityType( - request: protos.google.cloud.dialogflow.cx.v3beta1.IGetSessionEntityTypeRequest, + request: protos.google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< - protos.google.cloud.dialogflow.cx.v3beta1.ISessionEntityType, - | protos.google.cloud.dialogflow.cx.v3beta1.IGetSessionEntityTypeRequest + protos.google.cloud.dialogflow.cx.v3.ISessionEntityType, + | protos.google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.ISessionEntityType, - | protos.google.cloud.dialogflow.cx.v3beta1.IGetSessionEntityTypeRequest + protos.google.cloud.dialogflow.cx.v3.ISessionEntityType, + | protos.google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.ISessionEntityType, + protos.google.cloud.dialogflow.cx.v3.ISessionEntityType, ( - | protos.google.cloud.dialogflow.cx.v3beta1.IGetSessionEntityTypeRequest + | protos.google.cloud.dialogflow.cx.v3.IGetSessionEntityTypeRequest | undefined ), {} | undefined ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -454,34 +465,34 @@ export class SessionEntityTypesClient { return this.innerApiCalls.getSessionEntityType(request, options, callback); } createSessionEntityType( - request: protos.google.cloud.dialogflow.cx.v3beta1.ICreateSessionEntityTypeRequest, - options?: gax.CallOptions + request: protos.google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest, + options?: CallOptions ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.ISessionEntityType, + protos.google.cloud.dialogflow.cx.v3.ISessionEntityType, ( - | protos.google.cloud.dialogflow.cx.v3beta1.ICreateSessionEntityTypeRequest + | protos.google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest | undefined ), {} | undefined ] >; createSessionEntityType( - request: protos.google.cloud.dialogflow.cx.v3beta1.ICreateSessionEntityTypeRequest, - options: gax.CallOptions, + request: protos.google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest, + options: CallOptions, callback: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.ISessionEntityType, - | protos.google.cloud.dialogflow.cx.v3beta1.ICreateSessionEntityTypeRequest + protos.google.cloud.dialogflow.cx.v3.ISessionEntityType, + | protos.google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest | null | undefined, {} | null | undefined > ): void; createSessionEntityType( - request: protos.google.cloud.dialogflow.cx.v3beta1.ICreateSessionEntityTypeRequest, + request: protos.google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest, callback: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.ISessionEntityType, - | protos.google.cloud.dialogflow.cx.v3beta1.ICreateSessionEntityTypeRequest + protos.google.cloud.dialogflow.cx.v3.ISessionEntityType, + | protos.google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest | null | undefined, {} | null | undefined @@ -502,12 +513,12 @@ export class SessionEntityTypesClient { * ID>/agents//environments//sessions/`. * If `Environment ID` is not specified, we assume default 'draft' * environment. - * @param {google.cloud.dialogflow.cx.v3beta1.SessionEntityType} request.sessionEntityType + * @param {google.cloud.dialogflow.cx.v3.SessionEntityType} request.sessionEntityType * Required. The session entity type to create. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [SessionEntityType]{@link google.cloud.dialogflow.cx.v3beta1.SessionEntityType}. + * The first element of the array is an object representing [SessionEntityType]{@link google.cloud.dialogflow.cx.v3.SessionEntityType}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. @@ -515,40 +526,40 @@ export class SessionEntityTypesClient { * const [response] = await client.createSessionEntityType(request); */ createSessionEntityType( - request: protos.google.cloud.dialogflow.cx.v3beta1.ICreateSessionEntityTypeRequest, + request: protos.google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< - protos.google.cloud.dialogflow.cx.v3beta1.ISessionEntityType, - | protos.google.cloud.dialogflow.cx.v3beta1.ICreateSessionEntityTypeRequest + protos.google.cloud.dialogflow.cx.v3.ISessionEntityType, + | protos.google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.ISessionEntityType, - | protos.google.cloud.dialogflow.cx.v3beta1.ICreateSessionEntityTypeRequest + protos.google.cloud.dialogflow.cx.v3.ISessionEntityType, + | protos.google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.ISessionEntityType, + protos.google.cloud.dialogflow.cx.v3.ISessionEntityType, ( - | protos.google.cloud.dialogflow.cx.v3beta1.ICreateSessionEntityTypeRequest + | protos.google.cloud.dialogflow.cx.v3.ICreateSessionEntityTypeRequest | undefined ), {} | undefined ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -566,34 +577,34 @@ export class SessionEntityTypesClient { ); } updateSessionEntityType( - request: protos.google.cloud.dialogflow.cx.v3beta1.IUpdateSessionEntityTypeRequest, - options?: gax.CallOptions + request: protos.google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest, + options?: CallOptions ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.ISessionEntityType, + protos.google.cloud.dialogflow.cx.v3.ISessionEntityType, ( - | protos.google.cloud.dialogflow.cx.v3beta1.IUpdateSessionEntityTypeRequest + | protos.google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest | undefined ), {} | undefined ] >; updateSessionEntityType( - request: protos.google.cloud.dialogflow.cx.v3beta1.IUpdateSessionEntityTypeRequest, - options: gax.CallOptions, + request: protos.google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest, + options: CallOptions, callback: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.ISessionEntityType, - | protos.google.cloud.dialogflow.cx.v3beta1.IUpdateSessionEntityTypeRequest + protos.google.cloud.dialogflow.cx.v3.ISessionEntityType, + | protos.google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest | null | undefined, {} | null | undefined > ): void; updateSessionEntityType( - request: protos.google.cloud.dialogflow.cx.v3beta1.IUpdateSessionEntityTypeRequest, + request: protos.google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest, callback: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.ISessionEntityType, - | protos.google.cloud.dialogflow.cx.v3beta1.IUpdateSessionEntityTypeRequest + protos.google.cloud.dialogflow.cx.v3.ISessionEntityType, + | protos.google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest | null | undefined, {} | null | undefined @@ -604,7 +615,7 @@ export class SessionEntityTypesClient { * * @param {Object} request * The request object that will be sent. - * @param {google.cloud.dialogflow.cx.v3beta1.SessionEntityType} request.sessionEntityType + * @param {google.cloud.dialogflow.cx.v3.SessionEntityType} request.sessionEntityType * Required. The session entity type to update. * Format: `projects//locations//agents//sessions//entityTypes/` or @@ -617,7 +628,7 @@ export class SessionEntityTypesClient { * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [SessionEntityType]{@link google.cloud.dialogflow.cx.v3beta1.SessionEntityType}. + * The first element of the array is an object representing [SessionEntityType]{@link google.cloud.dialogflow.cx.v3.SessionEntityType}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. @@ -625,40 +636,40 @@ export class SessionEntityTypesClient { * const [response] = await client.updateSessionEntityType(request); */ updateSessionEntityType( - request: protos.google.cloud.dialogflow.cx.v3beta1.IUpdateSessionEntityTypeRequest, + request: protos.google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< - protos.google.cloud.dialogflow.cx.v3beta1.ISessionEntityType, - | protos.google.cloud.dialogflow.cx.v3beta1.IUpdateSessionEntityTypeRequest + protos.google.cloud.dialogflow.cx.v3.ISessionEntityType, + | protos.google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.ISessionEntityType, - | protos.google.cloud.dialogflow.cx.v3beta1.IUpdateSessionEntityTypeRequest + protos.google.cloud.dialogflow.cx.v3.ISessionEntityType, + | protos.google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.ISessionEntityType, + protos.google.cloud.dialogflow.cx.v3.ISessionEntityType, ( - | protos.google.cloud.dialogflow.cx.v3beta1.IUpdateSessionEntityTypeRequest + | protos.google.cloud.dialogflow.cx.v3.IUpdateSessionEntityTypeRequest | undefined ), {} | undefined ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -676,34 +687,34 @@ export class SessionEntityTypesClient { ); } deleteSessionEntityType( - request: protos.google.cloud.dialogflow.cx.v3beta1.IDeleteSessionEntityTypeRequest, - options?: gax.CallOptions + request: protos.google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest, + options?: CallOptions ): Promise< [ protos.google.protobuf.IEmpty, ( - | protos.google.cloud.dialogflow.cx.v3beta1.IDeleteSessionEntityTypeRequest + | protos.google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest | undefined ), {} | undefined ] >; deleteSessionEntityType( - request: protos.google.cloud.dialogflow.cx.v3beta1.IDeleteSessionEntityTypeRequest, - options: gax.CallOptions, + request: protos.google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest, + options: CallOptions, callback: Callback< protos.google.protobuf.IEmpty, - | protos.google.cloud.dialogflow.cx.v3beta1.IDeleteSessionEntityTypeRequest + | protos.google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest | null | undefined, {} | null | undefined > ): void; deleteSessionEntityType( - request: protos.google.cloud.dialogflow.cx.v3beta1.IDeleteSessionEntityTypeRequest, + request: protos.google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest, callback: Callback< protos.google.protobuf.IEmpty, - | protos.google.cloud.dialogflow.cx.v3beta1.IDeleteSessionEntityTypeRequest + | protos.google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest | null | undefined, {} | null | undefined @@ -733,19 +744,19 @@ export class SessionEntityTypesClient { * const [response] = await client.deleteSessionEntityType(request); */ deleteSessionEntityType( - request: protos.google.cloud.dialogflow.cx.v3beta1.IDeleteSessionEntityTypeRequest, + request: protos.google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.protobuf.IEmpty, - | protos.google.cloud.dialogflow.cx.v3beta1.IDeleteSessionEntityTypeRequest + | protos.google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest | null | undefined, {} | null | undefined >, callback?: Callback< protos.google.protobuf.IEmpty, - | protos.google.cloud.dialogflow.cx.v3beta1.IDeleteSessionEntityTypeRequest + | protos.google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest | null | undefined, {} | null | undefined @@ -754,19 +765,19 @@ export class SessionEntityTypesClient { [ protos.google.protobuf.IEmpty, ( - | protos.google.cloud.dialogflow.cx.v3beta1.IDeleteSessionEntityTypeRequest + | protos.google.cloud.dialogflow.cx.v3.IDeleteSessionEntityTypeRequest | undefined ), {} | undefined ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -785,34 +796,34 @@ export class SessionEntityTypesClient { } listSessionEntityTypes( - request: protos.google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesRequest, - options?: gax.CallOptions + request: protos.google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest, + options?: CallOptions ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.ISessionEntityType[], - protos.google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesRequest | null, - protos.google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesResponse + protos.google.cloud.dialogflow.cx.v3.ISessionEntityType[], + protos.google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest | null, + protos.google.cloud.dialogflow.cx.v3.IListSessionEntityTypesResponse ] >; listSessionEntityTypes( - request: protos.google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesRequest, - options: gax.CallOptions, + request: protos.google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest, + options: CallOptions, callback: PaginationCallback< - protos.google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesRequest, - | protos.google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesResponse + protos.google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest, + | protos.google.cloud.dialogflow.cx.v3.IListSessionEntityTypesResponse | null | undefined, - protos.google.cloud.dialogflow.cx.v3beta1.ISessionEntityType + protos.google.cloud.dialogflow.cx.v3.ISessionEntityType > ): void; listSessionEntityTypes( - request: protos.google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesRequest, + request: protos.google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest, callback: PaginationCallback< - protos.google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesRequest, - | protos.google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesResponse + protos.google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest, + | protos.google.cloud.dialogflow.cx.v3.IListSessionEntityTypesResponse | null | undefined, - protos.google.cloud.dialogflow.cx.v3beta1.ISessionEntityType + protos.google.cloud.dialogflow.cx.v3.ISessionEntityType > ): void; /** @@ -835,7 +846,7 @@ export class SessionEntityTypesClient { * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of [SessionEntityType]{@link google.cloud.dialogflow.cx.v3beta1.SessionEntityType}. + * The first element of the array is Array of [SessionEntityType]{@link google.cloud.dialogflow.cx.v3.SessionEntityType}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. @@ -846,37 +857,37 @@ export class SessionEntityTypesClient { * for more details and examples. */ listSessionEntityTypes( - request: protos.google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesRequest, + request: protos.google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | PaginationCallback< - protos.google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesRequest, - | protos.google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesResponse + protos.google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest, + | protos.google.cloud.dialogflow.cx.v3.IListSessionEntityTypesResponse | null | undefined, - protos.google.cloud.dialogflow.cx.v3beta1.ISessionEntityType + protos.google.cloud.dialogflow.cx.v3.ISessionEntityType >, callback?: PaginationCallback< - protos.google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesRequest, - | protos.google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesResponse + protos.google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest, + | protos.google.cloud.dialogflow.cx.v3.IListSessionEntityTypesResponse | null | undefined, - protos.google.cloud.dialogflow.cx.v3beta1.ISessionEntityType + protos.google.cloud.dialogflow.cx.v3.ISessionEntityType > ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.ISessionEntityType[], - protos.google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesRequest | null, - protos.google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesResponse + protos.google.cloud.dialogflow.cx.v3.ISessionEntityType[], + protos.google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest | null, + protos.google.cloud.dialogflow.cx.v3.IListSessionEntityTypesResponse ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -913,7 +924,7 @@ export class SessionEntityTypesClient { * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing [SessionEntityType]{@link google.cloud.dialogflow.cx.v3beta1.SessionEntityType} on 'data' event. + * An object stream which emits an object representing [SessionEntityType]{@link google.cloud.dialogflow.cx.v3.SessionEntityType} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. * We recommend using `listSessionEntityTypesAsync()` @@ -923,8 +934,8 @@ export class SessionEntityTypesClient { * for more details and examples. */ listSessionEntityTypesStream( - request?: protos.google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesRequest, - options?: gax.CallOptions + request?: protos.google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest, + options?: CallOptions ): Transform { request = request || {}; options = options || {}; @@ -967,7 +978,7 @@ export class SessionEntityTypesClient { * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * [SessionEntityType]{@link google.cloud.dialogflow.cx.v3beta1.SessionEntityType}. The API will be called under the hood as needed, once per the page, + * [SessionEntityType]{@link google.cloud.dialogflow.cx.v3.SessionEntityType}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) @@ -979,11 +990,9 @@ export class SessionEntityTypesClient { * } */ listSessionEntityTypesAsync( - request?: protos.google.cloud.dialogflow.cx.v3beta1.IListSessionEntityTypesRequest, - options?: gax.CallOptions - ): AsyncIterable< - protos.google.cloud.dialogflow.cx.v3beta1.ISessionEntityType - > { + request?: protos.google.cloud.dialogflow.cx.v3.IListSessionEntityTypesRequest, + options?: CallOptions + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1000,9 +1009,7 @@ export class SessionEntityTypesClient { this.innerApiCalls['listSessionEntityTypes'] as GaxCall, (request as unknown) as RequestType, callSettings - ) as AsyncIterable< - protos.google.cloud.dialogflow.cx.v3beta1.ISessionEntityType - >; + ) as AsyncIterable; } // -------------------- // -- Path templates -- @@ -1770,6 +1777,65 @@ export class SessionEntityTypesClient { ).entity_type; } + /** + * Return a fully-qualified securitySettings resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} security_settings + * @returns {string} Resource name string. + */ + securitySettingsPath( + project: string, + location: string, + securitySettings: string + ) { + return this.pathTemplates.securitySettingsPathTemplate.render({ + project: project, + location: location, + security_settings: securitySettings, + }); + } + + /** + * Parse the project from SecuritySettings resource. + * + * @param {string} securitySettingsName + * A fully-qualified path representing SecuritySettings resource. + * @returns {string} A string representing the project. + */ + matchProjectFromSecuritySettingsName(securitySettingsName: string) { + return this.pathTemplates.securitySettingsPathTemplate.match( + securitySettingsName + ).project; + } + + /** + * Parse the location from SecuritySettings resource. + * + * @param {string} securitySettingsName + * A fully-qualified path representing SecuritySettings resource. + * @returns {string} A string representing the location. + */ + matchLocationFromSecuritySettingsName(securitySettingsName: string) { + return this.pathTemplates.securitySettingsPathTemplate.match( + securitySettingsName + ).location; + } + + /** + * Parse the security_settings from SecuritySettings resource. + * + * @param {string} securitySettingsName + * A fully-qualified path representing SecuritySettings resource. + * @returns {string} A string representing the security_settings. + */ + matchSecuritySettingsFromSecuritySettingsName(securitySettingsName: string) { + return this.pathTemplates.securitySettingsPathTemplate.match( + securitySettingsName + ).security_settings; + } + /** * Return a fully-qualified transitionRouteGroup resource name string. * diff --git a/src/v3beta1/session_entity_types_client_config.json b/src/v3/session_entity_types_client_config.json similarity index 95% rename from src/v3beta1/session_entity_types_client_config.json rename to src/v3/session_entity_types_client_config.json index a11a7c83..e5acb93a 100644 --- a/src/v3beta1/session_entity_types_client_config.json +++ b/src/v3/session_entity_types_client_config.json @@ -1,6 +1,6 @@ { "interfaces": { - "google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes": { + "google.cloud.dialogflow.cx.v3.SessionEntityTypes": { "retry_codes": { "non_idempotent": [], "idempotent": [ diff --git a/src/v3/session_entity_types_proto_list.json b/src/v3/session_entity_types_proto_list.json new file mode 100644 index 00000000..622b657f --- /dev/null +++ b/src/v3/session_entity_types_proto_list.json @@ -0,0 +1,17 @@ +[ + "../../protos/google/cloud/dialogflow/cx/v3/agent.proto", + "../../protos/google/cloud/dialogflow/cx/v3/audio_config.proto", + "../../protos/google/cloud/dialogflow/cx/v3/entity_type.proto", + "../../protos/google/cloud/dialogflow/cx/v3/environment.proto", + "../../protos/google/cloud/dialogflow/cx/v3/flow.proto", + "../../protos/google/cloud/dialogflow/cx/v3/fulfillment.proto", + "../../protos/google/cloud/dialogflow/cx/v3/intent.proto", + "../../protos/google/cloud/dialogflow/cx/v3/page.proto", + "../../protos/google/cloud/dialogflow/cx/v3/response_message.proto", + "../../protos/google/cloud/dialogflow/cx/v3/security_settings.proto", + "../../protos/google/cloud/dialogflow/cx/v3/session.proto", + "../../protos/google/cloud/dialogflow/cx/v3/session_entity_type.proto", + "../../protos/google/cloud/dialogflow/cx/v3/transition_route_group.proto", + "../../protos/google/cloud/dialogflow/cx/v3/version.proto", + "../../protos/google/cloud/dialogflow/cx/v3/webhook.proto" +] diff --git a/src/v3beta1/sessions_client.ts b/src/v3/sessions_client.ts similarity index 87% rename from src/v3beta1/sessions_client.ts rename to src/v3/sessions_client.ts index c2d89c74..75d27605 100644 --- a/src/v3beta1/sessions_client.ts +++ b/src/v3/sessions_client.ts @@ -16,21 +16,27 @@ // ** https://github.com/googleapis/gapic-generator-typescript ** // ** All changes to this file may be overwritten. ** +/* global window */ import * as gax from 'google-gax'; import {Callback, CallOptions, Descriptors, ClientOptions} from 'google-gax'; import * as path from 'path'; import * as protos from '../../protos/protos'; +/** + * Client JSON configuration object, loaded from + * `src/v3/sessions_client_config.json`. + * This file defines retry strategy and timeouts for all API methods in this library. + */ import * as gapicConfig from './sessions_client_config.json'; const version = require('../../../package.json').version; /** * A session represents an interaction with a user. You retrieve user input - * and pass it to the {@link google.cloud.dialogflow.cx.v3beta1.Sessions.DetectIntent|DetectIntent} method to determine + * and pass it to the {@link google.cloud.dialogflow.cx.v3.Sessions.DetectIntent|DetectIntent} method to determine * user intent and respond. * @class - * @memberof v3beta1 + * @memberof v3 */ export class SessionsClient { private _terminated = false; @@ -76,9 +82,9 @@ export class SessionsClient { * your project ID will be detected automatically. * @param {string} [options.apiEndpoint] - The domain name of the * API remote host. - * @param {gax.ClientConfig} [options.clientConfig] - client configuration override. - * TODO(@alexander-fenster): link to gax documentation. - * @param {boolean} fallback - Use HTTP fallback mode. + * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. + * Follows the structure of {@link gapicConfig}. + * @param {boolean} [options.fallback] - Use HTTP fallback mode. * In fallback mode, a special browser-compatible transport implementation is used * instead of gRPC transport. In browser context (if the `window` object is defined) * the fallback mode is enabled automatically; set `options.fallback` to `false` @@ -91,7 +97,9 @@ export class SessionsClient { opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; - const fallback = opts?.fallback ?? typeof window !== 'undefined'; + const fallback = + opts?.fallback ?? + (typeof window !== 'undefined' && typeof window?.fetch === 'function'); opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. @@ -181,6 +189,9 @@ export class SessionsClient { projectLocationAgentSessionEntityTypePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/agents/{agent}/sessions/{session}/entityTypes/{entity_type}' ), + securitySettingsPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/securitySettings/{security_settings}' + ), transitionRouteGroupPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/agents/{agent}/flows/{flow}/transitionRouteGroups/{transition_route_group}' ), @@ -202,7 +213,7 @@ export class SessionsClient { // Put together the default options sent with requests. this._defaults = this._gaxGrpc.constructSettings( - 'google.cloud.dialogflow.cx.v3beta1.Sessions', + 'google.cloud.dialogflow.cx.v3.Sessions', gapicConfig as gax.ClientConfig, opts.clientConfig || {}, {'x-goog-api-client': clientHeader.join(' ')} @@ -232,14 +243,14 @@ export class SessionsClient { } // Put together the "service stub" for - // google.cloud.dialogflow.cx.v3beta1.Sessions. + // google.cloud.dialogflow.cx.v3.Sessions. this.sessionsStub = this._gaxGrpc.createStub( this._opts.fallback ? (this._protos as protobuf.Root).lookupService( - 'google.cloud.dialogflow.cx.v3beta1.Sessions' + 'google.cloud.dialogflow.cx.v3.Sessions' ) : // eslint-disable-next-line @typescript-eslint/no-explicit-any - (this._protos as any).google.cloud.dialogflow.cx.v3beta1.Sessions, + (this._protos as any).google.cloud.dialogflow.cx.v3.Sessions, this._opts ) as Promise<{[method: string]: Function}>; @@ -335,34 +346,31 @@ export class SessionsClient { // -- Service calls -- // ------------------- detectIntent( - request: protos.google.cloud.dialogflow.cx.v3beta1.IDetectIntentRequest, - options?: gax.CallOptions + request: protos.google.cloud.dialogflow.cx.v3.IDetectIntentRequest, + options?: CallOptions ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.IDetectIntentResponse, - ( - | protos.google.cloud.dialogflow.cx.v3beta1.IDetectIntentRequest - | undefined - ), + protos.google.cloud.dialogflow.cx.v3.IDetectIntentResponse, + protos.google.cloud.dialogflow.cx.v3.IDetectIntentRequest | undefined, {} | undefined ] >; detectIntent( - request: protos.google.cloud.dialogflow.cx.v3beta1.IDetectIntentRequest, - options: gax.CallOptions, + request: protos.google.cloud.dialogflow.cx.v3.IDetectIntentRequest, + options: CallOptions, callback: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IDetectIntentResponse, - | protos.google.cloud.dialogflow.cx.v3beta1.IDetectIntentRequest + protos.google.cloud.dialogflow.cx.v3.IDetectIntentResponse, + | protos.google.cloud.dialogflow.cx.v3.IDetectIntentRequest | null | undefined, {} | null | undefined > ): void; detectIntent( - request: protos.google.cloud.dialogflow.cx.v3beta1.IDetectIntentRequest, + request: protos.google.cloud.dialogflow.cx.v3.IDetectIntentRequest, callback: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IDetectIntentResponse, - | protos.google.cloud.dialogflow.cx.v3beta1.IDetectIntentRequest + protos.google.cloud.dialogflow.cx.v3.IDetectIntentResponse, + | protos.google.cloud.dialogflow.cx.v3.IDetectIntentRequest | null | undefined, {} | null | undefined @@ -389,16 +397,16 @@ export class SessionsClient { * * For more information, see the [sessions * guide](https://cloud.google.com/dialogflow/cx/docs/concept/session). - * @param {google.cloud.dialogflow.cx.v3beta1.QueryParameters} request.queryParams + * @param {google.cloud.dialogflow.cx.v3.QueryParameters} request.queryParams * The parameters of this query. - * @param {google.cloud.dialogflow.cx.v3beta1.QueryInput} request.queryInput + * @param {google.cloud.dialogflow.cx.v3.QueryInput} request.queryInput * Required. The input specification. - * @param {google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig} request.outputAudioConfig + * @param {google.cloud.dialogflow.cx.v3.OutputAudioConfig} request.outputAudioConfig * Instructs the speech synthesizer how to generate the output audio. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [DetectIntentResponse]{@link google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse}. + * The first element of the array is an object representing [DetectIntentResponse]{@link google.cloud.dialogflow.cx.v3.DetectIntentResponse}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. @@ -406,40 +414,37 @@ export class SessionsClient { * const [response] = await client.detectIntent(request); */ detectIntent( - request: protos.google.cloud.dialogflow.cx.v3beta1.IDetectIntentRequest, + request: protos.google.cloud.dialogflow.cx.v3.IDetectIntentRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IDetectIntentResponse, - | protos.google.cloud.dialogflow.cx.v3beta1.IDetectIntentRequest + protos.google.cloud.dialogflow.cx.v3.IDetectIntentResponse, + | protos.google.cloud.dialogflow.cx.v3.IDetectIntentRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IDetectIntentResponse, - | protos.google.cloud.dialogflow.cx.v3beta1.IDetectIntentRequest + protos.google.cloud.dialogflow.cx.v3.IDetectIntentResponse, + | protos.google.cloud.dialogflow.cx.v3.IDetectIntentRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.IDetectIntentResponse, - ( - | protos.google.cloud.dialogflow.cx.v3beta1.IDetectIntentRequest - | undefined - ), + protos.google.cloud.dialogflow.cx.v3.IDetectIntentResponse, + protos.google.cloud.dialogflow.cx.v3.IDetectIntentRequest | undefined, {} | undefined ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -453,31 +458,31 @@ export class SessionsClient { return this.innerApiCalls.detectIntent(request, options, callback); } matchIntent( - request: protos.google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest, - options?: gax.CallOptions + request: protos.google.cloud.dialogflow.cx.v3.IMatchIntentRequest, + options?: CallOptions ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.IMatchIntentResponse, - protos.google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest | undefined, + protos.google.cloud.dialogflow.cx.v3.IMatchIntentResponse, + protos.google.cloud.dialogflow.cx.v3.IMatchIntentRequest | undefined, {} | undefined ] >; matchIntent( - request: protos.google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest, - options: gax.CallOptions, + request: protos.google.cloud.dialogflow.cx.v3.IMatchIntentRequest, + options: CallOptions, callback: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IMatchIntentResponse, - | protos.google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest + protos.google.cloud.dialogflow.cx.v3.IMatchIntentResponse, + | protos.google.cloud.dialogflow.cx.v3.IMatchIntentRequest | null | undefined, {} | null | undefined > ): void; matchIntent( - request: protos.google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest, + request: protos.google.cloud.dialogflow.cx.v3.IMatchIntentRequest, callback: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IMatchIntentResponse, - | protos.google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest + protos.google.cloud.dialogflow.cx.v3.IMatchIntentResponse, + | protos.google.cloud.dialogflow.cx.v3.IMatchIntentRequest | null | undefined, {} | null | undefined @@ -502,14 +507,14 @@ export class SessionsClient { * * For more information, see the [sessions * guide](https://cloud.google.com/dialogflow/cx/docs/concept/session). - * @param {google.cloud.dialogflow.cx.v3beta1.QueryParameters} request.queryParams + * @param {google.cloud.dialogflow.cx.v3.QueryParameters} request.queryParams * The parameters of this query. - * @param {google.cloud.dialogflow.cx.v3beta1.QueryInput} request.queryInput + * @param {google.cloud.dialogflow.cx.v3.QueryInput} request.queryInput * Required. The input specification. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [MatchIntentResponse]{@link google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse}. + * The first element of the array is an object representing [MatchIntentResponse]{@link google.cloud.dialogflow.cx.v3.MatchIntentResponse}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. @@ -517,37 +522,37 @@ export class SessionsClient { * const [response] = await client.matchIntent(request); */ matchIntent( - request: protos.google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest, + request: protos.google.cloud.dialogflow.cx.v3.IMatchIntentRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IMatchIntentResponse, - | protos.google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest + protos.google.cloud.dialogflow.cx.v3.IMatchIntentResponse, + | protos.google.cloud.dialogflow.cx.v3.IMatchIntentRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IMatchIntentResponse, - | protos.google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest + protos.google.cloud.dialogflow.cx.v3.IMatchIntentResponse, + | protos.google.cloud.dialogflow.cx.v3.IMatchIntentRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.IMatchIntentResponse, - protos.google.cloud.dialogflow.cx.v3beta1.IMatchIntentRequest | undefined, + protos.google.cloud.dialogflow.cx.v3.IMatchIntentResponse, + protos.google.cloud.dialogflow.cx.v3.IMatchIntentRequest | undefined, {} | undefined ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -561,57 +566,54 @@ export class SessionsClient { return this.innerApiCalls.matchIntent(request, options, callback); } fulfillIntent( - request: protos.google.cloud.dialogflow.cx.v3beta1.IFulfillIntentRequest, - options?: gax.CallOptions + request: protos.google.cloud.dialogflow.cx.v3.IFulfillIntentRequest, + options?: CallOptions ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.IFulfillIntentResponse, - ( - | protos.google.cloud.dialogflow.cx.v3beta1.IFulfillIntentRequest - | undefined - ), + protos.google.cloud.dialogflow.cx.v3.IFulfillIntentResponse, + protos.google.cloud.dialogflow.cx.v3.IFulfillIntentRequest | undefined, {} | undefined ] >; fulfillIntent( - request: protos.google.cloud.dialogflow.cx.v3beta1.IFulfillIntentRequest, - options: gax.CallOptions, + request: protos.google.cloud.dialogflow.cx.v3.IFulfillIntentRequest, + options: CallOptions, callback: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IFulfillIntentResponse, - | protos.google.cloud.dialogflow.cx.v3beta1.IFulfillIntentRequest + protos.google.cloud.dialogflow.cx.v3.IFulfillIntentResponse, + | protos.google.cloud.dialogflow.cx.v3.IFulfillIntentRequest | null | undefined, {} | null | undefined > ): void; fulfillIntent( - request: protos.google.cloud.dialogflow.cx.v3beta1.IFulfillIntentRequest, + request: protos.google.cloud.dialogflow.cx.v3.IFulfillIntentRequest, callback: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IFulfillIntentResponse, - | protos.google.cloud.dialogflow.cx.v3beta1.IFulfillIntentRequest + protos.google.cloud.dialogflow.cx.v3.IFulfillIntentResponse, + | protos.google.cloud.dialogflow.cx.v3.IFulfillIntentRequest | null | undefined, {} | null | undefined > ): void; /** - * Fulfills a matched intent returned by {@link google.cloud.dialogflow.cx.v3beta1.Sessions.MatchIntent|MatchIntent}. - * Must be called after {@link google.cloud.dialogflow.cx.v3beta1.Sessions.MatchIntent|MatchIntent}, with input from - * {@link google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse|MatchIntentResponse}. Otherwise, the behavior is undefined. + * Fulfills a matched intent returned by {@link google.cloud.dialogflow.cx.v3.Sessions.MatchIntent|MatchIntent}. + * Must be called after {@link google.cloud.dialogflow.cx.v3.Sessions.MatchIntent|MatchIntent}, with input from + * {@link google.cloud.dialogflow.cx.v3.MatchIntentResponse|MatchIntentResponse}. Otherwise, the behavior is undefined. * * @param {Object} request * The request object that will be sent. - * @param {google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest} request.matchIntentRequest + * @param {google.cloud.dialogflow.cx.v3.MatchIntentRequest} request.matchIntentRequest * Must be same as the corresponding MatchIntent request, otherwise the * behavior is undefined. - * @param {google.cloud.dialogflow.cx.v3beta1.Match} request.match + * @param {google.cloud.dialogflow.cx.v3.Match} request.match * The matched intent/event to fulfill. - * @param {google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig} request.outputAudioConfig + * @param {google.cloud.dialogflow.cx.v3.OutputAudioConfig} request.outputAudioConfig * Instructs the speech synthesizer how to generate output audio. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [FulfillIntentResponse]{@link google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse}. + * The first element of the array is an object representing [FulfillIntentResponse]{@link google.cloud.dialogflow.cx.v3.FulfillIntentResponse}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. @@ -619,40 +621,37 @@ export class SessionsClient { * const [response] = await client.fulfillIntent(request); */ fulfillIntent( - request: protos.google.cloud.dialogflow.cx.v3beta1.IFulfillIntentRequest, + request: protos.google.cloud.dialogflow.cx.v3.IFulfillIntentRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IFulfillIntentResponse, - | protos.google.cloud.dialogflow.cx.v3beta1.IFulfillIntentRequest + protos.google.cloud.dialogflow.cx.v3.IFulfillIntentResponse, + | protos.google.cloud.dialogflow.cx.v3.IFulfillIntentRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IFulfillIntentResponse, - | protos.google.cloud.dialogflow.cx.v3beta1.IFulfillIntentRequest + protos.google.cloud.dialogflow.cx.v3.IFulfillIntentResponse, + | protos.google.cloud.dialogflow.cx.v3.IFulfillIntentRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.IFulfillIntentResponse, - ( - | protos.google.cloud.dialogflow.cx.v3beta1.IFulfillIntentRequest - | undefined - ), + protos.google.cloud.dialogflow.cx.v3.IFulfillIntentResponse, + protos.google.cloud.dialogflow.cx.v3.IFulfillIntentRequest | undefined, {} | undefined ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -675,8 +674,8 @@ export class SessionsClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} * An object stream which is both readable and writable. It accepts objects - * representing [StreamingDetectIntentRequest]{@link google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest} for write() method, and - * will emit objects representing [StreamingDetectIntentResponse]{@link google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse} on 'data' event asynchronously. + * representing [StreamingDetectIntentRequest]{@link google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest} for write() method, and + * will emit objects representing [StreamingDetectIntentResponse]{@link google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse} on 'data' event asynchronously. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#bi-directional-streaming) * for more details and examples. @@ -687,7 +686,7 @@ export class SessionsClient { * stream.write(request); * stream.end(); */ - streamingDetectIntent(options?: gax.CallOptions): gax.CancellableStream { + streamingDetectIntent(options?: CallOptions): gax.CancellableStream { this.initialize(); return this.innerApiCalls.streamingDetectIntent(options); } @@ -1502,6 +1501,65 @@ export class SessionsClient { ).entity_type; } + /** + * Return a fully-qualified securitySettings resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} security_settings + * @returns {string} Resource name string. + */ + securitySettingsPath( + project: string, + location: string, + securitySettings: string + ) { + return this.pathTemplates.securitySettingsPathTemplate.render({ + project: project, + location: location, + security_settings: securitySettings, + }); + } + + /** + * Parse the project from SecuritySettings resource. + * + * @param {string} securitySettingsName + * A fully-qualified path representing SecuritySettings resource. + * @returns {string} A string representing the project. + */ + matchProjectFromSecuritySettingsName(securitySettingsName: string) { + return this.pathTemplates.securitySettingsPathTemplate.match( + securitySettingsName + ).project; + } + + /** + * Parse the location from SecuritySettings resource. + * + * @param {string} securitySettingsName + * A fully-qualified path representing SecuritySettings resource. + * @returns {string} A string representing the location. + */ + matchLocationFromSecuritySettingsName(securitySettingsName: string) { + return this.pathTemplates.securitySettingsPathTemplate.match( + securitySettingsName + ).location; + } + + /** + * Parse the security_settings from SecuritySettings resource. + * + * @param {string} securitySettingsName + * A fully-qualified path representing SecuritySettings resource. + * @returns {string} A string representing the security_settings. + */ + matchSecuritySettingsFromSecuritySettingsName(securitySettingsName: string) { + return this.pathTemplates.securitySettingsPathTemplate.match( + securitySettingsName + ).security_settings; + } + /** * Return a fully-qualified transitionRouteGroup resource name string. * diff --git a/src/v3beta1/sessions_client_config.json b/src/v3/sessions_client_config.json similarity index 96% rename from src/v3beta1/sessions_client_config.json rename to src/v3/sessions_client_config.json index 8650fba2..8c35ba4e 100644 --- a/src/v3beta1/sessions_client_config.json +++ b/src/v3/sessions_client_config.json @@ -1,6 +1,6 @@ { "interfaces": { - "google.cloud.dialogflow.cx.v3beta1.Sessions": { + "google.cloud.dialogflow.cx.v3.Sessions": { "retry_codes": { "non_idempotent": [], "idempotent": [ diff --git a/src/v3/sessions_proto_list.json b/src/v3/sessions_proto_list.json new file mode 100644 index 00000000..622b657f --- /dev/null +++ b/src/v3/sessions_proto_list.json @@ -0,0 +1,17 @@ +[ + "../../protos/google/cloud/dialogflow/cx/v3/agent.proto", + "../../protos/google/cloud/dialogflow/cx/v3/audio_config.proto", + "../../protos/google/cloud/dialogflow/cx/v3/entity_type.proto", + "../../protos/google/cloud/dialogflow/cx/v3/environment.proto", + "../../protos/google/cloud/dialogflow/cx/v3/flow.proto", + "../../protos/google/cloud/dialogflow/cx/v3/fulfillment.proto", + "../../protos/google/cloud/dialogflow/cx/v3/intent.proto", + "../../protos/google/cloud/dialogflow/cx/v3/page.proto", + "../../protos/google/cloud/dialogflow/cx/v3/response_message.proto", + "../../protos/google/cloud/dialogflow/cx/v3/security_settings.proto", + "../../protos/google/cloud/dialogflow/cx/v3/session.proto", + "../../protos/google/cloud/dialogflow/cx/v3/session_entity_type.proto", + "../../protos/google/cloud/dialogflow/cx/v3/transition_route_group.proto", + "../../protos/google/cloud/dialogflow/cx/v3/version.proto", + "../../protos/google/cloud/dialogflow/cx/v3/webhook.proto" +] diff --git a/src/v3beta1/transition_route_groups_client.ts b/src/v3/transition_route_groups_client.ts similarity index 83% rename from src/v3beta1/transition_route_groups_client.ts rename to src/v3/transition_route_groups_client.ts index 7f99e207..de43c6db 100644 --- a/src/v3beta1/transition_route_groups_client.ts +++ b/src/v3/transition_route_groups_client.ts @@ -16,6 +16,7 @@ // ** https://github.com/googleapis/gapic-generator-typescript ** // ** All changes to this file may be overwritten. ** +/* global window */ import * as gax from 'google-gax'; import { Callback, @@ -30,14 +31,19 @@ import * as path from 'path'; import {Transform} from 'stream'; import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; +/** + * Client JSON configuration object, loaded from + * `src/v3/transition_route_groups_client_config.json`. + * This file defines retry strategy and timeouts for all API methods in this library. + */ import * as gapicConfig from './transition_route_groups_client_config.json'; const version = require('../../../package.json').version; /** - * Service for managing {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup|TransitionRouteGroups}. + * Service for managing {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroup|TransitionRouteGroups}. * @class - * @memberof v3beta1 + * @memberof v3 */ export class TransitionRouteGroupsClient { private _terminated = false; @@ -83,9 +89,9 @@ export class TransitionRouteGroupsClient { * your project ID will be detected automatically. * @param {string} [options.apiEndpoint] - The domain name of the * API remote host. - * @param {gax.ClientConfig} [options.clientConfig] - client configuration override. - * TODO(@alexander-fenster): link to gax documentation. - * @param {boolean} fallback - Use HTTP fallback mode. + * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. + * Follows the structure of {@link gapicConfig}. + * @param {boolean} [options.fallback] - Use HTTP fallback mode. * In fallback mode, a special browser-compatible transport implementation is used * instead of gRPC transport. In browser context (if the `window` object is defined) * the fallback mode is enabled automatically; set `options.fallback` to `false` @@ -99,7 +105,9 @@ export class TransitionRouteGroupsClient { opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; - const fallback = opts?.fallback ?? typeof window !== 'undefined'; + const fallback = + opts?.fallback ?? + (typeof window !== 'undefined' && typeof window?.fetch === 'function'); opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. @@ -189,6 +197,9 @@ export class TransitionRouteGroupsClient { projectLocationAgentSessionEntityTypePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/agents/{agent}/sessions/{session}/entityTypes/{entity_type}' ), + securitySettingsPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/securitySettings/{security_settings}' + ), transitionRouteGroupPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/agents/{agent}/flows/{flow}/transitionRouteGroups/{transition_route_group}' ), @@ -213,7 +224,7 @@ export class TransitionRouteGroupsClient { // Put together the default options sent with requests. this._defaults = this._gaxGrpc.constructSettings( - 'google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups', + 'google.cloud.dialogflow.cx.v3.TransitionRouteGroups', gapicConfig as gax.ClientConfig, opts.clientConfig || {}, {'x-goog-api-client': clientHeader.join(' ')} @@ -243,14 +254,14 @@ export class TransitionRouteGroupsClient { } // Put together the "service stub" for - // google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups. + // google.cloud.dialogflow.cx.v3.TransitionRouteGroups. this.transitionRouteGroupsStub = this._gaxGrpc.createStub( this._opts.fallback ? (this._protos as protobuf.Root).lookupService( - 'google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups' + 'google.cloud.dialogflow.cx.v3.TransitionRouteGroups' ) : // eslint-disable-next-line @typescript-eslint/no-explicit-any - (this._protos as any).google.cloud.dialogflow.cx.v3beta1 + (this._protos as any).google.cloud.dialogflow.cx.v3 .TransitionRouteGroups, this._opts ) as Promise<{[method: string]: Function}>; @@ -348,52 +359,52 @@ export class TransitionRouteGroupsClient { // -- Service calls -- // ------------------- getTransitionRouteGroup( - request: protos.google.cloud.dialogflow.cx.v3beta1.IGetTransitionRouteGroupRequest, - options?: gax.CallOptions + request: protos.google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest, + options?: CallOptions ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup, + protos.google.cloud.dialogflow.cx.v3.ITransitionRouteGroup, ( - | protos.google.cloud.dialogflow.cx.v3beta1.IGetTransitionRouteGroupRequest + | protos.google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest | undefined ), {} | undefined ] >; getTransitionRouteGroup( - request: protos.google.cloud.dialogflow.cx.v3beta1.IGetTransitionRouteGroupRequest, - options: gax.CallOptions, + request: protos.google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest, + options: CallOptions, callback: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup, - | protos.google.cloud.dialogflow.cx.v3beta1.IGetTransitionRouteGroupRequest + protos.google.cloud.dialogflow.cx.v3.ITransitionRouteGroup, + | protos.google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest | null | undefined, {} | null | undefined > ): void; getTransitionRouteGroup( - request: protos.google.cloud.dialogflow.cx.v3beta1.IGetTransitionRouteGroupRequest, + request: protos.google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest, callback: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup, - | protos.google.cloud.dialogflow.cx.v3beta1.IGetTransitionRouteGroupRequest + protos.google.cloud.dialogflow.cx.v3.ITransitionRouteGroup, + | protos.google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest | null | undefined, {} | null | undefined > ): void; /** - * Retrieves the specified {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup|TransitionRouteGroup}. + * Retrieves the specified {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroup|TransitionRouteGroup}. * * @param {Object} request * The request object that will be sent. * @param {string} request.name - * Required. The name of the {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup|TransitionRouteGroup}. + * Required. The name of the {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroup|TransitionRouteGroup}. * Format: `projects//locations//agents//flows//transitionRouteGroups/`. * @param {string} request.languageCode * The language to list transition route groups for. The field * {@link TransitionRoute.trigger_fulfillment.messages|`messages`} in - * {@link google.cloud.dialogflow.cx.v3beta1.TransitionRoute|TransitionRoute} is language dependent. + * {@link google.cloud.dialogflow.cx.v3.TransitionRoute|TransitionRoute} is language dependent. * * If not specified, the agent's default language is used. * [Many @@ -403,7 +414,7 @@ export class TransitionRouteGroupsClient { * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [TransitionRouteGroup]{@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup}. + * The first element of the array is an object representing [TransitionRouteGroup]{@link google.cloud.dialogflow.cx.v3.TransitionRouteGroup}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. @@ -411,40 +422,40 @@ export class TransitionRouteGroupsClient { * const [response] = await client.getTransitionRouteGroup(request); */ getTransitionRouteGroup( - request: protos.google.cloud.dialogflow.cx.v3beta1.IGetTransitionRouteGroupRequest, + request: protos.google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< - protos.google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup, - | protos.google.cloud.dialogflow.cx.v3beta1.IGetTransitionRouteGroupRequest + protos.google.cloud.dialogflow.cx.v3.ITransitionRouteGroup, + | protos.google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup, - | protos.google.cloud.dialogflow.cx.v3beta1.IGetTransitionRouteGroupRequest + protos.google.cloud.dialogflow.cx.v3.ITransitionRouteGroup, + | protos.google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup, + protos.google.cloud.dialogflow.cx.v3.ITransitionRouteGroup, ( - | protos.google.cloud.dialogflow.cx.v3beta1.IGetTransitionRouteGroupRequest + | protos.google.cloud.dialogflow.cx.v3.IGetTransitionRouteGroupRequest | undefined ), {} | undefined ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -462,54 +473,54 @@ export class TransitionRouteGroupsClient { ); } createTransitionRouteGroup( - request: protos.google.cloud.dialogflow.cx.v3beta1.ICreateTransitionRouteGroupRequest, - options?: gax.CallOptions + request: protos.google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest, + options?: CallOptions ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup, + protos.google.cloud.dialogflow.cx.v3.ITransitionRouteGroup, ( - | protos.google.cloud.dialogflow.cx.v3beta1.ICreateTransitionRouteGroupRequest + | protos.google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest | undefined ), {} | undefined ] >; createTransitionRouteGroup( - request: protos.google.cloud.dialogflow.cx.v3beta1.ICreateTransitionRouteGroupRequest, - options: gax.CallOptions, + request: protos.google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest, + options: CallOptions, callback: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup, - | protos.google.cloud.dialogflow.cx.v3beta1.ICreateTransitionRouteGroupRequest + protos.google.cloud.dialogflow.cx.v3.ITransitionRouteGroup, + | protos.google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest | null | undefined, {} | null | undefined > ): void; createTransitionRouteGroup( - request: protos.google.cloud.dialogflow.cx.v3beta1.ICreateTransitionRouteGroupRequest, + request: protos.google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest, callback: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup, - | protos.google.cloud.dialogflow.cx.v3beta1.ICreateTransitionRouteGroupRequest + protos.google.cloud.dialogflow.cx.v3.ITransitionRouteGroup, + | protos.google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest | null | undefined, {} | null | undefined > ): void; /** - * Creates an {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup|TransitionRouteGroup} in the specified flow. + * Creates an {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroup|TransitionRouteGroup} in the specified flow. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The flow to create an {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup|TransitionRouteGroup} for. + * Required. The flow to create an {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroup|TransitionRouteGroup} for. * Format: `projects//locations//agents//flows/`. - * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup} request.transitionRouteGroup + * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroup} request.transitionRouteGroup * Required. The transition route group to create. * @param {string} request.languageCode * The language to list transition route groups for. The field * {@link TransitionRoute.trigger_fulfillment.messages|`messages`} in - * {@link google.cloud.dialogflow.cx.v3beta1.TransitionRoute|TransitionRoute} is language dependent. + * {@link google.cloud.dialogflow.cx.v3.TransitionRoute|TransitionRoute} is language dependent. * * If not specified, the agent's default language is used. * [Many @@ -519,7 +530,7 @@ export class TransitionRouteGroupsClient { * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [TransitionRouteGroup]{@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup}. + * The first element of the array is an object representing [TransitionRouteGroup]{@link google.cloud.dialogflow.cx.v3.TransitionRouteGroup}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. @@ -527,40 +538,40 @@ export class TransitionRouteGroupsClient { * const [response] = await client.createTransitionRouteGroup(request); */ createTransitionRouteGroup( - request: protos.google.cloud.dialogflow.cx.v3beta1.ICreateTransitionRouteGroupRequest, + request: protos.google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< - protos.google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup, - | protos.google.cloud.dialogflow.cx.v3beta1.ICreateTransitionRouteGroupRequest + protos.google.cloud.dialogflow.cx.v3.ITransitionRouteGroup, + | protos.google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup, - | protos.google.cloud.dialogflow.cx.v3beta1.ICreateTransitionRouteGroupRequest + protos.google.cloud.dialogflow.cx.v3.ITransitionRouteGroup, + | protos.google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup, + protos.google.cloud.dialogflow.cx.v3.ITransitionRouteGroup, ( - | protos.google.cloud.dialogflow.cx.v3beta1.ICreateTransitionRouteGroupRequest + | protos.google.cloud.dialogflow.cx.v3.ICreateTransitionRouteGroupRequest | undefined ), {} | undefined ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -578,52 +589,52 @@ export class TransitionRouteGroupsClient { ); } updateTransitionRouteGroup( - request: protos.google.cloud.dialogflow.cx.v3beta1.IUpdateTransitionRouteGroupRequest, - options?: gax.CallOptions + request: protos.google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest, + options?: CallOptions ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup, + protos.google.cloud.dialogflow.cx.v3.ITransitionRouteGroup, ( - | protos.google.cloud.dialogflow.cx.v3beta1.IUpdateTransitionRouteGroupRequest + | protos.google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest | undefined ), {} | undefined ] >; updateTransitionRouteGroup( - request: protos.google.cloud.dialogflow.cx.v3beta1.IUpdateTransitionRouteGroupRequest, - options: gax.CallOptions, + request: protos.google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest, + options: CallOptions, callback: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup, - | protos.google.cloud.dialogflow.cx.v3beta1.IUpdateTransitionRouteGroupRequest + protos.google.cloud.dialogflow.cx.v3.ITransitionRouteGroup, + | protos.google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest | null | undefined, {} | null | undefined > ): void; updateTransitionRouteGroup( - request: protos.google.cloud.dialogflow.cx.v3beta1.IUpdateTransitionRouteGroupRequest, + request: protos.google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest, callback: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup, - | protos.google.cloud.dialogflow.cx.v3beta1.IUpdateTransitionRouteGroupRequest + protos.google.cloud.dialogflow.cx.v3.ITransitionRouteGroup, + | protos.google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest | null | undefined, {} | null | undefined > ): void; /** - * Updates the specified {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup|TransitionRouteGroup}. + * Updates the specified {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroup|TransitionRouteGroup}. * * @param {Object} request * The request object that will be sent. - * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup} request.transitionRouteGroup + * @param {google.cloud.dialogflow.cx.v3.TransitionRouteGroup} request.transitionRouteGroup * Required. The transition route group to update. * @param {google.protobuf.FieldMask} request.updateMask * The mask to control which fields get updated. * @param {string} request.languageCode * The language to list transition route groups for. The field * {@link TransitionRoute.trigger_fulfillment.messages|`messages`} in - * {@link google.cloud.dialogflow.cx.v3beta1.TransitionRoute|TransitionRoute} is language dependent. + * {@link google.cloud.dialogflow.cx.v3.TransitionRoute|TransitionRoute} is language dependent. * * If not specified, the agent's default language is used. * [Many @@ -633,7 +644,7 @@ export class TransitionRouteGroupsClient { * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [TransitionRouteGroup]{@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup}. + * The first element of the array is an object representing [TransitionRouteGroup]{@link google.cloud.dialogflow.cx.v3.TransitionRouteGroup}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. @@ -641,40 +652,40 @@ export class TransitionRouteGroupsClient { * const [response] = await client.updateTransitionRouteGroup(request); */ updateTransitionRouteGroup( - request: protos.google.cloud.dialogflow.cx.v3beta1.IUpdateTransitionRouteGroupRequest, + request: protos.google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< - protos.google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup, - | protos.google.cloud.dialogflow.cx.v3beta1.IUpdateTransitionRouteGroupRequest + protos.google.cloud.dialogflow.cx.v3.ITransitionRouteGroup, + | protos.google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup, - | protos.google.cloud.dialogflow.cx.v3beta1.IUpdateTransitionRouteGroupRequest + protos.google.cloud.dialogflow.cx.v3.ITransitionRouteGroup, + | protos.google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup, + protos.google.cloud.dialogflow.cx.v3.ITransitionRouteGroup, ( - | protos.google.cloud.dialogflow.cx.v3beta1.IUpdateTransitionRouteGroupRequest + | protos.google.cloud.dialogflow.cx.v3.IUpdateTransitionRouteGroupRequest | undefined ), {} | undefined ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -692,46 +703,46 @@ export class TransitionRouteGroupsClient { ); } deleteTransitionRouteGroup( - request: protos.google.cloud.dialogflow.cx.v3beta1.IDeleteTransitionRouteGroupRequest, - options?: gax.CallOptions + request: protos.google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest, + options?: CallOptions ): Promise< [ protos.google.protobuf.IEmpty, ( - | protos.google.cloud.dialogflow.cx.v3beta1.IDeleteTransitionRouteGroupRequest + | protos.google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest | undefined ), {} | undefined ] >; deleteTransitionRouteGroup( - request: protos.google.cloud.dialogflow.cx.v3beta1.IDeleteTransitionRouteGroupRequest, - options: gax.CallOptions, + request: protos.google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest, + options: CallOptions, callback: Callback< protos.google.protobuf.IEmpty, - | protos.google.cloud.dialogflow.cx.v3beta1.IDeleteTransitionRouteGroupRequest + | protos.google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest | null | undefined, {} | null | undefined > ): void; deleteTransitionRouteGroup( - request: protos.google.cloud.dialogflow.cx.v3beta1.IDeleteTransitionRouteGroupRequest, + request: protos.google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest, callback: Callback< protos.google.protobuf.IEmpty, - | protos.google.cloud.dialogflow.cx.v3beta1.IDeleteTransitionRouteGroupRequest + | protos.google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest | null | undefined, {} | null | undefined > ): void; /** - * Deletes the specified {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup|TransitionRouteGroup}. + * Deletes the specified {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroup|TransitionRouteGroup}. * * @param {Object} request * The request object that will be sent. * @param {string} request.name - * Required. The name of the {@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup|TransitionRouteGroup} to delete. + * Required. The name of the {@link google.cloud.dialogflow.cx.v3.TransitionRouteGroup|TransitionRouteGroup} to delete. * Format: `projects//locations//agents//flows//transitionRouteGroups/`. * @param {boolean} request.force @@ -753,19 +764,19 @@ export class TransitionRouteGroupsClient { * const [response] = await client.deleteTransitionRouteGroup(request); */ deleteTransitionRouteGroup( - request: protos.google.cloud.dialogflow.cx.v3beta1.IDeleteTransitionRouteGroupRequest, + request: protos.google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.protobuf.IEmpty, - | protos.google.cloud.dialogflow.cx.v3beta1.IDeleteTransitionRouteGroupRequest + | protos.google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest | null | undefined, {} | null | undefined >, callback?: Callback< protos.google.protobuf.IEmpty, - | protos.google.cloud.dialogflow.cx.v3beta1.IDeleteTransitionRouteGroupRequest + | protos.google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest | null | undefined, {} | null | undefined @@ -774,19 +785,19 @@ export class TransitionRouteGroupsClient { [ protos.google.protobuf.IEmpty, ( - | protos.google.cloud.dialogflow.cx.v3beta1.IDeleteTransitionRouteGroupRequest + | protos.google.cloud.dialogflow.cx.v3.IDeleteTransitionRouteGroupRequest | undefined ), {} | undefined ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -805,34 +816,34 @@ export class TransitionRouteGroupsClient { } listTransitionRouteGroups( - request: protos.google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsRequest, - options?: gax.CallOptions + request: protos.google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest, + options?: CallOptions ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup[], - protos.google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsRequest | null, - protos.google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsResponse + protos.google.cloud.dialogflow.cx.v3.ITransitionRouteGroup[], + protos.google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest | null, + protos.google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsResponse ] >; listTransitionRouteGroups( - request: protos.google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsRequest, - options: gax.CallOptions, + request: protos.google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest, + options: CallOptions, callback: PaginationCallback< - protos.google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsRequest, - | protos.google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsResponse + protos.google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest, + | protos.google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsResponse | null | undefined, - protos.google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup + protos.google.cloud.dialogflow.cx.v3.ITransitionRouteGroup > ): void; listTransitionRouteGroups( - request: protos.google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsRequest, + request: protos.google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest, callback: PaginationCallback< - protos.google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsRequest, - | protos.google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsResponse + protos.google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest, + | protos.google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsResponse | null | undefined, - protos.google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup + protos.google.cloud.dialogflow.cx.v3.ITransitionRouteGroup > ): void; /** @@ -852,7 +863,7 @@ export class TransitionRouteGroupsClient { * @param {string} request.languageCode * The language to list transition route groups for. The field * {@link TransitionRoute.trigger_fulfillment.messages|`messages`} in - * {@link google.cloud.dialogflow.cx.v3beta1.TransitionRoute|TransitionRoute} is language dependent. + * {@link google.cloud.dialogflow.cx.v3.TransitionRoute|TransitionRoute} is language dependent. * * If not specified, the agent's default language is used. * [Many @@ -862,7 +873,7 @@ export class TransitionRouteGroupsClient { * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of [TransitionRouteGroup]{@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup}. + * The first element of the array is Array of [TransitionRouteGroup]{@link google.cloud.dialogflow.cx.v3.TransitionRouteGroup}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. @@ -873,37 +884,37 @@ export class TransitionRouteGroupsClient { * for more details and examples. */ listTransitionRouteGroups( - request: protos.google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsRequest, + request: protos.google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | PaginationCallback< - protos.google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsRequest, - | protos.google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsResponse + protos.google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest, + | protos.google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsResponse | null | undefined, - protos.google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup + protos.google.cloud.dialogflow.cx.v3.ITransitionRouteGroup >, callback?: PaginationCallback< - protos.google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsRequest, - | protos.google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsResponse + protos.google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest, + | protos.google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsResponse | null | undefined, - protos.google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup + protos.google.cloud.dialogflow.cx.v3.ITransitionRouteGroup > ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup[], - protos.google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsRequest | null, - protos.google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsResponse + protos.google.cloud.dialogflow.cx.v3.ITransitionRouteGroup[], + protos.google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest | null, + protos.google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsResponse ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -937,7 +948,7 @@ export class TransitionRouteGroupsClient { * @param {string} request.languageCode * The language to list transition route groups for. The field * {@link TransitionRoute.trigger_fulfillment.messages|`messages`} in - * {@link google.cloud.dialogflow.cx.v3beta1.TransitionRoute|TransitionRoute} is language dependent. + * {@link google.cloud.dialogflow.cx.v3.TransitionRoute|TransitionRoute} is language dependent. * * If not specified, the agent's default language is used. * [Many @@ -947,7 +958,7 @@ export class TransitionRouteGroupsClient { * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing [TransitionRouteGroup]{@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup} on 'data' event. + * An object stream which emits an object representing [TransitionRouteGroup]{@link google.cloud.dialogflow.cx.v3.TransitionRouteGroup} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. * We recommend using `listTransitionRouteGroupsAsync()` @@ -957,8 +968,8 @@ export class TransitionRouteGroupsClient { * for more details and examples. */ listTransitionRouteGroupsStream( - request?: protos.google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsRequest, - options?: gax.CallOptions + request?: protos.google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest, + options?: CallOptions ): Transform { request = request || {}; options = options || {}; @@ -996,7 +1007,7 @@ export class TransitionRouteGroupsClient { * @param {string} request.languageCode * The language to list transition route groups for. The field * {@link TransitionRoute.trigger_fulfillment.messages|`messages`} in - * {@link google.cloud.dialogflow.cx.v3beta1.TransitionRoute|TransitionRoute} is language dependent. + * {@link google.cloud.dialogflow.cx.v3.TransitionRoute|TransitionRoute} is language dependent. * * If not specified, the agent's default language is used. * [Many @@ -1008,7 +1019,7 @@ export class TransitionRouteGroupsClient { * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * [TransitionRouteGroup]{@link google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup}. The API will be called under the hood as needed, once per the page, + * [TransitionRouteGroup]{@link google.cloud.dialogflow.cx.v3.TransitionRouteGroup}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) @@ -1020,11 +1031,9 @@ export class TransitionRouteGroupsClient { * } */ listTransitionRouteGroupsAsync( - request?: protos.google.cloud.dialogflow.cx.v3beta1.IListTransitionRouteGroupsRequest, - options?: gax.CallOptions - ): AsyncIterable< - protos.google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup - > { + request?: protos.google.cloud.dialogflow.cx.v3.IListTransitionRouteGroupsRequest, + options?: CallOptions + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1042,7 +1051,7 @@ export class TransitionRouteGroupsClient { (request as unknown) as RequestType, callSettings ) as AsyncIterable< - protos.google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup + protos.google.cloud.dialogflow.cx.v3.ITransitionRouteGroup >; } // -------------------- @@ -1728,6 +1737,65 @@ export class TransitionRouteGroupsClient { ).entity_type; } + /** + * Return a fully-qualified securitySettings resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} security_settings + * @returns {string} Resource name string. + */ + securitySettingsPath( + project: string, + location: string, + securitySettings: string + ) { + return this.pathTemplates.securitySettingsPathTemplate.render({ + project: project, + location: location, + security_settings: securitySettings, + }); + } + + /** + * Parse the project from SecuritySettings resource. + * + * @param {string} securitySettingsName + * A fully-qualified path representing SecuritySettings resource. + * @returns {string} A string representing the project. + */ + matchProjectFromSecuritySettingsName(securitySettingsName: string) { + return this.pathTemplates.securitySettingsPathTemplate.match( + securitySettingsName + ).project; + } + + /** + * Parse the location from SecuritySettings resource. + * + * @param {string} securitySettingsName + * A fully-qualified path representing SecuritySettings resource. + * @returns {string} A string representing the location. + */ + matchLocationFromSecuritySettingsName(securitySettingsName: string) { + return this.pathTemplates.securitySettingsPathTemplate.match( + securitySettingsName + ).location; + } + + /** + * Parse the security_settings from SecuritySettings resource. + * + * @param {string} securitySettingsName + * A fully-qualified path representing SecuritySettings resource. + * @returns {string} A string representing the security_settings. + */ + matchSecuritySettingsFromSecuritySettingsName(securitySettingsName: string) { + return this.pathTemplates.securitySettingsPathTemplate.match( + securitySettingsName + ).security_settings; + } + /** * Return a fully-qualified transitionRouteGroup resource name string. * diff --git a/src/v3beta1/transition_route_groups_client_config.json b/src/v3/transition_route_groups_client_config.json similarity index 95% rename from src/v3beta1/transition_route_groups_client_config.json rename to src/v3/transition_route_groups_client_config.json index a1f47451..6b22d907 100644 --- a/src/v3beta1/transition_route_groups_client_config.json +++ b/src/v3/transition_route_groups_client_config.json @@ -1,6 +1,6 @@ { "interfaces": { - "google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups": { + "google.cloud.dialogflow.cx.v3.TransitionRouteGroups": { "retry_codes": { "non_idempotent": [], "idempotent": [ diff --git a/src/v3/transition_route_groups_proto_list.json b/src/v3/transition_route_groups_proto_list.json new file mode 100644 index 00000000..622b657f --- /dev/null +++ b/src/v3/transition_route_groups_proto_list.json @@ -0,0 +1,17 @@ +[ + "../../protos/google/cloud/dialogflow/cx/v3/agent.proto", + "../../protos/google/cloud/dialogflow/cx/v3/audio_config.proto", + "../../protos/google/cloud/dialogflow/cx/v3/entity_type.proto", + "../../protos/google/cloud/dialogflow/cx/v3/environment.proto", + "../../protos/google/cloud/dialogflow/cx/v3/flow.proto", + "../../protos/google/cloud/dialogflow/cx/v3/fulfillment.proto", + "../../protos/google/cloud/dialogflow/cx/v3/intent.proto", + "../../protos/google/cloud/dialogflow/cx/v3/page.proto", + "../../protos/google/cloud/dialogflow/cx/v3/response_message.proto", + "../../protos/google/cloud/dialogflow/cx/v3/security_settings.proto", + "../../protos/google/cloud/dialogflow/cx/v3/session.proto", + "../../protos/google/cloud/dialogflow/cx/v3/session_entity_type.proto", + "../../protos/google/cloud/dialogflow/cx/v3/transition_route_group.proto", + "../../protos/google/cloud/dialogflow/cx/v3/version.proto", + "../../protos/google/cloud/dialogflow/cx/v3/webhook.proto" +] diff --git a/src/v3beta1/versions_client.ts b/src/v3/versions_client.ts similarity index 85% rename from src/v3beta1/versions_client.ts rename to src/v3/versions_client.ts index fc276b63..d7dde904 100644 --- a/src/v3beta1/versions_client.ts +++ b/src/v3/versions_client.ts @@ -16,6 +16,7 @@ // ** https://github.com/googleapis/gapic-generator-typescript ** // ** All changes to this file may be overwritten. ** +/* global window */ import * as gax from 'google-gax'; import { Callback, @@ -31,14 +32,19 @@ import * as path from 'path'; import {Transform} from 'stream'; import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; +/** + * Client JSON configuration object, loaded from + * `src/v3/versions_client_config.json`. + * This file defines retry strategy and timeouts for all API methods in this library. + */ import * as gapicConfig from './versions_client_config.json'; import {operationsProtos} from 'google-gax'; const version = require('../../../package.json').version; /** - * Service for managing {@link google.cloud.dialogflow.cx.v3beta1.Version|Versions}. + * Service for managing {@link google.cloud.dialogflow.cx.v3.Version|Versions}. * @class - * @memberof v3beta1 + * @memberof v3 */ export class VersionsClient { private _terminated = false; @@ -85,9 +91,9 @@ export class VersionsClient { * your project ID will be detected automatically. * @param {string} [options.apiEndpoint] - The domain name of the * API remote host. - * @param {gax.ClientConfig} [options.clientConfig] - client configuration override. - * TODO(@alexander-fenster): link to gax documentation. - * @param {boolean} fallback - Use HTTP fallback mode. + * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. + * Follows the structure of {@link gapicConfig}. + * @param {boolean} [options.fallback] - Use HTTP fallback mode. * In fallback mode, a special browser-compatible transport implementation is used * instead of gRPC transport. In browser context (if the `window` object is defined) * the fallback mode is enabled automatically; set `options.fallback` to `false` @@ -100,7 +106,9 @@ export class VersionsClient { opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; - const fallback = opts?.fallback ?? typeof window !== 'undefined'; + const fallback = + opts?.fallback ?? + (typeof window !== 'undefined' && typeof window?.fetch === 'function'); opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. @@ -190,6 +198,9 @@ export class VersionsClient { projectLocationAgentSessionEntityTypePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/agents/{agent}/sessions/{session}/entityTypes/{entity_type}' ), + securitySettingsPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/securitySettings/{security_settings}' + ), transitionRouteGroupPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/agents/{agent}/flows/{flow}/transitionRouteGroups/{transition_route_group}' ), @@ -229,10 +240,10 @@ export class VersionsClient { }) .operationsClient(opts); const createVersionResponse = protoFilesRoot.lookup( - '.google.cloud.dialogflow.cx.v3beta1.Version' + '.google.cloud.dialogflow.cx.v3.Version' ) as gax.protobuf.Type; const createVersionMetadata = protoFilesRoot.lookup( - '.google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata' + '.google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata' ) as gax.protobuf.Type; const loadVersionResponse = protoFilesRoot.lookup( '.google.protobuf.Empty' @@ -256,7 +267,7 @@ export class VersionsClient { // Put together the default options sent with requests. this._defaults = this._gaxGrpc.constructSettings( - 'google.cloud.dialogflow.cx.v3beta1.Versions', + 'google.cloud.dialogflow.cx.v3.Versions', gapicConfig as gax.ClientConfig, opts.clientConfig || {}, {'x-goog-api-client': clientHeader.join(' ')} @@ -286,14 +297,14 @@ export class VersionsClient { } // Put together the "service stub" for - // google.cloud.dialogflow.cx.v3beta1.Versions. + // google.cloud.dialogflow.cx.v3.Versions. this.versionsStub = this._gaxGrpc.createStub( this._opts.fallback ? (this._protos as protobuf.Root).lookupService( - 'google.cloud.dialogflow.cx.v3beta1.Versions' + 'google.cloud.dialogflow.cx.v3.Versions' ) : // eslint-disable-next-line @typescript-eslint/no-explicit-any - (this._protos as any).google.cloud.dialogflow.cx.v3beta1.Versions, + (this._protos as any).google.cloud.dialogflow.cx.v3.Versions, this._opts ) as Promise<{[method: string]: Function}>; @@ -394,49 +405,49 @@ export class VersionsClient { // -- Service calls -- // ------------------- getVersion( - request: protos.google.cloud.dialogflow.cx.v3beta1.IGetVersionRequest, - options?: gax.CallOptions + request: protos.google.cloud.dialogflow.cx.v3.IGetVersionRequest, + options?: CallOptions ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.IVersion, - protos.google.cloud.dialogflow.cx.v3beta1.IGetVersionRequest | undefined, + protos.google.cloud.dialogflow.cx.v3.IVersion, + protos.google.cloud.dialogflow.cx.v3.IGetVersionRequest | undefined, {} | undefined ] >; getVersion( - request: protos.google.cloud.dialogflow.cx.v3beta1.IGetVersionRequest, - options: gax.CallOptions, + request: protos.google.cloud.dialogflow.cx.v3.IGetVersionRequest, + options: CallOptions, callback: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IVersion, - | protos.google.cloud.dialogflow.cx.v3beta1.IGetVersionRequest + protos.google.cloud.dialogflow.cx.v3.IVersion, + | protos.google.cloud.dialogflow.cx.v3.IGetVersionRequest | null | undefined, {} | null | undefined > ): void; getVersion( - request: protos.google.cloud.dialogflow.cx.v3beta1.IGetVersionRequest, + request: protos.google.cloud.dialogflow.cx.v3.IGetVersionRequest, callback: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IVersion, - | protos.google.cloud.dialogflow.cx.v3beta1.IGetVersionRequest + protos.google.cloud.dialogflow.cx.v3.IVersion, + | protos.google.cloud.dialogflow.cx.v3.IGetVersionRequest | null | undefined, {} | null | undefined > ): void; /** - * Retrieves the specified {@link google.cloud.dialogflow.cx.v3beta1.Version|Version}. + * Retrieves the specified {@link google.cloud.dialogflow.cx.v3.Version|Version}. * * @param {Object} request * The request object that will be sent. * @param {string} request.name - * Required. The name of the {@link google.cloud.dialogflow.cx.v3beta1.Version|Version}. + * Required. The name of the {@link google.cloud.dialogflow.cx.v3.Version|Version}. * 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. - * The first element of the array is an object representing [Version]{@link google.cloud.dialogflow.cx.v3beta1.Version}. + * The first element of the array is an object representing [Version]{@link google.cloud.dialogflow.cx.v3.Version}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. @@ -444,37 +455,37 @@ export class VersionsClient { * const [response] = await client.getVersion(request); */ getVersion( - request: protos.google.cloud.dialogflow.cx.v3beta1.IGetVersionRequest, + request: protos.google.cloud.dialogflow.cx.v3.IGetVersionRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IVersion, - | protos.google.cloud.dialogflow.cx.v3beta1.IGetVersionRequest + protos.google.cloud.dialogflow.cx.v3.IVersion, + | protos.google.cloud.dialogflow.cx.v3.IGetVersionRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IVersion, - | protos.google.cloud.dialogflow.cx.v3beta1.IGetVersionRequest + protos.google.cloud.dialogflow.cx.v3.IVersion, + | protos.google.cloud.dialogflow.cx.v3.IGetVersionRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.IVersion, - protos.google.cloud.dialogflow.cx.v3beta1.IGetVersionRequest | undefined, + protos.google.cloud.dialogflow.cx.v3.IVersion, + protos.google.cloud.dialogflow.cx.v3.IGetVersionRequest | undefined, {} | undefined ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -488,45 +499,42 @@ export class VersionsClient { return this.innerApiCalls.getVersion(request, options, callback); } updateVersion( - request: protos.google.cloud.dialogflow.cx.v3beta1.IUpdateVersionRequest, - options?: gax.CallOptions + request: protos.google.cloud.dialogflow.cx.v3.IUpdateVersionRequest, + options?: CallOptions ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.IVersion, - ( - | protos.google.cloud.dialogflow.cx.v3beta1.IUpdateVersionRequest - | undefined - ), + protos.google.cloud.dialogflow.cx.v3.IVersion, + protos.google.cloud.dialogflow.cx.v3.IUpdateVersionRequest | undefined, {} | undefined ] >; updateVersion( - request: protos.google.cloud.dialogflow.cx.v3beta1.IUpdateVersionRequest, - options: gax.CallOptions, + request: protos.google.cloud.dialogflow.cx.v3.IUpdateVersionRequest, + options: CallOptions, callback: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IVersion, - | protos.google.cloud.dialogflow.cx.v3beta1.IUpdateVersionRequest + protos.google.cloud.dialogflow.cx.v3.IVersion, + | protos.google.cloud.dialogflow.cx.v3.IUpdateVersionRequest | null | undefined, {} | null | undefined > ): void; updateVersion( - request: protos.google.cloud.dialogflow.cx.v3beta1.IUpdateVersionRequest, + request: protos.google.cloud.dialogflow.cx.v3.IUpdateVersionRequest, callback: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IVersion, - | protos.google.cloud.dialogflow.cx.v3beta1.IUpdateVersionRequest + protos.google.cloud.dialogflow.cx.v3.IVersion, + | protos.google.cloud.dialogflow.cx.v3.IUpdateVersionRequest | null | undefined, {} | null | undefined > ): void; /** - * Updates the specified {@link google.cloud.dialogflow.cx.v3beta1.Version|Version}. + * Updates the specified {@link google.cloud.dialogflow.cx.v3.Version|Version}. * * @param {Object} request * The request object that will be sent. - * @param {google.cloud.dialogflow.cx.v3beta1.Version} request.version + * @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` @@ -534,7 +542,7 @@ export class VersionsClient { * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Version]{@link google.cloud.dialogflow.cx.v3beta1.Version}. + * The first element of the array is an object representing [Version]{@link google.cloud.dialogflow.cx.v3.Version}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. @@ -542,40 +550,37 @@ export class VersionsClient { * const [response] = await client.updateVersion(request); */ updateVersion( - request: protos.google.cloud.dialogflow.cx.v3beta1.IUpdateVersionRequest, + request: protos.google.cloud.dialogflow.cx.v3.IUpdateVersionRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IVersion, - | protos.google.cloud.dialogflow.cx.v3beta1.IUpdateVersionRequest + protos.google.cloud.dialogflow.cx.v3.IVersion, + | protos.google.cloud.dialogflow.cx.v3.IUpdateVersionRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IVersion, - | protos.google.cloud.dialogflow.cx.v3beta1.IUpdateVersionRequest + protos.google.cloud.dialogflow.cx.v3.IVersion, + | protos.google.cloud.dialogflow.cx.v3.IUpdateVersionRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.IVersion, - ( - | protos.google.cloud.dialogflow.cx.v3beta1.IUpdateVersionRequest - | undefined - ), + protos.google.cloud.dialogflow.cx.v3.IVersion, + protos.google.cloud.dialogflow.cx.v3.IUpdateVersionRequest | undefined, {} | undefined ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -589,46 +594,43 @@ export class VersionsClient { return this.innerApiCalls.updateVersion(request, options, callback); } deleteVersion( - request: protos.google.cloud.dialogflow.cx.v3beta1.IDeleteVersionRequest, - options?: gax.CallOptions + request: protos.google.cloud.dialogflow.cx.v3.IDeleteVersionRequest, + options?: CallOptions ): Promise< [ protos.google.protobuf.IEmpty, - ( - | protos.google.cloud.dialogflow.cx.v3beta1.IDeleteVersionRequest - | undefined - ), + protos.google.cloud.dialogflow.cx.v3.IDeleteVersionRequest | undefined, {} | undefined ] >; deleteVersion( - request: protos.google.cloud.dialogflow.cx.v3beta1.IDeleteVersionRequest, - options: gax.CallOptions, + request: protos.google.cloud.dialogflow.cx.v3.IDeleteVersionRequest, + options: CallOptions, callback: Callback< protos.google.protobuf.IEmpty, - | protos.google.cloud.dialogflow.cx.v3beta1.IDeleteVersionRequest + | protos.google.cloud.dialogflow.cx.v3.IDeleteVersionRequest | null | undefined, {} | null | undefined > ): void; deleteVersion( - request: protos.google.cloud.dialogflow.cx.v3beta1.IDeleteVersionRequest, + request: protos.google.cloud.dialogflow.cx.v3.IDeleteVersionRequest, callback: Callback< protos.google.protobuf.IEmpty, - | protos.google.cloud.dialogflow.cx.v3beta1.IDeleteVersionRequest + | protos.google.cloud.dialogflow.cx.v3.IDeleteVersionRequest | null | undefined, {} | null | undefined > ): void; /** - * Deletes the specified {@link google.cloud.dialogflow.cx.v3beta1.Version|Version}. + * Deletes the specified {@link google.cloud.dialogflow.cx.v3.Version|Version}. * * @param {Object} request * The request object that will be sent. * @param {string} request.name - * Required. The name of the {@link google.cloud.dialogflow.cx.v3beta1.Version|Version} to delete. + * Required. The name of the {@link google.cloud.dialogflow.cx.v3.Version|Version} to delete. * Format: `projects//locations//agents//flows//versions/`. * @param {object} [options] @@ -642,19 +644,19 @@ export class VersionsClient { * const [response] = await client.deleteVersion(request); */ deleteVersion( - request: protos.google.cloud.dialogflow.cx.v3beta1.IDeleteVersionRequest, + request: protos.google.cloud.dialogflow.cx.v3.IDeleteVersionRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.protobuf.IEmpty, - | protos.google.cloud.dialogflow.cx.v3beta1.IDeleteVersionRequest + | protos.google.cloud.dialogflow.cx.v3.IDeleteVersionRequest | null | undefined, {} | null | undefined >, callback?: Callback< protos.google.protobuf.IEmpty, - | protos.google.cloud.dialogflow.cx.v3beta1.IDeleteVersionRequest + | protos.google.cloud.dialogflow.cx.v3.IDeleteVersionRequest | null | undefined, {} | null | undefined @@ -662,20 +664,17 @@ export class VersionsClient { ): Promise< [ protos.google.protobuf.IEmpty, - ( - | protos.google.cloud.dialogflow.cx.v3beta1.IDeleteVersionRequest - | undefined - ), + protos.google.cloud.dialogflow.cx.v3.IDeleteVersionRequest | undefined, {} | undefined ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -690,51 +689,51 @@ export class VersionsClient { } createVersion( - request: protos.google.cloud.dialogflow.cx.v3beta1.ICreateVersionRequest, - options?: gax.CallOptions + request: protos.google.cloud.dialogflow.cx.v3.ICreateVersionRequest, + options?: CallOptions ): Promise< [ LROperation< - protos.google.cloud.dialogflow.cx.v3beta1.IVersion, - protos.google.cloud.dialogflow.cx.v3beta1.ICreateVersionOperationMetadata + protos.google.cloud.dialogflow.cx.v3.IVersion, + protos.google.cloud.dialogflow.cx.v3.ICreateVersionOperationMetadata >, protos.google.longrunning.IOperation | undefined, {} | undefined ] >; createVersion( - request: protos.google.cloud.dialogflow.cx.v3beta1.ICreateVersionRequest, - options: gax.CallOptions, + request: protos.google.cloud.dialogflow.cx.v3.ICreateVersionRequest, + options: CallOptions, callback: Callback< LROperation< - protos.google.cloud.dialogflow.cx.v3beta1.IVersion, - protos.google.cloud.dialogflow.cx.v3beta1.ICreateVersionOperationMetadata + protos.google.cloud.dialogflow.cx.v3.IVersion, + protos.google.cloud.dialogflow.cx.v3.ICreateVersionOperationMetadata >, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined > ): void; createVersion( - request: protos.google.cloud.dialogflow.cx.v3beta1.ICreateVersionRequest, + request: protos.google.cloud.dialogflow.cx.v3.ICreateVersionRequest, callback: Callback< LROperation< - protos.google.cloud.dialogflow.cx.v3beta1.IVersion, - protos.google.cloud.dialogflow.cx.v3beta1.ICreateVersionOperationMetadata + protos.google.cloud.dialogflow.cx.v3.IVersion, + protos.google.cloud.dialogflow.cx.v3.ICreateVersionOperationMetadata >, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined > ): void; /** - * Creates a {@link google.cloud.dialogflow.cx.v3beta1.Version|Version} in the specified {@link google.cloud.dialogflow.cx.v3beta1.Flow|Flow}. + * Creates a {@link google.cloud.dialogflow.cx.v3.Version|Version} 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.v3beta1.Flow|Flow} to create an {@link google.cloud.dialogflow.cx.v3beta1.Version|Version} for. + * 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.v3beta1.Version} request.version + * @param {google.cloud.dialogflow.cx.v3.Version} request.version * Required. The version to create. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. @@ -750,21 +749,21 @@ export class VersionsClient { * const [response] = await operation.promise(); */ createVersion( - request: protos.google.cloud.dialogflow.cx.v3beta1.ICreateVersionRequest, + request: protos.google.cloud.dialogflow.cx.v3.ICreateVersionRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< LROperation< - protos.google.cloud.dialogflow.cx.v3beta1.IVersion, - protos.google.cloud.dialogflow.cx.v3beta1.ICreateVersionOperationMetadata + protos.google.cloud.dialogflow.cx.v3.IVersion, + protos.google.cloud.dialogflow.cx.v3.ICreateVersionOperationMetadata >, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined >, callback?: Callback< LROperation< - protos.google.cloud.dialogflow.cx.v3beta1.IVersion, - protos.google.cloud.dialogflow.cx.v3beta1.ICreateVersionOperationMetadata + protos.google.cloud.dialogflow.cx.v3.IVersion, + protos.google.cloud.dialogflow.cx.v3.ICreateVersionOperationMetadata >, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined @@ -772,20 +771,20 @@ export class VersionsClient { ): Promise< [ LROperation< - protos.google.cloud.dialogflow.cx.v3beta1.IVersion, - protos.google.cloud.dialogflow.cx.v3beta1.ICreateVersionOperationMetadata + protos.google.cloud.dialogflow.cx.v3.IVersion, + protos.google.cloud.dialogflow.cx.v3.ICreateVersionOperationMetadata >, protos.google.longrunning.IOperation | undefined, {} | undefined ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -817,8 +816,8 @@ export class VersionsClient { name: string ): Promise< LROperation< - protos.google.cloud.dialogflow.cx.v3beta1.Version, - protos.google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata + protos.google.cloud.dialogflow.cx.v3.Version, + protos.google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata > > { const request = new operationsProtos.google.longrunning.GetOperationRequest( @@ -831,13 +830,13 @@ export class VersionsClient { gax.createDefaultBackoffSettings() ); return decodeOperation as LROperation< - protos.google.cloud.dialogflow.cx.v3beta1.Version, - protos.google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata + protos.google.cloud.dialogflow.cx.v3.Version, + protos.google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata >; } loadVersion( - request: protos.google.cloud.dialogflow.cx.v3beta1.ILoadVersionRequest, - options?: gax.CallOptions + request: protos.google.cloud.dialogflow.cx.v3.ILoadVersionRequest, + options?: CallOptions ): Promise< [ LROperation< @@ -849,8 +848,8 @@ export class VersionsClient { ] >; loadVersion( - request: protos.google.cloud.dialogflow.cx.v3beta1.ILoadVersionRequest, - options: gax.CallOptions, + request: protos.google.cloud.dialogflow.cx.v3.ILoadVersionRequest, + options: CallOptions, callback: Callback< LROperation< protos.google.protobuf.IEmpty, @@ -861,7 +860,7 @@ export class VersionsClient { > ): void; loadVersion( - request: protos.google.cloud.dialogflow.cx.v3beta1.ILoadVersionRequest, + request: protos.google.cloud.dialogflow.cx.v3.ILoadVersionRequest, callback: Callback< LROperation< protos.google.protobuf.IEmpty, @@ -877,7 +876,7 @@ export class VersionsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.name - * Required. The {@link google.cloud.dialogflow.cx.v3beta1.Version|Version} to be loaded to draft version. + * Required. The {@link google.cloud.dialogflow.cx.v3.Version|Version} to be loaded to draft version. * Format: `projects//locations//agents//flows//versions/`. * @param {boolean} request.allowOverrideAgentResources @@ -899,9 +898,9 @@ export class VersionsClient { * const [response] = await operation.promise(); */ loadVersion( - request: protos.google.cloud.dialogflow.cx.v3beta1.ILoadVersionRequest, + request: protos.google.cloud.dialogflow.cx.v3.ILoadVersionRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< LROperation< protos.google.protobuf.IEmpty, @@ -929,12 +928,12 @@ export class VersionsClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -982,43 +981,43 @@ export class VersionsClient { >; } listVersions( - request: protos.google.cloud.dialogflow.cx.v3beta1.IListVersionsRequest, - options?: gax.CallOptions + request: protos.google.cloud.dialogflow.cx.v3.IListVersionsRequest, + options?: CallOptions ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.IVersion[], - protos.google.cloud.dialogflow.cx.v3beta1.IListVersionsRequest | null, - protos.google.cloud.dialogflow.cx.v3beta1.IListVersionsResponse + protos.google.cloud.dialogflow.cx.v3.IVersion[], + protos.google.cloud.dialogflow.cx.v3.IListVersionsRequest | null, + protos.google.cloud.dialogflow.cx.v3.IListVersionsResponse ] >; listVersions( - request: protos.google.cloud.dialogflow.cx.v3beta1.IListVersionsRequest, - options: gax.CallOptions, + request: protos.google.cloud.dialogflow.cx.v3.IListVersionsRequest, + options: CallOptions, callback: PaginationCallback< - protos.google.cloud.dialogflow.cx.v3beta1.IListVersionsRequest, - | protos.google.cloud.dialogflow.cx.v3beta1.IListVersionsResponse + protos.google.cloud.dialogflow.cx.v3.IListVersionsRequest, + | protos.google.cloud.dialogflow.cx.v3.IListVersionsResponse | null | undefined, - protos.google.cloud.dialogflow.cx.v3beta1.IVersion + protos.google.cloud.dialogflow.cx.v3.IVersion > ): void; listVersions( - request: protos.google.cloud.dialogflow.cx.v3beta1.IListVersionsRequest, + request: protos.google.cloud.dialogflow.cx.v3.IListVersionsRequest, callback: PaginationCallback< - protos.google.cloud.dialogflow.cx.v3beta1.IListVersionsRequest, - | protos.google.cloud.dialogflow.cx.v3beta1.IListVersionsResponse + protos.google.cloud.dialogflow.cx.v3.IListVersionsRequest, + | protos.google.cloud.dialogflow.cx.v3.IListVersionsResponse | null | undefined, - protos.google.cloud.dialogflow.cx.v3beta1.IVersion + protos.google.cloud.dialogflow.cx.v3.IVersion > ): void; /** - * Returns the list of all versions in the specified {@link google.cloud.dialogflow.cx.v3beta1.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.v3beta1.Flow|Flow} to list all versions for. + * Required. The {@link google.cloud.dialogflow.cx.v3.Flow|Flow} to list all versions for. * Format: `projects//locations//agents//flows/`. * @param {number} request.pageSize @@ -1029,7 +1028,7 @@ export class VersionsClient { * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of [Version]{@link google.cloud.dialogflow.cx.v3beta1.Version}. + * The first element of the array is Array of [Version]{@link google.cloud.dialogflow.cx.v3.Version}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. @@ -1040,37 +1039,37 @@ export class VersionsClient { * for more details and examples. */ listVersions( - request: protos.google.cloud.dialogflow.cx.v3beta1.IListVersionsRequest, + request: protos.google.cloud.dialogflow.cx.v3.IListVersionsRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | PaginationCallback< - protos.google.cloud.dialogflow.cx.v3beta1.IListVersionsRequest, - | protos.google.cloud.dialogflow.cx.v3beta1.IListVersionsResponse + protos.google.cloud.dialogflow.cx.v3.IListVersionsRequest, + | protos.google.cloud.dialogflow.cx.v3.IListVersionsResponse | null | undefined, - protos.google.cloud.dialogflow.cx.v3beta1.IVersion + protos.google.cloud.dialogflow.cx.v3.IVersion >, callback?: PaginationCallback< - protos.google.cloud.dialogflow.cx.v3beta1.IListVersionsRequest, - | protos.google.cloud.dialogflow.cx.v3beta1.IListVersionsResponse + protos.google.cloud.dialogflow.cx.v3.IListVersionsRequest, + | protos.google.cloud.dialogflow.cx.v3.IListVersionsResponse | null | undefined, - protos.google.cloud.dialogflow.cx.v3beta1.IVersion + protos.google.cloud.dialogflow.cx.v3.IVersion > ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.IVersion[], - protos.google.cloud.dialogflow.cx.v3beta1.IListVersionsRequest | null, - protos.google.cloud.dialogflow.cx.v3beta1.IListVersionsResponse + protos.google.cloud.dialogflow.cx.v3.IVersion[], + protos.google.cloud.dialogflow.cx.v3.IListVersionsRequest | null, + protos.google.cloud.dialogflow.cx.v3.IListVersionsResponse ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1089,7 +1088,7 @@ export class VersionsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The {@link google.cloud.dialogflow.cx.v3beta1.Flow|Flow} to list all versions for. + * Required. The {@link google.cloud.dialogflow.cx.v3.Flow|Flow} to list all versions for. * Format: `projects//locations//agents//flows/`. * @param {number} request.pageSize @@ -1100,7 +1099,7 @@ export class VersionsClient { * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing [Version]{@link google.cloud.dialogflow.cx.v3beta1.Version} on 'data' event. + * An object stream which emits an object representing [Version]{@link google.cloud.dialogflow.cx.v3.Version} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. * We recommend using `listVersionsAsync()` @@ -1110,8 +1109,8 @@ export class VersionsClient { * for more details and examples. */ listVersionsStream( - request?: protos.google.cloud.dialogflow.cx.v3beta1.IListVersionsRequest, - options?: gax.CallOptions + request?: protos.google.cloud.dialogflow.cx.v3.IListVersionsRequest, + options?: CallOptions ): Transform { request = request || {}; options = options || {}; @@ -1138,7 +1137,7 @@ export class VersionsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The {@link google.cloud.dialogflow.cx.v3beta1.Flow|Flow} to list all versions for. + * Required. The {@link google.cloud.dialogflow.cx.v3.Flow|Flow} to list all versions for. * Format: `projects//locations//agents//flows/`. * @param {number} request.pageSize @@ -1151,7 +1150,7 @@ export class VersionsClient { * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * [Version]{@link google.cloud.dialogflow.cx.v3beta1.Version}. The API will be called under the hood as needed, once per the page, + * [Version]{@link google.cloud.dialogflow.cx.v3.Version}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) @@ -1163,9 +1162,9 @@ export class VersionsClient { * } */ listVersionsAsync( - request?: protos.google.cloud.dialogflow.cx.v3beta1.IListVersionsRequest, - options?: gax.CallOptions - ): AsyncIterable { + request?: protos.google.cloud.dialogflow.cx.v3.IListVersionsRequest, + options?: CallOptions + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1182,7 +1181,7 @@ export class VersionsClient { this.innerApiCalls['listVersions'] as GaxCall, (request as unknown) as RequestType, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } // -------------------- // -- Path templates -- @@ -1867,6 +1866,65 @@ export class VersionsClient { ).entity_type; } + /** + * Return a fully-qualified securitySettings resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} security_settings + * @returns {string} Resource name string. + */ + securitySettingsPath( + project: string, + location: string, + securitySettings: string + ) { + return this.pathTemplates.securitySettingsPathTemplate.render({ + project: project, + location: location, + security_settings: securitySettings, + }); + } + + /** + * Parse the project from SecuritySettings resource. + * + * @param {string} securitySettingsName + * A fully-qualified path representing SecuritySettings resource. + * @returns {string} A string representing the project. + */ + matchProjectFromSecuritySettingsName(securitySettingsName: string) { + return this.pathTemplates.securitySettingsPathTemplate.match( + securitySettingsName + ).project; + } + + /** + * Parse the location from SecuritySettings resource. + * + * @param {string} securitySettingsName + * A fully-qualified path representing SecuritySettings resource. + * @returns {string} A string representing the location. + */ + matchLocationFromSecuritySettingsName(securitySettingsName: string) { + return this.pathTemplates.securitySettingsPathTemplate.match( + securitySettingsName + ).location; + } + + /** + * Parse the security_settings from SecuritySettings resource. + * + * @param {string} securitySettingsName + * A fully-qualified path representing SecuritySettings resource. + * @returns {string} A string representing the security_settings. + */ + matchSecuritySettingsFromSecuritySettingsName(securitySettingsName: string) { + return this.pathTemplates.securitySettingsPathTemplate.match( + securitySettingsName + ).security_settings; + } + /** * Return a fully-qualified transitionRouteGroup resource name string. * diff --git a/src/v3beta1/versions_client_config.json b/src/v3/versions_client_config.json similarity index 96% rename from src/v3beta1/versions_client_config.json rename to src/v3/versions_client_config.json index 0c152904..d0f8327c 100644 --- a/src/v3beta1/versions_client_config.json +++ b/src/v3/versions_client_config.json @@ -1,6 +1,6 @@ { "interfaces": { - "google.cloud.dialogflow.cx.v3beta1.Versions": { + "google.cloud.dialogflow.cx.v3.Versions": { "retry_codes": { "non_idempotent": [], "idempotent": [ diff --git a/src/v3/versions_proto_list.json b/src/v3/versions_proto_list.json new file mode 100644 index 00000000..622b657f --- /dev/null +++ b/src/v3/versions_proto_list.json @@ -0,0 +1,17 @@ +[ + "../../protos/google/cloud/dialogflow/cx/v3/agent.proto", + "../../protos/google/cloud/dialogflow/cx/v3/audio_config.proto", + "../../protos/google/cloud/dialogflow/cx/v3/entity_type.proto", + "../../protos/google/cloud/dialogflow/cx/v3/environment.proto", + "../../protos/google/cloud/dialogflow/cx/v3/flow.proto", + "../../protos/google/cloud/dialogflow/cx/v3/fulfillment.proto", + "../../protos/google/cloud/dialogflow/cx/v3/intent.proto", + "../../protos/google/cloud/dialogflow/cx/v3/page.proto", + "../../protos/google/cloud/dialogflow/cx/v3/response_message.proto", + "../../protos/google/cloud/dialogflow/cx/v3/security_settings.proto", + "../../protos/google/cloud/dialogflow/cx/v3/session.proto", + "../../protos/google/cloud/dialogflow/cx/v3/session_entity_type.proto", + "../../protos/google/cloud/dialogflow/cx/v3/transition_route_group.proto", + "../../protos/google/cloud/dialogflow/cx/v3/version.proto", + "../../protos/google/cloud/dialogflow/cx/v3/webhook.proto" +] diff --git a/src/v3beta1/webhooks_client.ts b/src/v3/webhooks_client.ts similarity index 86% rename from src/v3beta1/webhooks_client.ts rename to src/v3/webhooks_client.ts index cdf79d44..e56e71c0 100644 --- a/src/v3beta1/webhooks_client.ts +++ b/src/v3/webhooks_client.ts @@ -16,6 +16,7 @@ // ** https://github.com/googleapis/gapic-generator-typescript ** // ** All changes to this file may be overwritten. ** +/* global window */ import * as gax from 'google-gax'; import { Callback, @@ -30,14 +31,19 @@ import * as path from 'path'; import {Transform} from 'stream'; import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; +/** + * Client JSON configuration object, loaded from + * `src/v3/webhooks_client_config.json`. + * This file defines retry strategy and timeouts for all API methods in this library. + */ import * as gapicConfig from './webhooks_client_config.json'; const version = require('../../../package.json').version; /** - * Service for managing {@link google.cloud.dialogflow.cx.v3beta1.Webhook|Webhooks}. + * Service for managing {@link google.cloud.dialogflow.cx.v3.Webhook|Webhooks}. * @class - * @memberof v3beta1 + * @memberof v3 */ export class WebhooksClient { private _terminated = false; @@ -83,9 +89,9 @@ export class WebhooksClient { * your project ID will be detected automatically. * @param {string} [options.apiEndpoint] - The domain name of the * API remote host. - * @param {gax.ClientConfig} [options.clientConfig] - client configuration override. - * TODO(@alexander-fenster): link to gax documentation. - * @param {boolean} fallback - Use HTTP fallback mode. + * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. + * Follows the structure of {@link gapicConfig}. + * @param {boolean} [options.fallback] - Use HTTP fallback mode. * In fallback mode, a special browser-compatible transport implementation is used * instead of gRPC transport. In browser context (if the `window` object is defined) * the fallback mode is enabled automatically; set `options.fallback` to `false` @@ -98,7 +104,9 @@ export class WebhooksClient { opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; - const fallback = opts?.fallback ?? typeof window !== 'undefined'; + const fallback = + opts?.fallback ?? + (typeof window !== 'undefined' && typeof window?.fetch === 'function'); opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. @@ -194,6 +202,9 @@ export class WebhooksClient { projectLocationAgentSessionEntityTypePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/agents/{agent}/sessions/{session}/entityTypes/{entity_type}' ), + securitySettingsPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/securitySettings/{security_settings}' + ), transitionRouteGroupPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/agents/{agent}/flows/{flow}/transitionRouteGroups/{transition_route_group}' ), @@ -218,7 +229,7 @@ export class WebhooksClient { // Put together the default options sent with requests. this._defaults = this._gaxGrpc.constructSettings( - 'google.cloud.dialogflow.cx.v3beta1.Webhooks', + 'google.cloud.dialogflow.cx.v3.Webhooks', gapicConfig as gax.ClientConfig, opts.clientConfig || {}, {'x-goog-api-client': clientHeader.join(' ')} @@ -248,14 +259,14 @@ export class WebhooksClient { } // Put together the "service stub" for - // google.cloud.dialogflow.cx.v3beta1.Webhooks. + // google.cloud.dialogflow.cx.v3.Webhooks. this.webhooksStub = this._gaxGrpc.createStub( this._opts.fallback ? (this._protos as protobuf.Root).lookupService( - 'google.cloud.dialogflow.cx.v3beta1.Webhooks' + 'google.cloud.dialogflow.cx.v3.Webhooks' ) : // eslint-disable-next-line @typescript-eslint/no-explicit-any - (this._protos as any).google.cloud.dialogflow.cx.v3beta1.Webhooks, + (this._protos as any).google.cloud.dialogflow.cx.v3.Webhooks, this._opts ) as Promise<{[method: string]: Function}>; @@ -352,31 +363,31 @@ export class WebhooksClient { // -- Service calls -- // ------------------- getWebhook( - request: protos.google.cloud.dialogflow.cx.v3beta1.IGetWebhookRequest, - options?: gax.CallOptions + request: protos.google.cloud.dialogflow.cx.v3.IGetWebhookRequest, + options?: CallOptions ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.IWebhook, - protos.google.cloud.dialogflow.cx.v3beta1.IGetWebhookRequest | undefined, + protos.google.cloud.dialogflow.cx.v3.IWebhook, + protos.google.cloud.dialogflow.cx.v3.IGetWebhookRequest | undefined, {} | undefined ] >; getWebhook( - request: protos.google.cloud.dialogflow.cx.v3beta1.IGetWebhookRequest, - options: gax.CallOptions, + request: protos.google.cloud.dialogflow.cx.v3.IGetWebhookRequest, + options: CallOptions, callback: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IWebhook, - | protos.google.cloud.dialogflow.cx.v3beta1.IGetWebhookRequest + protos.google.cloud.dialogflow.cx.v3.IWebhook, + | protos.google.cloud.dialogflow.cx.v3.IGetWebhookRequest | null | undefined, {} | null | undefined > ): void; getWebhook( - request: protos.google.cloud.dialogflow.cx.v3beta1.IGetWebhookRequest, + request: protos.google.cloud.dialogflow.cx.v3.IGetWebhookRequest, callback: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IWebhook, - | protos.google.cloud.dialogflow.cx.v3beta1.IGetWebhookRequest + protos.google.cloud.dialogflow.cx.v3.IWebhook, + | protos.google.cloud.dialogflow.cx.v3.IGetWebhookRequest | null | undefined, {} | null | undefined @@ -394,7 +405,7 @@ export class WebhooksClient { * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Webhook]{@link google.cloud.dialogflow.cx.v3beta1.Webhook}. + * The first element of the array is an object representing [Webhook]{@link google.cloud.dialogflow.cx.v3.Webhook}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. @@ -402,37 +413,37 @@ export class WebhooksClient { * const [response] = await client.getWebhook(request); */ getWebhook( - request: protos.google.cloud.dialogflow.cx.v3beta1.IGetWebhookRequest, + request: protos.google.cloud.dialogflow.cx.v3.IGetWebhookRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IWebhook, - | protos.google.cloud.dialogflow.cx.v3beta1.IGetWebhookRequest + protos.google.cloud.dialogflow.cx.v3.IWebhook, + | protos.google.cloud.dialogflow.cx.v3.IGetWebhookRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IWebhook, - | protos.google.cloud.dialogflow.cx.v3beta1.IGetWebhookRequest + protos.google.cloud.dialogflow.cx.v3.IWebhook, + | protos.google.cloud.dialogflow.cx.v3.IGetWebhookRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.IWebhook, - protos.google.cloud.dialogflow.cx.v3beta1.IGetWebhookRequest | undefined, + protos.google.cloud.dialogflow.cx.v3.IWebhook, + protos.google.cloud.dialogflow.cx.v3.IGetWebhookRequest | undefined, {} | undefined ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -446,34 +457,31 @@ export class WebhooksClient { return this.innerApiCalls.getWebhook(request, options, callback); } createWebhook( - request: protos.google.cloud.dialogflow.cx.v3beta1.ICreateWebhookRequest, - options?: gax.CallOptions + request: protos.google.cloud.dialogflow.cx.v3.ICreateWebhookRequest, + options?: CallOptions ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.IWebhook, - ( - | protos.google.cloud.dialogflow.cx.v3beta1.ICreateWebhookRequest - | undefined - ), + protos.google.cloud.dialogflow.cx.v3.IWebhook, + protos.google.cloud.dialogflow.cx.v3.ICreateWebhookRequest | undefined, {} | undefined ] >; createWebhook( - request: protos.google.cloud.dialogflow.cx.v3beta1.ICreateWebhookRequest, - options: gax.CallOptions, + request: protos.google.cloud.dialogflow.cx.v3.ICreateWebhookRequest, + options: CallOptions, callback: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IWebhook, - | protos.google.cloud.dialogflow.cx.v3beta1.ICreateWebhookRequest + protos.google.cloud.dialogflow.cx.v3.IWebhook, + | protos.google.cloud.dialogflow.cx.v3.ICreateWebhookRequest | null | undefined, {} | null | undefined > ): void; createWebhook( - request: protos.google.cloud.dialogflow.cx.v3beta1.ICreateWebhookRequest, + request: protos.google.cloud.dialogflow.cx.v3.ICreateWebhookRequest, callback: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IWebhook, - | protos.google.cloud.dialogflow.cx.v3beta1.ICreateWebhookRequest + protos.google.cloud.dialogflow.cx.v3.IWebhook, + | protos.google.cloud.dialogflow.cx.v3.ICreateWebhookRequest | null | undefined, {} | null | undefined @@ -487,12 +495,12 @@ export class WebhooksClient { * @param {string} request.parent * Required. The agent to create a webhook for. * Format: `projects//locations//agents/`. - * @param {google.cloud.dialogflow.cx.v3beta1.Webhook} request.webhook + * @param {google.cloud.dialogflow.cx.v3.Webhook} request.webhook * Required. The webhook to create. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Webhook]{@link google.cloud.dialogflow.cx.v3beta1.Webhook}. + * The first element of the array is an object representing [Webhook]{@link google.cloud.dialogflow.cx.v3.Webhook}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. @@ -500,40 +508,37 @@ export class WebhooksClient { * const [response] = await client.createWebhook(request); */ createWebhook( - request: protos.google.cloud.dialogflow.cx.v3beta1.ICreateWebhookRequest, + request: protos.google.cloud.dialogflow.cx.v3.ICreateWebhookRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IWebhook, - | protos.google.cloud.dialogflow.cx.v3beta1.ICreateWebhookRequest + protos.google.cloud.dialogflow.cx.v3.IWebhook, + | protos.google.cloud.dialogflow.cx.v3.ICreateWebhookRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IWebhook, - | protos.google.cloud.dialogflow.cx.v3beta1.ICreateWebhookRequest + protos.google.cloud.dialogflow.cx.v3.IWebhook, + | protos.google.cloud.dialogflow.cx.v3.ICreateWebhookRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.IWebhook, - ( - | protos.google.cloud.dialogflow.cx.v3beta1.ICreateWebhookRequest - | undefined - ), + protos.google.cloud.dialogflow.cx.v3.IWebhook, + protos.google.cloud.dialogflow.cx.v3.ICreateWebhookRequest | undefined, {} | undefined ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -547,34 +552,31 @@ export class WebhooksClient { return this.innerApiCalls.createWebhook(request, options, callback); } updateWebhook( - request: protos.google.cloud.dialogflow.cx.v3beta1.IUpdateWebhookRequest, - options?: gax.CallOptions + request: protos.google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest, + options?: CallOptions ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.IWebhook, - ( - | protos.google.cloud.dialogflow.cx.v3beta1.IUpdateWebhookRequest - | undefined - ), + protos.google.cloud.dialogflow.cx.v3.IWebhook, + protos.google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest | undefined, {} | undefined ] >; updateWebhook( - request: protos.google.cloud.dialogflow.cx.v3beta1.IUpdateWebhookRequest, - options: gax.CallOptions, + request: protos.google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest, + options: CallOptions, callback: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IWebhook, - | protos.google.cloud.dialogflow.cx.v3beta1.IUpdateWebhookRequest + protos.google.cloud.dialogflow.cx.v3.IWebhook, + | protos.google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest | null | undefined, {} | null | undefined > ): void; updateWebhook( - request: protos.google.cloud.dialogflow.cx.v3beta1.IUpdateWebhookRequest, + request: protos.google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest, callback: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IWebhook, - | protos.google.cloud.dialogflow.cx.v3beta1.IUpdateWebhookRequest + protos.google.cloud.dialogflow.cx.v3.IWebhook, + | protos.google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest | null | undefined, {} | null | undefined @@ -585,7 +587,7 @@ export class WebhooksClient { * * @param {Object} request * The request object that will be sent. - * @param {google.cloud.dialogflow.cx.v3beta1.Webhook} request.webhook + * @param {google.cloud.dialogflow.cx.v3.Webhook} request.webhook * Required. The webhook to update. * @param {google.protobuf.FieldMask} request.updateMask * The mask to control which fields get updated. If the mask is not present, @@ -593,7 +595,7 @@ export class WebhooksClient { * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Webhook]{@link google.cloud.dialogflow.cx.v3beta1.Webhook}. + * The first element of the array is an object representing [Webhook]{@link google.cloud.dialogflow.cx.v3.Webhook}. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. @@ -601,40 +603,37 @@ export class WebhooksClient { * const [response] = await client.updateWebhook(request); */ updateWebhook( - request: protos.google.cloud.dialogflow.cx.v3beta1.IUpdateWebhookRequest, + request: protos.google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IWebhook, - | protos.google.cloud.dialogflow.cx.v3beta1.IUpdateWebhookRequest + protos.google.cloud.dialogflow.cx.v3.IWebhook, + | protos.google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.cloud.dialogflow.cx.v3beta1.IWebhook, - | protos.google.cloud.dialogflow.cx.v3beta1.IUpdateWebhookRequest + protos.google.cloud.dialogflow.cx.v3.IWebhook, + | protos.google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.IWebhook, - ( - | protos.google.cloud.dialogflow.cx.v3beta1.IUpdateWebhookRequest - | undefined - ), + protos.google.cloud.dialogflow.cx.v3.IWebhook, + protos.google.cloud.dialogflow.cx.v3.IUpdateWebhookRequest | undefined, {} | undefined ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -648,34 +647,31 @@ export class WebhooksClient { return this.innerApiCalls.updateWebhook(request, options, callback); } deleteWebhook( - request: protos.google.cloud.dialogflow.cx.v3beta1.IDeleteWebhookRequest, - options?: gax.CallOptions + request: protos.google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest, + options?: CallOptions ): Promise< [ protos.google.protobuf.IEmpty, - ( - | protos.google.cloud.dialogflow.cx.v3beta1.IDeleteWebhookRequest - | undefined - ), + protos.google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest | undefined, {} | undefined ] >; deleteWebhook( - request: protos.google.cloud.dialogflow.cx.v3beta1.IDeleteWebhookRequest, - options: gax.CallOptions, + request: protos.google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest, + options: CallOptions, callback: Callback< protos.google.protobuf.IEmpty, - | protos.google.cloud.dialogflow.cx.v3beta1.IDeleteWebhookRequest + | protos.google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest | null | undefined, {} | null | undefined > ): void; deleteWebhook( - request: protos.google.cloud.dialogflow.cx.v3beta1.IDeleteWebhookRequest, + request: protos.google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest, callback: Callback< protos.google.protobuf.IEmpty, - | protos.google.cloud.dialogflow.cx.v3beta1.IDeleteWebhookRequest + | protos.google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest | null | undefined, {} | null | undefined @@ -697,8 +693,8 @@ 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.v3beta1.Fulfillment.webhook|Webhook} - * and {@link google.cloud.dialogflow.cx.v3beta1.Fulfillment.tag|tag}in fulfillments that point to this webhook + * 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. @@ -711,19 +707,19 @@ export class WebhooksClient { * const [response] = await client.deleteWebhook(request); */ deleteWebhook( - request: protos.google.cloud.dialogflow.cx.v3beta1.IDeleteWebhookRequest, + request: protos.google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.protobuf.IEmpty, - | protos.google.cloud.dialogflow.cx.v3beta1.IDeleteWebhookRequest + | protos.google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest | null | undefined, {} | null | undefined >, callback?: Callback< protos.google.protobuf.IEmpty, - | protos.google.cloud.dialogflow.cx.v3beta1.IDeleteWebhookRequest + | protos.google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest | null | undefined, {} | null | undefined @@ -731,20 +727,17 @@ export class WebhooksClient { ): Promise< [ protos.google.protobuf.IEmpty, - ( - | protos.google.cloud.dialogflow.cx.v3beta1.IDeleteWebhookRequest - | undefined - ), + protos.google.cloud.dialogflow.cx.v3.IDeleteWebhookRequest | undefined, {} | undefined ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -759,34 +752,34 @@ export class WebhooksClient { } listWebhooks( - request: protos.google.cloud.dialogflow.cx.v3beta1.IListWebhooksRequest, - options?: gax.CallOptions + request: protos.google.cloud.dialogflow.cx.v3.IListWebhooksRequest, + options?: CallOptions ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.IWebhook[], - protos.google.cloud.dialogflow.cx.v3beta1.IListWebhooksRequest | null, - protos.google.cloud.dialogflow.cx.v3beta1.IListWebhooksResponse + protos.google.cloud.dialogflow.cx.v3.IWebhook[], + protos.google.cloud.dialogflow.cx.v3.IListWebhooksRequest | null, + protos.google.cloud.dialogflow.cx.v3.IListWebhooksResponse ] >; listWebhooks( - request: protos.google.cloud.dialogflow.cx.v3beta1.IListWebhooksRequest, - options: gax.CallOptions, + request: protos.google.cloud.dialogflow.cx.v3.IListWebhooksRequest, + options: CallOptions, callback: PaginationCallback< - protos.google.cloud.dialogflow.cx.v3beta1.IListWebhooksRequest, - | protos.google.cloud.dialogflow.cx.v3beta1.IListWebhooksResponse + protos.google.cloud.dialogflow.cx.v3.IListWebhooksRequest, + | protos.google.cloud.dialogflow.cx.v3.IListWebhooksResponse | null | undefined, - protos.google.cloud.dialogflow.cx.v3beta1.IWebhook + protos.google.cloud.dialogflow.cx.v3.IWebhook > ): void; listWebhooks( - request: protos.google.cloud.dialogflow.cx.v3beta1.IListWebhooksRequest, + request: protos.google.cloud.dialogflow.cx.v3.IListWebhooksRequest, callback: PaginationCallback< - protos.google.cloud.dialogflow.cx.v3beta1.IListWebhooksRequest, - | protos.google.cloud.dialogflow.cx.v3beta1.IListWebhooksResponse + protos.google.cloud.dialogflow.cx.v3.IListWebhooksRequest, + | protos.google.cloud.dialogflow.cx.v3.IListWebhooksResponse | null | undefined, - protos.google.cloud.dialogflow.cx.v3beta1.IWebhook + protos.google.cloud.dialogflow.cx.v3.IWebhook > ): void; /** @@ -805,7 +798,7 @@ export class WebhooksClient { * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of [Webhook]{@link google.cloud.dialogflow.cx.v3beta1.Webhook}. + * The first element of the array is Array of [Webhook]{@link google.cloud.dialogflow.cx.v3.Webhook}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. @@ -816,37 +809,37 @@ export class WebhooksClient { * for more details and examples. */ listWebhooks( - request: protos.google.cloud.dialogflow.cx.v3beta1.IListWebhooksRequest, + request: protos.google.cloud.dialogflow.cx.v3.IListWebhooksRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | PaginationCallback< - protos.google.cloud.dialogflow.cx.v3beta1.IListWebhooksRequest, - | protos.google.cloud.dialogflow.cx.v3beta1.IListWebhooksResponse + protos.google.cloud.dialogflow.cx.v3.IListWebhooksRequest, + | protos.google.cloud.dialogflow.cx.v3.IListWebhooksResponse | null | undefined, - protos.google.cloud.dialogflow.cx.v3beta1.IWebhook + protos.google.cloud.dialogflow.cx.v3.IWebhook >, callback?: PaginationCallback< - protos.google.cloud.dialogflow.cx.v3beta1.IListWebhooksRequest, - | protos.google.cloud.dialogflow.cx.v3beta1.IListWebhooksResponse + protos.google.cloud.dialogflow.cx.v3.IListWebhooksRequest, + | protos.google.cloud.dialogflow.cx.v3.IListWebhooksResponse | null | undefined, - protos.google.cloud.dialogflow.cx.v3beta1.IWebhook + protos.google.cloud.dialogflow.cx.v3.IWebhook > ): Promise< [ - protos.google.cloud.dialogflow.cx.v3beta1.IWebhook[], - protos.google.cloud.dialogflow.cx.v3beta1.IListWebhooksRequest | null, - protos.google.cloud.dialogflow.cx.v3beta1.IListWebhooksResponse + protos.google.cloud.dialogflow.cx.v3.IWebhook[], + protos.google.cloud.dialogflow.cx.v3.IListWebhooksRequest | null, + protos.google.cloud.dialogflow.cx.v3.IListWebhooksResponse ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -875,7 +868,7 @@ export class WebhooksClient { * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing [Webhook]{@link google.cloud.dialogflow.cx.v3beta1.Webhook} on 'data' event. + * An object stream which emits an object representing [Webhook]{@link google.cloud.dialogflow.cx.v3.Webhook} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. * We recommend using `listWebhooksAsync()` @@ -885,8 +878,8 @@ export class WebhooksClient { * for more details and examples. */ listWebhooksStream( - request?: protos.google.cloud.dialogflow.cx.v3beta1.IListWebhooksRequest, - options?: gax.CallOptions + request?: protos.google.cloud.dialogflow.cx.v3.IListWebhooksRequest, + options?: CallOptions ): Transform { request = request || {}; options = options || {}; @@ -925,7 +918,7 @@ export class WebhooksClient { * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * [Webhook]{@link google.cloud.dialogflow.cx.v3beta1.Webhook}. The API will be called under the hood as needed, once per the page, + * [Webhook]{@link google.cloud.dialogflow.cx.v3.Webhook}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) @@ -937,9 +930,9 @@ export class WebhooksClient { * } */ listWebhooksAsync( - request?: protos.google.cloud.dialogflow.cx.v3beta1.IListWebhooksRequest, - options?: gax.CallOptions - ): AsyncIterable { + request?: protos.google.cloud.dialogflow.cx.v3.IListWebhooksRequest, + options?: CallOptions + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -956,7 +949,7 @@ export class WebhooksClient { this.innerApiCalls['listWebhooks'] as GaxCall, (request as unknown) as RequestType, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } // -------------------- // -- Path templates -- @@ -1827,6 +1820,65 @@ export class WebhooksClient { ).entity_type; } + /** + * Return a fully-qualified securitySettings resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} security_settings + * @returns {string} Resource name string. + */ + securitySettingsPath( + project: string, + location: string, + securitySettings: string + ) { + return this.pathTemplates.securitySettingsPathTemplate.render({ + project: project, + location: location, + security_settings: securitySettings, + }); + } + + /** + * Parse the project from SecuritySettings resource. + * + * @param {string} securitySettingsName + * A fully-qualified path representing SecuritySettings resource. + * @returns {string} A string representing the project. + */ + matchProjectFromSecuritySettingsName(securitySettingsName: string) { + return this.pathTemplates.securitySettingsPathTemplate.match( + securitySettingsName + ).project; + } + + /** + * Parse the location from SecuritySettings resource. + * + * @param {string} securitySettingsName + * A fully-qualified path representing SecuritySettings resource. + * @returns {string} A string representing the location. + */ + matchLocationFromSecuritySettingsName(securitySettingsName: string) { + return this.pathTemplates.securitySettingsPathTemplate.match( + securitySettingsName + ).location; + } + + /** + * Parse the security_settings from SecuritySettings resource. + * + * @param {string} securitySettingsName + * A fully-qualified path representing SecuritySettings resource. + * @returns {string} A string representing the security_settings. + */ + matchSecuritySettingsFromSecuritySettingsName(securitySettingsName: string) { + return this.pathTemplates.securitySettingsPathTemplate.match( + securitySettingsName + ).security_settings; + } + /** * Return a fully-qualified transitionRouteGroup resource name string. * diff --git a/src/v3beta1/webhooks_client_config.json b/src/v3/webhooks_client_config.json similarity index 96% rename from src/v3beta1/webhooks_client_config.json rename to src/v3/webhooks_client_config.json index 7968ee27..3291f479 100644 --- a/src/v3beta1/webhooks_client_config.json +++ b/src/v3/webhooks_client_config.json @@ -1,6 +1,6 @@ { "interfaces": { - "google.cloud.dialogflow.cx.v3beta1.Webhooks": { + "google.cloud.dialogflow.cx.v3.Webhooks": { "retry_codes": { "non_idempotent": [], "idempotent": [ diff --git a/src/v3/webhooks_proto_list.json b/src/v3/webhooks_proto_list.json new file mode 100644 index 00000000..622b657f --- /dev/null +++ b/src/v3/webhooks_proto_list.json @@ -0,0 +1,17 @@ +[ + "../../protos/google/cloud/dialogflow/cx/v3/agent.proto", + "../../protos/google/cloud/dialogflow/cx/v3/audio_config.proto", + "../../protos/google/cloud/dialogflow/cx/v3/entity_type.proto", + "../../protos/google/cloud/dialogflow/cx/v3/environment.proto", + "../../protos/google/cloud/dialogflow/cx/v3/flow.proto", + "../../protos/google/cloud/dialogflow/cx/v3/fulfillment.proto", + "../../protos/google/cloud/dialogflow/cx/v3/intent.proto", + "../../protos/google/cloud/dialogflow/cx/v3/page.proto", + "../../protos/google/cloud/dialogflow/cx/v3/response_message.proto", + "../../protos/google/cloud/dialogflow/cx/v3/security_settings.proto", + "../../protos/google/cloud/dialogflow/cx/v3/session.proto", + "../../protos/google/cloud/dialogflow/cx/v3/session_entity_type.proto", + "../../protos/google/cloud/dialogflow/cx/v3/transition_route_group.proto", + "../../protos/google/cloud/dialogflow/cx/v3/version.proto", + "../../protos/google/cloud/dialogflow/cx/v3/webhook.proto" +] diff --git a/src/v3beta1/agents_proto_list.json b/src/v3beta1/agents_proto_list.json deleted file mode 100644 index c39c02a6..00000000 --- a/src/v3beta1/agents_proto_list.json +++ /dev/null @@ -1,16 +0,0 @@ -[ - "../../protos/google/cloud/dialogflow/cx/v3beta1/agent.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/audio_config.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/entity_type.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/environment.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/flow.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/fulfillment.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/intent.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/page.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/response_message.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/session.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/session_entity_type.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/transition_route_group.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/version.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/webhook.proto" -] diff --git a/src/v3beta1/entity_types_proto_list.json b/src/v3beta1/entity_types_proto_list.json deleted file mode 100644 index c39c02a6..00000000 --- a/src/v3beta1/entity_types_proto_list.json +++ /dev/null @@ -1,16 +0,0 @@ -[ - "../../protos/google/cloud/dialogflow/cx/v3beta1/agent.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/audio_config.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/entity_type.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/environment.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/flow.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/fulfillment.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/intent.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/page.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/response_message.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/session.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/session_entity_type.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/transition_route_group.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/version.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/webhook.proto" -] diff --git a/src/v3beta1/environments_proto_list.json b/src/v3beta1/environments_proto_list.json deleted file mode 100644 index c39c02a6..00000000 --- a/src/v3beta1/environments_proto_list.json +++ /dev/null @@ -1,16 +0,0 @@ -[ - "../../protos/google/cloud/dialogflow/cx/v3beta1/agent.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/audio_config.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/entity_type.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/environment.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/flow.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/fulfillment.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/intent.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/page.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/response_message.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/session.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/session_entity_type.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/transition_route_group.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/version.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/webhook.proto" -] diff --git a/src/v3beta1/flows_proto_list.json b/src/v3beta1/flows_proto_list.json deleted file mode 100644 index c39c02a6..00000000 --- a/src/v3beta1/flows_proto_list.json +++ /dev/null @@ -1,16 +0,0 @@ -[ - "../../protos/google/cloud/dialogflow/cx/v3beta1/agent.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/audio_config.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/entity_type.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/environment.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/flow.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/fulfillment.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/intent.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/page.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/response_message.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/session.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/session_entity_type.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/transition_route_group.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/version.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/webhook.proto" -] diff --git a/src/v3beta1/intents_proto_list.json b/src/v3beta1/intents_proto_list.json deleted file mode 100644 index c39c02a6..00000000 --- a/src/v3beta1/intents_proto_list.json +++ /dev/null @@ -1,16 +0,0 @@ -[ - "../../protos/google/cloud/dialogflow/cx/v3beta1/agent.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/audio_config.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/entity_type.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/environment.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/flow.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/fulfillment.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/intent.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/page.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/response_message.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/session.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/session_entity_type.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/transition_route_group.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/version.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/webhook.proto" -] diff --git a/src/v3beta1/pages_proto_list.json b/src/v3beta1/pages_proto_list.json deleted file mode 100644 index c39c02a6..00000000 --- a/src/v3beta1/pages_proto_list.json +++ /dev/null @@ -1,16 +0,0 @@ -[ - "../../protos/google/cloud/dialogflow/cx/v3beta1/agent.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/audio_config.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/entity_type.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/environment.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/flow.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/fulfillment.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/intent.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/page.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/response_message.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/session.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/session_entity_type.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/transition_route_group.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/version.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/webhook.proto" -] diff --git a/src/v3beta1/session_entity_types_proto_list.json b/src/v3beta1/session_entity_types_proto_list.json deleted file mode 100644 index c39c02a6..00000000 --- a/src/v3beta1/session_entity_types_proto_list.json +++ /dev/null @@ -1,16 +0,0 @@ -[ - "../../protos/google/cloud/dialogflow/cx/v3beta1/agent.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/audio_config.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/entity_type.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/environment.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/flow.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/fulfillment.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/intent.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/page.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/response_message.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/session.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/session_entity_type.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/transition_route_group.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/version.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/webhook.proto" -] diff --git a/src/v3beta1/sessions_proto_list.json b/src/v3beta1/sessions_proto_list.json deleted file mode 100644 index c39c02a6..00000000 --- a/src/v3beta1/sessions_proto_list.json +++ /dev/null @@ -1,16 +0,0 @@ -[ - "../../protos/google/cloud/dialogflow/cx/v3beta1/agent.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/audio_config.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/entity_type.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/environment.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/flow.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/fulfillment.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/intent.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/page.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/response_message.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/session.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/session_entity_type.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/transition_route_group.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/version.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/webhook.proto" -] diff --git a/src/v3beta1/transition_route_groups_proto_list.json b/src/v3beta1/transition_route_groups_proto_list.json deleted file mode 100644 index c39c02a6..00000000 --- a/src/v3beta1/transition_route_groups_proto_list.json +++ /dev/null @@ -1,16 +0,0 @@ -[ - "../../protos/google/cloud/dialogflow/cx/v3beta1/agent.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/audio_config.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/entity_type.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/environment.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/flow.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/fulfillment.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/intent.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/page.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/response_message.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/session.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/session_entity_type.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/transition_route_group.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/version.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/webhook.proto" -] diff --git a/src/v3beta1/versions_proto_list.json b/src/v3beta1/versions_proto_list.json deleted file mode 100644 index c39c02a6..00000000 --- a/src/v3beta1/versions_proto_list.json +++ /dev/null @@ -1,16 +0,0 @@ -[ - "../../protos/google/cloud/dialogflow/cx/v3beta1/agent.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/audio_config.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/entity_type.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/environment.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/flow.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/fulfillment.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/intent.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/page.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/response_message.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/session.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/session_entity_type.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/transition_route_group.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/version.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/webhook.proto" -] diff --git a/src/v3beta1/webhooks_proto_list.json b/src/v3beta1/webhooks_proto_list.json deleted file mode 100644 index c39c02a6..00000000 --- a/src/v3beta1/webhooks_proto_list.json +++ /dev/null @@ -1,16 +0,0 @@ -[ - "../../protos/google/cloud/dialogflow/cx/v3beta1/agent.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/audio_config.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/entity_type.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/environment.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/flow.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/fulfillment.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/intent.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/page.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/response_message.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/session.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/session_entity_type.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/transition_route_group.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/version.proto", - "../../protos/google/cloud/dialogflow/cx/v3beta1/webhook.proto" -] diff --git a/synth.metadata b/synth.metadata index aa14d72b..69977749 100644 --- a/synth.metadata +++ b/synth.metadata @@ -3,23 +3,16 @@ { "git": { "name": ".", - "remote": "https://github.com/googleapis/nodejs-dialogflow-cx.git", - "sha": "243c27bc59f0dce50cf6472c6a487e7bf7dcd3f2" + "remote": "git@github.com:googleapis/nodejs-dialogflow-cx.git", + "sha": "f11519471b8642fa6624dcd90e8867b9945eafde" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "836f0eaf5f21f300f63ac635e5ef263d183e0cdd", - "internalRef": "342188199" - } - }, - { - "git": { - "name": "synthtool", - "remote": "https://github.com/googleapis/synthtool.git", - "sha": "1f1148d3c7a7a52f0c98077f976bd9b3c948ee2b" + "sha": "7ea91db77f53f169a08726bd33efb73042c38284", + "internalRef": "343321102" } } ], @@ -28,7 +21,7 @@ "client": { "source": "googleapis", "apiName": "dialogflow", - "apiVersion": "v3beta1", + "apiVersion": "v3", "language": "nodejs", "generator": "bazel" } @@ -87,75 +80,81 @@ "README.md", "api-extractor.json", "linkinator.config.json", - "protos/google/cloud/dialogflow/cx/v3beta1/agent.proto", - "protos/google/cloud/dialogflow/cx/v3beta1/audio_config.proto", - "protos/google/cloud/dialogflow/cx/v3beta1/entity_type.proto", - "protos/google/cloud/dialogflow/cx/v3beta1/environment.proto", - "protos/google/cloud/dialogflow/cx/v3beta1/flow.proto", - "protos/google/cloud/dialogflow/cx/v3beta1/fulfillment.proto", - "protos/google/cloud/dialogflow/cx/v3beta1/intent.proto", - "protos/google/cloud/dialogflow/cx/v3beta1/page.proto", - "protos/google/cloud/dialogflow/cx/v3beta1/response_message.proto", - "protos/google/cloud/dialogflow/cx/v3beta1/session.proto", - "protos/google/cloud/dialogflow/cx/v3beta1/session_entity_type.proto", - "protos/google/cloud/dialogflow/cx/v3beta1/transition_route_group.proto", - "protos/google/cloud/dialogflow/cx/v3beta1/version.proto", - "protos/google/cloud/dialogflow/cx/v3beta1/webhook.proto", + "protos/google/cloud/dialogflow/cx/v3/agent.proto", + "protos/google/cloud/dialogflow/cx/v3/audio_config.proto", + "protos/google/cloud/dialogflow/cx/v3/entity_type.proto", + "protos/google/cloud/dialogflow/cx/v3/environment.proto", + "protos/google/cloud/dialogflow/cx/v3/flow.proto", + "protos/google/cloud/dialogflow/cx/v3/fulfillment.proto", + "protos/google/cloud/dialogflow/cx/v3/intent.proto", + "protos/google/cloud/dialogflow/cx/v3/page.proto", + "protos/google/cloud/dialogflow/cx/v3/response_message.proto", + "protos/google/cloud/dialogflow/cx/v3/security_settings.proto", + "protos/google/cloud/dialogflow/cx/v3/session.proto", + "protos/google/cloud/dialogflow/cx/v3/session_entity_type.proto", + "protos/google/cloud/dialogflow/cx/v3/transition_route_group.proto", + "protos/google/cloud/dialogflow/cx/v3/version.proto", + "protos/google/cloud/dialogflow/cx/v3/webhook.proto", "protos/protos.d.ts", "protos/protos.js", "protos/protos.json", "renovate.json", "samples/README.md", + "samples/package-lock.json.492727105", "src/index.ts", - "src/v3beta1/agents_client.ts", - "src/v3beta1/agents_client_config.json", - "src/v3beta1/agents_proto_list.json", - "src/v3beta1/entity_types_client.ts", - "src/v3beta1/entity_types_client_config.json", - "src/v3beta1/entity_types_proto_list.json", - "src/v3beta1/environments_client.ts", - "src/v3beta1/environments_client_config.json", - "src/v3beta1/environments_proto_list.json", - "src/v3beta1/flows_client.ts", - "src/v3beta1/flows_client_config.json", - "src/v3beta1/flows_proto_list.json", - "src/v3beta1/index.ts", - "src/v3beta1/intents_client.ts", - "src/v3beta1/intents_client_config.json", - "src/v3beta1/intents_proto_list.json", - "src/v3beta1/pages_client.ts", - "src/v3beta1/pages_client_config.json", - "src/v3beta1/pages_proto_list.json", - "src/v3beta1/session_entity_types_client.ts", - "src/v3beta1/session_entity_types_client_config.json", - "src/v3beta1/session_entity_types_proto_list.json", - "src/v3beta1/sessions_client.ts", - "src/v3beta1/sessions_client_config.json", - "src/v3beta1/sessions_proto_list.json", - "src/v3beta1/transition_route_groups_client.ts", - "src/v3beta1/transition_route_groups_client_config.json", - "src/v3beta1/transition_route_groups_proto_list.json", - "src/v3beta1/versions_client.ts", - "src/v3beta1/versions_client_config.json", - "src/v3beta1/versions_proto_list.json", - "src/v3beta1/webhooks_client.ts", - "src/v3beta1/webhooks_client_config.json", - "src/v3beta1/webhooks_proto_list.json", + "src/v3/agents_client.ts", + "src/v3/agents_client_config.json", + "src/v3/agents_proto_list.json", + "src/v3/entity_types_client.ts", + "src/v3/entity_types_client_config.json", + "src/v3/entity_types_proto_list.json", + "src/v3/environments_client.ts", + "src/v3/environments_client_config.json", + "src/v3/environments_proto_list.json", + "src/v3/flows_client.ts", + "src/v3/flows_client_config.json", + "src/v3/flows_proto_list.json", + "src/v3/index.ts", + "src/v3/intents_client.ts", + "src/v3/intents_client_config.json", + "src/v3/intents_proto_list.json", + "src/v3/pages_client.ts", + "src/v3/pages_client_config.json", + "src/v3/pages_proto_list.json", + "src/v3/security_settings_service_client.ts", + "src/v3/security_settings_service_client_config.json", + "src/v3/security_settings_service_proto_list.json", + "src/v3/session_entity_types_client.ts", + "src/v3/session_entity_types_client_config.json", + "src/v3/session_entity_types_proto_list.json", + "src/v3/sessions_client.ts", + "src/v3/sessions_client_config.json", + "src/v3/sessions_proto_list.json", + "src/v3/transition_route_groups_client.ts", + "src/v3/transition_route_groups_client_config.json", + "src/v3/transition_route_groups_proto_list.json", + "src/v3/versions_client.ts", + "src/v3/versions_client_config.json", + "src/v3/versions_proto_list.json", + "src/v3/webhooks_client.ts", + "src/v3/webhooks_client_config.json", + "src/v3/webhooks_proto_list.json", "system-test/fixtures/sample/src/index.js", "system-test/fixtures/sample/src/index.ts", "system-test/install.ts", - "test/gapic_agents_v3beta1.ts", - "test/gapic_entity_types_v3beta1.ts", - "test/gapic_environments_v3beta1.ts", - "test/gapic_flows_v3beta1.ts", - "test/gapic_intents_v3beta1.ts", - "test/gapic_pages_v3beta1.ts", - "test/gapic_session_entity_types_v3beta1.ts", - "test/gapic_sessions_v3beta1.ts", - "test/gapic_transition_route_groups_v3beta1.ts", - "test/gapic_versions_v3beta1.ts", - "test/gapic_webhooks_v3beta1.ts", + "test/gapic_agents_v3.ts", + "test/gapic_entity_types_v3.ts", + "test/gapic_environments_v3.ts", + "test/gapic_flows_v3.ts", + "test/gapic_intents_v3.ts", + "test/gapic_pages_v3.ts", + "test/gapic_security_settings_service_v3.ts", + "test/gapic_session_entity_types_v3.ts", + "test/gapic_sessions_v3.ts", + "test/gapic_transition_route_groups_v3.ts", + "test/gapic_versions_v3.ts", + "test/gapic_webhooks_v3.ts", "tsconfig.json", "webpack.config.js" ] -} +} \ No newline at end of file diff --git a/synth.py b/synth.py index 09c0f865..22c2d7b8 100644 --- a/synth.py +++ b/synth.py @@ -23,15 +23,15 @@ gapic = gcp.GAPICBazel() # note: default version must be the last one to generate the correct system test -versions = ['v3beta1'] +versions = ['v3'] for version in versions: - library = gapic.node_library('dialogflow', 'v3beta1', bazel_target=f"//google/cloud/dialogflow/cx/v3beta1:dialogflow-cx-v3beta1-nodejs") - s.copy(library, excludes=['package.json', 'README.md']) + library = gapic.node_library('dialogflow', version, bazel_target=f"//google/cloud/dialogflow/cx/{version}:dialogflow-cx-{version}-nodejs") + s.copy(library, excludes=['package.json', 'README.md']) common_templates = gcp.CommonTemplates() templates = common_templates.node_library( - source_location='build/src', versions=versions) + source_location='build/src', versions=versions, default_version='v3') s.copy(templates, excludes=[]) node.postprocess_gapic_library() diff --git a/system-test/fixtures/sample/src/index.js b/system-test/fixtures/sample/src/index.js index f72e3358..fba045ce 100644 --- a/system-test/fixtures/sample/src/index.js +++ b/system-test/fixtures/sample/src/index.js @@ -26,6 +26,7 @@ function main() { const flowsClient = new cx.FlowsClient(); const intentsClient = new cx.IntentsClient(); const pagesClient = new cx.PagesClient(); + const securitySettingsServiceClient = new cx.SecuritySettingsServiceClient(); const sessionEntityTypesClient = new cx.SessionEntityTypesClient(); const sessionsClient = new cx.SessionsClient(); const transitionRouteGroupsClient = new cx.TransitionRouteGroupsClient(); diff --git a/system-test/fixtures/sample/src/index.ts b/system-test/fixtures/sample/src/index.ts index aee924b8..d22982ea 100644 --- a/system-test/fixtures/sample/src/index.ts +++ b/system-test/fixtures/sample/src/index.ts @@ -23,6 +23,7 @@ import { FlowsClient, IntentsClient, PagesClient, + SecuritySettingsServiceClient, SessionEntityTypesClient, SessionsClient, TransitionRouteGroupsClient, @@ -49,6 +50,11 @@ function doStuffWithIntentsClient(client: IntentsClient) { function doStuffWithPagesClient(client: PagesClient) { client.close(); } +function doStuffWithSecuritySettingsServiceClient( + client: SecuritySettingsServiceClient +) { + client.close(); +} function doStuffWithSessionEntityTypesClient(client: SessionEntityTypesClient) { client.close(); } @@ -87,6 +93,9 @@ function main() { const pagesClient = new PagesClient(); doStuffWithPagesClient(pagesClient); // check that the client instance can be created + const securitySettingsServiceClient = new SecuritySettingsServiceClient(); + doStuffWithSecuritySettingsServiceClient(securitySettingsServiceClient); + // check that the client instance can be created const sessionEntityTypesClient = new SessionEntityTypesClient(); doStuffWithSessionEntityTypesClient(sessionEntityTypesClient); // check that the client instance can be created diff --git a/test/gapic_agents_v3beta1.ts b/test/gapic_agents_v3.ts similarity index 88% rename from test/gapic_agents_v3beta1.ts rename to test/gapic_agents_v3.ts index ee48aec3..c8d24f6b 100644 --- a/test/gapic_agents_v3beta1.ts +++ b/test/gapic_agents_v3.ts @@ -145,37 +145,37 @@ function stubAsyncIterationCall( return sinon.stub().returns(asyncIterable); } -describe('v3beta1.AgentsClient', () => { +describe('v3.AgentsClient', () => { it('has servicePath', () => { - const servicePath = agentsModule.v3beta1.AgentsClient.servicePath; + const servicePath = agentsModule.v3.AgentsClient.servicePath; assert(servicePath); }); it('has apiEndpoint', () => { - const apiEndpoint = agentsModule.v3beta1.AgentsClient.apiEndpoint; + const apiEndpoint = agentsModule.v3.AgentsClient.apiEndpoint; assert(apiEndpoint); }); it('has port', () => { - const port = agentsModule.v3beta1.AgentsClient.port; + const port = agentsModule.v3.AgentsClient.port; assert(port); assert(typeof port === 'number'); }); it('should create a client with no option', () => { - const client = new agentsModule.v3beta1.AgentsClient(); + const client = new agentsModule.v3.AgentsClient(); assert(client); }); it('should create a client with gRPC fallback', () => { - const client = new agentsModule.v3beta1.AgentsClient({ + const client = new agentsModule.v3.AgentsClient({ fallback: true, }); assert(client); }); it('has initialize method and supports deferred initialization', async () => { - const client = new agentsModule.v3beta1.AgentsClient({ + const client = new agentsModule.v3.AgentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -185,7 +185,7 @@ describe('v3beta1.AgentsClient', () => { }); it('has close method', () => { - const client = new agentsModule.v3beta1.AgentsClient({ + const client = new agentsModule.v3.AgentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -194,7 +194,7 @@ describe('v3beta1.AgentsClient', () => { it('has getProjectId method', async () => { const fakeProjectId = 'fake-project-id'; - const client = new agentsModule.v3beta1.AgentsClient({ + const client = new agentsModule.v3.AgentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -206,7 +206,7 @@ describe('v3beta1.AgentsClient', () => { it('has getProjectId method with callback', async () => { const fakeProjectId = 'fake-project-id'; - const client = new agentsModule.v3beta1.AgentsClient({ + const client = new agentsModule.v3.AgentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -228,13 +228,13 @@ describe('v3beta1.AgentsClient', () => { describe('getAgent', () => { it('invokes getAgent without error', async () => { - const client = new agentsModule.v3beta1.AgentsClient({ + const client = new agentsModule.v3.AgentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.GetAgentRequest() + new protos.google.cloud.dialogflow.cx.v3.GetAgentRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -246,7 +246,7 @@ describe('v3beta1.AgentsClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Agent() + new protos.google.cloud.dialogflow.cx.v3.Agent() ); client.innerApiCalls.getAgent = stubSimpleCall(expectedResponse); const [response] = await client.getAgent(request); @@ -259,13 +259,13 @@ describe('v3beta1.AgentsClient', () => { }); it('invokes getAgent without error using callback', async () => { - const client = new agentsModule.v3beta1.AgentsClient({ + const client = new agentsModule.v3.AgentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.GetAgentRequest() + new protos.google.cloud.dialogflow.cx.v3.GetAgentRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -277,7 +277,7 @@ describe('v3beta1.AgentsClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Agent() + new protos.google.cloud.dialogflow.cx.v3.Agent() ); client.innerApiCalls.getAgent = stubSimpleCallWithCallback( expectedResponse @@ -287,7 +287,7 @@ describe('v3beta1.AgentsClient', () => { request, ( err?: Error | null, - result?: protos.google.cloud.dialogflow.cx.v3beta1.IAgent | null + result?: protos.google.cloud.dialogflow.cx.v3.IAgent | null ) => { if (err) { reject(err); @@ -307,13 +307,13 @@ describe('v3beta1.AgentsClient', () => { }); it('invokes getAgent with error', async () => { - const client = new agentsModule.v3beta1.AgentsClient({ + const client = new agentsModule.v3.AgentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.GetAgentRequest() + new protos.google.cloud.dialogflow.cx.v3.GetAgentRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -337,13 +337,13 @@ describe('v3beta1.AgentsClient', () => { describe('createAgent', () => { it('invokes createAgent without error', async () => { - const client = new agentsModule.v3beta1.AgentsClient({ + const client = new agentsModule.v3.AgentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest() + new protos.google.cloud.dialogflow.cx.v3.CreateAgentRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -355,7 +355,7 @@ describe('v3beta1.AgentsClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Agent() + new protos.google.cloud.dialogflow.cx.v3.Agent() ); client.innerApiCalls.createAgent = stubSimpleCall(expectedResponse); const [response] = await client.createAgent(request); @@ -368,13 +368,13 @@ describe('v3beta1.AgentsClient', () => { }); it('invokes createAgent without error using callback', async () => { - const client = new agentsModule.v3beta1.AgentsClient({ + const client = new agentsModule.v3.AgentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest() + new protos.google.cloud.dialogflow.cx.v3.CreateAgentRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -386,7 +386,7 @@ describe('v3beta1.AgentsClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Agent() + new protos.google.cloud.dialogflow.cx.v3.Agent() ); client.innerApiCalls.createAgent = stubSimpleCallWithCallback( expectedResponse @@ -396,7 +396,7 @@ describe('v3beta1.AgentsClient', () => { request, ( err?: Error | null, - result?: protos.google.cloud.dialogflow.cx.v3beta1.IAgent | null + result?: protos.google.cloud.dialogflow.cx.v3.IAgent | null ) => { if (err) { reject(err); @@ -416,13 +416,13 @@ describe('v3beta1.AgentsClient', () => { }); it('invokes createAgent with error', async () => { - const client = new agentsModule.v3beta1.AgentsClient({ + const client = new agentsModule.v3.AgentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest() + new protos.google.cloud.dialogflow.cx.v3.CreateAgentRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -449,13 +449,13 @@ describe('v3beta1.AgentsClient', () => { describe('updateAgent', () => { it('invokes updateAgent without error', async () => { - const client = new agentsModule.v3beta1.AgentsClient({ + const client = new agentsModule.v3.AgentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest() + new protos.google.cloud.dialogflow.cx.v3.UpdateAgentRequest() ); request.agent = {}; request.agent.name = ''; @@ -468,7 +468,7 @@ describe('v3beta1.AgentsClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Agent() + new protos.google.cloud.dialogflow.cx.v3.Agent() ); client.innerApiCalls.updateAgent = stubSimpleCall(expectedResponse); const [response] = await client.updateAgent(request); @@ -481,13 +481,13 @@ describe('v3beta1.AgentsClient', () => { }); it('invokes updateAgent without error using callback', async () => { - const client = new agentsModule.v3beta1.AgentsClient({ + const client = new agentsModule.v3.AgentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest() + new protos.google.cloud.dialogflow.cx.v3.UpdateAgentRequest() ); request.agent = {}; request.agent.name = ''; @@ -500,7 +500,7 @@ describe('v3beta1.AgentsClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Agent() + new protos.google.cloud.dialogflow.cx.v3.Agent() ); client.innerApiCalls.updateAgent = stubSimpleCallWithCallback( expectedResponse @@ -510,7 +510,7 @@ describe('v3beta1.AgentsClient', () => { request, ( err?: Error | null, - result?: protos.google.cloud.dialogflow.cx.v3beta1.IAgent | null + result?: protos.google.cloud.dialogflow.cx.v3.IAgent | null ) => { if (err) { reject(err); @@ -530,13 +530,13 @@ describe('v3beta1.AgentsClient', () => { }); it('invokes updateAgent with error', async () => { - const client = new agentsModule.v3beta1.AgentsClient({ + const client = new agentsModule.v3.AgentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest() + new protos.google.cloud.dialogflow.cx.v3.UpdateAgentRequest() ); request.agent = {}; request.agent.name = ''; @@ -564,13 +564,13 @@ describe('v3beta1.AgentsClient', () => { describe('deleteAgent', () => { it('invokes deleteAgent without error', async () => { - const client = new agentsModule.v3beta1.AgentsClient({ + const client = new agentsModule.v3.AgentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest() + new protos.google.cloud.dialogflow.cx.v3.DeleteAgentRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -595,13 +595,13 @@ describe('v3beta1.AgentsClient', () => { }); it('invokes deleteAgent without error using callback', async () => { - const client = new agentsModule.v3beta1.AgentsClient({ + const client = new agentsModule.v3.AgentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest() + new protos.google.cloud.dialogflow.cx.v3.DeleteAgentRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -643,13 +643,13 @@ describe('v3beta1.AgentsClient', () => { }); it('invokes deleteAgent with error', async () => { - const client = new agentsModule.v3beta1.AgentsClient({ + const client = new agentsModule.v3.AgentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest() + new protos.google.cloud.dialogflow.cx.v3.DeleteAgentRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -676,13 +676,13 @@ describe('v3beta1.AgentsClient', () => { describe('exportAgent', () => { it('invokes exportAgent without error', async () => { - const client = new agentsModule.v3beta1.AgentsClient({ + const client = new agentsModule.v3.AgentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest() + new protos.google.cloud.dialogflow.cx.v3.ExportAgentRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -708,13 +708,13 @@ describe('v3beta1.AgentsClient', () => { }); it('invokes exportAgent without error using callback', async () => { - const client = new agentsModule.v3beta1.AgentsClient({ + const client = new agentsModule.v3.AgentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest() + new protos.google.cloud.dialogflow.cx.v3.ExportAgentRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -737,7 +737,7 @@ describe('v3beta1.AgentsClient', () => { ( err?: Error | null, result?: LROperation< - protos.google.cloud.dialogflow.cx.v3beta1.IExportAgentResponse, + protos.google.cloud.dialogflow.cx.v3.IExportAgentResponse, protos.google.protobuf.IStruct > | null ) => { @@ -750,7 +750,7 @@ describe('v3beta1.AgentsClient', () => { ); }); const operation = (await promise) as LROperation< - protos.google.cloud.dialogflow.cx.v3beta1.IExportAgentResponse, + protos.google.cloud.dialogflow.cx.v3.IExportAgentResponse, protos.google.protobuf.IStruct >; const [response] = await operation.promise(); @@ -763,13 +763,13 @@ describe('v3beta1.AgentsClient', () => { }); it('invokes exportAgent with call error', async () => { - const client = new agentsModule.v3beta1.AgentsClient({ + const client = new agentsModule.v3.AgentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest() + new protos.google.cloud.dialogflow.cx.v3.ExportAgentRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -794,13 +794,13 @@ describe('v3beta1.AgentsClient', () => { }); it('invokes exportAgent with LRO error', async () => { - const client = new agentsModule.v3beta1.AgentsClient({ + const client = new agentsModule.v3.AgentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest() + new protos.google.cloud.dialogflow.cx.v3.ExportAgentRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -827,7 +827,7 @@ describe('v3beta1.AgentsClient', () => { }); it('invokes checkExportAgentProgress without error', async () => { - const client = new agentsModule.v3beta1.AgentsClient({ + const client = new agentsModule.v3.AgentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -849,7 +849,7 @@ describe('v3beta1.AgentsClient', () => { }); it('invokes checkExportAgentProgress with error', async () => { - const client = new agentsModule.v3beta1.AgentsClient({ + const client = new agentsModule.v3.AgentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -867,13 +867,13 @@ describe('v3beta1.AgentsClient', () => { describe('restoreAgent', () => { it('invokes restoreAgent without error', async () => { - const client = new agentsModule.v3beta1.AgentsClient({ + const client = new agentsModule.v3.AgentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest() + new protos.google.cloud.dialogflow.cx.v3.RestoreAgentRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -899,13 +899,13 @@ describe('v3beta1.AgentsClient', () => { }); it('invokes restoreAgent without error using callback', async () => { - const client = new agentsModule.v3beta1.AgentsClient({ + const client = new agentsModule.v3.AgentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest() + new protos.google.cloud.dialogflow.cx.v3.RestoreAgentRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -954,13 +954,13 @@ describe('v3beta1.AgentsClient', () => { }); it('invokes restoreAgent with call error', async () => { - const client = new agentsModule.v3beta1.AgentsClient({ + const client = new agentsModule.v3.AgentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest() + new protos.google.cloud.dialogflow.cx.v3.RestoreAgentRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -985,13 +985,13 @@ describe('v3beta1.AgentsClient', () => { }); it('invokes restoreAgent with LRO error', async () => { - const client = new agentsModule.v3beta1.AgentsClient({ + const client = new agentsModule.v3.AgentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest() + new protos.google.cloud.dialogflow.cx.v3.RestoreAgentRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -1018,7 +1018,7 @@ describe('v3beta1.AgentsClient', () => { }); it('invokes checkRestoreAgentProgress without error', async () => { - const client = new agentsModule.v3beta1.AgentsClient({ + const client = new agentsModule.v3.AgentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1040,7 +1040,7 @@ describe('v3beta1.AgentsClient', () => { }); it('invokes checkRestoreAgentProgress with error', async () => { - const client = new agentsModule.v3beta1.AgentsClient({ + const client = new agentsModule.v3.AgentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1058,13 +1058,13 @@ describe('v3beta1.AgentsClient', () => { describe('listAgents', () => { it('invokes listAgents without error', async () => { - const client = new agentsModule.v3beta1.AgentsClient({ + const client = new agentsModule.v3.AgentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest() + new protos.google.cloud.dialogflow.cx.v3.ListAgentsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -1076,15 +1076,9 @@ describe('v3beta1.AgentsClient', () => { }, }; const expectedResponse = [ - generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Agent() - ), - generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Agent() - ), - generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Agent() - ), + generateSampleMessage(new protos.google.cloud.dialogflow.cx.v3.Agent()), + generateSampleMessage(new protos.google.cloud.dialogflow.cx.v3.Agent()), + generateSampleMessage(new protos.google.cloud.dialogflow.cx.v3.Agent()), ]; client.innerApiCalls.listAgents = stubSimpleCall(expectedResponse); const [response] = await client.listAgents(request); @@ -1097,13 +1091,13 @@ describe('v3beta1.AgentsClient', () => { }); it('invokes listAgents without error using callback', async () => { - const client = new agentsModule.v3beta1.AgentsClient({ + const client = new agentsModule.v3.AgentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest() + new protos.google.cloud.dialogflow.cx.v3.ListAgentsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -1115,15 +1109,9 @@ describe('v3beta1.AgentsClient', () => { }, }; const expectedResponse = [ - generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Agent() - ), - generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Agent() - ), - generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Agent() - ), + generateSampleMessage(new protos.google.cloud.dialogflow.cx.v3.Agent()), + generateSampleMessage(new protos.google.cloud.dialogflow.cx.v3.Agent()), + generateSampleMessage(new protos.google.cloud.dialogflow.cx.v3.Agent()), ]; client.innerApiCalls.listAgents = stubSimpleCallWithCallback( expectedResponse @@ -1133,7 +1121,7 @@ describe('v3beta1.AgentsClient', () => { request, ( err?: Error | null, - result?: protos.google.cloud.dialogflow.cx.v3beta1.IAgent[] | null + result?: protos.google.cloud.dialogflow.cx.v3.IAgent[] | null ) => { if (err) { reject(err); @@ -1153,13 +1141,13 @@ describe('v3beta1.AgentsClient', () => { }); it('invokes listAgents with error', async () => { - const client = new agentsModule.v3beta1.AgentsClient({ + const client = new agentsModule.v3.AgentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest() + new protos.google.cloud.dialogflow.cx.v3.ListAgentsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -1184,36 +1172,30 @@ describe('v3beta1.AgentsClient', () => { }); it('invokes listAgentsStream without error', async () => { - const client = new agentsModule.v3beta1.AgentsClient({ + const client = new agentsModule.v3.AgentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest() + new protos.google.cloud.dialogflow.cx.v3.ListAgentsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ - generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Agent() - ), - generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Agent() - ), - generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Agent() - ), + generateSampleMessage(new protos.google.cloud.dialogflow.cx.v3.Agent()), + generateSampleMessage(new protos.google.cloud.dialogflow.cx.v3.Agent()), + generateSampleMessage(new protos.google.cloud.dialogflow.cx.v3.Agent()), ]; client.descriptors.page.listAgents.createStream = stubPageStreamingCall( expectedResponse ); const stream = client.listAgentsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.dialogflow.cx.v3beta1.Agent[] = []; + const responses: protos.google.cloud.dialogflow.cx.v3.Agent[] = []; stream.on( 'data', - (response: protos.google.cloud.dialogflow.cx.v3beta1.Agent) => { + (response: protos.google.cloud.dialogflow.cx.v3.Agent) => { responses.push(response); } ); @@ -1240,13 +1222,13 @@ describe('v3beta1.AgentsClient', () => { }); it('invokes listAgentsStream with error', async () => { - const client = new agentsModule.v3beta1.AgentsClient({ + const client = new agentsModule.v3.AgentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest() + new protos.google.cloud.dialogflow.cx.v3.ListAgentsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -1257,10 +1239,10 @@ describe('v3beta1.AgentsClient', () => { ); const stream = client.listAgentsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.dialogflow.cx.v3beta1.Agent[] = []; + const responses: protos.google.cloud.dialogflow.cx.v3.Agent[] = []; stream.on( 'data', - (response: protos.google.cloud.dialogflow.cx.v3beta1.Agent) => { + (response: protos.google.cloud.dialogflow.cx.v3.Agent) => { responses.push(response); } ); @@ -1286,31 +1268,25 @@ describe('v3beta1.AgentsClient', () => { }); it('uses async iteration with listAgents without error', async () => { - const client = new agentsModule.v3beta1.AgentsClient({ + const client = new agentsModule.v3.AgentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest() + new protos.google.cloud.dialogflow.cx.v3.ListAgentsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ - generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Agent() - ), - generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Agent() - ), - generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Agent() - ), + generateSampleMessage(new protos.google.cloud.dialogflow.cx.v3.Agent()), + generateSampleMessage(new protos.google.cloud.dialogflow.cx.v3.Agent()), + generateSampleMessage(new protos.google.cloud.dialogflow.cx.v3.Agent()), ]; client.descriptors.page.listAgents.asyncIterate = stubAsyncIterationCall( expectedResponse ); - const responses: protos.google.cloud.dialogflow.cx.v3beta1.IAgent[] = []; + const responses: protos.google.cloud.dialogflow.cx.v3.IAgent[] = []; const iterable = client.listAgentsAsync(request); for await (const resource of iterable) { responses.push(resource!); @@ -1331,13 +1307,13 @@ describe('v3beta1.AgentsClient', () => { }); it('uses async iteration with listAgents with error', async () => { - const client = new agentsModule.v3beta1.AgentsClient({ + const client = new agentsModule.v3.AgentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest() + new protos.google.cloud.dialogflow.cx.v3.ListAgentsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -1348,7 +1324,7 @@ describe('v3beta1.AgentsClient', () => { ); const iterable = client.listAgentsAsync(request); await assert.rejects(async () => { - const responses: protos.google.cloud.dialogflow.cx.v3beta1.IAgent[] = []; + const responses: protos.google.cloud.dialogflow.cx.v3.IAgent[] = []; for await (const resource of iterable) { responses.push(resource!); } @@ -1376,7 +1352,7 @@ describe('v3beta1.AgentsClient', () => { location: 'locationValue', agent: 'agentValue', }; - const client = new agentsModule.v3beta1.AgentsClient({ + const client = new agentsModule.v3.AgentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1441,7 +1417,7 @@ describe('v3beta1.AgentsClient', () => { agent: 'agentValue', entity_type: 'entityTypeValue', }; - const client = new agentsModule.v3beta1.AgentsClient({ + const client = new agentsModule.v3.AgentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1517,7 +1493,7 @@ describe('v3beta1.AgentsClient', () => { agent: 'agentValue', environment: 'environmentValue', }; - const client = new agentsModule.v3beta1.AgentsClient({ + const client = new agentsModule.v3.AgentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1593,7 +1569,7 @@ describe('v3beta1.AgentsClient', () => { agent: 'agentValue', flow: 'flowValue', }; - const client = new agentsModule.v3beta1.AgentsClient({ + const client = new agentsModule.v3.AgentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1669,7 +1645,7 @@ describe('v3beta1.AgentsClient', () => { agent: 'agentValue', intent: 'intentValue', }; - const client = new agentsModule.v3beta1.AgentsClient({ + const client = new agentsModule.v3.AgentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1743,7 +1719,7 @@ describe('v3beta1.AgentsClient', () => { project: 'projectValue', location: 'locationValue', }; - const client = new agentsModule.v3beta1.AgentsClient({ + const client = new agentsModule.v3.AgentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1795,7 +1771,7 @@ describe('v3beta1.AgentsClient', () => { flow: 'flowValue', page: 'pageValue', }; - const client = new agentsModule.v3beta1.AgentsClient({ + const client = new agentsModule.v3.AgentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1879,7 +1855,7 @@ describe('v3beta1.AgentsClient', () => { const expectedParameters = { project: 'projectValue', }; - const client = new agentsModule.v3beta1.AgentsClient({ + const client = new agentsModule.v3.AgentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1923,7 +1899,7 @@ describe('v3beta1.AgentsClient', () => { session: 'sessionValue', entity_type: 'entityTypeValue', }; - const client = new agentsModule.v3beta1.AgentsClient({ + const client = new agentsModule.v3.AgentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -2048,7 +2024,7 @@ describe('v3beta1.AgentsClient', () => { session: 'sessionValue', entity_type: 'entityTypeValue', }; - const client = new agentsModule.v3beta1.AgentsClient({ + const client = new agentsModule.v3.AgentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -2149,6 +2125,73 @@ describe('v3beta1.AgentsClient', () => { }); }); + describe('securitySettings', () => { + const fakePath = '/rendered/path/securitySettings'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + security_settings: 'securitySettingsValue', + }; + const client = new agentsModule.v3.AgentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.securitySettingsPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.securitySettingsPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('securitySettingsPath', () => { + const result = client.securitySettingsPath( + 'projectValue', + 'locationValue', + 'securitySettingsValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.securitySettingsPathTemplate + .render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromSecuritySettingsName', () => { + const result = client.matchProjectFromSecuritySettingsName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.securitySettingsPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromSecuritySettingsName', () => { + const result = client.matchLocationFromSecuritySettingsName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.securitySettingsPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchSecuritySettingsFromSecuritySettingsName', () => { + const result = client.matchSecuritySettingsFromSecuritySettingsName( + fakePath + ); + assert.strictEqual(result, 'securitySettingsValue'); + assert( + (client.pathTemplates.securitySettingsPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('transitionRouteGroup', () => { const fakePath = '/rendered/path/transitionRouteGroup'; const expectedParameters = { @@ -2158,7 +2201,7 @@ describe('v3beta1.AgentsClient', () => { flow: 'flowValue', transition_route_group: 'transitionRouteGroupValue', }; - const client = new agentsModule.v3beta1.AgentsClient({ + const client = new agentsModule.v3.AgentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -2258,7 +2301,7 @@ describe('v3beta1.AgentsClient', () => { flow: 'flowValue', version: 'versionValue', }; - const client = new agentsModule.v3beta1.AgentsClient({ + const client = new agentsModule.v3.AgentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -2345,7 +2388,7 @@ describe('v3beta1.AgentsClient', () => { agent: 'agentValue', webhook: 'webhookValue', }; - const client = new agentsModule.v3beta1.AgentsClient({ + const client = new agentsModule.v3.AgentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); diff --git a/test/gapic_entity_types_v3beta1.ts b/test/gapic_entity_types_v3.ts similarity index 87% rename from test/gapic_entity_types_v3beta1.ts rename to test/gapic_entity_types_v3.ts index a3ae77ee..35e3a8ef 100644 --- a/test/gapic_entity_types_v3beta1.ts +++ b/test/gapic_entity_types_v3.ts @@ -113,37 +113,37 @@ function stubAsyncIterationCall( return sinon.stub().returns(asyncIterable); } -describe('v3beta1.EntityTypesClient', () => { +describe('v3.EntityTypesClient', () => { it('has servicePath', () => { - const servicePath = entitytypesModule.v3beta1.EntityTypesClient.servicePath; + const servicePath = entitytypesModule.v3.EntityTypesClient.servicePath; assert(servicePath); }); it('has apiEndpoint', () => { - const apiEndpoint = entitytypesModule.v3beta1.EntityTypesClient.apiEndpoint; + const apiEndpoint = entitytypesModule.v3.EntityTypesClient.apiEndpoint; assert(apiEndpoint); }); it('has port', () => { - const port = entitytypesModule.v3beta1.EntityTypesClient.port; + const port = entitytypesModule.v3.EntityTypesClient.port; assert(port); assert(typeof port === 'number'); }); it('should create a client with no option', () => { - const client = new entitytypesModule.v3beta1.EntityTypesClient(); + const client = new entitytypesModule.v3.EntityTypesClient(); assert(client); }); it('should create a client with gRPC fallback', () => { - const client = new entitytypesModule.v3beta1.EntityTypesClient({ + const client = new entitytypesModule.v3.EntityTypesClient({ fallback: true, }); assert(client); }); it('has initialize method and supports deferred initialization', async () => { - const client = new entitytypesModule.v3beta1.EntityTypesClient({ + const client = new entitytypesModule.v3.EntityTypesClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -153,7 +153,7 @@ describe('v3beta1.EntityTypesClient', () => { }); it('has close method', () => { - const client = new entitytypesModule.v3beta1.EntityTypesClient({ + const client = new entitytypesModule.v3.EntityTypesClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -162,7 +162,7 @@ describe('v3beta1.EntityTypesClient', () => { it('has getProjectId method', async () => { const fakeProjectId = 'fake-project-id'; - const client = new entitytypesModule.v3beta1.EntityTypesClient({ + const client = new entitytypesModule.v3.EntityTypesClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -174,7 +174,7 @@ describe('v3beta1.EntityTypesClient', () => { it('has getProjectId method with callback', async () => { const fakeProjectId = 'fake-project-id'; - const client = new entitytypesModule.v3beta1.EntityTypesClient({ + const client = new entitytypesModule.v3.EntityTypesClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -196,13 +196,13 @@ describe('v3beta1.EntityTypesClient', () => { describe('getEntityType', () => { it('invokes getEntityType without error', async () => { - const client = new entitytypesModule.v3beta1.EntityTypesClient({ + const client = new entitytypesModule.v3.EntityTypesClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest() + new protos.google.cloud.dialogflow.cx.v3.GetEntityTypeRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -214,7 +214,7 @@ describe('v3beta1.EntityTypesClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.EntityType() + new protos.google.cloud.dialogflow.cx.v3.EntityType() ); client.innerApiCalls.getEntityType = stubSimpleCall(expectedResponse); const [response] = await client.getEntityType(request); @@ -227,13 +227,13 @@ describe('v3beta1.EntityTypesClient', () => { }); it('invokes getEntityType without error using callback', async () => { - const client = new entitytypesModule.v3beta1.EntityTypesClient({ + const client = new entitytypesModule.v3.EntityTypesClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest() + new protos.google.cloud.dialogflow.cx.v3.GetEntityTypeRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -245,7 +245,7 @@ describe('v3beta1.EntityTypesClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.EntityType() + new protos.google.cloud.dialogflow.cx.v3.EntityType() ); client.innerApiCalls.getEntityType = stubSimpleCallWithCallback( expectedResponse @@ -255,7 +255,7 @@ describe('v3beta1.EntityTypesClient', () => { request, ( err?: Error | null, - result?: protos.google.cloud.dialogflow.cx.v3beta1.IEntityType | null + result?: protos.google.cloud.dialogflow.cx.v3.IEntityType | null ) => { if (err) { reject(err); @@ -275,13 +275,13 @@ describe('v3beta1.EntityTypesClient', () => { }); it('invokes getEntityType with error', async () => { - const client = new entitytypesModule.v3beta1.EntityTypesClient({ + const client = new entitytypesModule.v3.EntityTypesClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest() + new protos.google.cloud.dialogflow.cx.v3.GetEntityTypeRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -308,13 +308,13 @@ describe('v3beta1.EntityTypesClient', () => { describe('createEntityType', () => { it('invokes createEntityType without error', async () => { - const client = new entitytypesModule.v3beta1.EntityTypesClient({ + const client = new entitytypesModule.v3.EntityTypesClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest() + new protos.google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -326,7 +326,7 @@ describe('v3beta1.EntityTypesClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.EntityType() + new protos.google.cloud.dialogflow.cx.v3.EntityType() ); client.innerApiCalls.createEntityType = stubSimpleCall(expectedResponse); const [response] = await client.createEntityType(request); @@ -339,13 +339,13 @@ describe('v3beta1.EntityTypesClient', () => { }); it('invokes createEntityType without error using callback', async () => { - const client = new entitytypesModule.v3beta1.EntityTypesClient({ + const client = new entitytypesModule.v3.EntityTypesClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest() + new protos.google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -357,7 +357,7 @@ describe('v3beta1.EntityTypesClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.EntityType() + new protos.google.cloud.dialogflow.cx.v3.EntityType() ); client.innerApiCalls.createEntityType = stubSimpleCallWithCallback( expectedResponse @@ -367,7 +367,7 @@ describe('v3beta1.EntityTypesClient', () => { request, ( err?: Error | null, - result?: protos.google.cloud.dialogflow.cx.v3beta1.IEntityType | null + result?: protos.google.cloud.dialogflow.cx.v3.IEntityType | null ) => { if (err) { reject(err); @@ -387,13 +387,13 @@ describe('v3beta1.EntityTypesClient', () => { }); it('invokes createEntityType with error', async () => { - const client = new entitytypesModule.v3beta1.EntityTypesClient({ + const client = new entitytypesModule.v3.EntityTypesClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest() + new protos.google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -420,13 +420,13 @@ describe('v3beta1.EntityTypesClient', () => { describe('updateEntityType', () => { it('invokes updateEntityType without error', async () => { - const client = new entitytypesModule.v3beta1.EntityTypesClient({ + const client = new entitytypesModule.v3.EntityTypesClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest() + new protos.google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest() ); request.entityType = {}; request.entityType.name = ''; @@ -439,7 +439,7 @@ describe('v3beta1.EntityTypesClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.EntityType() + new protos.google.cloud.dialogflow.cx.v3.EntityType() ); client.innerApiCalls.updateEntityType = stubSimpleCall(expectedResponse); const [response] = await client.updateEntityType(request); @@ -452,13 +452,13 @@ describe('v3beta1.EntityTypesClient', () => { }); it('invokes updateEntityType without error using callback', async () => { - const client = new entitytypesModule.v3beta1.EntityTypesClient({ + const client = new entitytypesModule.v3.EntityTypesClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest() + new protos.google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest() ); request.entityType = {}; request.entityType.name = ''; @@ -471,7 +471,7 @@ describe('v3beta1.EntityTypesClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.EntityType() + new protos.google.cloud.dialogflow.cx.v3.EntityType() ); client.innerApiCalls.updateEntityType = stubSimpleCallWithCallback( expectedResponse @@ -481,7 +481,7 @@ describe('v3beta1.EntityTypesClient', () => { request, ( err?: Error | null, - result?: protos.google.cloud.dialogflow.cx.v3beta1.IEntityType | null + result?: protos.google.cloud.dialogflow.cx.v3.IEntityType | null ) => { if (err) { reject(err); @@ -501,13 +501,13 @@ describe('v3beta1.EntityTypesClient', () => { }); it('invokes updateEntityType with error', async () => { - const client = new entitytypesModule.v3beta1.EntityTypesClient({ + const client = new entitytypesModule.v3.EntityTypesClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest() + new protos.google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest() ); request.entityType = {}; request.entityType.name = ''; @@ -535,13 +535,13 @@ describe('v3beta1.EntityTypesClient', () => { describe('deleteEntityType', () => { it('invokes deleteEntityType without error', async () => { - const client = new entitytypesModule.v3beta1.EntityTypesClient({ + const client = new entitytypesModule.v3.EntityTypesClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest() + new protos.google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -566,13 +566,13 @@ describe('v3beta1.EntityTypesClient', () => { }); it('invokes deleteEntityType without error using callback', async () => { - const client = new entitytypesModule.v3beta1.EntityTypesClient({ + const client = new entitytypesModule.v3.EntityTypesClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest() + new protos.google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -614,13 +614,13 @@ describe('v3beta1.EntityTypesClient', () => { }); it('invokes deleteEntityType with error', async () => { - const client = new entitytypesModule.v3beta1.EntityTypesClient({ + const client = new entitytypesModule.v3.EntityTypesClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest() + new protos.google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -647,13 +647,13 @@ describe('v3beta1.EntityTypesClient', () => { describe('listEntityTypes', () => { it('invokes listEntityTypes without error', async () => { - const client = new entitytypesModule.v3beta1.EntityTypesClient({ + const client = new entitytypesModule.v3.EntityTypesClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest() + new protos.google.cloud.dialogflow.cx.v3.ListEntityTypesRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -666,13 +666,13 @@ describe('v3beta1.EntityTypesClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.EntityType() + new protos.google.cloud.dialogflow.cx.v3.EntityType() ), generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.EntityType() + new protos.google.cloud.dialogflow.cx.v3.EntityType() ), generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.EntityType() + new protos.google.cloud.dialogflow.cx.v3.EntityType() ), ]; client.innerApiCalls.listEntityTypes = stubSimpleCall(expectedResponse); @@ -686,13 +686,13 @@ describe('v3beta1.EntityTypesClient', () => { }); it('invokes listEntityTypes without error using callback', async () => { - const client = new entitytypesModule.v3beta1.EntityTypesClient({ + const client = new entitytypesModule.v3.EntityTypesClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest() + new protos.google.cloud.dialogflow.cx.v3.ListEntityTypesRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -705,13 +705,13 @@ describe('v3beta1.EntityTypesClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.EntityType() + new protos.google.cloud.dialogflow.cx.v3.EntityType() ), generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.EntityType() + new protos.google.cloud.dialogflow.cx.v3.EntityType() ), generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.EntityType() + new protos.google.cloud.dialogflow.cx.v3.EntityType() ), ]; client.innerApiCalls.listEntityTypes = stubSimpleCallWithCallback( @@ -722,9 +722,7 @@ describe('v3beta1.EntityTypesClient', () => { request, ( err?: Error | null, - result?: - | protos.google.cloud.dialogflow.cx.v3beta1.IEntityType[] - | null + result?: protos.google.cloud.dialogflow.cx.v3.IEntityType[] | null ) => { if (err) { reject(err); @@ -744,13 +742,13 @@ describe('v3beta1.EntityTypesClient', () => { }); it('invokes listEntityTypes with error', async () => { - const client = new entitytypesModule.v3beta1.EntityTypesClient({ + const client = new entitytypesModule.v3.EntityTypesClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest() + new protos.google.cloud.dialogflow.cx.v3.ListEntityTypesRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -775,25 +773,25 @@ describe('v3beta1.EntityTypesClient', () => { }); it('invokes listEntityTypesStream without error', async () => { - const client = new entitytypesModule.v3beta1.EntityTypesClient({ + const client = new entitytypesModule.v3.EntityTypesClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest() + new protos.google.cloud.dialogflow.cx.v3.ListEntityTypesRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.EntityType() + new protos.google.cloud.dialogflow.cx.v3.EntityType() ), generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.EntityType() + new protos.google.cloud.dialogflow.cx.v3.EntityType() ), generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.EntityType() + new protos.google.cloud.dialogflow.cx.v3.EntityType() ), ]; client.descriptors.page.listEntityTypes.createStream = stubPageStreamingCall( @@ -801,10 +799,10 @@ describe('v3beta1.EntityTypesClient', () => { ); const stream = client.listEntityTypesStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.dialogflow.cx.v3beta1.EntityType[] = []; + const responses: protos.google.cloud.dialogflow.cx.v3.EntityType[] = []; stream.on( 'data', - (response: protos.google.cloud.dialogflow.cx.v3beta1.EntityType) => { + (response: protos.google.cloud.dialogflow.cx.v3.EntityType) => { responses.push(response); } ); @@ -832,13 +830,13 @@ describe('v3beta1.EntityTypesClient', () => { }); it('invokes listEntityTypesStream with error', async () => { - const client = new entitytypesModule.v3beta1.EntityTypesClient({ + const client = new entitytypesModule.v3.EntityTypesClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest() + new protos.google.cloud.dialogflow.cx.v3.ListEntityTypesRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -849,10 +847,10 @@ describe('v3beta1.EntityTypesClient', () => { ); const stream = client.listEntityTypesStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.dialogflow.cx.v3beta1.EntityType[] = []; + const responses: protos.google.cloud.dialogflow.cx.v3.EntityType[] = []; stream.on( 'data', - (response: protos.google.cloud.dialogflow.cx.v3beta1.EntityType) => { + (response: protos.google.cloud.dialogflow.cx.v3.EntityType) => { responses.push(response); } ); @@ -879,31 +877,31 @@ describe('v3beta1.EntityTypesClient', () => { }); it('uses async iteration with listEntityTypes without error', async () => { - const client = new entitytypesModule.v3beta1.EntityTypesClient({ + const client = new entitytypesModule.v3.EntityTypesClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest() + new protos.google.cloud.dialogflow.cx.v3.ListEntityTypesRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.EntityType() + new protos.google.cloud.dialogflow.cx.v3.EntityType() ), generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.EntityType() + new protos.google.cloud.dialogflow.cx.v3.EntityType() ), generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.EntityType() + new protos.google.cloud.dialogflow.cx.v3.EntityType() ), ]; client.descriptors.page.listEntityTypes.asyncIterate = stubAsyncIterationCall( expectedResponse ); - const responses: protos.google.cloud.dialogflow.cx.v3beta1.IEntityType[] = []; + const responses: protos.google.cloud.dialogflow.cx.v3.IEntityType[] = []; const iterable = client.listEntityTypesAsync(request); for await (const resource of iterable) { responses.push(resource!); @@ -924,13 +922,13 @@ describe('v3beta1.EntityTypesClient', () => { }); it('uses async iteration with listEntityTypes with error', async () => { - const client = new entitytypesModule.v3beta1.EntityTypesClient({ + const client = new entitytypesModule.v3.EntityTypesClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest() + new protos.google.cloud.dialogflow.cx.v3.ListEntityTypesRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -941,7 +939,7 @@ describe('v3beta1.EntityTypesClient', () => { ); const iterable = client.listEntityTypesAsync(request); await assert.rejects(async () => { - const responses: protos.google.cloud.dialogflow.cx.v3beta1.IEntityType[] = []; + const responses: protos.google.cloud.dialogflow.cx.v3.IEntityType[] = []; for await (const resource of iterable) { responses.push(resource!); } @@ -969,7 +967,7 @@ describe('v3beta1.EntityTypesClient', () => { location: 'locationValue', agent: 'agentValue', }; - const client = new entitytypesModule.v3beta1.EntityTypesClient({ + const client = new entitytypesModule.v3.EntityTypesClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1034,7 +1032,7 @@ describe('v3beta1.EntityTypesClient', () => { agent: 'agentValue', entity_type: 'entityTypeValue', }; - const client = new entitytypesModule.v3beta1.EntityTypesClient({ + const client = new entitytypesModule.v3.EntityTypesClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1110,7 +1108,7 @@ describe('v3beta1.EntityTypesClient', () => { agent: 'agentValue', environment: 'environmentValue', }; - const client = new entitytypesModule.v3beta1.EntityTypesClient({ + const client = new entitytypesModule.v3.EntityTypesClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1186,7 +1184,7 @@ describe('v3beta1.EntityTypesClient', () => { agent: 'agentValue', flow: 'flowValue', }; - const client = new entitytypesModule.v3beta1.EntityTypesClient({ + const client = new entitytypesModule.v3.EntityTypesClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1262,7 +1260,7 @@ describe('v3beta1.EntityTypesClient', () => { agent: 'agentValue', intent: 'intentValue', }; - const client = new entitytypesModule.v3beta1.EntityTypesClient({ + const client = new entitytypesModule.v3.EntityTypesClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1336,7 +1334,7 @@ describe('v3beta1.EntityTypesClient', () => { project: 'projectValue', location: 'locationValue', }; - const client = new entitytypesModule.v3beta1.EntityTypesClient({ + const client = new entitytypesModule.v3.EntityTypesClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1388,7 +1386,7 @@ describe('v3beta1.EntityTypesClient', () => { flow: 'flowValue', page: 'pageValue', }; - const client = new entitytypesModule.v3beta1.EntityTypesClient({ + const client = new entitytypesModule.v3.EntityTypesClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1472,7 +1470,7 @@ describe('v3beta1.EntityTypesClient', () => { const expectedParameters = { project: 'projectValue', }; - const client = new entitytypesModule.v3beta1.EntityTypesClient({ + const client = new entitytypesModule.v3.EntityTypesClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1516,7 +1514,7 @@ describe('v3beta1.EntityTypesClient', () => { session: 'sessionValue', entity_type: 'entityTypeValue', }; - const client = new entitytypesModule.v3beta1.EntityTypesClient({ + const client = new entitytypesModule.v3.EntityTypesClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1641,7 +1639,7 @@ describe('v3beta1.EntityTypesClient', () => { session: 'sessionValue', entity_type: 'entityTypeValue', }; - const client = new entitytypesModule.v3beta1.EntityTypesClient({ + const client = new entitytypesModule.v3.EntityTypesClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1742,6 +1740,73 @@ describe('v3beta1.EntityTypesClient', () => { }); }); + describe('securitySettings', () => { + const fakePath = '/rendered/path/securitySettings'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + security_settings: 'securitySettingsValue', + }; + const client = new entitytypesModule.v3.EntityTypesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.securitySettingsPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.securitySettingsPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('securitySettingsPath', () => { + const result = client.securitySettingsPath( + 'projectValue', + 'locationValue', + 'securitySettingsValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.securitySettingsPathTemplate + .render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromSecuritySettingsName', () => { + const result = client.matchProjectFromSecuritySettingsName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.securitySettingsPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromSecuritySettingsName', () => { + const result = client.matchLocationFromSecuritySettingsName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.securitySettingsPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchSecuritySettingsFromSecuritySettingsName', () => { + const result = client.matchSecuritySettingsFromSecuritySettingsName( + fakePath + ); + assert.strictEqual(result, 'securitySettingsValue'); + assert( + (client.pathTemplates.securitySettingsPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('transitionRouteGroup', () => { const fakePath = '/rendered/path/transitionRouteGroup'; const expectedParameters = { @@ -1751,7 +1816,7 @@ describe('v3beta1.EntityTypesClient', () => { flow: 'flowValue', transition_route_group: 'transitionRouteGroupValue', }; - const client = new entitytypesModule.v3beta1.EntityTypesClient({ + const client = new entitytypesModule.v3.EntityTypesClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1851,7 +1916,7 @@ describe('v3beta1.EntityTypesClient', () => { flow: 'flowValue', version: 'versionValue', }; - const client = new entitytypesModule.v3beta1.EntityTypesClient({ + const client = new entitytypesModule.v3.EntityTypesClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1938,7 +2003,7 @@ describe('v3beta1.EntityTypesClient', () => { agent: 'agentValue', webhook: 'webhookValue', }; - const client = new entitytypesModule.v3beta1.EntityTypesClient({ + const client = new entitytypesModule.v3.EntityTypesClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); diff --git a/test/gapic_environments_v3beta1.ts b/test/gapic_environments_v3.ts similarity index 87% rename from test/gapic_environments_v3beta1.ts rename to test/gapic_environments_v3.ts index 8ac669d8..283debeb 100644 --- a/test/gapic_environments_v3beta1.ts +++ b/test/gapic_environments_v3.ts @@ -145,39 +145,37 @@ function stubAsyncIterationCall( return sinon.stub().returns(asyncIterable); } -describe('v3beta1.EnvironmentsClient', () => { +describe('v3.EnvironmentsClient', () => { it('has servicePath', () => { - const servicePath = - environmentsModule.v3beta1.EnvironmentsClient.servicePath; + const servicePath = environmentsModule.v3.EnvironmentsClient.servicePath; assert(servicePath); }); it('has apiEndpoint', () => { - const apiEndpoint = - environmentsModule.v3beta1.EnvironmentsClient.apiEndpoint; + const apiEndpoint = environmentsModule.v3.EnvironmentsClient.apiEndpoint; assert(apiEndpoint); }); it('has port', () => { - const port = environmentsModule.v3beta1.EnvironmentsClient.port; + const port = environmentsModule.v3.EnvironmentsClient.port; assert(port); assert(typeof port === 'number'); }); it('should create a client with no option', () => { - const client = new environmentsModule.v3beta1.EnvironmentsClient(); + const client = new environmentsModule.v3.EnvironmentsClient(); assert(client); }); it('should create a client with gRPC fallback', () => { - const client = new environmentsModule.v3beta1.EnvironmentsClient({ + const client = new environmentsModule.v3.EnvironmentsClient({ fallback: true, }); assert(client); }); it('has initialize method and supports deferred initialization', async () => { - const client = new environmentsModule.v3beta1.EnvironmentsClient({ + const client = new environmentsModule.v3.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -187,7 +185,7 @@ describe('v3beta1.EnvironmentsClient', () => { }); it('has close method', () => { - const client = new environmentsModule.v3beta1.EnvironmentsClient({ + const client = new environmentsModule.v3.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -196,7 +194,7 @@ describe('v3beta1.EnvironmentsClient', () => { it('has getProjectId method', async () => { const fakeProjectId = 'fake-project-id'; - const client = new environmentsModule.v3beta1.EnvironmentsClient({ + const client = new environmentsModule.v3.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -208,7 +206,7 @@ describe('v3beta1.EnvironmentsClient', () => { it('has getProjectId method with callback', async () => { const fakeProjectId = 'fake-project-id'; - const client = new environmentsModule.v3beta1.EnvironmentsClient({ + const client = new environmentsModule.v3.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -230,13 +228,13 @@ describe('v3beta1.EnvironmentsClient', () => { describe('getEnvironment', () => { it('invokes getEnvironment without error', async () => { - const client = new environmentsModule.v3beta1.EnvironmentsClient({ + const client = new environmentsModule.v3.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest() + new protos.google.cloud.dialogflow.cx.v3.GetEnvironmentRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -248,7 +246,7 @@ describe('v3beta1.EnvironmentsClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Environment() + new protos.google.cloud.dialogflow.cx.v3.Environment() ); client.innerApiCalls.getEnvironment = stubSimpleCall(expectedResponse); const [response] = await client.getEnvironment(request); @@ -261,13 +259,13 @@ describe('v3beta1.EnvironmentsClient', () => { }); it('invokes getEnvironment without error using callback', async () => { - const client = new environmentsModule.v3beta1.EnvironmentsClient({ + const client = new environmentsModule.v3.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest() + new protos.google.cloud.dialogflow.cx.v3.GetEnvironmentRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -279,7 +277,7 @@ describe('v3beta1.EnvironmentsClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Environment() + new protos.google.cloud.dialogflow.cx.v3.Environment() ); client.innerApiCalls.getEnvironment = stubSimpleCallWithCallback( expectedResponse @@ -289,7 +287,7 @@ describe('v3beta1.EnvironmentsClient', () => { request, ( err?: Error | null, - result?: protos.google.cloud.dialogflow.cx.v3beta1.IEnvironment | null + result?: protos.google.cloud.dialogflow.cx.v3.IEnvironment | null ) => { if (err) { reject(err); @@ -309,13 +307,13 @@ describe('v3beta1.EnvironmentsClient', () => { }); it('invokes getEnvironment with error', async () => { - const client = new environmentsModule.v3beta1.EnvironmentsClient({ + const client = new environmentsModule.v3.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest() + new protos.google.cloud.dialogflow.cx.v3.GetEnvironmentRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -342,13 +340,13 @@ describe('v3beta1.EnvironmentsClient', () => { describe('deleteEnvironment', () => { it('invokes deleteEnvironment without error', async () => { - const client = new environmentsModule.v3beta1.EnvironmentsClient({ + const client = new environmentsModule.v3.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest() + new protos.google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -373,13 +371,13 @@ describe('v3beta1.EnvironmentsClient', () => { }); it('invokes deleteEnvironment without error using callback', async () => { - const client = new environmentsModule.v3beta1.EnvironmentsClient({ + const client = new environmentsModule.v3.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest() + new protos.google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -421,13 +419,13 @@ describe('v3beta1.EnvironmentsClient', () => { }); it('invokes deleteEnvironment with error', async () => { - const client = new environmentsModule.v3beta1.EnvironmentsClient({ + const client = new environmentsModule.v3.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest() + new protos.google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -454,13 +452,13 @@ describe('v3beta1.EnvironmentsClient', () => { describe('createEnvironment', () => { it('invokes createEnvironment without error', async () => { - const client = new environmentsModule.v3beta1.EnvironmentsClient({ + const client = new environmentsModule.v3.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest() + new protos.google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -488,13 +486,13 @@ describe('v3beta1.EnvironmentsClient', () => { }); it('invokes createEnvironment without error using callback', async () => { - const client = new environmentsModule.v3beta1.EnvironmentsClient({ + const client = new environmentsModule.v3.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest() + new protos.google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -517,7 +515,7 @@ describe('v3beta1.EnvironmentsClient', () => { ( err?: Error | null, result?: LROperation< - protos.google.cloud.dialogflow.cx.v3beta1.IEnvironment, + protos.google.cloud.dialogflow.cx.v3.IEnvironment, protos.google.protobuf.IStruct > | null ) => { @@ -530,7 +528,7 @@ describe('v3beta1.EnvironmentsClient', () => { ); }); const operation = (await promise) as LROperation< - protos.google.cloud.dialogflow.cx.v3beta1.IEnvironment, + protos.google.cloud.dialogflow.cx.v3.IEnvironment, protos.google.protobuf.IStruct >; const [response] = await operation.promise(); @@ -543,13 +541,13 @@ describe('v3beta1.EnvironmentsClient', () => { }); it('invokes createEnvironment with call error', async () => { - const client = new environmentsModule.v3beta1.EnvironmentsClient({ + const client = new environmentsModule.v3.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest() + new protos.google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -574,13 +572,13 @@ describe('v3beta1.EnvironmentsClient', () => { }); it('invokes createEnvironment with LRO error', async () => { - const client = new environmentsModule.v3beta1.EnvironmentsClient({ + const client = new environmentsModule.v3.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest() + new protos.google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -607,7 +605,7 @@ describe('v3beta1.EnvironmentsClient', () => { }); it('invokes checkCreateEnvironmentProgress without error', async () => { - const client = new environmentsModule.v3beta1.EnvironmentsClient({ + const client = new environmentsModule.v3.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -629,7 +627,7 @@ describe('v3beta1.EnvironmentsClient', () => { }); it('invokes checkCreateEnvironmentProgress with error', async () => { - const client = new environmentsModule.v3beta1.EnvironmentsClient({ + const client = new environmentsModule.v3.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -650,13 +648,13 @@ describe('v3beta1.EnvironmentsClient', () => { describe('updateEnvironment', () => { it('invokes updateEnvironment without error', async () => { - const client = new environmentsModule.v3beta1.EnvironmentsClient({ + const client = new environmentsModule.v3.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest() + new protos.google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest() ); request.environment = {}; request.environment.name = ''; @@ -685,13 +683,13 @@ describe('v3beta1.EnvironmentsClient', () => { }); it('invokes updateEnvironment without error using callback', async () => { - const client = new environmentsModule.v3beta1.EnvironmentsClient({ + const client = new environmentsModule.v3.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest() + new protos.google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest() ); request.environment = {}; request.environment.name = ''; @@ -715,7 +713,7 @@ describe('v3beta1.EnvironmentsClient', () => { ( err?: Error | null, result?: LROperation< - protos.google.cloud.dialogflow.cx.v3beta1.IEnvironment, + protos.google.cloud.dialogflow.cx.v3.IEnvironment, protos.google.protobuf.IStruct > | null ) => { @@ -728,7 +726,7 @@ describe('v3beta1.EnvironmentsClient', () => { ); }); const operation = (await promise) as LROperation< - protos.google.cloud.dialogflow.cx.v3beta1.IEnvironment, + protos.google.cloud.dialogflow.cx.v3.IEnvironment, protos.google.protobuf.IStruct >; const [response] = await operation.promise(); @@ -741,13 +739,13 @@ describe('v3beta1.EnvironmentsClient', () => { }); it('invokes updateEnvironment with call error', async () => { - const client = new environmentsModule.v3beta1.EnvironmentsClient({ + const client = new environmentsModule.v3.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest() + new protos.google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest() ); request.environment = {}; request.environment.name = ''; @@ -773,13 +771,13 @@ describe('v3beta1.EnvironmentsClient', () => { }); it('invokes updateEnvironment with LRO error', async () => { - const client = new environmentsModule.v3beta1.EnvironmentsClient({ + const client = new environmentsModule.v3.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest() + new protos.google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest() ); request.environment = {}; request.environment.name = ''; @@ -807,7 +805,7 @@ describe('v3beta1.EnvironmentsClient', () => { }); it('invokes checkUpdateEnvironmentProgress without error', async () => { - const client = new environmentsModule.v3beta1.EnvironmentsClient({ + const client = new environmentsModule.v3.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -829,7 +827,7 @@ describe('v3beta1.EnvironmentsClient', () => { }); it('invokes checkUpdateEnvironmentProgress with error', async () => { - const client = new environmentsModule.v3beta1.EnvironmentsClient({ + const client = new environmentsModule.v3.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -850,13 +848,13 @@ describe('v3beta1.EnvironmentsClient', () => { describe('listEnvironments', () => { it('invokes listEnvironments without error', async () => { - const client = new environmentsModule.v3beta1.EnvironmentsClient({ + const client = new environmentsModule.v3.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest() + new protos.google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -869,13 +867,13 @@ describe('v3beta1.EnvironmentsClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Environment() + new protos.google.cloud.dialogflow.cx.v3.Environment() ), generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Environment() + new protos.google.cloud.dialogflow.cx.v3.Environment() ), generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Environment() + new protos.google.cloud.dialogflow.cx.v3.Environment() ), ]; client.innerApiCalls.listEnvironments = stubSimpleCall(expectedResponse); @@ -889,13 +887,13 @@ describe('v3beta1.EnvironmentsClient', () => { }); it('invokes listEnvironments without error using callback', async () => { - const client = new environmentsModule.v3beta1.EnvironmentsClient({ + const client = new environmentsModule.v3.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest() + new protos.google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -908,13 +906,13 @@ describe('v3beta1.EnvironmentsClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Environment() + new protos.google.cloud.dialogflow.cx.v3.Environment() ), generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Environment() + new protos.google.cloud.dialogflow.cx.v3.Environment() ), generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Environment() + new protos.google.cloud.dialogflow.cx.v3.Environment() ), ]; client.innerApiCalls.listEnvironments = stubSimpleCallWithCallback( @@ -925,9 +923,7 @@ describe('v3beta1.EnvironmentsClient', () => { request, ( err?: Error | null, - result?: - | protos.google.cloud.dialogflow.cx.v3beta1.IEnvironment[] - | null + result?: protos.google.cloud.dialogflow.cx.v3.IEnvironment[] | null ) => { if (err) { reject(err); @@ -947,13 +943,13 @@ describe('v3beta1.EnvironmentsClient', () => { }); it('invokes listEnvironments with error', async () => { - const client = new environmentsModule.v3beta1.EnvironmentsClient({ + const client = new environmentsModule.v3.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest() + new protos.google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -978,25 +974,25 @@ describe('v3beta1.EnvironmentsClient', () => { }); it('invokes listEnvironmentsStream without error', async () => { - const client = new environmentsModule.v3beta1.EnvironmentsClient({ + const client = new environmentsModule.v3.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest() + new protos.google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Environment() + new protos.google.cloud.dialogflow.cx.v3.Environment() ), generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Environment() + new protos.google.cloud.dialogflow.cx.v3.Environment() ), generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Environment() + new protos.google.cloud.dialogflow.cx.v3.Environment() ), ]; client.descriptors.page.listEnvironments.createStream = stubPageStreamingCall( @@ -1004,10 +1000,10 @@ describe('v3beta1.EnvironmentsClient', () => { ); const stream = client.listEnvironmentsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.dialogflow.cx.v3beta1.Environment[] = []; + const responses: protos.google.cloud.dialogflow.cx.v3.Environment[] = []; stream.on( 'data', - (response: protos.google.cloud.dialogflow.cx.v3beta1.Environment) => { + (response: protos.google.cloud.dialogflow.cx.v3.Environment) => { responses.push(response); } ); @@ -1035,13 +1031,13 @@ describe('v3beta1.EnvironmentsClient', () => { }); it('invokes listEnvironmentsStream with error', async () => { - const client = new environmentsModule.v3beta1.EnvironmentsClient({ + const client = new environmentsModule.v3.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest() + new protos.google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -1052,10 +1048,10 @@ describe('v3beta1.EnvironmentsClient', () => { ); const stream = client.listEnvironmentsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.dialogflow.cx.v3beta1.Environment[] = []; + const responses: protos.google.cloud.dialogflow.cx.v3.Environment[] = []; stream.on( 'data', - (response: protos.google.cloud.dialogflow.cx.v3beta1.Environment) => { + (response: protos.google.cloud.dialogflow.cx.v3.Environment) => { responses.push(response); } ); @@ -1082,31 +1078,31 @@ describe('v3beta1.EnvironmentsClient', () => { }); it('uses async iteration with listEnvironments without error', async () => { - const client = new environmentsModule.v3beta1.EnvironmentsClient({ + const client = new environmentsModule.v3.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest() + new protos.google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Environment() + new protos.google.cloud.dialogflow.cx.v3.Environment() ), generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Environment() + new protos.google.cloud.dialogflow.cx.v3.Environment() ), generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Environment() + new protos.google.cloud.dialogflow.cx.v3.Environment() ), ]; client.descriptors.page.listEnvironments.asyncIterate = stubAsyncIterationCall( expectedResponse ); - const responses: protos.google.cloud.dialogflow.cx.v3beta1.IEnvironment[] = []; + const responses: protos.google.cloud.dialogflow.cx.v3.IEnvironment[] = []; const iterable = client.listEnvironmentsAsync(request); for await (const resource of iterable) { responses.push(resource!); @@ -1127,13 +1123,13 @@ describe('v3beta1.EnvironmentsClient', () => { }); it('uses async iteration with listEnvironments with error', async () => { - const client = new environmentsModule.v3beta1.EnvironmentsClient({ + const client = new environmentsModule.v3.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest() + new protos.google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -1144,7 +1140,7 @@ describe('v3beta1.EnvironmentsClient', () => { ); const iterable = client.listEnvironmentsAsync(request); await assert.rejects(async () => { - const responses: protos.google.cloud.dialogflow.cx.v3beta1.IEnvironment[] = []; + const responses: protos.google.cloud.dialogflow.cx.v3.IEnvironment[] = []; for await (const resource of iterable) { responses.push(resource!); } @@ -1166,13 +1162,13 @@ describe('v3beta1.EnvironmentsClient', () => { describe('lookupEnvironmentHistory', () => { it('invokes lookupEnvironmentHistory without error', async () => { - const client = new environmentsModule.v3beta1.EnvironmentsClient({ + const client = new environmentsModule.v3.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest() + new protos.google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -1185,13 +1181,13 @@ describe('v3beta1.EnvironmentsClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Environment() + new protos.google.cloud.dialogflow.cx.v3.Environment() ), generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Environment() + new protos.google.cloud.dialogflow.cx.v3.Environment() ), generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Environment() + new protos.google.cloud.dialogflow.cx.v3.Environment() ), ]; client.innerApiCalls.lookupEnvironmentHistory = stubSimpleCall( @@ -1207,13 +1203,13 @@ describe('v3beta1.EnvironmentsClient', () => { }); it('invokes lookupEnvironmentHistory without error using callback', async () => { - const client = new environmentsModule.v3beta1.EnvironmentsClient({ + const client = new environmentsModule.v3.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest() + new protos.google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -1226,13 +1222,13 @@ describe('v3beta1.EnvironmentsClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Environment() + new protos.google.cloud.dialogflow.cx.v3.Environment() ), generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Environment() + new protos.google.cloud.dialogflow.cx.v3.Environment() ), generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Environment() + new protos.google.cloud.dialogflow.cx.v3.Environment() ), ]; client.innerApiCalls.lookupEnvironmentHistory = stubSimpleCallWithCallback( @@ -1243,9 +1239,7 @@ describe('v3beta1.EnvironmentsClient', () => { request, ( err?: Error | null, - result?: - | protos.google.cloud.dialogflow.cx.v3beta1.IEnvironment[] - | null + result?: protos.google.cloud.dialogflow.cx.v3.IEnvironment[] | null ) => { if (err) { reject(err); @@ -1265,13 +1259,13 @@ describe('v3beta1.EnvironmentsClient', () => { }); it('invokes lookupEnvironmentHistory with error', async () => { - const client = new environmentsModule.v3beta1.EnvironmentsClient({ + const client = new environmentsModule.v3.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest() + new protos.google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -1299,25 +1293,25 @@ describe('v3beta1.EnvironmentsClient', () => { }); it('invokes lookupEnvironmentHistoryStream without error', async () => { - const client = new environmentsModule.v3beta1.EnvironmentsClient({ + const client = new environmentsModule.v3.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest() + new protos.google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Environment() + new protos.google.cloud.dialogflow.cx.v3.Environment() ), generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Environment() + new protos.google.cloud.dialogflow.cx.v3.Environment() ), generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Environment() + new protos.google.cloud.dialogflow.cx.v3.Environment() ), ]; client.descriptors.page.lookupEnvironmentHistory.createStream = stubPageStreamingCall( @@ -1325,10 +1319,10 @@ describe('v3beta1.EnvironmentsClient', () => { ); const stream = client.lookupEnvironmentHistoryStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.dialogflow.cx.v3beta1.Environment[] = []; + const responses: protos.google.cloud.dialogflow.cx.v3.Environment[] = []; stream.on( 'data', - (response: protos.google.cloud.dialogflow.cx.v3beta1.Environment) => { + (response: protos.google.cloud.dialogflow.cx.v3.Environment) => { responses.push(response); } ); @@ -1357,13 +1351,13 @@ describe('v3beta1.EnvironmentsClient', () => { }); it('invokes lookupEnvironmentHistoryStream with error', async () => { - const client = new environmentsModule.v3beta1.EnvironmentsClient({ + const client = new environmentsModule.v3.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest() + new protos.google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -1374,10 +1368,10 @@ describe('v3beta1.EnvironmentsClient', () => { ); const stream = client.lookupEnvironmentHistoryStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.dialogflow.cx.v3beta1.Environment[] = []; + const responses: protos.google.cloud.dialogflow.cx.v3.Environment[] = []; stream.on( 'data', - (response: protos.google.cloud.dialogflow.cx.v3beta1.Environment) => { + (response: protos.google.cloud.dialogflow.cx.v3.Environment) => { responses.push(response); } ); @@ -1405,31 +1399,31 @@ describe('v3beta1.EnvironmentsClient', () => { }); it('uses async iteration with lookupEnvironmentHistory without error', async () => { - const client = new environmentsModule.v3beta1.EnvironmentsClient({ + const client = new environmentsModule.v3.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest() + new protos.google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Environment() + new protos.google.cloud.dialogflow.cx.v3.Environment() ), generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Environment() + new protos.google.cloud.dialogflow.cx.v3.Environment() ), generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Environment() + new protos.google.cloud.dialogflow.cx.v3.Environment() ), ]; client.descriptors.page.lookupEnvironmentHistory.asyncIterate = stubAsyncIterationCall( expectedResponse ); - const responses: protos.google.cloud.dialogflow.cx.v3beta1.IEnvironment[] = []; + const responses: protos.google.cloud.dialogflow.cx.v3.IEnvironment[] = []; const iterable = client.lookupEnvironmentHistoryAsync(request); for await (const resource of iterable) { responses.push(resource!); @@ -1450,13 +1444,13 @@ describe('v3beta1.EnvironmentsClient', () => { }); it('uses async iteration with lookupEnvironmentHistory with error', async () => { - const client = new environmentsModule.v3beta1.EnvironmentsClient({ + const client = new environmentsModule.v3.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest() + new protos.google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -1467,7 +1461,7 @@ describe('v3beta1.EnvironmentsClient', () => { ); const iterable = client.lookupEnvironmentHistoryAsync(request); await assert.rejects(async () => { - const responses: protos.google.cloud.dialogflow.cx.v3beta1.IEnvironment[] = []; + const responses: protos.google.cloud.dialogflow.cx.v3.IEnvironment[] = []; for await (const resource of iterable) { responses.push(resource!); } @@ -1495,7 +1489,7 @@ describe('v3beta1.EnvironmentsClient', () => { location: 'locationValue', agent: 'agentValue', }; - const client = new environmentsModule.v3beta1.EnvironmentsClient({ + const client = new environmentsModule.v3.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1560,7 +1554,7 @@ describe('v3beta1.EnvironmentsClient', () => { agent: 'agentValue', entity_type: 'entityTypeValue', }; - const client = new environmentsModule.v3beta1.EnvironmentsClient({ + const client = new environmentsModule.v3.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1636,7 +1630,7 @@ describe('v3beta1.EnvironmentsClient', () => { agent: 'agentValue', environment: 'environmentValue', }; - const client = new environmentsModule.v3beta1.EnvironmentsClient({ + const client = new environmentsModule.v3.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1712,7 +1706,7 @@ describe('v3beta1.EnvironmentsClient', () => { agent: 'agentValue', flow: 'flowValue', }; - const client = new environmentsModule.v3beta1.EnvironmentsClient({ + const client = new environmentsModule.v3.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1788,7 +1782,7 @@ describe('v3beta1.EnvironmentsClient', () => { agent: 'agentValue', intent: 'intentValue', }; - const client = new environmentsModule.v3beta1.EnvironmentsClient({ + const client = new environmentsModule.v3.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1862,7 +1856,7 @@ describe('v3beta1.EnvironmentsClient', () => { project: 'projectValue', location: 'locationValue', }; - const client = new environmentsModule.v3beta1.EnvironmentsClient({ + const client = new environmentsModule.v3.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1914,7 +1908,7 @@ describe('v3beta1.EnvironmentsClient', () => { flow: 'flowValue', page: 'pageValue', }; - const client = new environmentsModule.v3beta1.EnvironmentsClient({ + const client = new environmentsModule.v3.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1998,7 +1992,7 @@ describe('v3beta1.EnvironmentsClient', () => { const expectedParameters = { project: 'projectValue', }; - const client = new environmentsModule.v3beta1.EnvironmentsClient({ + const client = new environmentsModule.v3.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -2042,7 +2036,7 @@ describe('v3beta1.EnvironmentsClient', () => { session: 'sessionValue', entity_type: 'entityTypeValue', }; - const client = new environmentsModule.v3beta1.EnvironmentsClient({ + const client = new environmentsModule.v3.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -2167,7 +2161,7 @@ describe('v3beta1.EnvironmentsClient', () => { session: 'sessionValue', entity_type: 'entityTypeValue', }; - const client = new environmentsModule.v3beta1.EnvironmentsClient({ + const client = new environmentsModule.v3.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -2268,6 +2262,73 @@ describe('v3beta1.EnvironmentsClient', () => { }); }); + describe('securitySettings', () => { + const fakePath = '/rendered/path/securitySettings'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + security_settings: 'securitySettingsValue', + }; + const client = new environmentsModule.v3.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.securitySettingsPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.securitySettingsPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('securitySettingsPath', () => { + const result = client.securitySettingsPath( + 'projectValue', + 'locationValue', + 'securitySettingsValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.securitySettingsPathTemplate + .render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromSecuritySettingsName', () => { + const result = client.matchProjectFromSecuritySettingsName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.securitySettingsPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromSecuritySettingsName', () => { + const result = client.matchLocationFromSecuritySettingsName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.securitySettingsPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchSecuritySettingsFromSecuritySettingsName', () => { + const result = client.matchSecuritySettingsFromSecuritySettingsName( + fakePath + ); + assert.strictEqual(result, 'securitySettingsValue'); + assert( + (client.pathTemplates.securitySettingsPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('transitionRouteGroup', () => { const fakePath = '/rendered/path/transitionRouteGroup'; const expectedParameters = { @@ -2277,7 +2338,7 @@ describe('v3beta1.EnvironmentsClient', () => { flow: 'flowValue', transition_route_group: 'transitionRouteGroupValue', }; - const client = new environmentsModule.v3beta1.EnvironmentsClient({ + const client = new environmentsModule.v3.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -2377,7 +2438,7 @@ describe('v3beta1.EnvironmentsClient', () => { flow: 'flowValue', version: 'versionValue', }; - const client = new environmentsModule.v3beta1.EnvironmentsClient({ + const client = new environmentsModule.v3.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -2464,7 +2525,7 @@ describe('v3beta1.EnvironmentsClient', () => { agent: 'agentValue', webhook: 'webhookValue', }; - const client = new environmentsModule.v3beta1.EnvironmentsClient({ + const client = new environmentsModule.v3.EnvironmentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); diff --git a/test/gapic_flows_v3beta1.ts b/test/gapic_flows_v3.ts similarity index 88% rename from test/gapic_flows_v3beta1.ts rename to test/gapic_flows_v3.ts index 7b44f86e..14c81c9d 100644 --- a/test/gapic_flows_v3beta1.ts +++ b/test/gapic_flows_v3.ts @@ -145,37 +145,37 @@ function stubAsyncIterationCall( return sinon.stub().returns(asyncIterable); } -describe('v3beta1.FlowsClient', () => { +describe('v3.FlowsClient', () => { it('has servicePath', () => { - const servicePath = flowsModule.v3beta1.FlowsClient.servicePath; + const servicePath = flowsModule.v3.FlowsClient.servicePath; assert(servicePath); }); it('has apiEndpoint', () => { - const apiEndpoint = flowsModule.v3beta1.FlowsClient.apiEndpoint; + const apiEndpoint = flowsModule.v3.FlowsClient.apiEndpoint; assert(apiEndpoint); }); it('has port', () => { - const port = flowsModule.v3beta1.FlowsClient.port; + const port = flowsModule.v3.FlowsClient.port; assert(port); assert(typeof port === 'number'); }); it('should create a client with no option', () => { - const client = new flowsModule.v3beta1.FlowsClient(); + const client = new flowsModule.v3.FlowsClient(); assert(client); }); it('should create a client with gRPC fallback', () => { - const client = new flowsModule.v3beta1.FlowsClient({ + const client = new flowsModule.v3.FlowsClient({ fallback: true, }); assert(client); }); it('has initialize method and supports deferred initialization', async () => { - const client = new flowsModule.v3beta1.FlowsClient({ + const client = new flowsModule.v3.FlowsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -185,7 +185,7 @@ describe('v3beta1.FlowsClient', () => { }); it('has close method', () => { - const client = new flowsModule.v3beta1.FlowsClient({ + const client = new flowsModule.v3.FlowsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -194,7 +194,7 @@ describe('v3beta1.FlowsClient', () => { it('has getProjectId method', async () => { const fakeProjectId = 'fake-project-id'; - const client = new flowsModule.v3beta1.FlowsClient({ + const client = new flowsModule.v3.FlowsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -206,7 +206,7 @@ describe('v3beta1.FlowsClient', () => { it('has getProjectId method with callback', async () => { const fakeProjectId = 'fake-project-id'; - const client = new flowsModule.v3beta1.FlowsClient({ + const client = new flowsModule.v3.FlowsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -228,13 +228,13 @@ describe('v3beta1.FlowsClient', () => { describe('createFlow', () => { it('invokes createFlow without error', async () => { - const client = new flowsModule.v3beta1.FlowsClient({ + const client = new flowsModule.v3.FlowsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest() + new protos.google.cloud.dialogflow.cx.v3.CreateFlowRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -246,7 +246,7 @@ describe('v3beta1.FlowsClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Flow() + new protos.google.cloud.dialogflow.cx.v3.Flow() ); client.innerApiCalls.createFlow = stubSimpleCall(expectedResponse); const [response] = await client.createFlow(request); @@ -259,13 +259,13 @@ describe('v3beta1.FlowsClient', () => { }); it('invokes createFlow without error using callback', async () => { - const client = new flowsModule.v3beta1.FlowsClient({ + const client = new flowsModule.v3.FlowsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest() + new protos.google.cloud.dialogflow.cx.v3.CreateFlowRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -277,7 +277,7 @@ describe('v3beta1.FlowsClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Flow() + new protos.google.cloud.dialogflow.cx.v3.Flow() ); client.innerApiCalls.createFlow = stubSimpleCallWithCallback( expectedResponse @@ -287,7 +287,7 @@ describe('v3beta1.FlowsClient', () => { request, ( err?: Error | null, - result?: protos.google.cloud.dialogflow.cx.v3beta1.IFlow | null + result?: protos.google.cloud.dialogflow.cx.v3.IFlow | null ) => { if (err) { reject(err); @@ -307,13 +307,13 @@ describe('v3beta1.FlowsClient', () => { }); it('invokes createFlow with error', async () => { - const client = new flowsModule.v3beta1.FlowsClient({ + const client = new flowsModule.v3.FlowsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest() + new protos.google.cloud.dialogflow.cx.v3.CreateFlowRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -340,13 +340,13 @@ describe('v3beta1.FlowsClient', () => { describe('deleteFlow', () => { it('invokes deleteFlow without error', async () => { - const client = new flowsModule.v3beta1.FlowsClient({ + const client = new flowsModule.v3.FlowsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest() + new protos.google.cloud.dialogflow.cx.v3.DeleteFlowRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -371,13 +371,13 @@ describe('v3beta1.FlowsClient', () => { }); it('invokes deleteFlow without error using callback', async () => { - const client = new flowsModule.v3beta1.FlowsClient({ + const client = new flowsModule.v3.FlowsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest() + new protos.google.cloud.dialogflow.cx.v3.DeleteFlowRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -419,13 +419,13 @@ describe('v3beta1.FlowsClient', () => { }); it('invokes deleteFlow with error', async () => { - const client = new flowsModule.v3beta1.FlowsClient({ + const client = new flowsModule.v3.FlowsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest() + new protos.google.cloud.dialogflow.cx.v3.DeleteFlowRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -452,13 +452,13 @@ describe('v3beta1.FlowsClient', () => { describe('getFlow', () => { it('invokes getFlow without error', async () => { - const client = new flowsModule.v3beta1.FlowsClient({ + const client = new flowsModule.v3.FlowsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.GetFlowRequest() + new protos.google.cloud.dialogflow.cx.v3.GetFlowRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -470,7 +470,7 @@ describe('v3beta1.FlowsClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Flow() + new protos.google.cloud.dialogflow.cx.v3.Flow() ); client.innerApiCalls.getFlow = stubSimpleCall(expectedResponse); const [response] = await client.getFlow(request); @@ -483,13 +483,13 @@ describe('v3beta1.FlowsClient', () => { }); it('invokes getFlow without error using callback', async () => { - const client = new flowsModule.v3beta1.FlowsClient({ + const client = new flowsModule.v3.FlowsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.GetFlowRequest() + new protos.google.cloud.dialogflow.cx.v3.GetFlowRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -501,7 +501,7 @@ describe('v3beta1.FlowsClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Flow() + new protos.google.cloud.dialogflow.cx.v3.Flow() ); client.innerApiCalls.getFlow = stubSimpleCallWithCallback( expectedResponse @@ -511,7 +511,7 @@ describe('v3beta1.FlowsClient', () => { request, ( err?: Error | null, - result?: protos.google.cloud.dialogflow.cx.v3beta1.IFlow | null + result?: protos.google.cloud.dialogflow.cx.v3.IFlow | null ) => { if (err) { reject(err); @@ -531,13 +531,13 @@ describe('v3beta1.FlowsClient', () => { }); it('invokes getFlow with error', async () => { - const client = new flowsModule.v3beta1.FlowsClient({ + const client = new flowsModule.v3.FlowsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.GetFlowRequest() + new protos.google.cloud.dialogflow.cx.v3.GetFlowRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -561,13 +561,13 @@ describe('v3beta1.FlowsClient', () => { describe('updateFlow', () => { it('invokes updateFlow without error', async () => { - const client = new flowsModule.v3beta1.FlowsClient({ + const client = new flowsModule.v3.FlowsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest() + new protos.google.cloud.dialogflow.cx.v3.UpdateFlowRequest() ); request.flow = {}; request.flow.name = ''; @@ -580,7 +580,7 @@ describe('v3beta1.FlowsClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Flow() + new protos.google.cloud.dialogflow.cx.v3.Flow() ); client.innerApiCalls.updateFlow = stubSimpleCall(expectedResponse); const [response] = await client.updateFlow(request); @@ -593,13 +593,13 @@ describe('v3beta1.FlowsClient', () => { }); it('invokes updateFlow without error using callback', async () => { - const client = new flowsModule.v3beta1.FlowsClient({ + const client = new flowsModule.v3.FlowsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest() + new protos.google.cloud.dialogflow.cx.v3.UpdateFlowRequest() ); request.flow = {}; request.flow.name = ''; @@ -612,7 +612,7 @@ describe('v3beta1.FlowsClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Flow() + new protos.google.cloud.dialogflow.cx.v3.Flow() ); client.innerApiCalls.updateFlow = stubSimpleCallWithCallback( expectedResponse @@ -622,7 +622,7 @@ describe('v3beta1.FlowsClient', () => { request, ( err?: Error | null, - result?: protos.google.cloud.dialogflow.cx.v3beta1.IFlow | null + result?: protos.google.cloud.dialogflow.cx.v3.IFlow | null ) => { if (err) { reject(err); @@ -642,13 +642,13 @@ describe('v3beta1.FlowsClient', () => { }); it('invokes updateFlow with error', async () => { - const client = new flowsModule.v3beta1.FlowsClient({ + const client = new flowsModule.v3.FlowsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest() + new protos.google.cloud.dialogflow.cx.v3.UpdateFlowRequest() ); request.flow = {}; request.flow.name = ''; @@ -676,13 +676,13 @@ describe('v3beta1.FlowsClient', () => { describe('trainFlow', () => { it('invokes trainFlow without error', async () => { - const client = new flowsModule.v3beta1.FlowsClient({ + const client = new flowsModule.v3.FlowsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest() + new protos.google.cloud.dialogflow.cx.v3.TrainFlowRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -708,13 +708,13 @@ describe('v3beta1.FlowsClient', () => { }); it('invokes trainFlow without error using callback', async () => { - const client = new flowsModule.v3beta1.FlowsClient({ + const client = new flowsModule.v3.FlowsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest() + new protos.google.cloud.dialogflow.cx.v3.TrainFlowRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -763,13 +763,13 @@ describe('v3beta1.FlowsClient', () => { }); it('invokes trainFlow with call error', async () => { - const client = new flowsModule.v3beta1.FlowsClient({ + const client = new flowsModule.v3.FlowsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest() + new protos.google.cloud.dialogflow.cx.v3.TrainFlowRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -794,13 +794,13 @@ describe('v3beta1.FlowsClient', () => { }); it('invokes trainFlow with LRO error', async () => { - const client = new flowsModule.v3beta1.FlowsClient({ + const client = new flowsModule.v3.FlowsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest() + new protos.google.cloud.dialogflow.cx.v3.TrainFlowRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -827,7 +827,7 @@ describe('v3beta1.FlowsClient', () => { }); it('invokes checkTrainFlowProgress without error', async () => { - const client = new flowsModule.v3beta1.FlowsClient({ + const client = new flowsModule.v3.FlowsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -849,7 +849,7 @@ describe('v3beta1.FlowsClient', () => { }); it('invokes checkTrainFlowProgress with error', async () => { - const client = new flowsModule.v3beta1.FlowsClient({ + const client = new flowsModule.v3.FlowsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -867,13 +867,13 @@ describe('v3beta1.FlowsClient', () => { describe('listFlows', () => { it('invokes listFlows without error', async () => { - const client = new flowsModule.v3beta1.FlowsClient({ + const client = new flowsModule.v3.FlowsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest() + new protos.google.cloud.dialogflow.cx.v3.ListFlowsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -885,15 +885,9 @@ describe('v3beta1.FlowsClient', () => { }, }; const expectedResponse = [ - generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Flow() - ), - generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Flow() - ), - generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Flow() - ), + generateSampleMessage(new protos.google.cloud.dialogflow.cx.v3.Flow()), + generateSampleMessage(new protos.google.cloud.dialogflow.cx.v3.Flow()), + generateSampleMessage(new protos.google.cloud.dialogflow.cx.v3.Flow()), ]; client.innerApiCalls.listFlows = stubSimpleCall(expectedResponse); const [response] = await client.listFlows(request); @@ -906,13 +900,13 @@ describe('v3beta1.FlowsClient', () => { }); it('invokes listFlows without error using callback', async () => { - const client = new flowsModule.v3beta1.FlowsClient({ + const client = new flowsModule.v3.FlowsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest() + new protos.google.cloud.dialogflow.cx.v3.ListFlowsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -924,15 +918,9 @@ describe('v3beta1.FlowsClient', () => { }, }; const expectedResponse = [ - generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Flow() - ), - generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Flow() - ), - generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Flow() - ), + generateSampleMessage(new protos.google.cloud.dialogflow.cx.v3.Flow()), + generateSampleMessage(new protos.google.cloud.dialogflow.cx.v3.Flow()), + generateSampleMessage(new protos.google.cloud.dialogflow.cx.v3.Flow()), ]; client.innerApiCalls.listFlows = stubSimpleCallWithCallback( expectedResponse @@ -942,7 +930,7 @@ describe('v3beta1.FlowsClient', () => { request, ( err?: Error | null, - result?: protos.google.cloud.dialogflow.cx.v3beta1.IFlow[] | null + result?: protos.google.cloud.dialogflow.cx.v3.IFlow[] | null ) => { if (err) { reject(err); @@ -962,13 +950,13 @@ describe('v3beta1.FlowsClient', () => { }); it('invokes listFlows with error', async () => { - const client = new flowsModule.v3beta1.FlowsClient({ + const client = new flowsModule.v3.FlowsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest() + new protos.google.cloud.dialogflow.cx.v3.ListFlowsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -990,36 +978,30 @@ describe('v3beta1.FlowsClient', () => { }); it('invokes listFlowsStream without error', async () => { - const client = new flowsModule.v3beta1.FlowsClient({ + const client = new flowsModule.v3.FlowsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest() + new protos.google.cloud.dialogflow.cx.v3.ListFlowsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ - generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Flow() - ), - generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Flow() - ), - generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Flow() - ), + generateSampleMessage(new protos.google.cloud.dialogflow.cx.v3.Flow()), + generateSampleMessage(new protos.google.cloud.dialogflow.cx.v3.Flow()), + generateSampleMessage(new protos.google.cloud.dialogflow.cx.v3.Flow()), ]; client.descriptors.page.listFlows.createStream = stubPageStreamingCall( expectedResponse ); const stream = client.listFlowsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.dialogflow.cx.v3beta1.Flow[] = []; + const responses: protos.google.cloud.dialogflow.cx.v3.Flow[] = []; stream.on( 'data', - (response: protos.google.cloud.dialogflow.cx.v3beta1.Flow) => { + (response: protos.google.cloud.dialogflow.cx.v3.Flow) => { responses.push(response); } ); @@ -1045,13 +1027,13 @@ describe('v3beta1.FlowsClient', () => { }); it('invokes listFlowsStream with error', async () => { - const client = new flowsModule.v3beta1.FlowsClient({ + const client = new flowsModule.v3.FlowsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest() + new protos.google.cloud.dialogflow.cx.v3.ListFlowsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -1062,10 +1044,10 @@ describe('v3beta1.FlowsClient', () => { ); const stream = client.listFlowsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.dialogflow.cx.v3beta1.Flow[] = []; + const responses: protos.google.cloud.dialogflow.cx.v3.Flow[] = []; stream.on( 'data', - (response: protos.google.cloud.dialogflow.cx.v3beta1.Flow) => { + (response: protos.google.cloud.dialogflow.cx.v3.Flow) => { responses.push(response); } ); @@ -1090,31 +1072,25 @@ describe('v3beta1.FlowsClient', () => { }); it('uses async iteration with listFlows without error', async () => { - const client = new flowsModule.v3beta1.FlowsClient({ + const client = new flowsModule.v3.FlowsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest() + new protos.google.cloud.dialogflow.cx.v3.ListFlowsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ - generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Flow() - ), - generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Flow() - ), - generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Flow() - ), + generateSampleMessage(new protos.google.cloud.dialogflow.cx.v3.Flow()), + generateSampleMessage(new protos.google.cloud.dialogflow.cx.v3.Flow()), + generateSampleMessage(new protos.google.cloud.dialogflow.cx.v3.Flow()), ]; client.descriptors.page.listFlows.asyncIterate = stubAsyncIterationCall( expectedResponse ); - const responses: protos.google.cloud.dialogflow.cx.v3beta1.IFlow[] = []; + const responses: protos.google.cloud.dialogflow.cx.v3.IFlow[] = []; const iterable = client.listFlowsAsync(request); for await (const resource of iterable) { responses.push(resource!); @@ -1133,13 +1109,13 @@ describe('v3beta1.FlowsClient', () => { }); it('uses async iteration with listFlows with error', async () => { - const client = new flowsModule.v3beta1.FlowsClient({ + const client = new flowsModule.v3.FlowsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest() + new protos.google.cloud.dialogflow.cx.v3.ListFlowsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -1150,7 +1126,7 @@ describe('v3beta1.FlowsClient', () => { ); const iterable = client.listFlowsAsync(request); await assert.rejects(async () => { - const responses: protos.google.cloud.dialogflow.cx.v3beta1.IFlow[] = []; + const responses: protos.google.cloud.dialogflow.cx.v3.IFlow[] = []; for await (const resource of iterable) { responses.push(resource!); } @@ -1176,7 +1152,7 @@ describe('v3beta1.FlowsClient', () => { location: 'locationValue', agent: 'agentValue', }; - const client = new flowsModule.v3beta1.FlowsClient({ + const client = new flowsModule.v3.FlowsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1241,7 +1217,7 @@ describe('v3beta1.FlowsClient', () => { agent: 'agentValue', entity_type: 'entityTypeValue', }; - const client = new flowsModule.v3beta1.FlowsClient({ + const client = new flowsModule.v3.FlowsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1317,7 +1293,7 @@ describe('v3beta1.FlowsClient', () => { agent: 'agentValue', environment: 'environmentValue', }; - const client = new flowsModule.v3beta1.FlowsClient({ + const client = new flowsModule.v3.FlowsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1393,7 +1369,7 @@ describe('v3beta1.FlowsClient', () => { agent: 'agentValue', flow: 'flowValue', }; - const client = new flowsModule.v3beta1.FlowsClient({ + const client = new flowsModule.v3.FlowsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1469,7 +1445,7 @@ describe('v3beta1.FlowsClient', () => { agent: 'agentValue', intent: 'intentValue', }; - const client = new flowsModule.v3beta1.FlowsClient({ + const client = new flowsModule.v3.FlowsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1543,7 +1519,7 @@ describe('v3beta1.FlowsClient', () => { project: 'projectValue', location: 'locationValue', }; - const client = new flowsModule.v3beta1.FlowsClient({ + const client = new flowsModule.v3.FlowsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1595,7 +1571,7 @@ describe('v3beta1.FlowsClient', () => { flow: 'flowValue', page: 'pageValue', }; - const client = new flowsModule.v3beta1.FlowsClient({ + const client = new flowsModule.v3.FlowsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1679,7 +1655,7 @@ describe('v3beta1.FlowsClient', () => { const expectedParameters = { project: 'projectValue', }; - const client = new flowsModule.v3beta1.FlowsClient({ + const client = new flowsModule.v3.FlowsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1723,7 +1699,7 @@ describe('v3beta1.FlowsClient', () => { session: 'sessionValue', entity_type: 'entityTypeValue', }; - const client = new flowsModule.v3beta1.FlowsClient({ + const client = new flowsModule.v3.FlowsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1848,7 +1824,7 @@ describe('v3beta1.FlowsClient', () => { session: 'sessionValue', entity_type: 'entityTypeValue', }; - const client = new flowsModule.v3beta1.FlowsClient({ + const client = new flowsModule.v3.FlowsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1949,6 +1925,73 @@ describe('v3beta1.FlowsClient', () => { }); }); + describe('securitySettings', () => { + const fakePath = '/rendered/path/securitySettings'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + security_settings: 'securitySettingsValue', + }; + const client = new flowsModule.v3.FlowsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.securitySettingsPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.securitySettingsPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('securitySettingsPath', () => { + const result = client.securitySettingsPath( + 'projectValue', + 'locationValue', + 'securitySettingsValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.securitySettingsPathTemplate + .render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromSecuritySettingsName', () => { + const result = client.matchProjectFromSecuritySettingsName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.securitySettingsPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromSecuritySettingsName', () => { + const result = client.matchLocationFromSecuritySettingsName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.securitySettingsPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchSecuritySettingsFromSecuritySettingsName', () => { + const result = client.matchSecuritySettingsFromSecuritySettingsName( + fakePath + ); + assert.strictEqual(result, 'securitySettingsValue'); + assert( + (client.pathTemplates.securitySettingsPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('transitionRouteGroup', () => { const fakePath = '/rendered/path/transitionRouteGroup'; const expectedParameters = { @@ -1958,7 +2001,7 @@ describe('v3beta1.FlowsClient', () => { flow: 'flowValue', transition_route_group: 'transitionRouteGroupValue', }; - const client = new flowsModule.v3beta1.FlowsClient({ + const client = new flowsModule.v3.FlowsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -2058,7 +2101,7 @@ describe('v3beta1.FlowsClient', () => { flow: 'flowValue', version: 'versionValue', }; - const client = new flowsModule.v3beta1.FlowsClient({ + const client = new flowsModule.v3.FlowsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -2145,7 +2188,7 @@ describe('v3beta1.FlowsClient', () => { agent: 'agentValue', webhook: 'webhookValue', }; - const client = new flowsModule.v3beta1.FlowsClient({ + const client = new flowsModule.v3.FlowsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); diff --git a/test/gapic_intents_v3beta1.ts b/test/gapic_intents_v3.ts similarity index 88% rename from test/gapic_intents_v3beta1.ts rename to test/gapic_intents_v3.ts index ef887972..4ff53b56 100644 --- a/test/gapic_intents_v3beta1.ts +++ b/test/gapic_intents_v3.ts @@ -113,37 +113,37 @@ function stubAsyncIterationCall( return sinon.stub().returns(asyncIterable); } -describe('v3beta1.IntentsClient', () => { +describe('v3.IntentsClient', () => { it('has servicePath', () => { - const servicePath = intentsModule.v3beta1.IntentsClient.servicePath; + const servicePath = intentsModule.v3.IntentsClient.servicePath; assert(servicePath); }); it('has apiEndpoint', () => { - const apiEndpoint = intentsModule.v3beta1.IntentsClient.apiEndpoint; + const apiEndpoint = intentsModule.v3.IntentsClient.apiEndpoint; assert(apiEndpoint); }); it('has port', () => { - const port = intentsModule.v3beta1.IntentsClient.port; + const port = intentsModule.v3.IntentsClient.port; assert(port); assert(typeof port === 'number'); }); it('should create a client with no option', () => { - const client = new intentsModule.v3beta1.IntentsClient(); + const client = new intentsModule.v3.IntentsClient(); assert(client); }); it('should create a client with gRPC fallback', () => { - const client = new intentsModule.v3beta1.IntentsClient({ + const client = new intentsModule.v3.IntentsClient({ fallback: true, }); assert(client); }); it('has initialize method and supports deferred initialization', async () => { - const client = new intentsModule.v3beta1.IntentsClient({ + const client = new intentsModule.v3.IntentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -153,7 +153,7 @@ describe('v3beta1.IntentsClient', () => { }); it('has close method', () => { - const client = new intentsModule.v3beta1.IntentsClient({ + const client = new intentsModule.v3.IntentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -162,7 +162,7 @@ describe('v3beta1.IntentsClient', () => { it('has getProjectId method', async () => { const fakeProjectId = 'fake-project-id'; - const client = new intentsModule.v3beta1.IntentsClient({ + const client = new intentsModule.v3.IntentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -174,7 +174,7 @@ describe('v3beta1.IntentsClient', () => { it('has getProjectId method with callback', async () => { const fakeProjectId = 'fake-project-id'; - const client = new intentsModule.v3beta1.IntentsClient({ + const client = new intentsModule.v3.IntentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -196,13 +196,13 @@ describe('v3beta1.IntentsClient', () => { describe('getIntent', () => { it('invokes getIntent without error', async () => { - const client = new intentsModule.v3beta1.IntentsClient({ + const client = new intentsModule.v3.IntentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.GetIntentRequest() + new protos.google.cloud.dialogflow.cx.v3.GetIntentRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -214,7 +214,7 @@ describe('v3beta1.IntentsClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Intent() + new protos.google.cloud.dialogflow.cx.v3.Intent() ); client.innerApiCalls.getIntent = stubSimpleCall(expectedResponse); const [response] = await client.getIntent(request); @@ -227,13 +227,13 @@ describe('v3beta1.IntentsClient', () => { }); it('invokes getIntent without error using callback', async () => { - const client = new intentsModule.v3beta1.IntentsClient({ + const client = new intentsModule.v3.IntentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.GetIntentRequest() + new protos.google.cloud.dialogflow.cx.v3.GetIntentRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -245,7 +245,7 @@ describe('v3beta1.IntentsClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Intent() + new protos.google.cloud.dialogflow.cx.v3.Intent() ); client.innerApiCalls.getIntent = stubSimpleCallWithCallback( expectedResponse @@ -255,7 +255,7 @@ describe('v3beta1.IntentsClient', () => { request, ( err?: Error | null, - result?: protos.google.cloud.dialogflow.cx.v3beta1.IIntent | null + result?: protos.google.cloud.dialogflow.cx.v3.IIntent | null ) => { if (err) { reject(err); @@ -275,13 +275,13 @@ describe('v3beta1.IntentsClient', () => { }); it('invokes getIntent with error', async () => { - const client = new intentsModule.v3beta1.IntentsClient({ + const client = new intentsModule.v3.IntentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.GetIntentRequest() + new protos.google.cloud.dialogflow.cx.v3.GetIntentRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -305,13 +305,13 @@ describe('v3beta1.IntentsClient', () => { describe('createIntent', () => { it('invokes createIntent without error', async () => { - const client = new intentsModule.v3beta1.IntentsClient({ + const client = new intentsModule.v3.IntentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest() + new protos.google.cloud.dialogflow.cx.v3.CreateIntentRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -323,7 +323,7 @@ describe('v3beta1.IntentsClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Intent() + new protos.google.cloud.dialogflow.cx.v3.Intent() ); client.innerApiCalls.createIntent = stubSimpleCall(expectedResponse); const [response] = await client.createIntent(request); @@ -336,13 +336,13 @@ describe('v3beta1.IntentsClient', () => { }); it('invokes createIntent without error using callback', async () => { - const client = new intentsModule.v3beta1.IntentsClient({ + const client = new intentsModule.v3.IntentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest() + new protos.google.cloud.dialogflow.cx.v3.CreateIntentRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -354,7 +354,7 @@ describe('v3beta1.IntentsClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Intent() + new protos.google.cloud.dialogflow.cx.v3.Intent() ); client.innerApiCalls.createIntent = stubSimpleCallWithCallback( expectedResponse @@ -364,7 +364,7 @@ describe('v3beta1.IntentsClient', () => { request, ( err?: Error | null, - result?: protos.google.cloud.dialogflow.cx.v3beta1.IIntent | null + result?: protos.google.cloud.dialogflow.cx.v3.IIntent | null ) => { if (err) { reject(err); @@ -384,13 +384,13 @@ describe('v3beta1.IntentsClient', () => { }); it('invokes createIntent with error', async () => { - const client = new intentsModule.v3beta1.IntentsClient({ + const client = new intentsModule.v3.IntentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest() + new protos.google.cloud.dialogflow.cx.v3.CreateIntentRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -417,13 +417,13 @@ describe('v3beta1.IntentsClient', () => { describe('updateIntent', () => { it('invokes updateIntent without error', async () => { - const client = new intentsModule.v3beta1.IntentsClient({ + const client = new intentsModule.v3.IntentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest() + new protos.google.cloud.dialogflow.cx.v3.UpdateIntentRequest() ); request.intent = {}; request.intent.name = ''; @@ -436,7 +436,7 @@ describe('v3beta1.IntentsClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Intent() + new protos.google.cloud.dialogflow.cx.v3.Intent() ); client.innerApiCalls.updateIntent = stubSimpleCall(expectedResponse); const [response] = await client.updateIntent(request); @@ -449,13 +449,13 @@ describe('v3beta1.IntentsClient', () => { }); it('invokes updateIntent without error using callback', async () => { - const client = new intentsModule.v3beta1.IntentsClient({ + const client = new intentsModule.v3.IntentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest() + new protos.google.cloud.dialogflow.cx.v3.UpdateIntentRequest() ); request.intent = {}; request.intent.name = ''; @@ -468,7 +468,7 @@ describe('v3beta1.IntentsClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Intent() + new protos.google.cloud.dialogflow.cx.v3.Intent() ); client.innerApiCalls.updateIntent = stubSimpleCallWithCallback( expectedResponse @@ -478,7 +478,7 @@ describe('v3beta1.IntentsClient', () => { request, ( err?: Error | null, - result?: protos.google.cloud.dialogflow.cx.v3beta1.IIntent | null + result?: protos.google.cloud.dialogflow.cx.v3.IIntent | null ) => { if (err) { reject(err); @@ -498,13 +498,13 @@ describe('v3beta1.IntentsClient', () => { }); it('invokes updateIntent with error', async () => { - const client = new intentsModule.v3beta1.IntentsClient({ + const client = new intentsModule.v3.IntentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest() + new protos.google.cloud.dialogflow.cx.v3.UpdateIntentRequest() ); request.intent = {}; request.intent.name = ''; @@ -532,13 +532,13 @@ describe('v3beta1.IntentsClient', () => { describe('deleteIntent', () => { it('invokes deleteIntent without error', async () => { - const client = new intentsModule.v3beta1.IntentsClient({ + const client = new intentsModule.v3.IntentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest() + new protos.google.cloud.dialogflow.cx.v3.DeleteIntentRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -563,13 +563,13 @@ describe('v3beta1.IntentsClient', () => { }); it('invokes deleteIntent without error using callback', async () => { - const client = new intentsModule.v3beta1.IntentsClient({ + const client = new intentsModule.v3.IntentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest() + new protos.google.cloud.dialogflow.cx.v3.DeleteIntentRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -611,13 +611,13 @@ describe('v3beta1.IntentsClient', () => { }); it('invokes deleteIntent with error', async () => { - const client = new intentsModule.v3beta1.IntentsClient({ + const client = new intentsModule.v3.IntentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest() + new protos.google.cloud.dialogflow.cx.v3.DeleteIntentRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -644,13 +644,13 @@ describe('v3beta1.IntentsClient', () => { describe('listIntents', () => { it('invokes listIntents without error', async () => { - const client = new intentsModule.v3beta1.IntentsClient({ + const client = new intentsModule.v3.IntentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest() + new protos.google.cloud.dialogflow.cx.v3.ListIntentsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -663,13 +663,13 @@ describe('v3beta1.IntentsClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Intent() + new protos.google.cloud.dialogflow.cx.v3.Intent() ), generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Intent() + new protos.google.cloud.dialogflow.cx.v3.Intent() ), generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Intent() + new protos.google.cloud.dialogflow.cx.v3.Intent() ), ]; client.innerApiCalls.listIntents = stubSimpleCall(expectedResponse); @@ -683,13 +683,13 @@ describe('v3beta1.IntentsClient', () => { }); it('invokes listIntents without error using callback', async () => { - const client = new intentsModule.v3beta1.IntentsClient({ + const client = new intentsModule.v3.IntentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest() + new protos.google.cloud.dialogflow.cx.v3.ListIntentsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -702,13 +702,13 @@ describe('v3beta1.IntentsClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Intent() + new protos.google.cloud.dialogflow.cx.v3.Intent() ), generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Intent() + new protos.google.cloud.dialogflow.cx.v3.Intent() ), generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Intent() + new protos.google.cloud.dialogflow.cx.v3.Intent() ), ]; client.innerApiCalls.listIntents = stubSimpleCallWithCallback( @@ -719,7 +719,7 @@ describe('v3beta1.IntentsClient', () => { request, ( err?: Error | null, - result?: protos.google.cloud.dialogflow.cx.v3beta1.IIntent[] | null + result?: protos.google.cloud.dialogflow.cx.v3.IIntent[] | null ) => { if (err) { reject(err); @@ -739,13 +739,13 @@ describe('v3beta1.IntentsClient', () => { }); it('invokes listIntents with error', async () => { - const client = new intentsModule.v3beta1.IntentsClient({ + const client = new intentsModule.v3.IntentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest() + new protos.google.cloud.dialogflow.cx.v3.ListIntentsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -770,25 +770,25 @@ describe('v3beta1.IntentsClient', () => { }); it('invokes listIntentsStream without error', async () => { - const client = new intentsModule.v3beta1.IntentsClient({ + const client = new intentsModule.v3.IntentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest() + new protos.google.cloud.dialogflow.cx.v3.ListIntentsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Intent() + new protos.google.cloud.dialogflow.cx.v3.Intent() ), generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Intent() + new protos.google.cloud.dialogflow.cx.v3.Intent() ), generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Intent() + new protos.google.cloud.dialogflow.cx.v3.Intent() ), ]; client.descriptors.page.listIntents.createStream = stubPageStreamingCall( @@ -796,10 +796,10 @@ describe('v3beta1.IntentsClient', () => { ); const stream = client.listIntentsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.dialogflow.cx.v3beta1.Intent[] = []; + const responses: protos.google.cloud.dialogflow.cx.v3.Intent[] = []; stream.on( 'data', - (response: protos.google.cloud.dialogflow.cx.v3beta1.Intent) => { + (response: protos.google.cloud.dialogflow.cx.v3.Intent) => { responses.push(response); } ); @@ -826,13 +826,13 @@ describe('v3beta1.IntentsClient', () => { }); it('invokes listIntentsStream with error', async () => { - const client = new intentsModule.v3beta1.IntentsClient({ + const client = new intentsModule.v3.IntentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest() + new protos.google.cloud.dialogflow.cx.v3.ListIntentsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -843,10 +843,10 @@ describe('v3beta1.IntentsClient', () => { ); const stream = client.listIntentsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.dialogflow.cx.v3beta1.Intent[] = []; + const responses: protos.google.cloud.dialogflow.cx.v3.Intent[] = []; stream.on( 'data', - (response: protos.google.cloud.dialogflow.cx.v3beta1.Intent) => { + (response: protos.google.cloud.dialogflow.cx.v3.Intent) => { responses.push(response); } ); @@ -872,31 +872,31 @@ describe('v3beta1.IntentsClient', () => { }); it('uses async iteration with listIntents without error', async () => { - const client = new intentsModule.v3beta1.IntentsClient({ + const client = new intentsModule.v3.IntentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest() + new protos.google.cloud.dialogflow.cx.v3.ListIntentsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Intent() + new protos.google.cloud.dialogflow.cx.v3.Intent() ), generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Intent() + new protos.google.cloud.dialogflow.cx.v3.Intent() ), generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Intent() + new protos.google.cloud.dialogflow.cx.v3.Intent() ), ]; client.descriptors.page.listIntents.asyncIterate = stubAsyncIterationCall( expectedResponse ); - const responses: protos.google.cloud.dialogflow.cx.v3beta1.IIntent[] = []; + const responses: protos.google.cloud.dialogflow.cx.v3.IIntent[] = []; const iterable = client.listIntentsAsync(request); for await (const resource of iterable) { responses.push(resource!); @@ -917,13 +917,13 @@ describe('v3beta1.IntentsClient', () => { }); it('uses async iteration with listIntents with error', async () => { - const client = new intentsModule.v3beta1.IntentsClient({ + const client = new intentsModule.v3.IntentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest() + new protos.google.cloud.dialogflow.cx.v3.ListIntentsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -934,7 +934,7 @@ describe('v3beta1.IntentsClient', () => { ); const iterable = client.listIntentsAsync(request); await assert.rejects(async () => { - const responses: protos.google.cloud.dialogflow.cx.v3beta1.IIntent[] = []; + const responses: protos.google.cloud.dialogflow.cx.v3.IIntent[] = []; for await (const resource of iterable) { responses.push(resource!); } @@ -962,7 +962,7 @@ describe('v3beta1.IntentsClient', () => { location: 'locationValue', agent: 'agentValue', }; - const client = new intentsModule.v3beta1.IntentsClient({ + const client = new intentsModule.v3.IntentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1027,7 +1027,7 @@ describe('v3beta1.IntentsClient', () => { agent: 'agentValue', entity_type: 'entityTypeValue', }; - const client = new intentsModule.v3beta1.IntentsClient({ + const client = new intentsModule.v3.IntentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1103,7 +1103,7 @@ describe('v3beta1.IntentsClient', () => { agent: 'agentValue', environment: 'environmentValue', }; - const client = new intentsModule.v3beta1.IntentsClient({ + const client = new intentsModule.v3.IntentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1179,7 +1179,7 @@ describe('v3beta1.IntentsClient', () => { agent: 'agentValue', flow: 'flowValue', }; - const client = new intentsModule.v3beta1.IntentsClient({ + const client = new intentsModule.v3.IntentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1255,7 +1255,7 @@ describe('v3beta1.IntentsClient', () => { agent: 'agentValue', intent: 'intentValue', }; - const client = new intentsModule.v3beta1.IntentsClient({ + const client = new intentsModule.v3.IntentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1329,7 +1329,7 @@ describe('v3beta1.IntentsClient', () => { project: 'projectValue', location: 'locationValue', }; - const client = new intentsModule.v3beta1.IntentsClient({ + const client = new intentsModule.v3.IntentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1381,7 +1381,7 @@ describe('v3beta1.IntentsClient', () => { flow: 'flowValue', page: 'pageValue', }; - const client = new intentsModule.v3beta1.IntentsClient({ + const client = new intentsModule.v3.IntentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1465,7 +1465,7 @@ describe('v3beta1.IntentsClient', () => { const expectedParameters = { project: 'projectValue', }; - const client = new intentsModule.v3beta1.IntentsClient({ + const client = new intentsModule.v3.IntentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1509,7 +1509,7 @@ describe('v3beta1.IntentsClient', () => { session: 'sessionValue', entity_type: 'entityTypeValue', }; - const client = new intentsModule.v3beta1.IntentsClient({ + const client = new intentsModule.v3.IntentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1634,7 +1634,7 @@ describe('v3beta1.IntentsClient', () => { session: 'sessionValue', entity_type: 'entityTypeValue', }; - const client = new intentsModule.v3beta1.IntentsClient({ + const client = new intentsModule.v3.IntentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1735,6 +1735,73 @@ describe('v3beta1.IntentsClient', () => { }); }); + describe('securitySettings', () => { + const fakePath = '/rendered/path/securitySettings'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + security_settings: 'securitySettingsValue', + }; + const client = new intentsModule.v3.IntentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.securitySettingsPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.securitySettingsPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('securitySettingsPath', () => { + const result = client.securitySettingsPath( + 'projectValue', + 'locationValue', + 'securitySettingsValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.securitySettingsPathTemplate + .render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromSecuritySettingsName', () => { + const result = client.matchProjectFromSecuritySettingsName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.securitySettingsPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromSecuritySettingsName', () => { + const result = client.matchLocationFromSecuritySettingsName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.securitySettingsPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchSecuritySettingsFromSecuritySettingsName', () => { + const result = client.matchSecuritySettingsFromSecuritySettingsName( + fakePath + ); + assert.strictEqual(result, 'securitySettingsValue'); + assert( + (client.pathTemplates.securitySettingsPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('transitionRouteGroup', () => { const fakePath = '/rendered/path/transitionRouteGroup'; const expectedParameters = { @@ -1744,7 +1811,7 @@ describe('v3beta1.IntentsClient', () => { flow: 'flowValue', transition_route_group: 'transitionRouteGroupValue', }; - const client = new intentsModule.v3beta1.IntentsClient({ + const client = new intentsModule.v3.IntentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1844,7 +1911,7 @@ describe('v3beta1.IntentsClient', () => { flow: 'flowValue', version: 'versionValue', }; - const client = new intentsModule.v3beta1.IntentsClient({ + const client = new intentsModule.v3.IntentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1931,7 +1998,7 @@ describe('v3beta1.IntentsClient', () => { agent: 'agentValue', webhook: 'webhookValue', }; - const client = new intentsModule.v3beta1.IntentsClient({ + const client = new intentsModule.v3.IntentsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); diff --git a/test/gapic_pages_v3beta1.ts b/test/gapic_pages_v3.ts similarity index 88% rename from test/gapic_pages_v3beta1.ts rename to test/gapic_pages_v3.ts index f73bca24..e55a08e8 100644 --- a/test/gapic_pages_v3beta1.ts +++ b/test/gapic_pages_v3.ts @@ -113,37 +113,37 @@ function stubAsyncIterationCall( return sinon.stub().returns(asyncIterable); } -describe('v3beta1.PagesClient', () => { +describe('v3.PagesClient', () => { it('has servicePath', () => { - const servicePath = pagesModule.v3beta1.PagesClient.servicePath; + const servicePath = pagesModule.v3.PagesClient.servicePath; assert(servicePath); }); it('has apiEndpoint', () => { - const apiEndpoint = pagesModule.v3beta1.PagesClient.apiEndpoint; + const apiEndpoint = pagesModule.v3.PagesClient.apiEndpoint; assert(apiEndpoint); }); it('has port', () => { - const port = pagesModule.v3beta1.PagesClient.port; + const port = pagesModule.v3.PagesClient.port; assert(port); assert(typeof port === 'number'); }); it('should create a client with no option', () => { - const client = new pagesModule.v3beta1.PagesClient(); + const client = new pagesModule.v3.PagesClient(); assert(client); }); it('should create a client with gRPC fallback', () => { - const client = new pagesModule.v3beta1.PagesClient({ + const client = new pagesModule.v3.PagesClient({ fallback: true, }); assert(client); }); it('has initialize method and supports deferred initialization', async () => { - const client = new pagesModule.v3beta1.PagesClient({ + const client = new pagesModule.v3.PagesClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -153,7 +153,7 @@ describe('v3beta1.PagesClient', () => { }); it('has close method', () => { - const client = new pagesModule.v3beta1.PagesClient({ + const client = new pagesModule.v3.PagesClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -162,7 +162,7 @@ describe('v3beta1.PagesClient', () => { it('has getProjectId method', async () => { const fakeProjectId = 'fake-project-id'; - const client = new pagesModule.v3beta1.PagesClient({ + const client = new pagesModule.v3.PagesClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -174,7 +174,7 @@ describe('v3beta1.PagesClient', () => { it('has getProjectId method with callback', async () => { const fakeProjectId = 'fake-project-id'; - const client = new pagesModule.v3beta1.PagesClient({ + const client = new pagesModule.v3.PagesClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -196,13 +196,13 @@ describe('v3beta1.PagesClient', () => { describe('getPage', () => { it('invokes getPage without error', async () => { - const client = new pagesModule.v3beta1.PagesClient({ + const client = new pagesModule.v3.PagesClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.GetPageRequest() + new protos.google.cloud.dialogflow.cx.v3.GetPageRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -214,7 +214,7 @@ describe('v3beta1.PagesClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Page() + new protos.google.cloud.dialogflow.cx.v3.Page() ); client.innerApiCalls.getPage = stubSimpleCall(expectedResponse); const [response] = await client.getPage(request); @@ -227,13 +227,13 @@ describe('v3beta1.PagesClient', () => { }); it('invokes getPage without error using callback', async () => { - const client = new pagesModule.v3beta1.PagesClient({ + const client = new pagesModule.v3.PagesClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.GetPageRequest() + new protos.google.cloud.dialogflow.cx.v3.GetPageRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -245,7 +245,7 @@ describe('v3beta1.PagesClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Page() + new protos.google.cloud.dialogflow.cx.v3.Page() ); client.innerApiCalls.getPage = stubSimpleCallWithCallback( expectedResponse @@ -255,7 +255,7 @@ describe('v3beta1.PagesClient', () => { request, ( err?: Error | null, - result?: protos.google.cloud.dialogflow.cx.v3beta1.IPage | null + result?: protos.google.cloud.dialogflow.cx.v3.IPage | null ) => { if (err) { reject(err); @@ -275,13 +275,13 @@ describe('v3beta1.PagesClient', () => { }); it('invokes getPage with error', async () => { - const client = new pagesModule.v3beta1.PagesClient({ + const client = new pagesModule.v3.PagesClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.GetPageRequest() + new protos.google.cloud.dialogflow.cx.v3.GetPageRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -305,13 +305,13 @@ describe('v3beta1.PagesClient', () => { describe('createPage', () => { it('invokes createPage without error', async () => { - const client = new pagesModule.v3beta1.PagesClient({ + const client = new pagesModule.v3.PagesClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.CreatePageRequest() + new protos.google.cloud.dialogflow.cx.v3.CreatePageRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -323,7 +323,7 @@ describe('v3beta1.PagesClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Page() + new protos.google.cloud.dialogflow.cx.v3.Page() ); client.innerApiCalls.createPage = stubSimpleCall(expectedResponse); const [response] = await client.createPage(request); @@ -336,13 +336,13 @@ describe('v3beta1.PagesClient', () => { }); it('invokes createPage without error using callback', async () => { - const client = new pagesModule.v3beta1.PagesClient({ + const client = new pagesModule.v3.PagesClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.CreatePageRequest() + new protos.google.cloud.dialogflow.cx.v3.CreatePageRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -354,7 +354,7 @@ describe('v3beta1.PagesClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Page() + new protos.google.cloud.dialogflow.cx.v3.Page() ); client.innerApiCalls.createPage = stubSimpleCallWithCallback( expectedResponse @@ -364,7 +364,7 @@ describe('v3beta1.PagesClient', () => { request, ( err?: Error | null, - result?: protos.google.cloud.dialogflow.cx.v3beta1.IPage | null + result?: protos.google.cloud.dialogflow.cx.v3.IPage | null ) => { if (err) { reject(err); @@ -384,13 +384,13 @@ describe('v3beta1.PagesClient', () => { }); it('invokes createPage with error', async () => { - const client = new pagesModule.v3beta1.PagesClient({ + const client = new pagesModule.v3.PagesClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.CreatePageRequest() + new protos.google.cloud.dialogflow.cx.v3.CreatePageRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -417,13 +417,13 @@ describe('v3beta1.PagesClient', () => { describe('updatePage', () => { it('invokes updatePage without error', async () => { - const client = new pagesModule.v3beta1.PagesClient({ + const client = new pagesModule.v3.PagesClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest() + new protos.google.cloud.dialogflow.cx.v3.UpdatePageRequest() ); request.page = {}; request.page.name = ''; @@ -436,7 +436,7 @@ describe('v3beta1.PagesClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Page() + new protos.google.cloud.dialogflow.cx.v3.Page() ); client.innerApiCalls.updatePage = stubSimpleCall(expectedResponse); const [response] = await client.updatePage(request); @@ -449,13 +449,13 @@ describe('v3beta1.PagesClient', () => { }); it('invokes updatePage without error using callback', async () => { - const client = new pagesModule.v3beta1.PagesClient({ + const client = new pagesModule.v3.PagesClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest() + new protos.google.cloud.dialogflow.cx.v3.UpdatePageRequest() ); request.page = {}; request.page.name = ''; @@ -468,7 +468,7 @@ describe('v3beta1.PagesClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Page() + new protos.google.cloud.dialogflow.cx.v3.Page() ); client.innerApiCalls.updatePage = stubSimpleCallWithCallback( expectedResponse @@ -478,7 +478,7 @@ describe('v3beta1.PagesClient', () => { request, ( err?: Error | null, - result?: protos.google.cloud.dialogflow.cx.v3beta1.IPage | null + result?: protos.google.cloud.dialogflow.cx.v3.IPage | null ) => { if (err) { reject(err); @@ -498,13 +498,13 @@ describe('v3beta1.PagesClient', () => { }); it('invokes updatePage with error', async () => { - const client = new pagesModule.v3beta1.PagesClient({ + const client = new pagesModule.v3.PagesClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest() + new protos.google.cloud.dialogflow.cx.v3.UpdatePageRequest() ); request.page = {}; request.page.name = ''; @@ -532,13 +532,13 @@ describe('v3beta1.PagesClient', () => { describe('deletePage', () => { it('invokes deletePage without error', async () => { - const client = new pagesModule.v3beta1.PagesClient({ + const client = new pagesModule.v3.PagesClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.DeletePageRequest() + new protos.google.cloud.dialogflow.cx.v3.DeletePageRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -563,13 +563,13 @@ describe('v3beta1.PagesClient', () => { }); it('invokes deletePage without error using callback', async () => { - const client = new pagesModule.v3beta1.PagesClient({ + const client = new pagesModule.v3.PagesClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.DeletePageRequest() + new protos.google.cloud.dialogflow.cx.v3.DeletePageRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -611,13 +611,13 @@ describe('v3beta1.PagesClient', () => { }); it('invokes deletePage with error', async () => { - const client = new pagesModule.v3beta1.PagesClient({ + const client = new pagesModule.v3.PagesClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.DeletePageRequest() + new protos.google.cloud.dialogflow.cx.v3.DeletePageRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -644,13 +644,13 @@ describe('v3beta1.PagesClient', () => { describe('listPages', () => { it('invokes listPages without error', async () => { - const client = new pagesModule.v3beta1.PagesClient({ + const client = new pagesModule.v3.PagesClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.ListPagesRequest() + new protos.google.cloud.dialogflow.cx.v3.ListPagesRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -662,15 +662,9 @@ describe('v3beta1.PagesClient', () => { }, }; const expectedResponse = [ - generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Page() - ), - generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Page() - ), - generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Page() - ), + generateSampleMessage(new protos.google.cloud.dialogflow.cx.v3.Page()), + generateSampleMessage(new protos.google.cloud.dialogflow.cx.v3.Page()), + generateSampleMessage(new protos.google.cloud.dialogflow.cx.v3.Page()), ]; client.innerApiCalls.listPages = stubSimpleCall(expectedResponse); const [response] = await client.listPages(request); @@ -683,13 +677,13 @@ describe('v3beta1.PagesClient', () => { }); it('invokes listPages without error using callback', async () => { - const client = new pagesModule.v3beta1.PagesClient({ + const client = new pagesModule.v3.PagesClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.ListPagesRequest() + new protos.google.cloud.dialogflow.cx.v3.ListPagesRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -701,15 +695,9 @@ describe('v3beta1.PagesClient', () => { }, }; const expectedResponse = [ - generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Page() - ), - generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Page() - ), - generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Page() - ), + generateSampleMessage(new protos.google.cloud.dialogflow.cx.v3.Page()), + generateSampleMessage(new protos.google.cloud.dialogflow.cx.v3.Page()), + generateSampleMessage(new protos.google.cloud.dialogflow.cx.v3.Page()), ]; client.innerApiCalls.listPages = stubSimpleCallWithCallback( expectedResponse @@ -719,7 +707,7 @@ describe('v3beta1.PagesClient', () => { request, ( err?: Error | null, - result?: protos.google.cloud.dialogflow.cx.v3beta1.IPage[] | null + result?: protos.google.cloud.dialogflow.cx.v3.IPage[] | null ) => { if (err) { reject(err); @@ -739,13 +727,13 @@ describe('v3beta1.PagesClient', () => { }); it('invokes listPages with error', async () => { - const client = new pagesModule.v3beta1.PagesClient({ + const client = new pagesModule.v3.PagesClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.ListPagesRequest() + new protos.google.cloud.dialogflow.cx.v3.ListPagesRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -767,36 +755,30 @@ describe('v3beta1.PagesClient', () => { }); it('invokes listPagesStream without error', async () => { - const client = new pagesModule.v3beta1.PagesClient({ + const client = new pagesModule.v3.PagesClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.ListPagesRequest() + new protos.google.cloud.dialogflow.cx.v3.ListPagesRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ - generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Page() - ), - generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Page() - ), - generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Page() - ), + generateSampleMessage(new protos.google.cloud.dialogflow.cx.v3.Page()), + generateSampleMessage(new protos.google.cloud.dialogflow.cx.v3.Page()), + generateSampleMessage(new protos.google.cloud.dialogflow.cx.v3.Page()), ]; client.descriptors.page.listPages.createStream = stubPageStreamingCall( expectedResponse ); const stream = client.listPagesStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.dialogflow.cx.v3beta1.Page[] = []; + const responses: protos.google.cloud.dialogflow.cx.v3.Page[] = []; stream.on( 'data', - (response: protos.google.cloud.dialogflow.cx.v3beta1.Page) => { + (response: protos.google.cloud.dialogflow.cx.v3.Page) => { responses.push(response); } ); @@ -822,13 +804,13 @@ describe('v3beta1.PagesClient', () => { }); it('invokes listPagesStream with error', async () => { - const client = new pagesModule.v3beta1.PagesClient({ + const client = new pagesModule.v3.PagesClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.ListPagesRequest() + new protos.google.cloud.dialogflow.cx.v3.ListPagesRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -839,10 +821,10 @@ describe('v3beta1.PagesClient', () => { ); const stream = client.listPagesStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.dialogflow.cx.v3beta1.Page[] = []; + const responses: protos.google.cloud.dialogflow.cx.v3.Page[] = []; stream.on( 'data', - (response: protos.google.cloud.dialogflow.cx.v3beta1.Page) => { + (response: protos.google.cloud.dialogflow.cx.v3.Page) => { responses.push(response); } ); @@ -867,31 +849,25 @@ describe('v3beta1.PagesClient', () => { }); it('uses async iteration with listPages without error', async () => { - const client = new pagesModule.v3beta1.PagesClient({ + const client = new pagesModule.v3.PagesClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.ListPagesRequest() + new protos.google.cloud.dialogflow.cx.v3.ListPagesRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ - generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Page() - ), - generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Page() - ), - generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Page() - ), + generateSampleMessage(new protos.google.cloud.dialogflow.cx.v3.Page()), + generateSampleMessage(new protos.google.cloud.dialogflow.cx.v3.Page()), + generateSampleMessage(new protos.google.cloud.dialogflow.cx.v3.Page()), ]; client.descriptors.page.listPages.asyncIterate = stubAsyncIterationCall( expectedResponse ); - const responses: protos.google.cloud.dialogflow.cx.v3beta1.IPage[] = []; + const responses: protos.google.cloud.dialogflow.cx.v3.IPage[] = []; const iterable = client.listPagesAsync(request); for await (const resource of iterable) { responses.push(resource!); @@ -910,13 +886,13 @@ describe('v3beta1.PagesClient', () => { }); it('uses async iteration with listPages with error', async () => { - const client = new pagesModule.v3beta1.PagesClient({ + const client = new pagesModule.v3.PagesClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.ListPagesRequest() + new protos.google.cloud.dialogflow.cx.v3.ListPagesRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -927,7 +903,7 @@ describe('v3beta1.PagesClient', () => { ); const iterable = client.listPagesAsync(request); await assert.rejects(async () => { - const responses: protos.google.cloud.dialogflow.cx.v3beta1.IPage[] = []; + const responses: protos.google.cloud.dialogflow.cx.v3.IPage[] = []; for await (const resource of iterable) { responses.push(resource!); } @@ -953,7 +929,7 @@ describe('v3beta1.PagesClient', () => { location: 'locationValue', agent: 'agentValue', }; - const client = new pagesModule.v3beta1.PagesClient({ + const client = new pagesModule.v3.PagesClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1018,7 +994,7 @@ describe('v3beta1.PagesClient', () => { agent: 'agentValue', entity_type: 'entityTypeValue', }; - const client = new pagesModule.v3beta1.PagesClient({ + const client = new pagesModule.v3.PagesClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1094,7 +1070,7 @@ describe('v3beta1.PagesClient', () => { agent: 'agentValue', environment: 'environmentValue', }; - const client = new pagesModule.v3beta1.PagesClient({ + const client = new pagesModule.v3.PagesClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1170,7 +1146,7 @@ describe('v3beta1.PagesClient', () => { agent: 'agentValue', flow: 'flowValue', }; - const client = new pagesModule.v3beta1.PagesClient({ + const client = new pagesModule.v3.PagesClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1246,7 +1222,7 @@ describe('v3beta1.PagesClient', () => { agent: 'agentValue', intent: 'intentValue', }; - const client = new pagesModule.v3beta1.PagesClient({ + const client = new pagesModule.v3.PagesClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1320,7 +1296,7 @@ describe('v3beta1.PagesClient', () => { project: 'projectValue', location: 'locationValue', }; - const client = new pagesModule.v3beta1.PagesClient({ + const client = new pagesModule.v3.PagesClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1372,7 +1348,7 @@ describe('v3beta1.PagesClient', () => { flow: 'flowValue', page: 'pageValue', }; - const client = new pagesModule.v3beta1.PagesClient({ + const client = new pagesModule.v3.PagesClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1456,7 +1432,7 @@ describe('v3beta1.PagesClient', () => { const expectedParameters = { project: 'projectValue', }; - const client = new pagesModule.v3beta1.PagesClient({ + const client = new pagesModule.v3.PagesClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1500,7 +1476,7 @@ describe('v3beta1.PagesClient', () => { session: 'sessionValue', entity_type: 'entityTypeValue', }; - const client = new pagesModule.v3beta1.PagesClient({ + const client = new pagesModule.v3.PagesClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1625,7 +1601,7 @@ describe('v3beta1.PagesClient', () => { session: 'sessionValue', entity_type: 'entityTypeValue', }; - const client = new pagesModule.v3beta1.PagesClient({ + const client = new pagesModule.v3.PagesClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1726,6 +1702,73 @@ describe('v3beta1.PagesClient', () => { }); }); + describe('securitySettings', () => { + const fakePath = '/rendered/path/securitySettings'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + security_settings: 'securitySettingsValue', + }; + const client = new pagesModule.v3.PagesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.securitySettingsPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.securitySettingsPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('securitySettingsPath', () => { + const result = client.securitySettingsPath( + 'projectValue', + 'locationValue', + 'securitySettingsValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.securitySettingsPathTemplate + .render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromSecuritySettingsName', () => { + const result = client.matchProjectFromSecuritySettingsName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.securitySettingsPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromSecuritySettingsName', () => { + const result = client.matchLocationFromSecuritySettingsName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.securitySettingsPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchSecuritySettingsFromSecuritySettingsName', () => { + const result = client.matchSecuritySettingsFromSecuritySettingsName( + fakePath + ); + assert.strictEqual(result, 'securitySettingsValue'); + assert( + (client.pathTemplates.securitySettingsPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('transitionRouteGroup', () => { const fakePath = '/rendered/path/transitionRouteGroup'; const expectedParameters = { @@ -1735,7 +1778,7 @@ describe('v3beta1.PagesClient', () => { flow: 'flowValue', transition_route_group: 'transitionRouteGroupValue', }; - const client = new pagesModule.v3beta1.PagesClient({ + const client = new pagesModule.v3.PagesClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1835,7 +1878,7 @@ describe('v3beta1.PagesClient', () => { flow: 'flowValue', version: 'versionValue', }; - const client = new pagesModule.v3beta1.PagesClient({ + const client = new pagesModule.v3.PagesClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1922,7 +1965,7 @@ describe('v3beta1.PagesClient', () => { agent: 'agentValue', webhook: 'webhookValue', }; - const client = new pagesModule.v3beta1.PagesClient({ + const client = new pagesModule.v3.PagesClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); diff --git a/test/gapic_security_settings_service_v3.ts b/test/gapic_security_settings_service_v3.ts new file mode 100644 index 00000000..e4fae236 --- /dev/null +++ b/test/gapic_security_settings_service_v3.ts @@ -0,0 +1,2176 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + +import * as protos from '../protos/protos'; +import * as assert from 'assert'; +import * as sinon from 'sinon'; +import {SinonStub} from 'sinon'; +import {describe, it} from 'mocha'; +import * as securitysettingsserviceModule from '../src'; + +import {PassThrough} from 'stream'; + +import {protobuf} from 'google-gax'; + +function generateSampleMessage(instance: T) { + const filledObject = (instance.constructor as typeof protobuf.Message).toObject( + instance as protobuf.Message, + {defaults: true} + ); + return (instance.constructor as typeof protobuf.Message).fromObject( + filledObject + ) as T; +} + +function stubSimpleCall(response?: ResponseType, error?: Error) { + return error + ? sinon.stub().rejects(error) + : sinon.stub().resolves([response]); +} + +function stubSimpleCallWithCallback( + response?: ResponseType, + error?: Error +) { + return error + ? sinon.stub().callsArgWith(2, error) + : sinon.stub().callsArgWith(2, null, response); +} + +function stubPageStreamingCall( + responses?: ResponseType[], + error?: Error +) { + const pagingStub = sinon.stub(); + if (responses) { + for (let i = 0; i < responses.length; ++i) { + pagingStub.onCall(i).callsArgWith(2, null, responses[i]); + } + } + const transformStub = error + ? sinon.stub().callsArgWith(2, error) + : pagingStub; + const mockStream = new PassThrough({ + objectMode: true, + transform: transformStub, + }); + // trigger as many responses as needed + if (responses) { + for (let i = 0; i < responses.length; ++i) { + setImmediate(() => { + mockStream.write({}); + }); + } + setImmediate(() => { + mockStream.end(); + }); + } else { + setImmediate(() => { + mockStream.write({}); + }); + setImmediate(() => { + mockStream.end(); + }); + } + return sinon.stub().returns(mockStream); +} + +function stubAsyncIterationCall( + responses?: ResponseType[], + error?: Error +) { + let counter = 0; + const asyncIterable = { + [Symbol.asyncIterator]() { + return { + async next() { + if (error) { + return Promise.reject(error); + } + if (counter >= responses!.length) { + return Promise.resolve({done: true, value: undefined}); + } + return Promise.resolve({done: false, value: responses![counter++]}); + }, + }; + }, + }; + return sinon.stub().returns(asyncIterable); +} + +describe('v3.SecuritySettingsServiceClient', () => { + it('has servicePath', () => { + const servicePath = + securitysettingsserviceModule.v3.SecuritySettingsServiceClient + .servicePath; + assert(servicePath); + }); + + it('has apiEndpoint', () => { + const apiEndpoint = + securitysettingsserviceModule.v3.SecuritySettingsServiceClient + .apiEndpoint; + assert(apiEndpoint); + }); + + it('has port', () => { + const port = + securitysettingsserviceModule.v3.SecuritySettingsServiceClient.port; + assert(port); + assert(typeof port === 'number'); + }); + + it('should create a client with no option', () => { + const client = new securitysettingsserviceModule.v3.SecuritySettingsServiceClient(); + assert(client); + }); + + it('should create a client with gRPC fallback', () => { + const client = new securitysettingsserviceModule.v3.SecuritySettingsServiceClient( + { + fallback: true, + } + ); + assert(client); + }); + + it('has initialize method and supports deferred initialization', async () => { + const client = new securitysettingsserviceModule.v3.SecuritySettingsServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + assert.strictEqual(client.securitySettingsServiceStub, undefined); + await client.initialize(); + assert(client.securitySettingsServiceStub); + }); + + it('has close method', () => { + const client = new securitysettingsserviceModule.v3.SecuritySettingsServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.close(); + }); + + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new securitysettingsserviceModule.v3.SecuritySettingsServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); + }); + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new securitysettingsserviceModule.v3.SecuritySettingsServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); + }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); + }); + + describe('createSecuritySettings', () => { + it('invokes createSecuritySettings without error', async () => { + const client = new securitysettingsserviceModule.v3.SecuritySettingsServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.dialogflow.cx.v3.SecuritySettings() + ); + client.innerApiCalls.createSecuritySettings = stubSimpleCall( + expectedResponse + ); + const [response] = await client.createSecuritySettings(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.createSecuritySettings as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes createSecuritySettings without error using callback', async () => { + const client = new securitysettingsserviceModule.v3.SecuritySettingsServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.dialogflow.cx.v3.SecuritySettings() + ); + client.innerApiCalls.createSecuritySettings = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.createSecuritySettings( + request, + ( + err?: Error | null, + result?: protos.google.cloud.dialogflow.cx.v3.ISecuritySettings | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.createSecuritySettings as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes createSecuritySettings with error', async () => { + const client = new securitysettingsserviceModule.v3.SecuritySettingsServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.createSecuritySettings = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.createSecuritySettings(request), + expectedError + ); + assert( + (client.innerApiCalls.createSecuritySettings as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('getSecuritySettings', () => { + it('invokes getSecuritySettings without error', async () => { + const client = new securitysettingsserviceModule.v3.SecuritySettingsServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.dialogflow.cx.v3.SecuritySettings() + ); + client.innerApiCalls.getSecuritySettings = stubSimpleCall( + expectedResponse + ); + const [response] = await client.getSecuritySettings(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.getSecuritySettings as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes getSecuritySettings without error using callback', async () => { + const client = new securitysettingsserviceModule.v3.SecuritySettingsServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.dialogflow.cx.v3.SecuritySettings() + ); + client.innerApiCalls.getSecuritySettings = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.getSecuritySettings( + request, + ( + err?: Error | null, + result?: protos.google.cloud.dialogflow.cx.v3.ISecuritySettings | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.getSecuritySettings as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes getSecuritySettings with error', async () => { + const client = new securitysettingsserviceModule.v3.SecuritySettingsServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.getSecuritySettings = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.getSecuritySettings(request), expectedError); + assert( + (client.innerApiCalls.getSecuritySettings as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('updateSecuritySettings', () => { + it('invokes updateSecuritySettings without error', async () => { + const client = new securitysettingsserviceModule.v3.SecuritySettingsServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest() + ); + request.securitySettings = {}; + request.securitySettings.name = ''; + const expectedHeaderRequestParams = 'security_settings.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.dialogflow.cx.v3.SecuritySettings() + ); + client.innerApiCalls.updateSecuritySettings = stubSimpleCall( + expectedResponse + ); + const [response] = await client.updateSecuritySettings(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.updateSecuritySettings as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes updateSecuritySettings without error using callback', async () => { + const client = new securitysettingsserviceModule.v3.SecuritySettingsServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest() + ); + request.securitySettings = {}; + request.securitySettings.name = ''; + const expectedHeaderRequestParams = 'security_settings.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.dialogflow.cx.v3.SecuritySettings() + ); + client.innerApiCalls.updateSecuritySettings = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.updateSecuritySettings( + request, + ( + err?: Error | null, + result?: protos.google.cloud.dialogflow.cx.v3.ISecuritySettings | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.updateSecuritySettings as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes updateSecuritySettings with error', async () => { + const client = new securitysettingsserviceModule.v3.SecuritySettingsServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest() + ); + request.securitySettings = {}; + request.securitySettings.name = ''; + const expectedHeaderRequestParams = 'security_settings.name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.updateSecuritySettings = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.updateSecuritySettings(request), + expectedError + ); + assert( + (client.innerApiCalls.updateSecuritySettings as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('deleteSecuritySettings', () => { + it('invokes deleteSecuritySettings without error', async () => { + const client = new securitysettingsserviceModule.v3.SecuritySettingsServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.deleteSecuritySettings = stubSimpleCall( + expectedResponse + ); + const [response] = await client.deleteSecuritySettings(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.deleteSecuritySettings as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes deleteSecuritySettings without error using callback', async () => { + const client = new securitysettingsserviceModule.v3.SecuritySettingsServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.deleteSecuritySettings = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.deleteSecuritySettings( + request, + ( + err?: Error | null, + result?: protos.google.protobuf.IEmpty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.deleteSecuritySettings as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes deleteSecuritySettings with error', async () => { + const client = new securitysettingsserviceModule.v3.SecuritySettingsServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteSecuritySettings = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.deleteSecuritySettings(request), + expectedError + ); + assert( + (client.innerApiCalls.deleteSecuritySettings as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('listSecuritySettings', () => { + it('invokes listSecuritySettings without error', async () => { + const client = new securitysettingsserviceModule.v3.SecuritySettingsServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.dialogflow.cx.v3.SecuritySettings() + ), + generateSampleMessage( + new protos.google.cloud.dialogflow.cx.v3.SecuritySettings() + ), + generateSampleMessage( + new protos.google.cloud.dialogflow.cx.v3.SecuritySettings() + ), + ]; + client.innerApiCalls.listSecuritySettings = stubSimpleCall( + expectedResponse + ); + const [response] = await client.listSecuritySettings(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listSecuritySettings as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listSecuritySettings without error using callback', async () => { + const client = new securitysettingsserviceModule.v3.SecuritySettingsServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.dialogflow.cx.v3.SecuritySettings() + ), + generateSampleMessage( + new protos.google.cloud.dialogflow.cx.v3.SecuritySettings() + ), + generateSampleMessage( + new protos.google.cloud.dialogflow.cx.v3.SecuritySettings() + ), + ]; + client.innerApiCalls.listSecuritySettings = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.listSecuritySettings( + request, + ( + err?: Error | null, + result?: + | protos.google.cloud.dialogflow.cx.v3.ISecuritySettings[] + | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listSecuritySettings as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes listSecuritySettings with error', async () => { + const client = new securitysettingsserviceModule.v3.SecuritySettingsServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.listSecuritySettings = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.listSecuritySettings(request), expectedError); + assert( + (client.innerApiCalls.listSecuritySettings as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listSecuritySettingsStream without error', async () => { + const client = new securitysettingsserviceModule.v3.SecuritySettingsServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.dialogflow.cx.v3.SecuritySettings() + ), + generateSampleMessage( + new protos.google.cloud.dialogflow.cx.v3.SecuritySettings() + ), + generateSampleMessage( + new protos.google.cloud.dialogflow.cx.v3.SecuritySettings() + ), + ]; + client.descriptors.page.listSecuritySettings.createStream = stubPageStreamingCall( + expectedResponse + ); + const stream = client.listSecuritySettingsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.dialogflow.cx.v3.SecuritySettings[] = []; + stream.on( + 'data', + (response: protos.google.cloud.dialogflow.cx.v3.SecuritySettings) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + (client.descriptors.page.listSecuritySettings.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listSecuritySettings, request) + ); + assert.strictEqual( + (client.descriptors.page.listSecuritySettings + .createStream as SinonStub).getCall(0).args[2].otherArgs.headers[ + 'x-goog-request-params' + ], + expectedHeaderRequestParams + ); + }); + + it('invokes listSecuritySettingsStream with error', async () => { + const client = new securitysettingsserviceModule.v3.SecuritySettingsServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedError = new Error('expected'); + client.descriptors.page.listSecuritySettings.createStream = stubPageStreamingCall( + undefined, + expectedError + ); + const stream = client.listSecuritySettingsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.dialogflow.cx.v3.SecuritySettings[] = []; + stream.on( + 'data', + (response: protos.google.cloud.dialogflow.cx.v3.SecuritySettings) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.listSecuritySettings.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listSecuritySettings, request) + ); + assert.strictEqual( + (client.descriptors.page.listSecuritySettings + .createStream as SinonStub).getCall(0).args[2].otherArgs.headers[ + 'x-goog-request-params' + ], + expectedHeaderRequestParams + ); + }); + + it('uses async iteration with listSecuritySettings without error', async () => { + const client = new securitysettingsserviceModule.v3.SecuritySettingsServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.dialogflow.cx.v3.SecuritySettings() + ), + generateSampleMessage( + new protos.google.cloud.dialogflow.cx.v3.SecuritySettings() + ), + generateSampleMessage( + new protos.google.cloud.dialogflow.cx.v3.SecuritySettings() + ), + ]; + client.descriptors.page.listSecuritySettings.asyncIterate = stubAsyncIterationCall( + expectedResponse + ); + const responses: protos.google.cloud.dialogflow.cx.v3.ISecuritySettings[] = []; + const iterable = client.listSecuritySettingsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + (client.descriptors.page.listSecuritySettings + .asyncIterate as SinonStub).getCall(0).args[1], + request + ); + assert.strictEqual( + (client.descriptors.page.listSecuritySettings + .asyncIterate as SinonStub).getCall(0).args[2].otherArgs.headers[ + 'x-goog-request-params' + ], + expectedHeaderRequestParams + ); + }); + + it('uses async iteration with listSecuritySettings with error', async () => { + const client = new securitysettingsserviceModule.v3.SecuritySettingsServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedError = new Error('expected'); + client.descriptors.page.listSecuritySettings.asyncIterate = stubAsyncIterationCall( + undefined, + expectedError + ); + const iterable = client.listSecuritySettingsAsync(request); + await assert.rejects(async () => { + const responses: protos.google.cloud.dialogflow.cx.v3.ISecuritySettings[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + (client.descriptors.page.listSecuritySettings + .asyncIterate as SinonStub).getCall(0).args[1], + request + ); + assert.strictEqual( + (client.descriptors.page.listSecuritySettings + .asyncIterate as SinonStub).getCall(0).args[2].otherArgs.headers[ + 'x-goog-request-params' + ], + expectedHeaderRequestParams + ); + }); + }); + + describe('Path templates', () => { + describe('agent', () => { + const fakePath = '/rendered/path/agent'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + agent: 'agentValue', + }; + const client = new securitysettingsserviceModule.v3.SecuritySettingsServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.agentPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.agentPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('agentPath', () => { + const result = client.agentPath( + 'projectValue', + 'locationValue', + 'agentValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.agentPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromAgentName', () => { + const result = client.matchProjectFromAgentName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.agentPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromAgentName', () => { + const result = client.matchLocationFromAgentName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.agentPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchAgentFromAgentName', () => { + const result = client.matchAgentFromAgentName(fakePath); + assert.strictEqual(result, 'agentValue'); + assert( + (client.pathTemplates.agentPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('entityType', () => { + const fakePath = '/rendered/path/entityType'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + agent: 'agentValue', + entity_type: 'entityTypeValue', + }; + const client = new securitysettingsserviceModule.v3.SecuritySettingsServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.entityTypePathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.entityTypePathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('entityTypePath', () => { + const result = client.entityTypePath( + 'projectValue', + 'locationValue', + 'agentValue', + 'entityTypeValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.entityTypePathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromEntityTypeName', () => { + const result = client.matchProjectFromEntityTypeName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.entityTypePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromEntityTypeName', () => { + const result = client.matchLocationFromEntityTypeName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.entityTypePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchAgentFromEntityTypeName', () => { + const result = client.matchAgentFromEntityTypeName(fakePath); + assert.strictEqual(result, 'agentValue'); + assert( + (client.pathTemplates.entityTypePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchEntityTypeFromEntityTypeName', () => { + const result = client.matchEntityTypeFromEntityTypeName(fakePath); + assert.strictEqual(result, 'entityTypeValue'); + assert( + (client.pathTemplates.entityTypePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('environment', () => { + const fakePath = '/rendered/path/environment'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + agent: 'agentValue', + environment: 'environmentValue', + }; + const client = new securitysettingsserviceModule.v3.SecuritySettingsServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.environmentPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.environmentPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('environmentPath', () => { + const result = client.environmentPath( + 'projectValue', + 'locationValue', + 'agentValue', + 'environmentValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.environmentPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromEnvironmentName', () => { + const result = client.matchProjectFromEnvironmentName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.environmentPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromEnvironmentName', () => { + const result = client.matchLocationFromEnvironmentName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.environmentPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchAgentFromEnvironmentName', () => { + const result = client.matchAgentFromEnvironmentName(fakePath); + assert.strictEqual(result, 'agentValue'); + assert( + (client.pathTemplates.environmentPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchEnvironmentFromEnvironmentName', () => { + const result = client.matchEnvironmentFromEnvironmentName(fakePath); + assert.strictEqual(result, 'environmentValue'); + assert( + (client.pathTemplates.environmentPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('flow', () => { + const fakePath = '/rendered/path/flow'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + agent: 'agentValue', + flow: 'flowValue', + }; + const client = new securitysettingsserviceModule.v3.SecuritySettingsServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.flowPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.flowPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('flowPath', () => { + const result = client.flowPath( + 'projectValue', + 'locationValue', + 'agentValue', + 'flowValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.flowPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromFlowName', () => { + const result = client.matchProjectFromFlowName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.flowPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromFlowName', () => { + const result = client.matchLocationFromFlowName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.flowPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchAgentFromFlowName', () => { + const result = client.matchAgentFromFlowName(fakePath); + assert.strictEqual(result, 'agentValue'); + assert( + (client.pathTemplates.flowPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFlowFromFlowName', () => { + const result = client.matchFlowFromFlowName(fakePath); + assert.strictEqual(result, 'flowValue'); + assert( + (client.pathTemplates.flowPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('intent', () => { + const fakePath = '/rendered/path/intent'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + agent: 'agentValue', + intent: 'intentValue', + }; + const client = new securitysettingsserviceModule.v3.SecuritySettingsServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.intentPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.intentPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('intentPath', () => { + const result = client.intentPath( + 'projectValue', + 'locationValue', + 'agentValue', + 'intentValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.intentPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromIntentName', () => { + const result = client.matchProjectFromIntentName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.intentPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromIntentName', () => { + const result = client.matchLocationFromIntentName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.intentPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchAgentFromIntentName', () => { + const result = client.matchAgentFromIntentName(fakePath); + assert.strictEqual(result, 'agentValue'); + assert( + (client.pathTemplates.intentPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchIntentFromIntentName', () => { + const result = client.matchIntentFromIntentName(fakePath); + assert.strictEqual(result, 'intentValue'); + assert( + (client.pathTemplates.intentPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('location', () => { + const fakePath = '/rendered/path/location'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + }; + const client = new securitysettingsserviceModule.v3.SecuritySettingsServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.locationPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.locationPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('locationPath', () => { + const result = client.locationPath('projectValue', 'locationValue'); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.locationPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromLocationName', () => { + const result = client.matchProjectFromLocationName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.locationPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromLocationName', () => { + const result = client.matchLocationFromLocationName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.locationPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('page', () => { + const fakePath = '/rendered/path/page'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + agent: 'agentValue', + flow: 'flowValue', + page: 'pageValue', + }; + const client = new securitysettingsserviceModule.v3.SecuritySettingsServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.pagePathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.pagePathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('pagePath', () => { + const result = client.pagePath( + 'projectValue', + 'locationValue', + 'agentValue', + 'flowValue', + 'pageValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.pagePathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromPageName', () => { + const result = client.matchProjectFromPageName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.pagePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromPageName', () => { + const result = client.matchLocationFromPageName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.pagePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchAgentFromPageName', () => { + const result = client.matchAgentFromPageName(fakePath); + assert.strictEqual(result, 'agentValue'); + assert( + (client.pathTemplates.pagePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFlowFromPageName', () => { + const result = client.matchFlowFromPageName(fakePath); + assert.strictEqual(result, 'flowValue'); + assert( + (client.pathTemplates.pagePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchPageFromPageName', () => { + const result = client.matchPageFromPageName(fakePath); + assert.strictEqual(result, 'pageValue'); + assert( + (client.pathTemplates.pagePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('project', () => { + const fakePath = '/rendered/path/project'; + const expectedParameters = { + project: 'projectValue', + }; + const client = new securitysettingsserviceModule.v3.SecuritySettingsServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.projectPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.projectPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('projectPath', () => { + const result = client.projectPath('projectValue'); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.projectPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectName', () => { + const result = client.matchProjectFromProjectName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.projectPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('projectLocationAgentEnvironmentSessionEntityType', () => { + const fakePath = + '/rendered/path/projectLocationAgentEnvironmentSessionEntityType'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + agent: 'agentValue', + environment: 'environmentValue', + session: 'sessionValue', + entity_type: 'entityTypeValue', + }; + const client = new securitysettingsserviceModule.v3.SecuritySettingsServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.projectLocationAgentEnvironmentSessionEntityTypePathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.projectLocationAgentEnvironmentSessionEntityTypePathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('projectLocationAgentEnvironmentSessionEntityTypePath', () => { + const result = client.projectLocationAgentEnvironmentSessionEntityTypePath( + 'projectValue', + 'locationValue', + 'agentValue', + 'environmentValue', + 'sessionValue', + 'entityTypeValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates + .projectLocationAgentEnvironmentSessionEntityTypePathTemplate + .render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectLocationAgentEnvironmentSessionEntityTypeName', () => { + const result = client.matchProjectFromProjectLocationAgentEnvironmentSessionEntityTypeName( + fakePath + ); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates + .projectLocationAgentEnvironmentSessionEntityTypePathTemplate + .match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromProjectLocationAgentEnvironmentSessionEntityTypeName', () => { + const result = client.matchLocationFromProjectLocationAgentEnvironmentSessionEntityTypeName( + fakePath + ); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates + .projectLocationAgentEnvironmentSessionEntityTypePathTemplate + .match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchAgentFromProjectLocationAgentEnvironmentSessionEntityTypeName', () => { + const result = client.matchAgentFromProjectLocationAgentEnvironmentSessionEntityTypeName( + fakePath + ); + assert.strictEqual(result, 'agentValue'); + assert( + (client.pathTemplates + .projectLocationAgentEnvironmentSessionEntityTypePathTemplate + .match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchEnvironmentFromProjectLocationAgentEnvironmentSessionEntityTypeName', () => { + const result = client.matchEnvironmentFromProjectLocationAgentEnvironmentSessionEntityTypeName( + fakePath + ); + assert.strictEqual(result, 'environmentValue'); + assert( + (client.pathTemplates + .projectLocationAgentEnvironmentSessionEntityTypePathTemplate + .match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchSessionFromProjectLocationAgentEnvironmentSessionEntityTypeName', () => { + const result = client.matchSessionFromProjectLocationAgentEnvironmentSessionEntityTypeName( + fakePath + ); + assert.strictEqual(result, 'sessionValue'); + assert( + (client.pathTemplates + .projectLocationAgentEnvironmentSessionEntityTypePathTemplate + .match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchEntityTypeFromProjectLocationAgentEnvironmentSessionEntityTypeName', () => { + const result = client.matchEntityTypeFromProjectLocationAgentEnvironmentSessionEntityTypeName( + fakePath + ); + assert.strictEqual(result, 'entityTypeValue'); + assert( + (client.pathTemplates + .projectLocationAgentEnvironmentSessionEntityTypePathTemplate + .match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('projectLocationAgentSessionEntityType', () => { + const fakePath = '/rendered/path/projectLocationAgentSessionEntityType'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + agent: 'agentValue', + session: 'sessionValue', + entity_type: 'entityTypeValue', + }; + const client = new securitysettingsserviceModule.v3.SecuritySettingsServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.projectLocationAgentSessionEntityTypePathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.projectLocationAgentSessionEntityTypePathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('projectLocationAgentSessionEntityTypePath', () => { + const result = client.projectLocationAgentSessionEntityTypePath( + 'projectValue', + 'locationValue', + 'agentValue', + 'sessionValue', + 'entityTypeValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates + .projectLocationAgentSessionEntityTypePathTemplate + .render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectLocationAgentSessionEntityTypeName', () => { + const result = client.matchProjectFromProjectLocationAgentSessionEntityTypeName( + fakePath + ); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates + .projectLocationAgentSessionEntityTypePathTemplate + .match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromProjectLocationAgentSessionEntityTypeName', () => { + const result = client.matchLocationFromProjectLocationAgentSessionEntityTypeName( + fakePath + ); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates + .projectLocationAgentSessionEntityTypePathTemplate + .match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchAgentFromProjectLocationAgentSessionEntityTypeName', () => { + const result = client.matchAgentFromProjectLocationAgentSessionEntityTypeName( + fakePath + ); + assert.strictEqual(result, 'agentValue'); + assert( + (client.pathTemplates + .projectLocationAgentSessionEntityTypePathTemplate + .match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchSessionFromProjectLocationAgentSessionEntityTypeName', () => { + const result = client.matchSessionFromProjectLocationAgentSessionEntityTypeName( + fakePath + ); + assert.strictEqual(result, 'sessionValue'); + assert( + (client.pathTemplates + .projectLocationAgentSessionEntityTypePathTemplate + .match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchEntityTypeFromProjectLocationAgentSessionEntityTypeName', () => { + const result = client.matchEntityTypeFromProjectLocationAgentSessionEntityTypeName( + fakePath + ); + assert.strictEqual(result, 'entityTypeValue'); + assert( + (client.pathTemplates + .projectLocationAgentSessionEntityTypePathTemplate + .match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('securitySettings', () => { + const fakePath = '/rendered/path/securitySettings'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + security_settings: 'securitySettingsValue', + }; + const client = new securitysettingsserviceModule.v3.SecuritySettingsServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.securitySettingsPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.securitySettingsPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('securitySettingsPath', () => { + const result = client.securitySettingsPath( + 'projectValue', + 'locationValue', + 'securitySettingsValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.securitySettingsPathTemplate + .render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromSecuritySettingsName', () => { + const result = client.matchProjectFromSecuritySettingsName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.securitySettingsPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromSecuritySettingsName', () => { + const result = client.matchLocationFromSecuritySettingsName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.securitySettingsPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchSecuritySettingsFromSecuritySettingsName', () => { + const result = client.matchSecuritySettingsFromSecuritySettingsName( + fakePath + ); + assert.strictEqual(result, 'securitySettingsValue'); + assert( + (client.pathTemplates.securitySettingsPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('transitionRouteGroup', () => { + const fakePath = '/rendered/path/transitionRouteGroup'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + agent: 'agentValue', + flow: 'flowValue', + transition_route_group: 'transitionRouteGroupValue', + }; + const client = new securitysettingsserviceModule.v3.SecuritySettingsServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.transitionRouteGroupPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.transitionRouteGroupPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('transitionRouteGroupPath', () => { + const result = client.transitionRouteGroupPath( + 'projectValue', + 'locationValue', + 'agentValue', + 'flowValue', + 'transitionRouteGroupValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.transitionRouteGroupPathTemplate + .render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromTransitionRouteGroupName', () => { + const result = client.matchProjectFromTransitionRouteGroupName( + fakePath + ); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.transitionRouteGroupPathTemplate + .match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromTransitionRouteGroupName', () => { + const result = client.matchLocationFromTransitionRouteGroupName( + fakePath + ); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.transitionRouteGroupPathTemplate + .match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchAgentFromTransitionRouteGroupName', () => { + const result = client.matchAgentFromTransitionRouteGroupName(fakePath); + assert.strictEqual(result, 'agentValue'); + assert( + (client.pathTemplates.transitionRouteGroupPathTemplate + .match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFlowFromTransitionRouteGroupName', () => { + const result = client.matchFlowFromTransitionRouteGroupName(fakePath); + assert.strictEqual(result, 'flowValue'); + assert( + (client.pathTemplates.transitionRouteGroupPathTemplate + .match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchTransitionRouteGroupFromTransitionRouteGroupName', () => { + const result = client.matchTransitionRouteGroupFromTransitionRouteGroupName( + fakePath + ); + assert.strictEqual(result, 'transitionRouteGroupValue'); + assert( + (client.pathTemplates.transitionRouteGroupPathTemplate + .match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('version', () => { + const fakePath = '/rendered/path/version'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + agent: 'agentValue', + flow: 'flowValue', + version: 'versionValue', + }; + const client = new securitysettingsserviceModule.v3.SecuritySettingsServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.versionPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.versionPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('versionPath', () => { + const result = client.versionPath( + 'projectValue', + 'locationValue', + 'agentValue', + 'flowValue', + 'versionValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.versionPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromVersionName', () => { + const result = client.matchProjectFromVersionName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.versionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromVersionName', () => { + const result = client.matchLocationFromVersionName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.versionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchAgentFromVersionName', () => { + const result = client.matchAgentFromVersionName(fakePath); + assert.strictEqual(result, 'agentValue'); + assert( + (client.pathTemplates.versionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFlowFromVersionName', () => { + const result = client.matchFlowFromVersionName(fakePath); + assert.strictEqual(result, 'flowValue'); + assert( + (client.pathTemplates.versionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchVersionFromVersionName', () => { + const result = client.matchVersionFromVersionName(fakePath); + assert.strictEqual(result, 'versionValue'); + assert( + (client.pathTemplates.versionPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('webhook', () => { + const fakePath = '/rendered/path/webhook'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + agent: 'agentValue', + webhook: 'webhookValue', + }; + const client = new securitysettingsserviceModule.v3.SecuritySettingsServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.webhookPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.webhookPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('webhookPath', () => { + const result = client.webhookPath( + 'projectValue', + 'locationValue', + 'agentValue', + 'webhookValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.webhookPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromWebhookName', () => { + const result = client.matchProjectFromWebhookName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.webhookPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromWebhookName', () => { + const result = client.matchLocationFromWebhookName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.webhookPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchAgentFromWebhookName', () => { + const result = client.matchAgentFromWebhookName(fakePath); + assert.strictEqual(result, 'agentValue'); + assert( + (client.pathTemplates.webhookPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchWebhookFromWebhookName', () => { + const result = client.matchWebhookFromWebhookName(fakePath); + assert.strictEqual(result, 'webhookValue'); + assert( + (client.pathTemplates.webhookPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + }); +}); diff --git a/test/gapic_session_entity_types_v3beta1.ts b/test/gapic_session_entity_types_v3.ts similarity index 82% rename from test/gapic_session_entity_types_v3beta1.ts rename to test/gapic_session_entity_types_v3.ts index 26c8a534..31d575af 100644 --- a/test/gapic_session_entity_types_v3beta1.ts +++ b/test/gapic_session_entity_types_v3.ts @@ -113,69 +113,61 @@ function stubAsyncIterationCall( return sinon.stub().returns(asyncIterable); } -describe('v3beta1.SessionEntityTypesClient', () => { +describe('v3.SessionEntityTypesClient', () => { it('has servicePath', () => { const servicePath = - sessionentitytypesModule.v3beta1.SessionEntityTypesClient.servicePath; + sessionentitytypesModule.v3.SessionEntityTypesClient.servicePath; assert(servicePath); }); it('has apiEndpoint', () => { const apiEndpoint = - sessionentitytypesModule.v3beta1.SessionEntityTypesClient.apiEndpoint; + sessionentitytypesModule.v3.SessionEntityTypesClient.apiEndpoint; assert(apiEndpoint); }); it('has port', () => { - const port = sessionentitytypesModule.v3beta1.SessionEntityTypesClient.port; + const port = sessionentitytypesModule.v3.SessionEntityTypesClient.port; assert(port); assert(typeof port === 'number'); }); it('should create a client with no option', () => { - const client = new sessionentitytypesModule.v3beta1.SessionEntityTypesClient(); + const client = new sessionentitytypesModule.v3.SessionEntityTypesClient(); assert(client); }); it('should create a client with gRPC fallback', () => { - const client = new sessionentitytypesModule.v3beta1.SessionEntityTypesClient( - { - fallback: true, - } - ); + const client = new sessionentitytypesModule.v3.SessionEntityTypesClient({ + fallback: true, + }); assert(client); }); it('has initialize method and supports deferred initialization', async () => { - const client = new sessionentitytypesModule.v3beta1.SessionEntityTypesClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); + const client = new sessionentitytypesModule.v3.SessionEntityTypesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); assert.strictEqual(client.sessionEntityTypesStub, undefined); await client.initialize(); assert(client.sessionEntityTypesStub); }); it('has close method', () => { - const client = new sessionentitytypesModule.v3beta1.SessionEntityTypesClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); + const client = new sessionentitytypesModule.v3.SessionEntityTypesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); client.close(); }); it('has getProjectId method', async () => { const fakeProjectId = 'fake-project-id'; - const client = new sessionentitytypesModule.v3beta1.SessionEntityTypesClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); + const client = new sessionentitytypesModule.v3.SessionEntityTypesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); const result = await client.getProjectId(); assert.strictEqual(result, fakeProjectId); @@ -184,12 +176,10 @@ describe('v3beta1.SessionEntityTypesClient', () => { it('has getProjectId method with callback', async () => { const fakeProjectId = 'fake-project-id'; - const client = new sessionentitytypesModule.v3beta1.SessionEntityTypesClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); + const client = new sessionentitytypesModule.v3.SessionEntityTypesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); client.auth.getProjectId = sinon .stub() .callsArgWith(0, null, fakeProjectId); @@ -208,15 +198,13 @@ describe('v3beta1.SessionEntityTypesClient', () => { describe('getSessionEntityType', () => { it('invokes getSessionEntityType without error', async () => { - const client = new sessionentitytypesModule.v3beta1.SessionEntityTypesClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); + const client = new sessionentitytypesModule.v3.SessionEntityTypesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest() + new protos.google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -228,7 +216,7 @@ describe('v3beta1.SessionEntityTypesClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.SessionEntityType() + new protos.google.cloud.dialogflow.cx.v3.SessionEntityType() ); client.innerApiCalls.getSessionEntityType = stubSimpleCall( expectedResponse @@ -243,15 +231,13 @@ describe('v3beta1.SessionEntityTypesClient', () => { }); it('invokes getSessionEntityType without error using callback', async () => { - const client = new sessionentitytypesModule.v3beta1.SessionEntityTypesClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); + const client = new sessionentitytypesModule.v3.SessionEntityTypesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest() + new protos.google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -263,7 +249,7 @@ describe('v3beta1.SessionEntityTypesClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.SessionEntityType() + new protos.google.cloud.dialogflow.cx.v3.SessionEntityType() ); client.innerApiCalls.getSessionEntityType = stubSimpleCallWithCallback( expectedResponse @@ -273,7 +259,7 @@ describe('v3beta1.SessionEntityTypesClient', () => { request, ( err?: Error | null, - result?: protos.google.cloud.dialogflow.cx.v3beta1.ISessionEntityType | null + result?: protos.google.cloud.dialogflow.cx.v3.ISessionEntityType | null ) => { if (err) { reject(err); @@ -293,15 +279,13 @@ describe('v3beta1.SessionEntityTypesClient', () => { }); it('invokes getSessionEntityType with error', async () => { - const client = new sessionentitytypesModule.v3beta1.SessionEntityTypesClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); + const client = new sessionentitytypesModule.v3.SessionEntityTypesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest() + new protos.google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -328,15 +312,13 @@ describe('v3beta1.SessionEntityTypesClient', () => { describe('createSessionEntityType', () => { it('invokes createSessionEntityType without error', async () => { - const client = new sessionentitytypesModule.v3beta1.SessionEntityTypesClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); + const client = new sessionentitytypesModule.v3.SessionEntityTypesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest() + new protos.google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -348,7 +330,7 @@ describe('v3beta1.SessionEntityTypesClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.SessionEntityType() + new protos.google.cloud.dialogflow.cx.v3.SessionEntityType() ); client.innerApiCalls.createSessionEntityType = stubSimpleCall( expectedResponse @@ -363,15 +345,13 @@ describe('v3beta1.SessionEntityTypesClient', () => { }); it('invokes createSessionEntityType without error using callback', async () => { - const client = new sessionentitytypesModule.v3beta1.SessionEntityTypesClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); + const client = new sessionentitytypesModule.v3.SessionEntityTypesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest() + new protos.google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -383,7 +363,7 @@ describe('v3beta1.SessionEntityTypesClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.SessionEntityType() + new protos.google.cloud.dialogflow.cx.v3.SessionEntityType() ); client.innerApiCalls.createSessionEntityType = stubSimpleCallWithCallback( expectedResponse @@ -393,7 +373,7 @@ describe('v3beta1.SessionEntityTypesClient', () => { request, ( err?: Error | null, - result?: protos.google.cloud.dialogflow.cx.v3beta1.ISessionEntityType | null + result?: protos.google.cloud.dialogflow.cx.v3.ISessionEntityType | null ) => { if (err) { reject(err); @@ -413,15 +393,13 @@ describe('v3beta1.SessionEntityTypesClient', () => { }); it('invokes createSessionEntityType with error', async () => { - const client = new sessionentitytypesModule.v3beta1.SessionEntityTypesClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); + const client = new sessionentitytypesModule.v3.SessionEntityTypesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest() + new protos.google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -451,15 +429,13 @@ describe('v3beta1.SessionEntityTypesClient', () => { describe('updateSessionEntityType', () => { it('invokes updateSessionEntityType without error', async () => { - const client = new sessionentitytypesModule.v3beta1.SessionEntityTypesClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); + const client = new sessionentitytypesModule.v3.SessionEntityTypesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest() + new protos.google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest() ); request.sessionEntityType = {}; request.sessionEntityType.name = ''; @@ -472,7 +448,7 @@ describe('v3beta1.SessionEntityTypesClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.SessionEntityType() + new protos.google.cloud.dialogflow.cx.v3.SessionEntityType() ); client.innerApiCalls.updateSessionEntityType = stubSimpleCall( expectedResponse @@ -487,15 +463,13 @@ describe('v3beta1.SessionEntityTypesClient', () => { }); it('invokes updateSessionEntityType without error using callback', async () => { - const client = new sessionentitytypesModule.v3beta1.SessionEntityTypesClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); + const client = new sessionentitytypesModule.v3.SessionEntityTypesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest() + new protos.google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest() ); request.sessionEntityType = {}; request.sessionEntityType.name = ''; @@ -508,7 +482,7 @@ describe('v3beta1.SessionEntityTypesClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.SessionEntityType() + new protos.google.cloud.dialogflow.cx.v3.SessionEntityType() ); client.innerApiCalls.updateSessionEntityType = stubSimpleCallWithCallback( expectedResponse @@ -518,7 +492,7 @@ describe('v3beta1.SessionEntityTypesClient', () => { request, ( err?: Error | null, - result?: protos.google.cloud.dialogflow.cx.v3beta1.ISessionEntityType | null + result?: protos.google.cloud.dialogflow.cx.v3.ISessionEntityType | null ) => { if (err) { reject(err); @@ -538,15 +512,13 @@ describe('v3beta1.SessionEntityTypesClient', () => { }); it('invokes updateSessionEntityType with error', async () => { - const client = new sessionentitytypesModule.v3beta1.SessionEntityTypesClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); + const client = new sessionentitytypesModule.v3.SessionEntityTypesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest() + new protos.google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest() ); request.sessionEntityType = {}; request.sessionEntityType.name = ''; @@ -577,15 +549,13 @@ describe('v3beta1.SessionEntityTypesClient', () => { describe('deleteSessionEntityType', () => { it('invokes deleteSessionEntityType without error', async () => { - const client = new sessionentitytypesModule.v3beta1.SessionEntityTypesClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); + const client = new sessionentitytypesModule.v3.SessionEntityTypesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest() + new protos.google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -612,15 +582,13 @@ describe('v3beta1.SessionEntityTypesClient', () => { }); it('invokes deleteSessionEntityType without error using callback', async () => { - const client = new sessionentitytypesModule.v3beta1.SessionEntityTypesClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); + const client = new sessionentitytypesModule.v3.SessionEntityTypesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest() + new protos.google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -662,15 +630,13 @@ describe('v3beta1.SessionEntityTypesClient', () => { }); it('invokes deleteSessionEntityType with error', async () => { - const client = new sessionentitytypesModule.v3beta1.SessionEntityTypesClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); + const client = new sessionentitytypesModule.v3.SessionEntityTypesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest() + new protos.google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -700,15 +666,13 @@ describe('v3beta1.SessionEntityTypesClient', () => { describe('listSessionEntityTypes', () => { it('invokes listSessionEntityTypes without error', async () => { - const client = new sessionentitytypesModule.v3beta1.SessionEntityTypesClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); + const client = new sessionentitytypesModule.v3.SessionEntityTypesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest() + new protos.google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -721,13 +685,13 @@ describe('v3beta1.SessionEntityTypesClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.SessionEntityType() + new protos.google.cloud.dialogflow.cx.v3.SessionEntityType() ), generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.SessionEntityType() + new protos.google.cloud.dialogflow.cx.v3.SessionEntityType() ), generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.SessionEntityType() + new protos.google.cloud.dialogflow.cx.v3.SessionEntityType() ), ]; client.innerApiCalls.listSessionEntityTypes = stubSimpleCall( @@ -743,15 +707,13 @@ describe('v3beta1.SessionEntityTypesClient', () => { }); it('invokes listSessionEntityTypes without error using callback', async () => { - const client = new sessionentitytypesModule.v3beta1.SessionEntityTypesClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); + const client = new sessionentitytypesModule.v3.SessionEntityTypesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest() + new protos.google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -764,13 +726,13 @@ describe('v3beta1.SessionEntityTypesClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.SessionEntityType() + new protos.google.cloud.dialogflow.cx.v3.SessionEntityType() ), generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.SessionEntityType() + new protos.google.cloud.dialogflow.cx.v3.SessionEntityType() ), generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.SessionEntityType() + new protos.google.cloud.dialogflow.cx.v3.SessionEntityType() ), ]; client.innerApiCalls.listSessionEntityTypes = stubSimpleCallWithCallback( @@ -782,7 +744,7 @@ describe('v3beta1.SessionEntityTypesClient', () => { ( err?: Error | null, result?: - | protos.google.cloud.dialogflow.cx.v3beta1.ISessionEntityType[] + | protos.google.cloud.dialogflow.cx.v3.ISessionEntityType[] | null ) => { if (err) { @@ -803,15 +765,13 @@ describe('v3beta1.SessionEntityTypesClient', () => { }); it('invokes listSessionEntityTypes with error', async () => { - const client = new sessionentitytypesModule.v3beta1.SessionEntityTypesClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); + const client = new sessionentitytypesModule.v3.SessionEntityTypesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest() + new protos.google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -839,27 +799,25 @@ describe('v3beta1.SessionEntityTypesClient', () => { }); it('invokes listSessionEntityTypesStream without error', async () => { - const client = new sessionentitytypesModule.v3beta1.SessionEntityTypesClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); + const client = new sessionentitytypesModule.v3.SessionEntityTypesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest() + new protos.google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.SessionEntityType() + new protos.google.cloud.dialogflow.cx.v3.SessionEntityType() ), generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.SessionEntityType() + new protos.google.cloud.dialogflow.cx.v3.SessionEntityType() ), generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.SessionEntityType() + new protos.google.cloud.dialogflow.cx.v3.SessionEntityType() ), ]; client.descriptors.page.listSessionEntityTypes.createStream = stubPageStreamingCall( @@ -867,11 +825,11 @@ describe('v3beta1.SessionEntityTypesClient', () => { ); const stream = client.listSessionEntityTypesStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.dialogflow.cx.v3beta1.SessionEntityType[] = []; + const responses: protos.google.cloud.dialogflow.cx.v3.SessionEntityType[] = []; stream.on( 'data', ( - response: protos.google.cloud.dialogflow.cx.v3beta1.SessionEntityType + response: protos.google.cloud.dialogflow.cx.v3.SessionEntityType ) => { responses.push(response); } @@ -901,15 +859,13 @@ describe('v3beta1.SessionEntityTypesClient', () => { }); it('invokes listSessionEntityTypesStream with error', async () => { - const client = new sessionentitytypesModule.v3beta1.SessionEntityTypesClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); + const client = new sessionentitytypesModule.v3.SessionEntityTypesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest() + new protos.google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -920,11 +876,11 @@ describe('v3beta1.SessionEntityTypesClient', () => { ); const stream = client.listSessionEntityTypesStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.dialogflow.cx.v3beta1.SessionEntityType[] = []; + const responses: protos.google.cloud.dialogflow.cx.v3.SessionEntityType[] = []; stream.on( 'data', ( - response: protos.google.cloud.dialogflow.cx.v3beta1.SessionEntityType + response: protos.google.cloud.dialogflow.cx.v3.SessionEntityType ) => { responses.push(response); } @@ -953,33 +909,31 @@ describe('v3beta1.SessionEntityTypesClient', () => { }); it('uses async iteration with listSessionEntityTypes without error', async () => { - const client = new sessionentitytypesModule.v3beta1.SessionEntityTypesClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); + const client = new sessionentitytypesModule.v3.SessionEntityTypesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest() + new protos.google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.SessionEntityType() + new protos.google.cloud.dialogflow.cx.v3.SessionEntityType() ), generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.SessionEntityType() + new protos.google.cloud.dialogflow.cx.v3.SessionEntityType() ), generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.SessionEntityType() + new protos.google.cloud.dialogflow.cx.v3.SessionEntityType() ), ]; client.descriptors.page.listSessionEntityTypes.asyncIterate = stubAsyncIterationCall( expectedResponse ); - const responses: protos.google.cloud.dialogflow.cx.v3beta1.ISessionEntityType[] = []; + const responses: protos.google.cloud.dialogflow.cx.v3.ISessionEntityType[] = []; const iterable = client.listSessionEntityTypesAsync(request); for await (const resource of iterable) { responses.push(resource!); @@ -1000,15 +954,13 @@ describe('v3beta1.SessionEntityTypesClient', () => { }); it('uses async iteration with listSessionEntityTypes with error', async () => { - const client = new sessionentitytypesModule.v3beta1.SessionEntityTypesClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); + const client = new sessionentitytypesModule.v3.SessionEntityTypesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest() + new protos.google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -1019,7 +971,7 @@ describe('v3beta1.SessionEntityTypesClient', () => { ); const iterable = client.listSessionEntityTypesAsync(request); await assert.rejects(async () => { - const responses: protos.google.cloud.dialogflow.cx.v3beta1.ISessionEntityType[] = []; + const responses: protos.google.cloud.dialogflow.cx.v3.ISessionEntityType[] = []; for await (const resource of iterable) { responses.push(resource!); } @@ -1047,12 +999,10 @@ describe('v3beta1.SessionEntityTypesClient', () => { location: 'locationValue', agent: 'agentValue', }; - const client = new sessionentitytypesModule.v3beta1.SessionEntityTypesClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); + const client = new sessionentitytypesModule.v3.SessionEntityTypesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); client.initialize(); client.pathTemplates.agentPathTemplate.render = sinon .stub() @@ -1114,12 +1064,10 @@ describe('v3beta1.SessionEntityTypesClient', () => { agent: 'agentValue', entity_type: 'entityTypeValue', }; - const client = new sessionentitytypesModule.v3beta1.SessionEntityTypesClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); + const client = new sessionentitytypesModule.v3.SessionEntityTypesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); client.initialize(); client.pathTemplates.entityTypePathTemplate.render = sinon .stub() @@ -1192,12 +1140,10 @@ describe('v3beta1.SessionEntityTypesClient', () => { agent: 'agentValue', environment: 'environmentValue', }; - const client = new sessionentitytypesModule.v3beta1.SessionEntityTypesClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); + const client = new sessionentitytypesModule.v3.SessionEntityTypesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); client.initialize(); client.pathTemplates.environmentPathTemplate.render = sinon .stub() @@ -1270,12 +1216,10 @@ describe('v3beta1.SessionEntityTypesClient', () => { agent: 'agentValue', flow: 'flowValue', }; - const client = new sessionentitytypesModule.v3beta1.SessionEntityTypesClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); + const client = new sessionentitytypesModule.v3.SessionEntityTypesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); client.initialize(); client.pathTemplates.flowPathTemplate.render = sinon .stub() @@ -1348,12 +1292,10 @@ describe('v3beta1.SessionEntityTypesClient', () => { agent: 'agentValue', intent: 'intentValue', }; - const client = new sessionentitytypesModule.v3beta1.SessionEntityTypesClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); + const client = new sessionentitytypesModule.v3.SessionEntityTypesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); client.initialize(); client.pathTemplates.intentPathTemplate.render = sinon .stub() @@ -1424,12 +1366,10 @@ describe('v3beta1.SessionEntityTypesClient', () => { project: 'projectValue', location: 'locationValue', }; - const client = new sessionentitytypesModule.v3beta1.SessionEntityTypesClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); + const client = new sessionentitytypesModule.v3.SessionEntityTypesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); client.initialize(); client.pathTemplates.locationPathTemplate.render = sinon .stub() @@ -1478,12 +1418,10 @@ describe('v3beta1.SessionEntityTypesClient', () => { flow: 'flowValue', page: 'pageValue', }; - const client = new sessionentitytypesModule.v3beta1.SessionEntityTypesClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); + const client = new sessionentitytypesModule.v3.SessionEntityTypesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); client.initialize(); client.pathTemplates.pagePathTemplate.render = sinon .stub() @@ -1564,12 +1502,10 @@ describe('v3beta1.SessionEntityTypesClient', () => { const expectedParameters = { project: 'projectValue', }; - const client = new sessionentitytypesModule.v3beta1.SessionEntityTypesClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); + const client = new sessionentitytypesModule.v3.SessionEntityTypesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); client.initialize(); client.pathTemplates.projectPathTemplate.render = sinon .stub() @@ -1610,12 +1546,10 @@ describe('v3beta1.SessionEntityTypesClient', () => { session: 'sessionValue', entity_type: 'entityTypeValue', }; - const client = new sessionentitytypesModule.v3beta1.SessionEntityTypesClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); + const client = new sessionentitytypesModule.v3.SessionEntityTypesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); client.initialize(); client.pathTemplates.projectLocationAgentEnvironmentSessionEntityTypePathTemplate.render = sinon .stub() @@ -1736,12 +1670,10 @@ describe('v3beta1.SessionEntityTypesClient', () => { agent: 'agentValue', session: 'sessionValue', }; - const client = new sessionentitytypesModule.v3beta1.SessionEntityTypesClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); + const client = new sessionentitytypesModule.v3.SessionEntityTypesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); client.initialize(); client.pathTemplates.projectLocationAgentSessionPathTemplate.render = sinon .stub() @@ -1828,12 +1760,10 @@ describe('v3beta1.SessionEntityTypesClient', () => { session: 'sessionValue', entity_type: 'entityTypeValue', }; - const client = new sessionentitytypesModule.v3beta1.SessionEntityTypesClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); + const client = new sessionentitytypesModule.v3.SessionEntityTypesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); client.initialize(); client.pathTemplates.projectLocationAgentSessionEntityTypePathTemplate.render = sinon .stub() @@ -1931,6 +1861,73 @@ describe('v3beta1.SessionEntityTypesClient', () => { }); }); + describe('securitySettings', () => { + const fakePath = '/rendered/path/securitySettings'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + security_settings: 'securitySettingsValue', + }; + const client = new sessionentitytypesModule.v3.SessionEntityTypesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.securitySettingsPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.securitySettingsPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('securitySettingsPath', () => { + const result = client.securitySettingsPath( + 'projectValue', + 'locationValue', + 'securitySettingsValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.securitySettingsPathTemplate + .render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromSecuritySettingsName', () => { + const result = client.matchProjectFromSecuritySettingsName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.securitySettingsPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromSecuritySettingsName', () => { + const result = client.matchLocationFromSecuritySettingsName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.securitySettingsPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchSecuritySettingsFromSecuritySettingsName', () => { + const result = client.matchSecuritySettingsFromSecuritySettingsName( + fakePath + ); + assert.strictEqual(result, 'securitySettingsValue'); + assert( + (client.pathTemplates.securitySettingsPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('transitionRouteGroup', () => { const fakePath = '/rendered/path/transitionRouteGroup'; const expectedParameters = { @@ -1940,12 +1937,10 @@ describe('v3beta1.SessionEntityTypesClient', () => { flow: 'flowValue', transition_route_group: 'transitionRouteGroupValue', }; - const client = new sessionentitytypesModule.v3beta1.SessionEntityTypesClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); + const client = new sessionentitytypesModule.v3.SessionEntityTypesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); client.initialize(); client.pathTemplates.transitionRouteGroupPathTemplate.render = sinon .stub() @@ -2042,12 +2037,10 @@ describe('v3beta1.SessionEntityTypesClient', () => { flow: 'flowValue', version: 'versionValue', }; - const client = new sessionentitytypesModule.v3beta1.SessionEntityTypesClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); + const client = new sessionentitytypesModule.v3.SessionEntityTypesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); client.initialize(); client.pathTemplates.versionPathTemplate.render = sinon .stub() @@ -2131,12 +2124,10 @@ describe('v3beta1.SessionEntityTypesClient', () => { agent: 'agentValue', webhook: 'webhookValue', }; - const client = new sessionentitytypesModule.v3beta1.SessionEntityTypesClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); + const client = new sessionentitytypesModule.v3.SessionEntityTypesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); client.initialize(); client.pathTemplates.webhookPathTemplate.render = sinon .stub() diff --git a/test/gapic_sessions_v3beta1.ts b/test/gapic_sessions_v3.ts similarity index 89% rename from test/gapic_sessions_v3beta1.ts rename to test/gapic_sessions_v3.ts index 27746fd0..a52a05c2 100644 --- a/test/gapic_sessions_v3beta1.ts +++ b/test/gapic_sessions_v3.ts @@ -66,37 +66,37 @@ function stubBidiStreamingCall( return sinon.stub().returns(mockStream); } -describe('v3beta1.SessionsClient', () => { +describe('v3.SessionsClient', () => { it('has servicePath', () => { - const servicePath = sessionsModule.v3beta1.SessionsClient.servicePath; + const servicePath = sessionsModule.v3.SessionsClient.servicePath; assert(servicePath); }); it('has apiEndpoint', () => { - const apiEndpoint = sessionsModule.v3beta1.SessionsClient.apiEndpoint; + const apiEndpoint = sessionsModule.v3.SessionsClient.apiEndpoint; assert(apiEndpoint); }); it('has port', () => { - const port = sessionsModule.v3beta1.SessionsClient.port; + const port = sessionsModule.v3.SessionsClient.port; assert(port); assert(typeof port === 'number'); }); it('should create a client with no option', () => { - const client = new sessionsModule.v3beta1.SessionsClient(); + const client = new sessionsModule.v3.SessionsClient(); assert(client); }); it('should create a client with gRPC fallback', () => { - const client = new sessionsModule.v3beta1.SessionsClient({ + const client = new sessionsModule.v3.SessionsClient({ fallback: true, }); assert(client); }); it('has initialize method and supports deferred initialization', async () => { - const client = new sessionsModule.v3beta1.SessionsClient({ + const client = new sessionsModule.v3.SessionsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -106,7 +106,7 @@ describe('v3beta1.SessionsClient', () => { }); it('has close method', () => { - const client = new sessionsModule.v3beta1.SessionsClient({ + const client = new sessionsModule.v3.SessionsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -115,7 +115,7 @@ describe('v3beta1.SessionsClient', () => { it('has getProjectId method', async () => { const fakeProjectId = 'fake-project-id'; - const client = new sessionsModule.v3beta1.SessionsClient({ + const client = new sessionsModule.v3.SessionsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -127,7 +127,7 @@ describe('v3beta1.SessionsClient', () => { it('has getProjectId method with callback', async () => { const fakeProjectId = 'fake-project-id'; - const client = new sessionsModule.v3beta1.SessionsClient({ + const client = new sessionsModule.v3.SessionsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -149,13 +149,13 @@ describe('v3beta1.SessionsClient', () => { describe('detectIntent', () => { it('invokes detectIntent without error', async () => { - const client = new sessionsModule.v3beta1.SessionsClient({ + const client = new sessionsModule.v3.SessionsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest() + new protos.google.cloud.dialogflow.cx.v3.DetectIntentRequest() ); request.session = ''; const expectedHeaderRequestParams = 'session='; @@ -167,7 +167,7 @@ describe('v3beta1.SessionsClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse() + new protos.google.cloud.dialogflow.cx.v3.DetectIntentResponse() ); client.innerApiCalls.detectIntent = stubSimpleCall(expectedResponse); const [response] = await client.detectIntent(request); @@ -180,13 +180,13 @@ describe('v3beta1.SessionsClient', () => { }); it('invokes detectIntent without error using callback', async () => { - const client = new sessionsModule.v3beta1.SessionsClient({ + const client = new sessionsModule.v3.SessionsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest() + new protos.google.cloud.dialogflow.cx.v3.DetectIntentRequest() ); request.session = ''; const expectedHeaderRequestParams = 'session='; @@ -198,7 +198,7 @@ describe('v3beta1.SessionsClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse() + new protos.google.cloud.dialogflow.cx.v3.DetectIntentResponse() ); client.innerApiCalls.detectIntent = stubSimpleCallWithCallback( expectedResponse @@ -208,7 +208,7 @@ describe('v3beta1.SessionsClient', () => { request, ( err?: Error | null, - result?: protos.google.cloud.dialogflow.cx.v3beta1.IDetectIntentResponse | null + result?: protos.google.cloud.dialogflow.cx.v3.IDetectIntentResponse | null ) => { if (err) { reject(err); @@ -228,13 +228,13 @@ describe('v3beta1.SessionsClient', () => { }); it('invokes detectIntent with error', async () => { - const client = new sessionsModule.v3beta1.SessionsClient({ + const client = new sessionsModule.v3.SessionsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest() + new protos.google.cloud.dialogflow.cx.v3.DetectIntentRequest() ); request.session = ''; const expectedHeaderRequestParams = 'session='; @@ -261,13 +261,13 @@ describe('v3beta1.SessionsClient', () => { describe('matchIntent', () => { it('invokes matchIntent without error', async () => { - const client = new sessionsModule.v3beta1.SessionsClient({ + const client = new sessionsModule.v3.SessionsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest() + new protos.google.cloud.dialogflow.cx.v3.MatchIntentRequest() ); request.session = ''; const expectedHeaderRequestParams = 'session='; @@ -279,7 +279,7 @@ describe('v3beta1.SessionsClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse() + new protos.google.cloud.dialogflow.cx.v3.MatchIntentResponse() ); client.innerApiCalls.matchIntent = stubSimpleCall(expectedResponse); const [response] = await client.matchIntent(request); @@ -292,13 +292,13 @@ describe('v3beta1.SessionsClient', () => { }); it('invokes matchIntent without error using callback', async () => { - const client = new sessionsModule.v3beta1.SessionsClient({ + const client = new sessionsModule.v3.SessionsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest() + new protos.google.cloud.dialogflow.cx.v3.MatchIntentRequest() ); request.session = ''; const expectedHeaderRequestParams = 'session='; @@ -310,7 +310,7 @@ describe('v3beta1.SessionsClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse() + new protos.google.cloud.dialogflow.cx.v3.MatchIntentResponse() ); client.innerApiCalls.matchIntent = stubSimpleCallWithCallback( expectedResponse @@ -320,7 +320,7 @@ describe('v3beta1.SessionsClient', () => { request, ( err?: Error | null, - result?: protos.google.cloud.dialogflow.cx.v3beta1.IMatchIntentResponse | null + result?: protos.google.cloud.dialogflow.cx.v3.IMatchIntentResponse | null ) => { if (err) { reject(err); @@ -340,13 +340,13 @@ describe('v3beta1.SessionsClient', () => { }); it('invokes matchIntent with error', async () => { - const client = new sessionsModule.v3beta1.SessionsClient({ + const client = new sessionsModule.v3.SessionsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest() + new protos.google.cloud.dialogflow.cx.v3.MatchIntentRequest() ); request.session = ''; const expectedHeaderRequestParams = 'session='; @@ -373,13 +373,13 @@ describe('v3beta1.SessionsClient', () => { describe('fulfillIntent', () => { it('invokes fulfillIntent without error', async () => { - const client = new sessionsModule.v3beta1.SessionsClient({ + const client = new sessionsModule.v3.SessionsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest() + new protos.google.cloud.dialogflow.cx.v3.FulfillIntentRequest() ); request.matchIntentRequest = {}; request.matchIntentRequest.session = ''; @@ -392,7 +392,7 @@ describe('v3beta1.SessionsClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse() + new protos.google.cloud.dialogflow.cx.v3.FulfillIntentResponse() ); client.innerApiCalls.fulfillIntent = stubSimpleCall(expectedResponse); const [response] = await client.fulfillIntent(request); @@ -405,13 +405,13 @@ describe('v3beta1.SessionsClient', () => { }); it('invokes fulfillIntent without error using callback', async () => { - const client = new sessionsModule.v3beta1.SessionsClient({ + const client = new sessionsModule.v3.SessionsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest() + new protos.google.cloud.dialogflow.cx.v3.FulfillIntentRequest() ); request.matchIntentRequest = {}; request.matchIntentRequest.session = ''; @@ -424,7 +424,7 @@ describe('v3beta1.SessionsClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse() + new protos.google.cloud.dialogflow.cx.v3.FulfillIntentResponse() ); client.innerApiCalls.fulfillIntent = stubSimpleCallWithCallback( expectedResponse @@ -434,7 +434,7 @@ describe('v3beta1.SessionsClient', () => { request, ( err?: Error | null, - result?: protos.google.cloud.dialogflow.cx.v3beta1.IFulfillIntentResponse | null + result?: protos.google.cloud.dialogflow.cx.v3.IFulfillIntentResponse | null ) => { if (err) { reject(err); @@ -454,13 +454,13 @@ describe('v3beta1.SessionsClient', () => { }); it('invokes fulfillIntent with error', async () => { - const client = new sessionsModule.v3beta1.SessionsClient({ + const client = new sessionsModule.v3.SessionsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest() + new protos.google.cloud.dialogflow.cx.v3.FulfillIntentRequest() ); request.matchIntentRequest = {}; request.matchIntentRequest.session = ''; @@ -488,16 +488,16 @@ describe('v3beta1.SessionsClient', () => { describe('streamingDetectIntent', () => { it('invokes streamingDetectIntent without error', async () => { - const client = new sessionsModule.v3beta1.SessionsClient({ + const client = new sessionsModule.v3.SessionsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest() + new protos.google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest() ); const expectedResponse = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse() + new protos.google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse() ); client.innerApiCalls.streamingDetectIntent = stubBidiStreamingCall( expectedResponse @@ -507,7 +507,7 @@ describe('v3beta1.SessionsClient', () => { stream.on( 'data', ( - response: protos.google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse + response: protos.google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse ) => { resolve(response); } @@ -534,13 +534,13 @@ describe('v3beta1.SessionsClient', () => { }); it('invokes streamingDetectIntent with error', async () => { - const client = new sessionsModule.v3beta1.SessionsClient({ + const client = new sessionsModule.v3.SessionsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest() + new protos.google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest() ); const expectedError = new Error('expected'); client.innerApiCalls.streamingDetectIntent = stubBidiStreamingCall( @@ -552,7 +552,7 @@ describe('v3beta1.SessionsClient', () => { stream.on( 'data', ( - response: protos.google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse + response: protos.google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse ) => { resolve(response); } @@ -586,7 +586,7 @@ describe('v3beta1.SessionsClient', () => { location: 'locationValue', agent: 'agentValue', }; - const client = new sessionsModule.v3beta1.SessionsClient({ + const client = new sessionsModule.v3.SessionsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -651,7 +651,7 @@ describe('v3beta1.SessionsClient', () => { agent: 'agentValue', entity_type: 'entityTypeValue', }; - const client = new sessionsModule.v3beta1.SessionsClient({ + const client = new sessionsModule.v3.SessionsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -727,7 +727,7 @@ describe('v3beta1.SessionsClient', () => { agent: 'agentValue', environment: 'environmentValue', }; - const client = new sessionsModule.v3beta1.SessionsClient({ + const client = new sessionsModule.v3.SessionsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -803,7 +803,7 @@ describe('v3beta1.SessionsClient', () => { agent: 'agentValue', flow: 'flowValue', }; - const client = new sessionsModule.v3beta1.SessionsClient({ + const client = new sessionsModule.v3.SessionsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -879,7 +879,7 @@ describe('v3beta1.SessionsClient', () => { agent: 'agentValue', intent: 'intentValue', }; - const client = new sessionsModule.v3beta1.SessionsClient({ + const client = new sessionsModule.v3.SessionsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -956,7 +956,7 @@ describe('v3beta1.SessionsClient', () => { flow: 'flowValue', page: 'pageValue', }; - const client = new sessionsModule.v3beta1.SessionsClient({ + const client = new sessionsModule.v3.SessionsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1044,7 +1044,7 @@ describe('v3beta1.SessionsClient', () => { environment: 'environmentValue', session: 'sessionValue', }; - const client = new sessionsModule.v3beta1.SessionsClient({ + const client = new sessionsModule.v3.SessionsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1156,7 +1156,7 @@ describe('v3beta1.SessionsClient', () => { session: 'sessionValue', entity_type: 'entityTypeValue', }; - const client = new sessionsModule.v3beta1.SessionsClient({ + const client = new sessionsModule.v3.SessionsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1280,7 +1280,7 @@ describe('v3beta1.SessionsClient', () => { agent: 'agentValue', session: 'sessionValue', }; - const client = new sessionsModule.v3beta1.SessionsClient({ + const client = new sessionsModule.v3.SessionsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1370,7 +1370,7 @@ describe('v3beta1.SessionsClient', () => { session: 'sessionValue', entity_type: 'entityTypeValue', }; - const client = new sessionsModule.v3beta1.SessionsClient({ + const client = new sessionsModule.v3.SessionsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1471,6 +1471,73 @@ describe('v3beta1.SessionsClient', () => { }); }); + describe('securitySettings', () => { + const fakePath = '/rendered/path/securitySettings'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + security_settings: 'securitySettingsValue', + }; + const client = new sessionsModule.v3.SessionsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.securitySettingsPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.securitySettingsPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('securitySettingsPath', () => { + const result = client.securitySettingsPath( + 'projectValue', + 'locationValue', + 'securitySettingsValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.securitySettingsPathTemplate + .render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromSecuritySettingsName', () => { + const result = client.matchProjectFromSecuritySettingsName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.securitySettingsPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromSecuritySettingsName', () => { + const result = client.matchLocationFromSecuritySettingsName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.securitySettingsPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchSecuritySettingsFromSecuritySettingsName', () => { + const result = client.matchSecuritySettingsFromSecuritySettingsName( + fakePath + ); + assert.strictEqual(result, 'securitySettingsValue'); + assert( + (client.pathTemplates.securitySettingsPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('transitionRouteGroup', () => { const fakePath = '/rendered/path/transitionRouteGroup'; const expectedParameters = { @@ -1480,7 +1547,7 @@ describe('v3beta1.SessionsClient', () => { flow: 'flowValue', transition_route_group: 'transitionRouteGroupValue', }; - const client = new sessionsModule.v3beta1.SessionsClient({ + const client = new sessionsModule.v3.SessionsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1580,7 +1647,7 @@ describe('v3beta1.SessionsClient', () => { flow: 'flowValue', version: 'versionValue', }; - const client = new sessionsModule.v3beta1.SessionsClient({ + const client = new sessionsModule.v3.SessionsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1667,7 +1734,7 @@ describe('v3beta1.SessionsClient', () => { agent: 'agentValue', webhook: 'webhookValue', }; - const client = new sessionsModule.v3beta1.SessionsClient({ + const client = new sessionsModule.v3.SessionsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); diff --git a/test/gapic_transition_route_groups_v3beta1.ts b/test/gapic_transition_route_groups_v3.ts similarity index 86% rename from test/gapic_transition_route_groups_v3beta1.ts rename to test/gapic_transition_route_groups_v3.ts index 326738c6..18d903fd 100644 --- a/test/gapic_transition_route_groups_v3beta1.ts +++ b/test/gapic_transition_route_groups_v3.ts @@ -113,35 +113,33 @@ function stubAsyncIterationCall( return sinon.stub().returns(asyncIterable); } -describe('v3beta1.TransitionRouteGroupsClient', () => { +describe('v3.TransitionRouteGroupsClient', () => { it('has servicePath', () => { const servicePath = - transitionroutegroupsModule.v3beta1.TransitionRouteGroupsClient - .servicePath; + transitionroutegroupsModule.v3.TransitionRouteGroupsClient.servicePath; assert(servicePath); }); it('has apiEndpoint', () => { const apiEndpoint = - transitionroutegroupsModule.v3beta1.TransitionRouteGroupsClient - .apiEndpoint; + transitionroutegroupsModule.v3.TransitionRouteGroupsClient.apiEndpoint; assert(apiEndpoint); }); it('has port', () => { const port = - transitionroutegroupsModule.v3beta1.TransitionRouteGroupsClient.port; + transitionroutegroupsModule.v3.TransitionRouteGroupsClient.port; assert(port); assert(typeof port === 'number'); }); it('should create a client with no option', () => { - const client = new transitionroutegroupsModule.v3beta1.TransitionRouteGroupsClient(); + const client = new transitionroutegroupsModule.v3.TransitionRouteGroupsClient(); assert(client); }); it('should create a client with gRPC fallback', () => { - const client = new transitionroutegroupsModule.v3beta1.TransitionRouteGroupsClient( + const client = new transitionroutegroupsModule.v3.TransitionRouteGroupsClient( { fallback: true, } @@ -150,7 +148,7 @@ describe('v3beta1.TransitionRouteGroupsClient', () => { }); it('has initialize method and supports deferred initialization', async () => { - const client = new transitionroutegroupsModule.v3beta1.TransitionRouteGroupsClient( + const client = new transitionroutegroupsModule.v3.TransitionRouteGroupsClient( { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -162,7 +160,7 @@ describe('v3beta1.TransitionRouteGroupsClient', () => { }); it('has close method', () => { - const client = new transitionroutegroupsModule.v3beta1.TransitionRouteGroupsClient( + const client = new transitionroutegroupsModule.v3.TransitionRouteGroupsClient( { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -173,7 +171,7 @@ describe('v3beta1.TransitionRouteGroupsClient', () => { it('has getProjectId method', async () => { const fakeProjectId = 'fake-project-id'; - const client = new transitionroutegroupsModule.v3beta1.TransitionRouteGroupsClient( + const client = new transitionroutegroupsModule.v3.TransitionRouteGroupsClient( { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -187,7 +185,7 @@ describe('v3beta1.TransitionRouteGroupsClient', () => { it('has getProjectId method with callback', async () => { const fakeProjectId = 'fake-project-id'; - const client = new transitionroutegroupsModule.v3beta1.TransitionRouteGroupsClient( + const client = new transitionroutegroupsModule.v3.TransitionRouteGroupsClient( { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -211,7 +209,7 @@ describe('v3beta1.TransitionRouteGroupsClient', () => { describe('getTransitionRouteGroup', () => { it('invokes getTransitionRouteGroup without error', async () => { - const client = new transitionroutegroupsModule.v3beta1.TransitionRouteGroupsClient( + const client = new transitionroutegroupsModule.v3.TransitionRouteGroupsClient( { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -219,7 +217,7 @@ describe('v3beta1.TransitionRouteGroupsClient', () => { ); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest() + new protos.google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -231,7 +229,7 @@ describe('v3beta1.TransitionRouteGroupsClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup() + new protos.google.cloud.dialogflow.cx.v3.TransitionRouteGroup() ); client.innerApiCalls.getTransitionRouteGroup = stubSimpleCall( expectedResponse @@ -246,7 +244,7 @@ describe('v3beta1.TransitionRouteGroupsClient', () => { }); it('invokes getTransitionRouteGroup without error using callback', async () => { - const client = new transitionroutegroupsModule.v3beta1.TransitionRouteGroupsClient( + const client = new transitionroutegroupsModule.v3.TransitionRouteGroupsClient( { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -254,7 +252,7 @@ describe('v3beta1.TransitionRouteGroupsClient', () => { ); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest() + new protos.google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -266,7 +264,7 @@ describe('v3beta1.TransitionRouteGroupsClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup() + new protos.google.cloud.dialogflow.cx.v3.TransitionRouteGroup() ); client.innerApiCalls.getTransitionRouteGroup = stubSimpleCallWithCallback( expectedResponse @@ -276,7 +274,7 @@ describe('v3beta1.TransitionRouteGroupsClient', () => { request, ( err?: Error | null, - result?: protos.google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup | null + result?: protos.google.cloud.dialogflow.cx.v3.ITransitionRouteGroup | null ) => { if (err) { reject(err); @@ -296,7 +294,7 @@ describe('v3beta1.TransitionRouteGroupsClient', () => { }); it('invokes getTransitionRouteGroup with error', async () => { - const client = new transitionroutegroupsModule.v3beta1.TransitionRouteGroupsClient( + const client = new transitionroutegroupsModule.v3.TransitionRouteGroupsClient( { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -304,7 +302,7 @@ describe('v3beta1.TransitionRouteGroupsClient', () => { ); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest() + new protos.google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -334,7 +332,7 @@ describe('v3beta1.TransitionRouteGroupsClient', () => { describe('createTransitionRouteGroup', () => { it('invokes createTransitionRouteGroup without error', async () => { - const client = new transitionroutegroupsModule.v3beta1.TransitionRouteGroupsClient( + const client = new transitionroutegroupsModule.v3.TransitionRouteGroupsClient( { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -342,7 +340,7 @@ describe('v3beta1.TransitionRouteGroupsClient', () => { ); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest() + new protos.google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -354,7 +352,7 @@ describe('v3beta1.TransitionRouteGroupsClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup() + new protos.google.cloud.dialogflow.cx.v3.TransitionRouteGroup() ); client.innerApiCalls.createTransitionRouteGroup = stubSimpleCall( expectedResponse @@ -369,7 +367,7 @@ describe('v3beta1.TransitionRouteGroupsClient', () => { }); it('invokes createTransitionRouteGroup without error using callback', async () => { - const client = new transitionroutegroupsModule.v3beta1.TransitionRouteGroupsClient( + const client = new transitionroutegroupsModule.v3.TransitionRouteGroupsClient( { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -377,7 +375,7 @@ describe('v3beta1.TransitionRouteGroupsClient', () => { ); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest() + new protos.google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -389,7 +387,7 @@ describe('v3beta1.TransitionRouteGroupsClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup() + new protos.google.cloud.dialogflow.cx.v3.TransitionRouteGroup() ); client.innerApiCalls.createTransitionRouteGroup = stubSimpleCallWithCallback( expectedResponse @@ -399,7 +397,7 @@ describe('v3beta1.TransitionRouteGroupsClient', () => { request, ( err?: Error | null, - result?: protos.google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup | null + result?: protos.google.cloud.dialogflow.cx.v3.ITransitionRouteGroup | null ) => { if (err) { reject(err); @@ -419,7 +417,7 @@ describe('v3beta1.TransitionRouteGroupsClient', () => { }); it('invokes createTransitionRouteGroup with error', async () => { - const client = new transitionroutegroupsModule.v3beta1.TransitionRouteGroupsClient( + const client = new transitionroutegroupsModule.v3.TransitionRouteGroupsClient( { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -427,7 +425,7 @@ describe('v3beta1.TransitionRouteGroupsClient', () => { ); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest() + new protos.google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -457,7 +455,7 @@ describe('v3beta1.TransitionRouteGroupsClient', () => { describe('updateTransitionRouteGroup', () => { it('invokes updateTransitionRouteGroup without error', async () => { - const client = new transitionroutegroupsModule.v3beta1.TransitionRouteGroupsClient( + const client = new transitionroutegroupsModule.v3.TransitionRouteGroupsClient( { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -465,7 +463,7 @@ describe('v3beta1.TransitionRouteGroupsClient', () => { ); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest() + new protos.google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest() ); request.transitionRouteGroup = {}; request.transitionRouteGroup.name = ''; @@ -478,7 +476,7 @@ describe('v3beta1.TransitionRouteGroupsClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup() + new protos.google.cloud.dialogflow.cx.v3.TransitionRouteGroup() ); client.innerApiCalls.updateTransitionRouteGroup = stubSimpleCall( expectedResponse @@ -493,7 +491,7 @@ describe('v3beta1.TransitionRouteGroupsClient', () => { }); it('invokes updateTransitionRouteGroup without error using callback', async () => { - const client = new transitionroutegroupsModule.v3beta1.TransitionRouteGroupsClient( + const client = new transitionroutegroupsModule.v3.TransitionRouteGroupsClient( { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -501,7 +499,7 @@ describe('v3beta1.TransitionRouteGroupsClient', () => { ); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest() + new protos.google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest() ); request.transitionRouteGroup = {}; request.transitionRouteGroup.name = ''; @@ -514,7 +512,7 @@ describe('v3beta1.TransitionRouteGroupsClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup() + new protos.google.cloud.dialogflow.cx.v3.TransitionRouteGroup() ); client.innerApiCalls.updateTransitionRouteGroup = stubSimpleCallWithCallback( expectedResponse @@ -524,7 +522,7 @@ describe('v3beta1.TransitionRouteGroupsClient', () => { request, ( err?: Error | null, - result?: protos.google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup | null + result?: protos.google.cloud.dialogflow.cx.v3.ITransitionRouteGroup | null ) => { if (err) { reject(err); @@ -544,7 +542,7 @@ describe('v3beta1.TransitionRouteGroupsClient', () => { }); it('invokes updateTransitionRouteGroup with error', async () => { - const client = new transitionroutegroupsModule.v3beta1.TransitionRouteGroupsClient( + const client = new transitionroutegroupsModule.v3.TransitionRouteGroupsClient( { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -552,7 +550,7 @@ describe('v3beta1.TransitionRouteGroupsClient', () => { ); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest() + new protos.google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest() ); request.transitionRouteGroup = {}; request.transitionRouteGroup.name = ''; @@ -583,7 +581,7 @@ describe('v3beta1.TransitionRouteGroupsClient', () => { describe('deleteTransitionRouteGroup', () => { it('invokes deleteTransitionRouteGroup without error', async () => { - const client = new transitionroutegroupsModule.v3beta1.TransitionRouteGroupsClient( + const client = new transitionroutegroupsModule.v3.TransitionRouteGroupsClient( { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -591,7 +589,7 @@ describe('v3beta1.TransitionRouteGroupsClient', () => { ); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest() + new protos.google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -618,7 +616,7 @@ describe('v3beta1.TransitionRouteGroupsClient', () => { }); it('invokes deleteTransitionRouteGroup without error using callback', async () => { - const client = new transitionroutegroupsModule.v3beta1.TransitionRouteGroupsClient( + const client = new transitionroutegroupsModule.v3.TransitionRouteGroupsClient( { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -626,7 +624,7 @@ describe('v3beta1.TransitionRouteGroupsClient', () => { ); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest() + new protos.google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -668,7 +666,7 @@ describe('v3beta1.TransitionRouteGroupsClient', () => { }); it('invokes deleteTransitionRouteGroup with error', async () => { - const client = new transitionroutegroupsModule.v3beta1.TransitionRouteGroupsClient( + const client = new transitionroutegroupsModule.v3.TransitionRouteGroupsClient( { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -676,7 +674,7 @@ describe('v3beta1.TransitionRouteGroupsClient', () => { ); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest() + new protos.google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -706,7 +704,7 @@ describe('v3beta1.TransitionRouteGroupsClient', () => { describe('listTransitionRouteGroups', () => { it('invokes listTransitionRouteGroups without error', async () => { - const client = new transitionroutegroupsModule.v3beta1.TransitionRouteGroupsClient( + const client = new transitionroutegroupsModule.v3.TransitionRouteGroupsClient( { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -714,7 +712,7 @@ describe('v3beta1.TransitionRouteGroupsClient', () => { ); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest() + new protos.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -727,13 +725,13 @@ describe('v3beta1.TransitionRouteGroupsClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup() + new protos.google.cloud.dialogflow.cx.v3.TransitionRouteGroup() ), generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup() + new protos.google.cloud.dialogflow.cx.v3.TransitionRouteGroup() ), generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup() + new protos.google.cloud.dialogflow.cx.v3.TransitionRouteGroup() ), ]; client.innerApiCalls.listTransitionRouteGroups = stubSimpleCall( @@ -749,7 +747,7 @@ describe('v3beta1.TransitionRouteGroupsClient', () => { }); it('invokes listTransitionRouteGroups without error using callback', async () => { - const client = new transitionroutegroupsModule.v3beta1.TransitionRouteGroupsClient( + const client = new transitionroutegroupsModule.v3.TransitionRouteGroupsClient( { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -757,7 +755,7 @@ describe('v3beta1.TransitionRouteGroupsClient', () => { ); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest() + new protos.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -770,13 +768,13 @@ describe('v3beta1.TransitionRouteGroupsClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup() + new protos.google.cloud.dialogflow.cx.v3.TransitionRouteGroup() ), generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup() + new protos.google.cloud.dialogflow.cx.v3.TransitionRouteGroup() ), generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup() + new protos.google.cloud.dialogflow.cx.v3.TransitionRouteGroup() ), ]; client.innerApiCalls.listTransitionRouteGroups = stubSimpleCallWithCallback( @@ -788,7 +786,7 @@ describe('v3beta1.TransitionRouteGroupsClient', () => { ( err?: Error | null, result?: - | protos.google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup[] + | protos.google.cloud.dialogflow.cx.v3.ITransitionRouteGroup[] | null ) => { if (err) { @@ -809,7 +807,7 @@ describe('v3beta1.TransitionRouteGroupsClient', () => { }); it('invokes listTransitionRouteGroups with error', async () => { - const client = new transitionroutegroupsModule.v3beta1.TransitionRouteGroupsClient( + const client = new transitionroutegroupsModule.v3.TransitionRouteGroupsClient( { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -817,7 +815,7 @@ describe('v3beta1.TransitionRouteGroupsClient', () => { ); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest() + new protos.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -845,7 +843,7 @@ describe('v3beta1.TransitionRouteGroupsClient', () => { }); it('invokes listTransitionRouteGroupsStream without error', async () => { - const client = new transitionroutegroupsModule.v3beta1.TransitionRouteGroupsClient( + const client = new transitionroutegroupsModule.v3.TransitionRouteGroupsClient( { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -853,19 +851,19 @@ describe('v3beta1.TransitionRouteGroupsClient', () => { ); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest() + new protos.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup() + new protos.google.cloud.dialogflow.cx.v3.TransitionRouteGroup() ), generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup() + new protos.google.cloud.dialogflow.cx.v3.TransitionRouteGroup() ), generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup() + new protos.google.cloud.dialogflow.cx.v3.TransitionRouteGroup() ), ]; client.descriptors.page.listTransitionRouteGroups.createStream = stubPageStreamingCall( @@ -873,11 +871,11 @@ describe('v3beta1.TransitionRouteGroupsClient', () => { ); const stream = client.listTransitionRouteGroupsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup[] = []; + const responses: protos.google.cloud.dialogflow.cx.v3.TransitionRouteGroup[] = []; stream.on( 'data', ( - response: protos.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup + response: protos.google.cloud.dialogflow.cx.v3.TransitionRouteGroup ) => { responses.push(response); } @@ -907,7 +905,7 @@ describe('v3beta1.TransitionRouteGroupsClient', () => { }); it('invokes listTransitionRouteGroupsStream with error', async () => { - const client = new transitionroutegroupsModule.v3beta1.TransitionRouteGroupsClient( + const client = new transitionroutegroupsModule.v3.TransitionRouteGroupsClient( { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -915,7 +913,7 @@ describe('v3beta1.TransitionRouteGroupsClient', () => { ); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest() + new protos.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -926,11 +924,11 @@ describe('v3beta1.TransitionRouteGroupsClient', () => { ); const stream = client.listTransitionRouteGroupsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup[] = []; + const responses: protos.google.cloud.dialogflow.cx.v3.TransitionRouteGroup[] = []; stream.on( 'data', ( - response: protos.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup + response: protos.google.cloud.dialogflow.cx.v3.TransitionRouteGroup ) => { responses.push(response); } @@ -959,7 +957,7 @@ describe('v3beta1.TransitionRouteGroupsClient', () => { }); it('uses async iteration with listTransitionRouteGroups without error', async () => { - const client = new transitionroutegroupsModule.v3beta1.TransitionRouteGroupsClient( + const client = new transitionroutegroupsModule.v3.TransitionRouteGroupsClient( { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -967,25 +965,25 @@ describe('v3beta1.TransitionRouteGroupsClient', () => { ); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest() + new protos.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup() + new protos.google.cloud.dialogflow.cx.v3.TransitionRouteGroup() ), generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup() + new protos.google.cloud.dialogflow.cx.v3.TransitionRouteGroup() ), generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup() + new protos.google.cloud.dialogflow.cx.v3.TransitionRouteGroup() ), ]; client.descriptors.page.listTransitionRouteGroups.asyncIterate = stubAsyncIterationCall( expectedResponse ); - const responses: protos.google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup[] = []; + const responses: protos.google.cloud.dialogflow.cx.v3.ITransitionRouteGroup[] = []; const iterable = client.listTransitionRouteGroupsAsync(request); for await (const resource of iterable) { responses.push(resource!); @@ -1006,7 +1004,7 @@ describe('v3beta1.TransitionRouteGroupsClient', () => { }); it('uses async iteration with listTransitionRouteGroups with error', async () => { - const client = new transitionroutegroupsModule.v3beta1.TransitionRouteGroupsClient( + const client = new transitionroutegroupsModule.v3.TransitionRouteGroupsClient( { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -1014,7 +1012,7 @@ describe('v3beta1.TransitionRouteGroupsClient', () => { ); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest() + new protos.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -1025,7 +1023,7 @@ describe('v3beta1.TransitionRouteGroupsClient', () => { ); const iterable = client.listTransitionRouteGroupsAsync(request); await assert.rejects(async () => { - const responses: protos.google.cloud.dialogflow.cx.v3beta1.ITransitionRouteGroup[] = []; + const responses: protos.google.cloud.dialogflow.cx.v3.ITransitionRouteGroup[] = []; for await (const resource of iterable) { responses.push(resource!); } @@ -1053,7 +1051,7 @@ describe('v3beta1.TransitionRouteGroupsClient', () => { location: 'locationValue', agent: 'agentValue', }; - const client = new transitionroutegroupsModule.v3beta1.TransitionRouteGroupsClient( + const client = new transitionroutegroupsModule.v3.TransitionRouteGroupsClient( { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -1120,7 +1118,7 @@ describe('v3beta1.TransitionRouteGroupsClient', () => { agent: 'agentValue', entity_type: 'entityTypeValue', }; - const client = new transitionroutegroupsModule.v3beta1.TransitionRouteGroupsClient( + const client = new transitionroutegroupsModule.v3.TransitionRouteGroupsClient( { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -1198,7 +1196,7 @@ describe('v3beta1.TransitionRouteGroupsClient', () => { agent: 'agentValue', environment: 'environmentValue', }; - const client = new transitionroutegroupsModule.v3beta1.TransitionRouteGroupsClient( + const client = new transitionroutegroupsModule.v3.TransitionRouteGroupsClient( { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -1276,7 +1274,7 @@ describe('v3beta1.TransitionRouteGroupsClient', () => { agent: 'agentValue', flow: 'flowValue', }; - const client = new transitionroutegroupsModule.v3beta1.TransitionRouteGroupsClient( + const client = new transitionroutegroupsModule.v3.TransitionRouteGroupsClient( { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -1354,7 +1352,7 @@ describe('v3beta1.TransitionRouteGroupsClient', () => { agent: 'agentValue', intent: 'intentValue', }; - const client = new transitionroutegroupsModule.v3beta1.TransitionRouteGroupsClient( + const client = new transitionroutegroupsModule.v3.TransitionRouteGroupsClient( { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -1430,7 +1428,7 @@ describe('v3beta1.TransitionRouteGroupsClient', () => { project: 'projectValue', location: 'locationValue', }; - const client = new transitionroutegroupsModule.v3beta1.TransitionRouteGroupsClient( + const client = new transitionroutegroupsModule.v3.TransitionRouteGroupsClient( { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -1484,7 +1482,7 @@ describe('v3beta1.TransitionRouteGroupsClient', () => { flow: 'flowValue', page: 'pageValue', }; - const client = new transitionroutegroupsModule.v3beta1.TransitionRouteGroupsClient( + const client = new transitionroutegroupsModule.v3.TransitionRouteGroupsClient( { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -1570,7 +1568,7 @@ describe('v3beta1.TransitionRouteGroupsClient', () => { const expectedParameters = { project: 'projectValue', }; - const client = new transitionroutegroupsModule.v3beta1.TransitionRouteGroupsClient( + const client = new transitionroutegroupsModule.v3.TransitionRouteGroupsClient( { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -1616,7 +1614,7 @@ describe('v3beta1.TransitionRouteGroupsClient', () => { session: 'sessionValue', entity_type: 'entityTypeValue', }; - const client = new transitionroutegroupsModule.v3beta1.TransitionRouteGroupsClient( + const client = new transitionroutegroupsModule.v3.TransitionRouteGroupsClient( { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -1743,7 +1741,7 @@ describe('v3beta1.TransitionRouteGroupsClient', () => { session: 'sessionValue', entity_type: 'entityTypeValue', }; - const client = new transitionroutegroupsModule.v3beta1.TransitionRouteGroupsClient( + const client = new transitionroutegroupsModule.v3.TransitionRouteGroupsClient( { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -1846,6 +1844,75 @@ describe('v3beta1.TransitionRouteGroupsClient', () => { }); }); + describe('securitySettings', () => { + const fakePath = '/rendered/path/securitySettings'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + security_settings: 'securitySettingsValue', + }; + const client = new transitionroutegroupsModule.v3.TransitionRouteGroupsClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.securitySettingsPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.securitySettingsPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('securitySettingsPath', () => { + const result = client.securitySettingsPath( + 'projectValue', + 'locationValue', + 'securitySettingsValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.securitySettingsPathTemplate + .render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromSecuritySettingsName', () => { + const result = client.matchProjectFromSecuritySettingsName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.securitySettingsPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromSecuritySettingsName', () => { + const result = client.matchLocationFromSecuritySettingsName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.securitySettingsPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchSecuritySettingsFromSecuritySettingsName', () => { + const result = client.matchSecuritySettingsFromSecuritySettingsName( + fakePath + ); + assert.strictEqual(result, 'securitySettingsValue'); + assert( + (client.pathTemplates.securitySettingsPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('transitionRouteGroup', () => { const fakePath = '/rendered/path/transitionRouteGroup'; const expectedParameters = { @@ -1855,7 +1922,7 @@ describe('v3beta1.TransitionRouteGroupsClient', () => { flow: 'flowValue', transition_route_group: 'transitionRouteGroupValue', }; - const client = new transitionroutegroupsModule.v3beta1.TransitionRouteGroupsClient( + const client = new transitionroutegroupsModule.v3.TransitionRouteGroupsClient( { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -1957,7 +2024,7 @@ describe('v3beta1.TransitionRouteGroupsClient', () => { flow: 'flowValue', version: 'versionValue', }; - const client = new transitionroutegroupsModule.v3beta1.TransitionRouteGroupsClient( + const client = new transitionroutegroupsModule.v3.TransitionRouteGroupsClient( { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -2046,7 +2113,7 @@ describe('v3beta1.TransitionRouteGroupsClient', () => { agent: 'agentValue', webhook: 'webhookValue', }; - const client = new transitionroutegroupsModule.v3beta1.TransitionRouteGroupsClient( + const client = new transitionroutegroupsModule.v3.TransitionRouteGroupsClient( { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', diff --git a/test/gapic_versions_v3beta1.ts b/test/gapic_versions_v3.ts similarity index 88% rename from test/gapic_versions_v3beta1.ts rename to test/gapic_versions_v3.ts index abc94aa8..1bea4e57 100644 --- a/test/gapic_versions_v3beta1.ts +++ b/test/gapic_versions_v3.ts @@ -145,37 +145,37 @@ function stubAsyncIterationCall( return sinon.stub().returns(asyncIterable); } -describe('v3beta1.VersionsClient', () => { +describe('v3.VersionsClient', () => { it('has servicePath', () => { - const servicePath = versionsModule.v3beta1.VersionsClient.servicePath; + const servicePath = versionsModule.v3.VersionsClient.servicePath; assert(servicePath); }); it('has apiEndpoint', () => { - const apiEndpoint = versionsModule.v3beta1.VersionsClient.apiEndpoint; + const apiEndpoint = versionsModule.v3.VersionsClient.apiEndpoint; assert(apiEndpoint); }); it('has port', () => { - const port = versionsModule.v3beta1.VersionsClient.port; + const port = versionsModule.v3.VersionsClient.port; assert(port); assert(typeof port === 'number'); }); it('should create a client with no option', () => { - const client = new versionsModule.v3beta1.VersionsClient(); + const client = new versionsModule.v3.VersionsClient(); assert(client); }); it('should create a client with gRPC fallback', () => { - const client = new versionsModule.v3beta1.VersionsClient({ + const client = new versionsModule.v3.VersionsClient({ fallback: true, }); assert(client); }); it('has initialize method and supports deferred initialization', async () => { - const client = new versionsModule.v3beta1.VersionsClient({ + const client = new versionsModule.v3.VersionsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -185,7 +185,7 @@ describe('v3beta1.VersionsClient', () => { }); it('has close method', () => { - const client = new versionsModule.v3beta1.VersionsClient({ + const client = new versionsModule.v3.VersionsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -194,7 +194,7 @@ describe('v3beta1.VersionsClient', () => { it('has getProjectId method', async () => { const fakeProjectId = 'fake-project-id'; - const client = new versionsModule.v3beta1.VersionsClient({ + const client = new versionsModule.v3.VersionsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -206,7 +206,7 @@ describe('v3beta1.VersionsClient', () => { it('has getProjectId method with callback', async () => { const fakeProjectId = 'fake-project-id'; - const client = new versionsModule.v3beta1.VersionsClient({ + const client = new versionsModule.v3.VersionsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -228,13 +228,13 @@ describe('v3beta1.VersionsClient', () => { describe('getVersion', () => { it('invokes getVersion without error', async () => { - const client = new versionsModule.v3beta1.VersionsClient({ + const client = new versionsModule.v3.VersionsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.GetVersionRequest() + new protos.google.cloud.dialogflow.cx.v3.GetVersionRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -246,7 +246,7 @@ describe('v3beta1.VersionsClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Version() + new protos.google.cloud.dialogflow.cx.v3.Version() ); client.innerApiCalls.getVersion = stubSimpleCall(expectedResponse); const [response] = await client.getVersion(request); @@ -259,13 +259,13 @@ describe('v3beta1.VersionsClient', () => { }); it('invokes getVersion without error using callback', async () => { - const client = new versionsModule.v3beta1.VersionsClient({ + const client = new versionsModule.v3.VersionsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.GetVersionRequest() + new protos.google.cloud.dialogflow.cx.v3.GetVersionRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -277,7 +277,7 @@ describe('v3beta1.VersionsClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Version() + new protos.google.cloud.dialogflow.cx.v3.Version() ); client.innerApiCalls.getVersion = stubSimpleCallWithCallback( expectedResponse @@ -287,7 +287,7 @@ describe('v3beta1.VersionsClient', () => { request, ( err?: Error | null, - result?: protos.google.cloud.dialogflow.cx.v3beta1.IVersion | null + result?: protos.google.cloud.dialogflow.cx.v3.IVersion | null ) => { if (err) { reject(err); @@ -307,13 +307,13 @@ describe('v3beta1.VersionsClient', () => { }); it('invokes getVersion with error', async () => { - const client = new versionsModule.v3beta1.VersionsClient({ + const client = new versionsModule.v3.VersionsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.GetVersionRequest() + new protos.google.cloud.dialogflow.cx.v3.GetVersionRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -340,13 +340,13 @@ describe('v3beta1.VersionsClient', () => { describe('updateVersion', () => { it('invokes updateVersion without error', async () => { - const client = new versionsModule.v3beta1.VersionsClient({ + const client = new versionsModule.v3.VersionsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest() + new protos.google.cloud.dialogflow.cx.v3.UpdateVersionRequest() ); request.version = {}; request.version.name = ''; @@ -359,7 +359,7 @@ describe('v3beta1.VersionsClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Version() + new protos.google.cloud.dialogflow.cx.v3.Version() ); client.innerApiCalls.updateVersion = stubSimpleCall(expectedResponse); const [response] = await client.updateVersion(request); @@ -372,13 +372,13 @@ describe('v3beta1.VersionsClient', () => { }); it('invokes updateVersion without error using callback', async () => { - const client = new versionsModule.v3beta1.VersionsClient({ + const client = new versionsModule.v3.VersionsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest() + new protos.google.cloud.dialogflow.cx.v3.UpdateVersionRequest() ); request.version = {}; request.version.name = ''; @@ -391,7 +391,7 @@ describe('v3beta1.VersionsClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Version() + new protos.google.cloud.dialogflow.cx.v3.Version() ); client.innerApiCalls.updateVersion = stubSimpleCallWithCallback( expectedResponse @@ -401,7 +401,7 @@ describe('v3beta1.VersionsClient', () => { request, ( err?: Error | null, - result?: protos.google.cloud.dialogflow.cx.v3beta1.IVersion | null + result?: protos.google.cloud.dialogflow.cx.v3.IVersion | null ) => { if (err) { reject(err); @@ -421,13 +421,13 @@ describe('v3beta1.VersionsClient', () => { }); it('invokes updateVersion with error', async () => { - const client = new versionsModule.v3beta1.VersionsClient({ + const client = new versionsModule.v3.VersionsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest() + new protos.google.cloud.dialogflow.cx.v3.UpdateVersionRequest() ); request.version = {}; request.version.name = ''; @@ -455,13 +455,13 @@ describe('v3beta1.VersionsClient', () => { describe('deleteVersion', () => { it('invokes deleteVersion without error', async () => { - const client = new versionsModule.v3beta1.VersionsClient({ + const client = new versionsModule.v3.VersionsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest() + new protos.google.cloud.dialogflow.cx.v3.DeleteVersionRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -486,13 +486,13 @@ describe('v3beta1.VersionsClient', () => { }); it('invokes deleteVersion without error using callback', async () => { - const client = new versionsModule.v3beta1.VersionsClient({ + const client = new versionsModule.v3.VersionsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest() + new protos.google.cloud.dialogflow.cx.v3.DeleteVersionRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -534,13 +534,13 @@ describe('v3beta1.VersionsClient', () => { }); it('invokes deleteVersion with error', async () => { - const client = new versionsModule.v3beta1.VersionsClient({ + const client = new versionsModule.v3.VersionsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest() + new protos.google.cloud.dialogflow.cx.v3.DeleteVersionRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -567,13 +567,13 @@ describe('v3beta1.VersionsClient', () => { describe('createVersion', () => { it('invokes createVersion without error', async () => { - const client = new versionsModule.v3beta1.VersionsClient({ + const client = new versionsModule.v3.VersionsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest() + new protos.google.cloud.dialogflow.cx.v3.CreateVersionRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -601,13 +601,13 @@ describe('v3beta1.VersionsClient', () => { }); it('invokes createVersion without error using callback', async () => { - const client = new versionsModule.v3beta1.VersionsClient({ + const client = new versionsModule.v3.VersionsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest() + new protos.google.cloud.dialogflow.cx.v3.CreateVersionRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -630,8 +630,8 @@ describe('v3beta1.VersionsClient', () => { ( err?: Error | null, result?: LROperation< - protos.google.cloud.dialogflow.cx.v3beta1.IVersion, - protos.google.cloud.dialogflow.cx.v3beta1.ICreateVersionOperationMetadata + protos.google.cloud.dialogflow.cx.v3.IVersion, + protos.google.cloud.dialogflow.cx.v3.ICreateVersionOperationMetadata > | null ) => { if (err) { @@ -643,8 +643,8 @@ describe('v3beta1.VersionsClient', () => { ); }); const operation = (await promise) as LROperation< - protos.google.cloud.dialogflow.cx.v3beta1.IVersion, - protos.google.cloud.dialogflow.cx.v3beta1.ICreateVersionOperationMetadata + protos.google.cloud.dialogflow.cx.v3.IVersion, + protos.google.cloud.dialogflow.cx.v3.ICreateVersionOperationMetadata >; const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); @@ -656,13 +656,13 @@ describe('v3beta1.VersionsClient', () => { }); it('invokes createVersion with call error', async () => { - const client = new versionsModule.v3beta1.VersionsClient({ + const client = new versionsModule.v3.VersionsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest() + new protos.google.cloud.dialogflow.cx.v3.CreateVersionRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -687,13 +687,13 @@ describe('v3beta1.VersionsClient', () => { }); it('invokes createVersion with LRO error', async () => { - const client = new versionsModule.v3beta1.VersionsClient({ + const client = new versionsModule.v3.VersionsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest() + new protos.google.cloud.dialogflow.cx.v3.CreateVersionRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -720,7 +720,7 @@ describe('v3beta1.VersionsClient', () => { }); it('invokes checkCreateVersionProgress without error', async () => { - const client = new versionsModule.v3beta1.VersionsClient({ + const client = new versionsModule.v3.VersionsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -742,7 +742,7 @@ describe('v3beta1.VersionsClient', () => { }); it('invokes checkCreateVersionProgress with error', async () => { - const client = new versionsModule.v3beta1.VersionsClient({ + const client = new versionsModule.v3.VersionsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -763,13 +763,13 @@ describe('v3beta1.VersionsClient', () => { describe('loadVersion', () => { it('invokes loadVersion without error', async () => { - const client = new versionsModule.v3beta1.VersionsClient({ + const client = new versionsModule.v3.VersionsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest() + new protos.google.cloud.dialogflow.cx.v3.LoadVersionRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -795,13 +795,13 @@ describe('v3beta1.VersionsClient', () => { }); it('invokes loadVersion without error using callback', async () => { - const client = new versionsModule.v3beta1.VersionsClient({ + const client = new versionsModule.v3.VersionsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest() + new protos.google.cloud.dialogflow.cx.v3.LoadVersionRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -850,13 +850,13 @@ describe('v3beta1.VersionsClient', () => { }); it('invokes loadVersion with call error', async () => { - const client = new versionsModule.v3beta1.VersionsClient({ + const client = new versionsModule.v3.VersionsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest() + new protos.google.cloud.dialogflow.cx.v3.LoadVersionRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -881,13 +881,13 @@ describe('v3beta1.VersionsClient', () => { }); it('invokes loadVersion with LRO error', async () => { - const client = new versionsModule.v3beta1.VersionsClient({ + const client = new versionsModule.v3.VersionsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest() + new protos.google.cloud.dialogflow.cx.v3.LoadVersionRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -914,7 +914,7 @@ describe('v3beta1.VersionsClient', () => { }); it('invokes checkLoadVersionProgress without error', async () => { - const client = new versionsModule.v3beta1.VersionsClient({ + const client = new versionsModule.v3.VersionsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -936,7 +936,7 @@ describe('v3beta1.VersionsClient', () => { }); it('invokes checkLoadVersionProgress with error', async () => { - const client = new versionsModule.v3beta1.VersionsClient({ + const client = new versionsModule.v3.VersionsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -954,13 +954,13 @@ describe('v3beta1.VersionsClient', () => { describe('listVersions', () => { it('invokes listVersions without error', async () => { - const client = new versionsModule.v3beta1.VersionsClient({ + const client = new versionsModule.v3.VersionsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest() + new protos.google.cloud.dialogflow.cx.v3.ListVersionsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -973,13 +973,13 @@ describe('v3beta1.VersionsClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Version() + new protos.google.cloud.dialogflow.cx.v3.Version() ), generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Version() + new protos.google.cloud.dialogflow.cx.v3.Version() ), generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Version() + new protos.google.cloud.dialogflow.cx.v3.Version() ), ]; client.innerApiCalls.listVersions = stubSimpleCall(expectedResponse); @@ -993,13 +993,13 @@ describe('v3beta1.VersionsClient', () => { }); it('invokes listVersions without error using callback', async () => { - const client = new versionsModule.v3beta1.VersionsClient({ + const client = new versionsModule.v3.VersionsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest() + new protos.google.cloud.dialogflow.cx.v3.ListVersionsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -1012,13 +1012,13 @@ describe('v3beta1.VersionsClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Version() + new protos.google.cloud.dialogflow.cx.v3.Version() ), generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Version() + new protos.google.cloud.dialogflow.cx.v3.Version() ), generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Version() + new protos.google.cloud.dialogflow.cx.v3.Version() ), ]; client.innerApiCalls.listVersions = stubSimpleCallWithCallback( @@ -1029,7 +1029,7 @@ describe('v3beta1.VersionsClient', () => { request, ( err?: Error | null, - result?: protos.google.cloud.dialogflow.cx.v3beta1.IVersion[] | null + result?: protos.google.cloud.dialogflow.cx.v3.IVersion[] | null ) => { if (err) { reject(err); @@ -1049,13 +1049,13 @@ describe('v3beta1.VersionsClient', () => { }); it('invokes listVersions with error', async () => { - const client = new versionsModule.v3beta1.VersionsClient({ + const client = new versionsModule.v3.VersionsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest() + new protos.google.cloud.dialogflow.cx.v3.ListVersionsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -1080,25 +1080,25 @@ describe('v3beta1.VersionsClient', () => { }); it('invokes listVersionsStream without error', async () => { - const client = new versionsModule.v3beta1.VersionsClient({ + const client = new versionsModule.v3.VersionsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest() + new protos.google.cloud.dialogflow.cx.v3.ListVersionsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Version() + new protos.google.cloud.dialogflow.cx.v3.Version() ), generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Version() + new protos.google.cloud.dialogflow.cx.v3.Version() ), generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Version() + new protos.google.cloud.dialogflow.cx.v3.Version() ), ]; client.descriptors.page.listVersions.createStream = stubPageStreamingCall( @@ -1106,10 +1106,10 @@ describe('v3beta1.VersionsClient', () => { ); const stream = client.listVersionsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.dialogflow.cx.v3beta1.Version[] = []; + const responses: protos.google.cloud.dialogflow.cx.v3.Version[] = []; stream.on( 'data', - (response: protos.google.cloud.dialogflow.cx.v3beta1.Version) => { + (response: protos.google.cloud.dialogflow.cx.v3.Version) => { responses.push(response); } ); @@ -1137,13 +1137,13 @@ describe('v3beta1.VersionsClient', () => { }); it('invokes listVersionsStream with error', async () => { - const client = new versionsModule.v3beta1.VersionsClient({ + const client = new versionsModule.v3.VersionsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest() + new protos.google.cloud.dialogflow.cx.v3.ListVersionsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -1154,10 +1154,10 @@ describe('v3beta1.VersionsClient', () => { ); const stream = client.listVersionsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.dialogflow.cx.v3beta1.Version[] = []; + const responses: protos.google.cloud.dialogflow.cx.v3.Version[] = []; stream.on( 'data', - (response: protos.google.cloud.dialogflow.cx.v3beta1.Version) => { + (response: protos.google.cloud.dialogflow.cx.v3.Version) => { responses.push(response); } ); @@ -1184,31 +1184,31 @@ describe('v3beta1.VersionsClient', () => { }); it('uses async iteration with listVersions without error', async () => { - const client = new versionsModule.v3beta1.VersionsClient({ + const client = new versionsModule.v3.VersionsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest() + new protos.google.cloud.dialogflow.cx.v3.ListVersionsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Version() + new protos.google.cloud.dialogflow.cx.v3.Version() ), generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Version() + new protos.google.cloud.dialogflow.cx.v3.Version() ), generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Version() + new protos.google.cloud.dialogflow.cx.v3.Version() ), ]; client.descriptors.page.listVersions.asyncIterate = stubAsyncIterationCall( expectedResponse ); - const responses: protos.google.cloud.dialogflow.cx.v3beta1.IVersion[] = []; + const responses: protos.google.cloud.dialogflow.cx.v3.IVersion[] = []; const iterable = client.listVersionsAsync(request); for await (const resource of iterable) { responses.push(resource!); @@ -1229,13 +1229,13 @@ describe('v3beta1.VersionsClient', () => { }); it('uses async iteration with listVersions with error', async () => { - const client = new versionsModule.v3beta1.VersionsClient({ + const client = new versionsModule.v3.VersionsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest() + new protos.google.cloud.dialogflow.cx.v3.ListVersionsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -1246,7 +1246,7 @@ describe('v3beta1.VersionsClient', () => { ); const iterable = client.listVersionsAsync(request); await assert.rejects(async () => { - const responses: protos.google.cloud.dialogflow.cx.v3beta1.IVersion[] = []; + const responses: protos.google.cloud.dialogflow.cx.v3.IVersion[] = []; for await (const resource of iterable) { responses.push(resource!); } @@ -1274,7 +1274,7 @@ describe('v3beta1.VersionsClient', () => { location: 'locationValue', agent: 'agentValue', }; - const client = new versionsModule.v3beta1.VersionsClient({ + const client = new versionsModule.v3.VersionsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1339,7 +1339,7 @@ describe('v3beta1.VersionsClient', () => { agent: 'agentValue', entity_type: 'entityTypeValue', }; - const client = new versionsModule.v3beta1.VersionsClient({ + const client = new versionsModule.v3.VersionsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1415,7 +1415,7 @@ describe('v3beta1.VersionsClient', () => { agent: 'agentValue', environment: 'environmentValue', }; - const client = new versionsModule.v3beta1.VersionsClient({ + const client = new versionsModule.v3.VersionsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1491,7 +1491,7 @@ describe('v3beta1.VersionsClient', () => { agent: 'agentValue', flow: 'flowValue', }; - const client = new versionsModule.v3beta1.VersionsClient({ + const client = new versionsModule.v3.VersionsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1567,7 +1567,7 @@ describe('v3beta1.VersionsClient', () => { agent: 'agentValue', intent: 'intentValue', }; - const client = new versionsModule.v3beta1.VersionsClient({ + const client = new versionsModule.v3.VersionsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1641,7 +1641,7 @@ describe('v3beta1.VersionsClient', () => { project: 'projectValue', location: 'locationValue', }; - const client = new versionsModule.v3beta1.VersionsClient({ + const client = new versionsModule.v3.VersionsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1693,7 +1693,7 @@ describe('v3beta1.VersionsClient', () => { flow: 'flowValue', page: 'pageValue', }; - const client = new versionsModule.v3beta1.VersionsClient({ + const client = new versionsModule.v3.VersionsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1777,7 +1777,7 @@ describe('v3beta1.VersionsClient', () => { const expectedParameters = { project: 'projectValue', }; - const client = new versionsModule.v3beta1.VersionsClient({ + const client = new versionsModule.v3.VersionsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1821,7 +1821,7 @@ describe('v3beta1.VersionsClient', () => { session: 'sessionValue', entity_type: 'entityTypeValue', }; - const client = new versionsModule.v3beta1.VersionsClient({ + const client = new versionsModule.v3.VersionsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1946,7 +1946,7 @@ describe('v3beta1.VersionsClient', () => { session: 'sessionValue', entity_type: 'entityTypeValue', }; - const client = new versionsModule.v3beta1.VersionsClient({ + const client = new versionsModule.v3.VersionsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -2047,6 +2047,73 @@ describe('v3beta1.VersionsClient', () => { }); }); + describe('securitySettings', () => { + const fakePath = '/rendered/path/securitySettings'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + security_settings: 'securitySettingsValue', + }; + const client = new versionsModule.v3.VersionsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.securitySettingsPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.securitySettingsPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('securitySettingsPath', () => { + const result = client.securitySettingsPath( + 'projectValue', + 'locationValue', + 'securitySettingsValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.securitySettingsPathTemplate + .render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromSecuritySettingsName', () => { + const result = client.matchProjectFromSecuritySettingsName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.securitySettingsPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromSecuritySettingsName', () => { + const result = client.matchLocationFromSecuritySettingsName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.securitySettingsPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchSecuritySettingsFromSecuritySettingsName', () => { + const result = client.matchSecuritySettingsFromSecuritySettingsName( + fakePath + ); + assert.strictEqual(result, 'securitySettingsValue'); + assert( + (client.pathTemplates.securitySettingsPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('transitionRouteGroup', () => { const fakePath = '/rendered/path/transitionRouteGroup'; const expectedParameters = { @@ -2056,7 +2123,7 @@ describe('v3beta1.VersionsClient', () => { flow: 'flowValue', transition_route_group: 'transitionRouteGroupValue', }; - const client = new versionsModule.v3beta1.VersionsClient({ + const client = new versionsModule.v3.VersionsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -2156,7 +2223,7 @@ describe('v3beta1.VersionsClient', () => { flow: 'flowValue', version: 'versionValue', }; - const client = new versionsModule.v3beta1.VersionsClient({ + const client = new versionsModule.v3.VersionsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -2243,7 +2310,7 @@ describe('v3beta1.VersionsClient', () => { agent: 'agentValue', webhook: 'webhookValue', }; - const client = new versionsModule.v3beta1.VersionsClient({ + const client = new versionsModule.v3.VersionsClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); diff --git a/test/gapic_webhooks_v3beta1.ts b/test/gapic_webhooks_v3.ts similarity index 89% rename from test/gapic_webhooks_v3beta1.ts rename to test/gapic_webhooks_v3.ts index 658d6746..d081544b 100644 --- a/test/gapic_webhooks_v3beta1.ts +++ b/test/gapic_webhooks_v3.ts @@ -113,37 +113,37 @@ function stubAsyncIterationCall( return sinon.stub().returns(asyncIterable); } -describe('v3beta1.WebhooksClient', () => { +describe('v3.WebhooksClient', () => { it('has servicePath', () => { - const servicePath = webhooksModule.v3beta1.WebhooksClient.servicePath; + const servicePath = webhooksModule.v3.WebhooksClient.servicePath; assert(servicePath); }); it('has apiEndpoint', () => { - const apiEndpoint = webhooksModule.v3beta1.WebhooksClient.apiEndpoint; + const apiEndpoint = webhooksModule.v3.WebhooksClient.apiEndpoint; assert(apiEndpoint); }); it('has port', () => { - const port = webhooksModule.v3beta1.WebhooksClient.port; + const port = webhooksModule.v3.WebhooksClient.port; assert(port); assert(typeof port === 'number'); }); it('should create a client with no option', () => { - const client = new webhooksModule.v3beta1.WebhooksClient(); + const client = new webhooksModule.v3.WebhooksClient(); assert(client); }); it('should create a client with gRPC fallback', () => { - const client = new webhooksModule.v3beta1.WebhooksClient({ + const client = new webhooksModule.v3.WebhooksClient({ fallback: true, }); assert(client); }); it('has initialize method and supports deferred initialization', async () => { - const client = new webhooksModule.v3beta1.WebhooksClient({ + const client = new webhooksModule.v3.WebhooksClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -153,7 +153,7 @@ describe('v3beta1.WebhooksClient', () => { }); it('has close method', () => { - const client = new webhooksModule.v3beta1.WebhooksClient({ + const client = new webhooksModule.v3.WebhooksClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -162,7 +162,7 @@ describe('v3beta1.WebhooksClient', () => { it('has getProjectId method', async () => { const fakeProjectId = 'fake-project-id'; - const client = new webhooksModule.v3beta1.WebhooksClient({ + const client = new webhooksModule.v3.WebhooksClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -174,7 +174,7 @@ describe('v3beta1.WebhooksClient', () => { it('has getProjectId method with callback', async () => { const fakeProjectId = 'fake-project-id'; - const client = new webhooksModule.v3beta1.WebhooksClient({ + const client = new webhooksModule.v3.WebhooksClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -196,13 +196,13 @@ describe('v3beta1.WebhooksClient', () => { describe('getWebhook', () => { it('invokes getWebhook without error', async () => { - const client = new webhooksModule.v3beta1.WebhooksClient({ + const client = new webhooksModule.v3.WebhooksClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest() + new protos.google.cloud.dialogflow.cx.v3.GetWebhookRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -214,7 +214,7 @@ describe('v3beta1.WebhooksClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Webhook() + new protos.google.cloud.dialogflow.cx.v3.Webhook() ); client.innerApiCalls.getWebhook = stubSimpleCall(expectedResponse); const [response] = await client.getWebhook(request); @@ -227,13 +227,13 @@ describe('v3beta1.WebhooksClient', () => { }); it('invokes getWebhook without error using callback', async () => { - const client = new webhooksModule.v3beta1.WebhooksClient({ + const client = new webhooksModule.v3.WebhooksClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest() + new protos.google.cloud.dialogflow.cx.v3.GetWebhookRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -245,7 +245,7 @@ describe('v3beta1.WebhooksClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Webhook() + new protos.google.cloud.dialogflow.cx.v3.Webhook() ); client.innerApiCalls.getWebhook = stubSimpleCallWithCallback( expectedResponse @@ -255,7 +255,7 @@ describe('v3beta1.WebhooksClient', () => { request, ( err?: Error | null, - result?: protos.google.cloud.dialogflow.cx.v3beta1.IWebhook | null + result?: protos.google.cloud.dialogflow.cx.v3.IWebhook | null ) => { if (err) { reject(err); @@ -275,13 +275,13 @@ describe('v3beta1.WebhooksClient', () => { }); it('invokes getWebhook with error', async () => { - const client = new webhooksModule.v3beta1.WebhooksClient({ + const client = new webhooksModule.v3.WebhooksClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest() + new protos.google.cloud.dialogflow.cx.v3.GetWebhookRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -308,13 +308,13 @@ describe('v3beta1.WebhooksClient', () => { describe('createWebhook', () => { it('invokes createWebhook without error', async () => { - const client = new webhooksModule.v3beta1.WebhooksClient({ + const client = new webhooksModule.v3.WebhooksClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest() + new protos.google.cloud.dialogflow.cx.v3.CreateWebhookRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -326,7 +326,7 @@ describe('v3beta1.WebhooksClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Webhook() + new protos.google.cloud.dialogflow.cx.v3.Webhook() ); client.innerApiCalls.createWebhook = stubSimpleCall(expectedResponse); const [response] = await client.createWebhook(request); @@ -339,13 +339,13 @@ describe('v3beta1.WebhooksClient', () => { }); it('invokes createWebhook without error using callback', async () => { - const client = new webhooksModule.v3beta1.WebhooksClient({ + const client = new webhooksModule.v3.WebhooksClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest() + new protos.google.cloud.dialogflow.cx.v3.CreateWebhookRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -357,7 +357,7 @@ describe('v3beta1.WebhooksClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Webhook() + new protos.google.cloud.dialogflow.cx.v3.Webhook() ); client.innerApiCalls.createWebhook = stubSimpleCallWithCallback( expectedResponse @@ -367,7 +367,7 @@ describe('v3beta1.WebhooksClient', () => { request, ( err?: Error | null, - result?: protos.google.cloud.dialogflow.cx.v3beta1.IWebhook | null + result?: protos.google.cloud.dialogflow.cx.v3.IWebhook | null ) => { if (err) { reject(err); @@ -387,13 +387,13 @@ describe('v3beta1.WebhooksClient', () => { }); it('invokes createWebhook with error', async () => { - const client = new webhooksModule.v3beta1.WebhooksClient({ + const client = new webhooksModule.v3.WebhooksClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest() + new protos.google.cloud.dialogflow.cx.v3.CreateWebhookRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -420,13 +420,13 @@ describe('v3beta1.WebhooksClient', () => { describe('updateWebhook', () => { it('invokes updateWebhook without error', async () => { - const client = new webhooksModule.v3beta1.WebhooksClient({ + const client = new webhooksModule.v3.WebhooksClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest() + new protos.google.cloud.dialogflow.cx.v3.UpdateWebhookRequest() ); request.webhook = {}; request.webhook.name = ''; @@ -439,7 +439,7 @@ describe('v3beta1.WebhooksClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Webhook() + new protos.google.cloud.dialogflow.cx.v3.Webhook() ); client.innerApiCalls.updateWebhook = stubSimpleCall(expectedResponse); const [response] = await client.updateWebhook(request); @@ -452,13 +452,13 @@ describe('v3beta1.WebhooksClient', () => { }); it('invokes updateWebhook without error using callback', async () => { - const client = new webhooksModule.v3beta1.WebhooksClient({ + const client = new webhooksModule.v3.WebhooksClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest() + new protos.google.cloud.dialogflow.cx.v3.UpdateWebhookRequest() ); request.webhook = {}; request.webhook.name = ''; @@ -471,7 +471,7 @@ describe('v3beta1.WebhooksClient', () => { }, }; const expectedResponse = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Webhook() + new protos.google.cloud.dialogflow.cx.v3.Webhook() ); client.innerApiCalls.updateWebhook = stubSimpleCallWithCallback( expectedResponse @@ -481,7 +481,7 @@ describe('v3beta1.WebhooksClient', () => { request, ( err?: Error | null, - result?: protos.google.cloud.dialogflow.cx.v3beta1.IWebhook | null + result?: protos.google.cloud.dialogflow.cx.v3.IWebhook | null ) => { if (err) { reject(err); @@ -501,13 +501,13 @@ describe('v3beta1.WebhooksClient', () => { }); it('invokes updateWebhook with error', async () => { - const client = new webhooksModule.v3beta1.WebhooksClient({ + const client = new webhooksModule.v3.WebhooksClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest() + new protos.google.cloud.dialogflow.cx.v3.UpdateWebhookRequest() ); request.webhook = {}; request.webhook.name = ''; @@ -535,13 +535,13 @@ describe('v3beta1.WebhooksClient', () => { describe('deleteWebhook', () => { it('invokes deleteWebhook without error', async () => { - const client = new webhooksModule.v3beta1.WebhooksClient({ + const client = new webhooksModule.v3.WebhooksClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest() + new protos.google.cloud.dialogflow.cx.v3.DeleteWebhookRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -566,13 +566,13 @@ describe('v3beta1.WebhooksClient', () => { }); it('invokes deleteWebhook without error using callback', async () => { - const client = new webhooksModule.v3beta1.WebhooksClient({ + const client = new webhooksModule.v3.WebhooksClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest() + new protos.google.cloud.dialogflow.cx.v3.DeleteWebhookRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -614,13 +614,13 @@ describe('v3beta1.WebhooksClient', () => { }); it('invokes deleteWebhook with error', async () => { - const client = new webhooksModule.v3beta1.WebhooksClient({ + const client = new webhooksModule.v3.WebhooksClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest() + new protos.google.cloud.dialogflow.cx.v3.DeleteWebhookRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -647,13 +647,13 @@ describe('v3beta1.WebhooksClient', () => { describe('listWebhooks', () => { it('invokes listWebhooks without error', async () => { - const client = new webhooksModule.v3beta1.WebhooksClient({ + const client = new webhooksModule.v3.WebhooksClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest() + new protos.google.cloud.dialogflow.cx.v3.ListWebhooksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -666,13 +666,13 @@ describe('v3beta1.WebhooksClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Webhook() + new protos.google.cloud.dialogflow.cx.v3.Webhook() ), generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Webhook() + new protos.google.cloud.dialogflow.cx.v3.Webhook() ), generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Webhook() + new protos.google.cloud.dialogflow.cx.v3.Webhook() ), ]; client.innerApiCalls.listWebhooks = stubSimpleCall(expectedResponse); @@ -686,13 +686,13 @@ describe('v3beta1.WebhooksClient', () => { }); it('invokes listWebhooks without error using callback', async () => { - const client = new webhooksModule.v3beta1.WebhooksClient({ + const client = new webhooksModule.v3.WebhooksClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest() + new protos.google.cloud.dialogflow.cx.v3.ListWebhooksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -705,13 +705,13 @@ describe('v3beta1.WebhooksClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Webhook() + new protos.google.cloud.dialogflow.cx.v3.Webhook() ), generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Webhook() + new protos.google.cloud.dialogflow.cx.v3.Webhook() ), generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Webhook() + new protos.google.cloud.dialogflow.cx.v3.Webhook() ), ]; client.innerApiCalls.listWebhooks = stubSimpleCallWithCallback( @@ -722,7 +722,7 @@ describe('v3beta1.WebhooksClient', () => { request, ( err?: Error | null, - result?: protos.google.cloud.dialogflow.cx.v3beta1.IWebhook[] | null + result?: protos.google.cloud.dialogflow.cx.v3.IWebhook[] | null ) => { if (err) { reject(err); @@ -742,13 +742,13 @@ describe('v3beta1.WebhooksClient', () => { }); it('invokes listWebhooks with error', async () => { - const client = new webhooksModule.v3beta1.WebhooksClient({ + const client = new webhooksModule.v3.WebhooksClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest() + new protos.google.cloud.dialogflow.cx.v3.ListWebhooksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -773,25 +773,25 @@ describe('v3beta1.WebhooksClient', () => { }); it('invokes listWebhooksStream without error', async () => { - const client = new webhooksModule.v3beta1.WebhooksClient({ + const client = new webhooksModule.v3.WebhooksClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest() + new protos.google.cloud.dialogflow.cx.v3.ListWebhooksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Webhook() + new protos.google.cloud.dialogflow.cx.v3.Webhook() ), generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Webhook() + new protos.google.cloud.dialogflow.cx.v3.Webhook() ), generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Webhook() + new protos.google.cloud.dialogflow.cx.v3.Webhook() ), ]; client.descriptors.page.listWebhooks.createStream = stubPageStreamingCall( @@ -799,10 +799,10 @@ describe('v3beta1.WebhooksClient', () => { ); const stream = client.listWebhooksStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.dialogflow.cx.v3beta1.Webhook[] = []; + const responses: protos.google.cloud.dialogflow.cx.v3.Webhook[] = []; stream.on( 'data', - (response: protos.google.cloud.dialogflow.cx.v3beta1.Webhook) => { + (response: protos.google.cloud.dialogflow.cx.v3.Webhook) => { responses.push(response); } ); @@ -830,13 +830,13 @@ describe('v3beta1.WebhooksClient', () => { }); it('invokes listWebhooksStream with error', async () => { - const client = new webhooksModule.v3beta1.WebhooksClient({ + const client = new webhooksModule.v3.WebhooksClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest() + new protos.google.cloud.dialogflow.cx.v3.ListWebhooksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -847,10 +847,10 @@ describe('v3beta1.WebhooksClient', () => { ); const stream = client.listWebhooksStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.dialogflow.cx.v3beta1.Webhook[] = []; + const responses: protos.google.cloud.dialogflow.cx.v3.Webhook[] = []; stream.on( 'data', - (response: protos.google.cloud.dialogflow.cx.v3beta1.Webhook) => { + (response: protos.google.cloud.dialogflow.cx.v3.Webhook) => { responses.push(response); } ); @@ -877,31 +877,31 @@ describe('v3beta1.WebhooksClient', () => { }); it('uses async iteration with listWebhooks without error', async () => { - const client = new webhooksModule.v3beta1.WebhooksClient({ + const client = new webhooksModule.v3.WebhooksClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest() + new protos.google.cloud.dialogflow.cx.v3.ListWebhooksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Webhook() + new protos.google.cloud.dialogflow.cx.v3.Webhook() ), generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Webhook() + new protos.google.cloud.dialogflow.cx.v3.Webhook() ), generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.Webhook() + new protos.google.cloud.dialogflow.cx.v3.Webhook() ), ]; client.descriptors.page.listWebhooks.asyncIterate = stubAsyncIterationCall( expectedResponse ); - const responses: protos.google.cloud.dialogflow.cx.v3beta1.IWebhook[] = []; + const responses: protos.google.cloud.dialogflow.cx.v3.IWebhook[] = []; const iterable = client.listWebhooksAsync(request); for await (const resource of iterable) { responses.push(resource!); @@ -922,13 +922,13 @@ describe('v3beta1.WebhooksClient', () => { }); it('uses async iteration with listWebhooks with error', async () => { - const client = new webhooksModule.v3beta1.WebhooksClient({ + const client = new webhooksModule.v3.WebhooksClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest() + new protos.google.cloud.dialogflow.cx.v3.ListWebhooksRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -939,7 +939,7 @@ describe('v3beta1.WebhooksClient', () => { ); const iterable = client.listWebhooksAsync(request); await assert.rejects(async () => { - const responses: protos.google.cloud.dialogflow.cx.v3beta1.IWebhook[] = []; + const responses: protos.google.cloud.dialogflow.cx.v3.IWebhook[] = []; for await (const resource of iterable) { responses.push(resource!); } @@ -967,7 +967,7 @@ describe('v3beta1.WebhooksClient', () => { location: 'locationValue', agent: 'agentValue', }; - const client = new webhooksModule.v3beta1.WebhooksClient({ + const client = new webhooksModule.v3.WebhooksClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1032,7 +1032,7 @@ describe('v3beta1.WebhooksClient', () => { agent: 'agentValue', entity_type: 'entityTypeValue', }; - const client = new webhooksModule.v3beta1.WebhooksClient({ + const client = new webhooksModule.v3.WebhooksClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1108,7 +1108,7 @@ describe('v3beta1.WebhooksClient', () => { agent: 'agentValue', environment: 'environmentValue', }; - const client = new webhooksModule.v3beta1.WebhooksClient({ + const client = new webhooksModule.v3.WebhooksClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1184,7 +1184,7 @@ describe('v3beta1.WebhooksClient', () => { agent: 'agentValue', flow: 'flowValue', }; - const client = new webhooksModule.v3beta1.WebhooksClient({ + const client = new webhooksModule.v3.WebhooksClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1260,7 +1260,7 @@ describe('v3beta1.WebhooksClient', () => { agent: 'agentValue', intent: 'intentValue', }; - const client = new webhooksModule.v3beta1.WebhooksClient({ + const client = new webhooksModule.v3.WebhooksClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1334,7 +1334,7 @@ describe('v3beta1.WebhooksClient', () => { project: 'projectValue', location: 'locationValue', }; - const client = new webhooksModule.v3beta1.WebhooksClient({ + const client = new webhooksModule.v3.WebhooksClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1386,7 +1386,7 @@ describe('v3beta1.WebhooksClient', () => { flow: 'flowValue', page: 'pageValue', }; - const client = new webhooksModule.v3beta1.WebhooksClient({ + const client = new webhooksModule.v3.WebhooksClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1470,7 +1470,7 @@ describe('v3beta1.WebhooksClient', () => { const expectedParameters = { project: 'projectValue', }; - const client = new webhooksModule.v3beta1.WebhooksClient({ + const client = new webhooksModule.v3.WebhooksClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1512,7 +1512,7 @@ describe('v3beta1.WebhooksClient', () => { environment: 'environmentValue', session: 'sessionValue', }; - const client = new webhooksModule.v3beta1.WebhooksClient({ + const client = new webhooksModule.v3.WebhooksClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1624,7 +1624,7 @@ describe('v3beta1.WebhooksClient', () => { session: 'sessionValue', entity_type: 'entityTypeValue', }; - const client = new webhooksModule.v3beta1.WebhooksClient({ + const client = new webhooksModule.v3.WebhooksClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1748,7 +1748,7 @@ describe('v3beta1.WebhooksClient', () => { agent: 'agentValue', session: 'sessionValue', }; - const client = new webhooksModule.v3beta1.WebhooksClient({ + const client = new webhooksModule.v3.WebhooksClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1838,7 +1838,7 @@ describe('v3beta1.WebhooksClient', () => { session: 'sessionValue', entity_type: 'entityTypeValue', }; - const client = new webhooksModule.v3beta1.WebhooksClient({ + const client = new webhooksModule.v3.WebhooksClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -1939,6 +1939,73 @@ describe('v3beta1.WebhooksClient', () => { }); }); + describe('securitySettings', () => { + const fakePath = '/rendered/path/securitySettings'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + security_settings: 'securitySettingsValue', + }; + const client = new webhooksModule.v3.WebhooksClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.securitySettingsPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.securitySettingsPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('securitySettingsPath', () => { + const result = client.securitySettingsPath( + 'projectValue', + 'locationValue', + 'securitySettingsValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.securitySettingsPathTemplate + .render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromSecuritySettingsName', () => { + const result = client.matchProjectFromSecuritySettingsName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.securitySettingsPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromSecuritySettingsName', () => { + const result = client.matchLocationFromSecuritySettingsName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.securitySettingsPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchSecuritySettingsFromSecuritySettingsName', () => { + const result = client.matchSecuritySettingsFromSecuritySettingsName( + fakePath + ); + assert.strictEqual(result, 'securitySettingsValue'); + assert( + (client.pathTemplates.securitySettingsPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('transitionRouteGroup', () => { const fakePath = '/rendered/path/transitionRouteGroup'; const expectedParameters = { @@ -1948,7 +2015,7 @@ describe('v3beta1.WebhooksClient', () => { flow: 'flowValue', transition_route_group: 'transitionRouteGroupValue', }; - const client = new webhooksModule.v3beta1.WebhooksClient({ + const client = new webhooksModule.v3.WebhooksClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -2048,7 +2115,7 @@ describe('v3beta1.WebhooksClient', () => { flow: 'flowValue', version: 'versionValue', }; - const client = new webhooksModule.v3beta1.WebhooksClient({ + const client = new webhooksModule.v3.WebhooksClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); @@ -2135,7 +2202,7 @@ describe('v3beta1.WebhooksClient', () => { agent: 'agentValue', webhook: 'webhookValue', }; - const client = new webhooksModule.v3beta1.WebhooksClient({ + const client = new webhooksModule.v3.WebhooksClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', });