google-cloud-dialogflow-cx-v3 0.18.0 → 0.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/google/cloud/dialogflow/cx/v3/agent_pb.rb +5 -1
- data/lib/google/cloud/dialogflow/cx/v3/agents/client.rb +6 -2
- data/lib/google/cloud/dialogflow/cx/v3/agents/rest/client.rb +6 -2
- data/lib/google/cloud/dialogflow/cx/v3/flow_pb.rb +3 -1
- data/lib/google/cloud/dialogflow/cx/v3/flows/client.rb +4 -1
- data/lib/google/cloud/dialogflow/cx/v3/flows/paths.rb +40 -14
- data/lib/google/cloud/dialogflow/cx/v3/flows/rest/client.rb +4 -1
- data/lib/google/cloud/dialogflow/cx/v3/import_strategy_pb.rb +44 -0
- data/lib/google/cloud/dialogflow/cx/v3/pages/paths.rb +40 -14
- data/lib/google/cloud/dialogflow/cx/v3/response_message_pb.rb +2 -1
- data/lib/google/cloud/dialogflow/cx/v3/test_case_services_pb.rb +2 -1
- data/lib/google/cloud/dialogflow/cx/v3/test_cases/client.rb +2 -1
- data/lib/google/cloud/dialogflow/cx/v3/test_cases/paths.rb +39 -13
- data/lib/google/cloud/dialogflow/cx/v3/test_cases/rest/client.rb +2 -1
- data/lib/google/cloud/dialogflow/cx/v3/transition_route_group_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/client.rb +10 -4
- data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/paths.rb +58 -13
- data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/rest/client.rb +10 -4
- data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/rest/service_stub.rb +37 -0
- data/lib/google/cloud/dialogflow/cx/v3/version.rb +1 -1
- data/proto_docs/google/cloud/dialogflow/cx/v3/agent.rb +72 -3
- data/proto_docs/google/cloud/dialogflow/cx/v3/flow.rb +21 -1
- data/proto_docs/google/cloud/dialogflow/cx/v3/import_strategy.rb +54 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/page.rb +4 -1
- data/proto_docs/google/cloud/dialogflow/cx/v3/response_message.rb +24 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/session.rb +5 -5
- data/proto_docs/google/cloud/dialogflow/cx/v3/transition_route_group.rb +13 -6
- data/proto_docs/google/cloud/dialogflow/cx/v3/webhook.rb +2 -2
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 18c09830e52dcea6a74a30119512563e9c151f205e9f7b54199e7e120576a7ac
|
4
|
+
data.tar.gz: 753ff204b9f290e76fac6ecc5f93ca327614aab0219652525176e743813406df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c5d9efdc70b01227098d3a003655e823185b2e34c80031990dccab876d9d548decbcb21de593febc915dd406f8ec24591481428d1e2dbca01385c93429d6f01a
|
7
|
+
data.tar.gz: fbd7a608d5165340b45516c125acf0ef1148f5d712fd7cc96c18a778dd8a176af2df0ea1ee866c7497745bd197a54e8565530af6604ef0b8d154c80b50778f2c
|
@@ -17,7 +17,7 @@ require 'google/protobuf/field_mask_pb'
|
|
17
17
|
require 'google/protobuf/struct_pb'
|
18
18
|
|
19
19
|
|
20
|
-
descriptor_data = "\n)google/cloud/dialogflow/cx/v3/agent.proto\x12\x1dgoogle.cloud.dialogflow.cx.v3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x35google/cloud/dialogflow/cx/v3/advanced_settings.proto\x1a\x30google/cloud/dialogflow/cx/v3/audio_config.proto\x1a(google/cloud/dialogflow/cx/v3/flow.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1cgoogle/protobuf/struct.proto\"8\n\x14SpeechToTextSettings\x12 \n\x18\x65nable_speech_adaptation\x18\x01 \x01(\x08\"\
|
20
|
+
descriptor_data = "\n)google/cloud/dialogflow/cx/v3/agent.proto\x12\x1dgoogle.cloud.dialogflow.cx.v3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x35google/cloud/dialogflow/cx/v3/advanced_settings.proto\x1a\x30google/cloud/dialogflow/cx/v3/audio_config.proto\x1a(google/cloud/dialogflow/cx/v3/flow.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1cgoogle/protobuf/struct.proto\"8\n\x14SpeechToTextSettings\x12 \n\x18\x65nable_speech_adaptation\x18\x01 \x01(\x08\"\xe3\x08\n\x05\x41gent\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12%\n\x15\x64\x65\x66\x61ult_language_code\x18\x03 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x05\x12 \n\x18supported_language_codes\x18\x04 \x03(\t\x12\x16\n\ttime_zone\x18\x05 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0b\x64\x65scription\x18\x06 \x01(\t\x12\x12\n\navatar_uri\x18\x07 \x01(\t\x12T\n\x17speech_to_text_settings\x18\r \x01(\x0b\x32\x33.google.cloud.dialogflow.cx.v3.SpeechToTextSettings\x12:\n\nstart_flow\x18\x10 \x01(\tB&\xe0\x41\x05\xfa\x41 \n\x1e\x64ialogflow.googleapis.com/Flow\x12J\n\x11security_settings\x18\x11 \x01(\tB/\xfa\x41,\n*dialogflow.googleapis.com/SecuritySettings\x12&\n\x1a\x65nable_stackdriver_logging\x18\x12 \x01(\x08\x42\x02\x18\x01\x12\x1f\n\x17\x65nable_spell_correction\x18\x14 \x01(\x08\x12\x0e\n\x06locked\x18\x1b \x01(\x08\x12J\n\x11\x61\x64vanced_settings\x18\x16 \x01(\x0b\x32/.google.cloud.dialogflow.cx.v3.AdvancedSettings\x12]\n\x18git_integration_settings\x18\x1e \x01(\x0b\x32;.google.cloud.dialogflow.cx.v3.Agent.GitIntegrationSettings\x12T\n\x17text_to_speech_settings\x18\x1f \x01(\x0b\x32\x33.google.cloud.dialogflow.cx.v3.TextToSpeechSettings\x1a\x90\x02\n\x16GitIntegrationSettings\x12\x65\n\x0fgithub_settings\x18\x01 \x01(\x0b\x32J.google.cloud.dialogflow.cx.v3.Agent.GitIntegrationSettings.GithubSettingsH\x00\x1a\x7f\n\x0eGithubSettings\x12\x14\n\x0c\x64isplay_name\x18\x01 \x01(\t\x12\x16\n\x0erepository_uri\x18\x02 \x01(\t\x12\x17\n\x0ftracking_branch\x18\x03 \x01(\t\x12\x14\n\x0c\x61\x63\x63\x65ss_token\x18\x04 \x01(\t\x12\x10\n\x08\x62ranches\x18\x05 \x03(\tB\x0e\n\x0cgit_settings:\\\xea\x41Y\n\x1f\x64ialogflow.googleapis.com/Agent\x12\x36projects/{project}/locations/{location}/agents/{agent}\"s\n\x11ListAgentsRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1f\x64ialogflow.googleapis.com/Agent\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"c\n\x12ListAgentsResponse\x12\x34\n\x06\x61gents\x18\x01 \x03(\x0b\x32$.google.cloud.dialogflow.cx.v3.Agent\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"H\n\x0fGetAgentRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x64ialogflow.googleapis.com/Agent\"\x87\x01\n\x12\x43reateAgentRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1f\x64ialogflow.googleapis.com/Agent\x12\x38\n\x05\x61gent\x18\x02 \x01(\x0b\x32$.google.cloud.dialogflow.cx.v3.AgentB\x03\xe0\x41\x02\"\x7f\n\x12UpdateAgentRequest\x12\x38\n\x05\x61gent\x18\x01 \x01(\x0b\x32$.google.cloud.dialogflow.cx.v3.AgentB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"K\n\x12\x44\x65leteAgentRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x64ialogflow.googleapis.com/Agent\"\x98\x04\n\x12\x45xportAgentRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x64ialogflow.googleapis.com/Agent\x12\x16\n\tagent_uri\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12V\n\x0b\x64\x61ta_format\x18\x03 \x01(\x0e\x32<.google.cloud.dialogflow.cx.v3.ExportAgentRequest.DataFormatB\x03\xe0\x41\x01\x12\x42\n\x0b\x65nvironment\x18\x05 \x01(\tB-\xe0\x41\x01\xfa\x41\'\n%dialogflow.googleapis.com/Environment\x12^\n\x0fgit_destination\x18\x06 \x01(\x0b\x32@.google.cloud.dialogflow.cx.v3.ExportAgentRequest.GitDestinationB\x03\xe0\x41\x01\x12-\n include_bigquery_export_settings\x18\x07 \x01(\x08\x42\x03\xe0\x41\x01\x1a\x41\n\x0eGitDestination\x12\x17\n\x0ftracking_branch\x18\x01 \x01(\t\x12\x16\n\x0e\x63ommit_message\x18\x02 \x01(\t\"E\n\nDataFormat\x12\x1b\n\x17\x44\x41TA_FORMAT_UNSPECIFIED\x10\x00\x12\x08\n\x04\x42LOB\x10\x01\x12\x10\n\x0cJSON_PACKAGE\x10\x04\"b\n\x13\x45xportAgentResponse\x12\x13\n\tagent_uri\x18\x01 \x01(\tH\x00\x12\x17\n\ragent_content\x18\x02 \x01(\x0cH\x00\x12\x14\n\ncommit_sha\x18\x03 \x01(\tH\x00\x42\x07\n\x05\x61gent\"\xa0\x03\n\x13RestoreAgentRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x64ialogflow.googleapis.com/Agent\x12\x13\n\tagent_uri\x18\x02 \x01(\tH\x00\x12\x17\n\ragent_content\x18\x03 \x01(\x0cH\x00\x12R\n\ngit_source\x18\x06 \x01(\x0b\x32<.google.cloud.dialogflow.cx.v3.RestoreAgentRequest.GitSourceH\x00\x12X\n\x0erestore_option\x18\x05 \x01(\x0e\x32@.google.cloud.dialogflow.cx.v3.RestoreAgentRequest.RestoreOption\x1a$\n\tGitSource\x12\x17\n\x0ftracking_branch\x18\x01 \x01(\t\"G\n\rRestoreOption\x12\x1e\n\x1aRESTORE_OPTION_UNSPECIFIED\x10\x00\x12\x08\n\x04KEEP\x10\x01\x12\x0c\n\x08\x46\x41LLBACK\x10\x02\x42\x07\n\x05\x61gent\"d\n\x14ValidateAgentRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x64ialogflow.googleapis.com/Agent\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\"\x7f\n\x1fGetAgentValidationResultRequest\x12\x45\n\x04name\x18\x01 \x01(\tB7\xe0\x41\x02\xfa\x41\x31\n/dialogflow.googleapis.com/AgentValidationResult\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\"\xfa\x01\n\x15\x41gentValidationResult\x12\x0c\n\x04name\x18\x01 \x01(\t\x12T\n\x17\x66low_validation_results\x18\x02 \x03(\x0b\x32\x33.google.cloud.dialogflow.cx.v3.FlowValidationResult:}\xea\x41z\n/dialogflow.googleapis.com/AgentValidationResult\x12Gprojects/{project}/locations/{location}/agents/{agent}/validationResult2\x99\x0e\n\x06\x41gents\x12\xae\x01\n\nListAgents\x12\x30.google.cloud.dialogflow.cx.v3.ListAgentsRequest\x1a\x31.google.cloud.dialogflow.cx.v3.ListAgentsResponse\";\x82\xd3\xe4\x93\x02,\x12*/v3/{parent=projects/*/locations/*}/agents\xda\x41\x06parent\x12\x9b\x01\n\x08GetAgent\x12..google.cloud.dialogflow.cx.v3.GetAgentRequest\x1a$.google.cloud.dialogflow.cx.v3.Agent\"9\x82\xd3\xe4\x93\x02,\x12*/v3/{name=projects/*/locations/*/agents/*}\xda\x41\x04name\x12\xb0\x01\n\x0b\x43reateAgent\x12\x31.google.cloud.dialogflow.cx.v3.CreateAgentRequest\x1a$.google.cloud.dialogflow.cx.v3.Agent\"H\x82\xd3\xe4\x93\x02\x33\"*/v3/{parent=projects/*/locations/*}/agents:\x05\x61gent\xda\x41\x0cparent,agent\x12\xbb\x01\n\x0bUpdateAgent\x12\x31.google.cloud.dialogflow.cx.v3.UpdateAgentRequest\x1a$.google.cloud.dialogflow.cx.v3.Agent\"S\x82\xd3\xe4\x93\x02\x39\x32\x30/v3/{agent.name=projects/*/locations/*/agents/*}:\x05\x61gent\xda\x41\x11\x61gent,update_mask\x12\x93\x01\n\x0b\x44\x65leteAgent\x12\x31.google.cloud.dialogflow.cx.v3.DeleteAgentRequest\x1a\x16.google.protobuf.Empty\"9\x82\xd3\xe4\x93\x02,**/v3/{name=projects/*/locations/*/agents/*}\xda\x41\x04name\x12\xcd\x01\n\x0b\x45xportAgent\x12\x31.google.cloud.dialogflow.cx.v3.ExportAgentRequest\x1a\x1d.google.longrunning.Operation\"l\x82\xd3\xe4\x93\x02\x36\"1/v3/{name=projects/*/locations/*/agents/*}:export:\x01*\xca\x41-\n\x13\x45xportAgentResponse\x12\x16google.protobuf.Struct\x12\xd2\x01\n\x0cRestoreAgent\x12\x32.google.cloud.dialogflow.cx.v3.RestoreAgentRequest\x1a\x1d.google.longrunning.Operation\"o\x82\xd3\xe4\x93\x02\x37\"2/v3/{name=projects/*/locations/*/agents/*}:restore:\x01*\xca\x41/\n\x15google.protobuf.Empty\x12\x16google.protobuf.Struct\x12\xba\x01\n\rValidateAgent\x12\x33.google.cloud.dialogflow.cx.v3.ValidateAgentRequest\x1a\x34.google.cloud.dialogflow.cx.v3.AgentValidationResult\">\x82\xd3\xe4\x93\x02\x38\"3/v3/{name=projects/*/locations/*/agents/*}:validate:\x01*\x12\xdc\x01\n\x18GetAgentValidationResult\x12>.google.cloud.dialogflow.cx.v3.GetAgentValidationResultRequest\x1a\x34.google.cloud.dialogflow.cx.v3.AgentValidationResult\"J\x82\xd3\xe4\x93\x02=\x12;/v3/{name=projects/*/locations/*/agents/*/validationResult}\xda\x41\x04name\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\xb0\x01\n!com.google.cloud.dialogflow.cx.v3B\nAgentProtoP\x01Z1cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1dGoogle.Cloud.Dialogflow.Cx.V3\xea\x02!Google::Cloud::Dialogflow::CX::V3b\x06proto3"
|
21
21
|
|
22
22
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
23
23
|
|
@@ -54,6 +54,8 @@ module Google
|
|
54
54
|
module V3
|
55
55
|
SpeechToTextSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.SpeechToTextSettings").msgclass
|
56
56
|
Agent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.Agent").msgclass
|
57
|
+
Agent::GitIntegrationSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.Agent.GitIntegrationSettings").msgclass
|
58
|
+
Agent::GitIntegrationSettings::GithubSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.Agent.GitIntegrationSettings.GithubSettings").msgclass
|
57
59
|
ListAgentsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.ListAgentsRequest").msgclass
|
58
60
|
ListAgentsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.ListAgentsResponse").msgclass
|
59
61
|
GetAgentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.GetAgentRequest").msgclass
|
@@ -61,9 +63,11 @@ module Google
|
|
61
63
|
UpdateAgentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.UpdateAgentRequest").msgclass
|
62
64
|
DeleteAgentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.DeleteAgentRequest").msgclass
|
63
65
|
ExportAgentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.ExportAgentRequest").msgclass
|
66
|
+
ExportAgentRequest::GitDestination = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.ExportAgentRequest.GitDestination").msgclass
|
64
67
|
ExportAgentRequest::DataFormat = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.ExportAgentRequest.DataFormat").enummodule
|
65
68
|
ExportAgentResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.ExportAgentResponse").msgclass
|
66
69
|
RestoreAgentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.RestoreAgentRequest").msgclass
|
70
|
+
RestoreAgentRequest::GitSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.RestoreAgentRequest.GitSource").msgclass
|
67
71
|
RestoreAgentRequest::RestoreOption = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.RestoreAgentRequest.RestoreOption").enummodule
|
68
72
|
ValidateAgentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.ValidateAgentRequest").msgclass
|
69
73
|
GetAgentValidationResultRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.GetAgentValidationResultRequest").msgclass
|
@@ -656,7 +656,7 @@ module Google
|
|
656
656
|
# @param options [::Gapic::CallOptions, ::Hash]
|
657
657
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
658
658
|
#
|
659
|
-
# @overload export_agent(name: nil, agent_uri: nil, data_format: nil, environment: nil, include_bigquery_export_settings: nil)
|
659
|
+
# @overload export_agent(name: nil, agent_uri: nil, data_format: nil, environment: nil, git_destination: nil, include_bigquery_export_settings: nil)
|
660
660
|
# Pass arguments to `export_agent` via keyword arguments. Note that at
|
661
661
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
662
662
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -682,6 +682,8 @@ module Google
|
|
682
682
|
# Optional. Environment name. If not set, draft environment is assumed.
|
683
683
|
# Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
|
684
684
|
# ID>/environments/<Environment ID>`.
|
685
|
+
# @param git_destination [::Google::Cloud::Dialogflow::CX::V3::ExportAgentRequest::GitDestination, ::Hash]
|
686
|
+
# Optional. The Git branch to export the agent to.
|
685
687
|
# @param include_bigquery_export_settings [::Boolean]
|
686
688
|
# Optional. Whether to include BigQuery Export setting.
|
687
689
|
#
|
@@ -786,7 +788,7 @@ module Google
|
|
786
788
|
# @param options [::Gapic::CallOptions, ::Hash]
|
787
789
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
788
790
|
#
|
789
|
-
# @overload restore_agent(name: nil, agent_uri: nil, agent_content: nil, restore_option: nil)
|
791
|
+
# @overload restore_agent(name: nil, agent_uri: nil, agent_content: nil, git_source: nil, restore_option: nil)
|
790
792
|
# Pass arguments to `restore_agent` via keyword arguments. Note that at
|
791
793
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
792
794
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -806,6 +808,8 @@ module Google
|
|
806
808
|
# control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
|
807
809
|
# @param agent_content [::String]
|
808
810
|
# Uncompressed raw byte content for agent.
|
811
|
+
# @param git_source [::Google::Cloud::Dialogflow::CX::V3::RestoreAgentRequest::GitSource, ::Hash]
|
812
|
+
# Setting for restoring from a git branch
|
809
813
|
# @param restore_option [::Google::Cloud::Dialogflow::CX::V3::RestoreAgentRequest::RestoreOption]
|
810
814
|
# Agent restore mode. If not specified, `KEEP` is assumed.
|
811
815
|
#
|
@@ -529,7 +529,7 @@ module Google
|
|
529
529
|
# @param options [::Gapic::CallOptions, ::Hash]
|
530
530
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
531
531
|
#
|
532
|
-
# @overload export_agent(name: nil, agent_uri: nil, data_format: nil, environment: nil, include_bigquery_export_settings: nil)
|
532
|
+
# @overload export_agent(name: nil, agent_uri: nil, data_format: nil, environment: nil, git_destination: nil, include_bigquery_export_settings: nil)
|
533
533
|
# Pass arguments to `export_agent` via keyword arguments. Note that at
|
534
534
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
535
535
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -555,6 +555,8 @@ module Google
|
|
555
555
|
# Optional. Environment name. If not set, draft environment is assumed.
|
556
556
|
# Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
|
557
557
|
# ID>/environments/<Environment ID>`.
|
558
|
+
# @param git_destination [::Google::Cloud::Dialogflow::CX::V3::ExportAgentRequest::GitDestination, ::Hash]
|
559
|
+
# Optional. The Git branch to export the agent to.
|
558
560
|
# @param include_bigquery_export_settings [::Boolean]
|
559
561
|
# Optional. Whether to include BigQuery Export setting.
|
560
562
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
@@ -629,7 +631,7 @@ module Google
|
|
629
631
|
# @param options [::Gapic::CallOptions, ::Hash]
|
630
632
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
631
633
|
#
|
632
|
-
# @overload restore_agent(name: nil, agent_uri: nil, agent_content: nil, restore_option: nil)
|
634
|
+
# @overload restore_agent(name: nil, agent_uri: nil, agent_content: nil, git_source: nil, restore_option: nil)
|
633
635
|
# Pass arguments to `restore_agent` via keyword arguments. Note that at
|
634
636
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
635
637
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -649,6 +651,8 @@ module Google
|
|
649
651
|
# control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
|
650
652
|
# @param agent_content [::String]
|
651
653
|
# Uncompressed raw byte content for agent.
|
654
|
+
# @param git_source [::Google::Cloud::Dialogflow::CX::V3::RestoreAgentRequest::GitSource, ::Hash]
|
655
|
+
# Setting for restoring from a git branch
|
652
656
|
# @param restore_option [::Google::Cloud::Dialogflow::CX::V3::RestoreAgentRequest::RestoreOption]
|
653
657
|
# Agent restore mode. If not specified, `KEEP` is assumed.
|
654
658
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
@@ -8,6 +8,7 @@ require 'google/api/annotations_pb'
|
|
8
8
|
require 'google/api/client_pb'
|
9
9
|
require 'google/api/field_behavior_pb'
|
10
10
|
require 'google/api/resource_pb'
|
11
|
+
require 'google/cloud/dialogflow/cx/v3/import_strategy_pb'
|
11
12
|
require 'google/cloud/dialogflow/cx/v3/page_pb'
|
12
13
|
require 'google/cloud/dialogflow/cx/v3/validation_message_pb'
|
13
14
|
require 'google/longrunning/operations_pb'
|
@@ -17,7 +18,7 @@ require 'google/protobuf/struct_pb'
|
|
17
18
|
require 'google/protobuf/timestamp_pb'
|
18
19
|
|
19
20
|
|
20
|
-
descriptor_data = "\n(google/cloud/dialogflow/cx/v3/flow.proto\x12\x1dgoogle.cloud.dialogflow.cx.v3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a(google/cloud/dialogflow/cx/v3/page.proto\x1a\x36google/cloud/dialogflow/cx/v3/validation_message.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xac\x03\n\x0bNluSettings\x12H\n\nmodel_type\x18\x01 \x01(\x0e\x32\x34.google.cloud.dialogflow.cx.v3.NluSettings.ModelType\x12 \n\x18\x63lassification_threshold\x18\x03 \x01(\x02\x12Y\n\x13model_training_mode\x18\x04 \x01(\x0e\x32<.google.cloud.dialogflow.cx.v3.NluSettings.ModelTrainingMode\"Y\n\tModelType\x12\x1a\n\x16MODEL_TYPE_UNSPECIFIED\x10\x00\x12\x17\n\x13MODEL_TYPE_STANDARD\x10\x01\x12\x17\n\x13MODEL_TYPE_ADVANCED\x10\x03\"{\n\x11ModelTrainingMode\x12#\n\x1fMODEL_TRAINING_MODE_UNSPECIFIED\x10\x00\x12!\n\x1dMODEL_TRAINING_MODE_AUTOMATIC\x10\x01\x12\x1e\n\x1aMODEL_TRAINING_MODE_MANUAL\x10\x02\"\xd6\x03\n\x04\x46low\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12I\n\x11transition_routes\x18\x04 \x03(\x0b\x32..google.cloud.dialogflow.cx.v3.TransitionRoute\x12\x43\n\x0e\x65vent_handlers\x18\n \x03(\x0b\x32+.google.cloud.dialogflow.cx.v3.EventHandler\x12T\n\x17transition_route_groups\x18\x0f \x03(\tB3\xfa\x41\x30\n.dialogflow.googleapis.com/TransitionRouteGroup\x12@\n\x0cnlu_settings\x18\x0b \x01(\x0b\x32*.google.cloud.dialogflow.cx.v3.NluSettings:h\xea\x41\x65\n\x1e\x64ialogflow.googleapis.com/Flow\x12\x43projects/{project}/locations/{location}/agents/{agent}/flows/{flow}\"\x9a\x01\n\x11\x43reateFlowRequest\x12\x36\n\x06parent\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \x12\x1e\x64ialogflow.googleapis.com/Flow\x12\x36\n\x04\x66low\x18\x02 \x01(\x0b\x32#.google.cloud.dialogflow.cx.v3.FlowB\x03\xe0\x41\x02\x12\x15\n\rlanguage_code\x18\x03 \x01(\t\"X\n\x11\x44\x65leteFlowRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x64ialogflow.googleapis.com/Flow\x12\r\n\x05\x66orce\x18\x02 \x01(\x08\"\x88\x01\n\x10ListFlowsRequest\x12\x36\n\x06parent\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \x12\x1e\x64ialogflow.googleapis.com/Flow\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x15\n\rlanguage_code\x18\x04 \x01(\t\"`\n\x11ListFlowsResponse\x12\x32\n\x05\x66lows\x18\x01 \x03(\x0b\x32#.google.cloud.dialogflow.cx.v3.Flow\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"]\n\x0eGetFlowRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x64ialogflow.googleapis.com/Flow\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\"\x93\x01\n\x11UpdateFlowRequest\x12\x36\n\x04\x66low\x18\x01 \x01(\x0b\x32#.google.cloud.dialogflow.cx.v3.FlowB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x15\n\rlanguage_code\x18\x03 \x01(\t\"H\n\x10TrainFlowRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x64ialogflow.googleapis.com/Flow\"b\n\x13ValidateFlowRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x64ialogflow.googleapis.com/Flow\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\"}\n\x1eGetFlowValidationResultRequest\x12\x44\n\x04name\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\n.dialogflow.googleapis.com/FlowValidationResult\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\"\xb1\x02\n\x14\x46lowValidationResult\x12\x0c\n\x04name\x18\x01 \x01(\t\x12M\n\x13validation_messages\x18\x02 \x03(\x0b\x32\x30.google.cloud.dialogflow.cx.v3.ValidationMessage\x12/\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp:\x8a\x01\xea\x41\x86\x01\n.dialogflow.googleapis.com/FlowValidationResult\x12Tprojects/{project}/locations/{location}/agents/{agent}/flows/{flow}/validationResult\"\
|
21
|
+
descriptor_data = "\n(google/cloud/dialogflow/cx/v3/flow.proto\x12\x1dgoogle.cloud.dialogflow.cx.v3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x33google/cloud/dialogflow/cx/v3/import_strategy.proto\x1a(google/cloud/dialogflow/cx/v3/page.proto\x1a\x36google/cloud/dialogflow/cx/v3/validation_message.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xac\x03\n\x0bNluSettings\x12H\n\nmodel_type\x18\x01 \x01(\x0e\x32\x34.google.cloud.dialogflow.cx.v3.NluSettings.ModelType\x12 \n\x18\x63lassification_threshold\x18\x03 \x01(\x02\x12Y\n\x13model_training_mode\x18\x04 \x01(\x0e\x32<.google.cloud.dialogflow.cx.v3.NluSettings.ModelTrainingMode\"Y\n\tModelType\x12\x1a\n\x16MODEL_TYPE_UNSPECIFIED\x10\x00\x12\x17\n\x13MODEL_TYPE_STANDARD\x10\x01\x12\x17\n\x13MODEL_TYPE_ADVANCED\x10\x03\"{\n\x11ModelTrainingMode\x12#\n\x1fMODEL_TRAINING_MODE_UNSPECIFIED\x10\x00\x12!\n\x1dMODEL_TRAINING_MODE_AUTOMATIC\x10\x01\x12\x1e\n\x1aMODEL_TRAINING_MODE_MANUAL\x10\x02\"\xd6\x03\n\x04\x46low\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12I\n\x11transition_routes\x18\x04 \x03(\x0b\x32..google.cloud.dialogflow.cx.v3.TransitionRoute\x12\x43\n\x0e\x65vent_handlers\x18\n \x03(\x0b\x32+.google.cloud.dialogflow.cx.v3.EventHandler\x12T\n\x17transition_route_groups\x18\x0f \x03(\tB3\xfa\x41\x30\n.dialogflow.googleapis.com/TransitionRouteGroup\x12@\n\x0cnlu_settings\x18\x0b \x01(\x0b\x32*.google.cloud.dialogflow.cx.v3.NluSettings:h\xea\x41\x65\n\x1e\x64ialogflow.googleapis.com/Flow\x12\x43projects/{project}/locations/{location}/agents/{agent}/flows/{flow}\"\x9a\x01\n\x11\x43reateFlowRequest\x12\x36\n\x06parent\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \x12\x1e\x64ialogflow.googleapis.com/Flow\x12\x36\n\x04\x66low\x18\x02 \x01(\x0b\x32#.google.cloud.dialogflow.cx.v3.FlowB\x03\xe0\x41\x02\x12\x15\n\rlanguage_code\x18\x03 \x01(\t\"X\n\x11\x44\x65leteFlowRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x64ialogflow.googleapis.com/Flow\x12\r\n\x05\x66orce\x18\x02 \x01(\x08\"\x88\x01\n\x10ListFlowsRequest\x12\x36\n\x06parent\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \x12\x1e\x64ialogflow.googleapis.com/Flow\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x15\n\rlanguage_code\x18\x04 \x01(\t\"`\n\x11ListFlowsResponse\x12\x32\n\x05\x66lows\x18\x01 \x03(\x0b\x32#.google.cloud.dialogflow.cx.v3.Flow\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"]\n\x0eGetFlowRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x64ialogflow.googleapis.com/Flow\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\"\x93\x01\n\x11UpdateFlowRequest\x12\x36\n\x04\x66low\x18\x01 \x01(\x0b\x32#.google.cloud.dialogflow.cx.v3.FlowB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x15\n\rlanguage_code\x18\x03 \x01(\t\"H\n\x10TrainFlowRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x64ialogflow.googleapis.com/Flow\"b\n\x13ValidateFlowRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x64ialogflow.googleapis.com/Flow\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\"}\n\x1eGetFlowValidationResultRequest\x12\x44\n\x04name\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\n.dialogflow.googleapis.com/FlowValidationResult\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\"\xb1\x02\n\x14\x46lowValidationResult\x12\x0c\n\x04name\x18\x01 \x01(\t\x12M\n\x13validation_messages\x18\x02 \x03(\x0b\x32\x30.google.cloud.dialogflow.cx.v3.ValidationMessage\x12/\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp:\x8a\x01\xea\x41\x86\x01\n.dialogflow.googleapis.com/FlowValidationResult\x12Tprojects/{project}/locations/{location}/agents/{agent}/flows/{flow}/validationResult\"\xf2\x02\n\x11ImportFlowRequest\x12\x36\n\x06parent\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \x12\x1e\x64ialogflow.googleapis.com/Flow\x12\x12\n\x08\x66low_uri\x18\x02 \x01(\tH\x00\x12\x16\n\x0c\x66low_content\x18\x03 \x01(\x0cH\x00\x12T\n\rimport_option\x18\x04 \x01(\x0e\x32=.google.cloud.dialogflow.cx.v3.ImportFlowRequest.ImportOption\x12T\n\x14\x66low_import_strategy\x18\x05 \x01(\x0b\x32\x31.google.cloud.dialogflow.cx.v3.FlowImportStrategyB\x03\xe0\x41\x01\"E\n\x0cImportOption\x12\x1d\n\x19IMPORT_OPTION_UNSPECIFIED\x10\x00\x12\x08\n\x04KEEP\x10\x01\x12\x0c\n\x08\x46\x41LLBACK\x10\x02\x42\x06\n\x04\x66low\"h\n\x12\x46lowImportStrategy\x12R\n\x16global_import_strategy\x18\x01 \x01(\x0e\x32-.google.cloud.dialogflow.cx.v3.ImportStrategyB\x03\xe0\x41\x01\"G\n\x12ImportFlowResponse\x12\x31\n\x04\x66low\x18\x01 \x01(\tB#\xfa\x41 \n\x1e\x64ialogflow.googleapis.com/Flow\"\x87\x01\n\x11\x45xportFlowRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x64ialogflow.googleapis.com/Flow\x12\x15\n\x08\x66low_uri\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12%\n\x18include_referenced_flows\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\"H\n\x12\x45xportFlowResponse\x12\x12\n\x08\x66low_uri\x18\x01 \x01(\tH\x00\x12\x16\n\x0c\x66low_content\x18\x02 \x01(\x0cH\x00\x42\x06\n\x04\x66low2\x98\x10\n\x05\x46lows\x12\xb3\x01\n\nCreateFlow\x12\x30.google.cloud.dialogflow.cx.v3.CreateFlowRequest\x1a#.google.cloud.dialogflow.cx.v3.Flow\"N\x82\xd3\xe4\x93\x02:\"2/v3/{parent=projects/*/locations/*/agents/*}/flows:\x04\x66low\xda\x41\x0bparent,flow\x12\x99\x01\n\nDeleteFlow\x12\x30.google.cloud.dialogflow.cx.v3.DeleteFlowRequest\x1a\x16.google.protobuf.Empty\"A\x82\xd3\xe4\x93\x02\x34*2/v3/{name=projects/*/locations/*/agents/*/flows/*}\xda\x41\x04name\x12\xb3\x01\n\tListFlows\x12/.google.cloud.dialogflow.cx.v3.ListFlowsRequest\x1a\x30.google.cloud.dialogflow.cx.v3.ListFlowsResponse\"C\x82\xd3\xe4\x93\x02\x34\x12\x32/v3/{parent=projects/*/locations/*/agents/*}/flows\xda\x41\x06parent\x12\xa0\x01\n\x07GetFlow\x12-.google.cloud.dialogflow.cx.v3.GetFlowRequest\x1a#.google.cloud.dialogflow.cx.v3.Flow\"A\x82\xd3\xe4\x93\x02\x34\x12\x32/v3/{name=projects/*/locations/*/agents/*/flows/*}\xda\x41\x04name\x12\xbd\x01\n\nUpdateFlow\x12\x30.google.cloud.dialogflow.cx.v3.UpdateFlowRequest\x1a#.google.cloud.dialogflow.cx.v3.Flow\"X\x82\xd3\xe4\x93\x02?27/v3/{flow.name=projects/*/locations/*/agents/*/flows/*}:\x04\x66low\xda\x41\x10\x66low,update_mask\x12\xd9\x01\n\tTrainFlow\x12/.google.cloud.dialogflow.cx.v3.TrainFlowRequest\x1a\x1d.google.longrunning.Operation\"|\x82\xd3\xe4\x93\x02=\"8/v3/{name=projects/*/locations/*/agents/*/flows/*}:train:\x01*\xda\x41\x04name\xca\x41/\n\x15google.protobuf.Empty\x12\x16google.protobuf.Struct\x12\xbf\x01\n\x0cValidateFlow\x12\x32.google.cloud.dialogflow.cx.v3.ValidateFlowRequest\x1a\x33.google.cloud.dialogflow.cx.v3.FlowValidationResult\"F\x82\xd3\xe4\x93\x02@\";/v3/{name=projects/*/locations/*/agents/*/flows/*}:validate:\x01*\x12\xe1\x01\n\x17GetFlowValidationResult\x12=.google.cloud.dialogflow.cx.v3.GetFlowValidationResultRequest\x1a\x33.google.cloud.dialogflow.cx.v3.FlowValidationResult\"R\x82\xd3\xe4\x93\x02\x45\x12\x43/v3/{name=projects/*/locations/*/agents/*/flows/*/validationResult}\xda\x41\x04name\x12\xd2\x01\n\nImportFlow\x12\x30.google.cloud.dialogflow.cx.v3.ImportFlowRequest\x1a\x1d.google.longrunning.Operation\"s\x82\xd3\xe4\x93\x02>\"9/v3/{parent=projects/*/locations/*/agents/*}/flows:import:\x01*\xca\x41,\n\x12ImportFlowResponse\x12\x16google.protobuf.Struct\x12\xd2\x01\n\nExportFlow\x12\x30.google.cloud.dialogflow.cx.v3.ExportFlowRequest\x1a\x1d.google.longrunning.Operation\"s\x82\xd3\xe4\x93\x02>\"9/v3/{name=projects/*/locations/*/agents/*/flows/*}:export:\x01*\xca\x41,\n\x12\x45xportFlowResponse\x12\x16google.protobuf.Struct\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\xaf\x01\n!com.google.cloud.dialogflow.cx.v3B\tFlowProtoP\x01Z1cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1dGoogle.Cloud.Dialogflow.Cx.V3\xea\x02!Google::Cloud::Dialogflow::CX::V3b\x06proto3"
|
21
22
|
|
22
23
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
23
24
|
|
@@ -68,6 +69,7 @@ module Google
|
|
68
69
|
FlowValidationResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.FlowValidationResult").msgclass
|
69
70
|
ImportFlowRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.ImportFlowRequest").msgclass
|
70
71
|
ImportFlowRequest::ImportOption = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.ImportFlowRequest.ImportOption").enummodule
|
72
|
+
FlowImportStrategy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.FlowImportStrategy").msgclass
|
71
73
|
ImportFlowResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.ImportFlowResponse").msgclass
|
72
74
|
ExportFlowRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.ExportFlowRequest").msgclass
|
73
75
|
ExportFlowResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.ExportFlowResponse").msgclass
|
@@ -1012,7 +1012,7 @@ module Google
|
|
1012
1012
|
# @param options [::Gapic::CallOptions, ::Hash]
|
1013
1013
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1014
1014
|
#
|
1015
|
-
# @overload import_flow(parent: nil, flow_uri: nil, flow_content: nil, import_option: nil)
|
1015
|
+
# @overload import_flow(parent: nil, flow_uri: nil, flow_content: nil, import_option: nil, flow_import_strategy: nil)
|
1016
1016
|
# Pass arguments to `import_flow` via keyword arguments. Note that at
|
1017
1017
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1018
1018
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -1034,6 +1034,9 @@ module Google
|
|
1034
1034
|
# Uncompressed raw byte content for flow.
|
1035
1035
|
# @param import_option [::Google::Cloud::Dialogflow::CX::V3::ImportFlowRequest::ImportOption]
|
1036
1036
|
# Flow import mode. If not specified, `KEEP` is assumed.
|
1037
|
+
# @param flow_import_strategy [::Google::Cloud::Dialogflow::CX::V3::FlowImportStrategy, ::Hash]
|
1038
|
+
# Optional. Specifies the import strategy used when resolving resource
|
1039
|
+
# conflicts.
|
1037
1040
|
#
|
1038
1041
|
# @yield [response, operation] Access the result along with the RPC operation
|
1039
1042
|
# @yieldparam response [::Gapic::Operation]
|
@@ -133,24 +133,50 @@ module Google
|
|
133
133
|
##
|
134
134
|
# Create a fully-qualified TransitionRouteGroup resource string.
|
135
135
|
#
|
136
|
-
#
|
136
|
+
# @overload transition_route_group_path(project:, location:, agent:, flow:, transition_route_group:)
|
137
|
+
# The resource will be in the following format:
|
137
138
|
#
|
138
|
-
#
|
139
|
+
# `projects/{project}/locations/{location}/agents/{agent}/flows/{flow}/transitionRouteGroups/{transition_route_group}`
|
139
140
|
#
|
140
|
-
#
|
141
|
-
#
|
142
|
-
#
|
143
|
-
#
|
144
|
-
#
|
141
|
+
# @param project [String]
|
142
|
+
# @param location [String]
|
143
|
+
# @param agent [String]
|
144
|
+
# @param flow [String]
|
145
|
+
# @param transition_route_group [String]
|
146
|
+
#
|
147
|
+
# @overload transition_route_group_path(project:, location:, agent:, transition_route_group:)
|
148
|
+
# The resource will be in the following format:
|
149
|
+
#
|
150
|
+
# `projects/{project}/locations/{location}/agents/{agent}/transitionRouteGroups/{transition_route_group}`
|
151
|
+
#
|
152
|
+
# @param project [String]
|
153
|
+
# @param location [String]
|
154
|
+
# @param agent [String]
|
155
|
+
# @param transition_route_group [String]
|
145
156
|
#
|
146
157
|
# @return [::String]
|
147
|
-
def transition_route_group_path
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
158
|
+
def transition_route_group_path **args
|
159
|
+
resources = {
|
160
|
+
"agent:flow:location:project:transition_route_group" => (proc do |project:, location:, agent:, flow:, transition_route_group:|
|
161
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
162
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
163
|
+
raise ::ArgumentError, "agent cannot contain /" if agent.to_s.include? "/"
|
164
|
+
raise ::ArgumentError, "flow cannot contain /" if flow.to_s.include? "/"
|
165
|
+
|
166
|
+
"projects/#{project}/locations/#{location}/agents/#{agent}/flows/#{flow}/transitionRouteGroups/#{transition_route_group}"
|
167
|
+
end),
|
168
|
+
"agent:location:project:transition_route_group" => (proc do |project:, location:, agent:, transition_route_group:|
|
169
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
170
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
171
|
+
raise ::ArgumentError, "agent cannot contain /" if agent.to_s.include? "/"
|
172
|
+
|
173
|
+
"projects/#{project}/locations/#{location}/agents/#{agent}/transitionRouteGroups/#{transition_route_group}"
|
174
|
+
end)
|
175
|
+
}
|
176
|
+
|
177
|
+
resource = resources[args.keys.sort.join(":")]
|
178
|
+
raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
|
179
|
+
resource.call(**args)
|
154
180
|
end
|
155
181
|
|
156
182
|
##
|
@@ -809,7 +809,7 @@ module Google
|
|
809
809
|
# @param options [::Gapic::CallOptions, ::Hash]
|
810
810
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
811
811
|
#
|
812
|
-
# @overload import_flow(parent: nil, flow_uri: nil, flow_content: nil, import_option: nil)
|
812
|
+
# @overload import_flow(parent: nil, flow_uri: nil, flow_content: nil, import_option: nil, flow_import_strategy: nil)
|
813
813
|
# Pass arguments to `import_flow` via keyword arguments. Note that at
|
814
814
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
815
815
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -831,6 +831,9 @@ module Google
|
|
831
831
|
# Uncompressed raw byte content for flow.
|
832
832
|
# @param import_option [::Google::Cloud::Dialogflow::CX::V3::ImportFlowRequest::ImportOption]
|
833
833
|
# Flow import mode. If not specified, `KEEP` is assumed.
|
834
|
+
# @param flow_import_strategy [::Google::Cloud::Dialogflow::CX::V3::FlowImportStrategy, ::Hash]
|
835
|
+
# Optional. Specifies the import strategy used when resolving resource
|
836
|
+
# conflicts.
|
834
837
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
835
838
|
# @yieldparam result [::Gapic::Operation]
|
836
839
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -0,0 +1,44 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: google/cloud/dialogflow/cx/v3/import_strategy.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
|
8
|
+
descriptor_data = "\n3google/cloud/dialogflow/cx/v3/import_strategy.proto\x12\x1dgoogle.cloud.dialogflow.cx.v3*\xc4\x01\n\x0eImportStrategy\x12\x1f\n\x1bIMPORT_STRATEGY_UNSPECIFIED\x10\x00\x12\x1e\n\x1aIMPORT_STRATEGY_CREATE_NEW\x10\x01\x12\x1b\n\x17IMPORT_STRATEGY_REPLACE\x10\x02\x12\x18\n\x14IMPORT_STRATEGY_KEEP\x10\x03\x12\x19\n\x15IMPORT_STRATEGY_MERGE\x10\x04\x12\x1f\n\x1bIMPORT_STRATEGY_THROW_ERROR\x10\x05\x42\x95\x01\n!com.google.cloud.dialogflow.cx.v3B\x13ImportStrategyProtoP\x01Z1cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1dGoogle.Cloud.Dialogflow.Cx.V3b\x06proto3"
|
9
|
+
|
10
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
11
|
+
|
12
|
+
begin
|
13
|
+
pool.add_serialized_file(descriptor_data)
|
14
|
+
rescue TypeError => e
|
15
|
+
# Compatibility code: will be removed in the next major version.
|
16
|
+
require 'google/protobuf/descriptor_pb'
|
17
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
18
|
+
parsed.clear_dependency
|
19
|
+
serialized = parsed.class.encode(parsed)
|
20
|
+
file = pool.add_serialized_file(serialized)
|
21
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
22
|
+
imports = [
|
23
|
+
]
|
24
|
+
imports.each do |type_name, expected_filename|
|
25
|
+
import_file = pool.lookup(type_name).file_descriptor
|
26
|
+
if import_file.name != expected_filename
|
27
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
28
|
+
end
|
29
|
+
end
|
30
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
31
|
+
warn "This will become an error in the next major version."
|
32
|
+
end
|
33
|
+
|
34
|
+
module Google
|
35
|
+
module Cloud
|
36
|
+
module Dialogflow
|
37
|
+
module Cx
|
38
|
+
module V3
|
39
|
+
ImportStrategy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.ImportStrategy").enummodule
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
@@ -114,24 +114,50 @@ module Google
|
|
114
114
|
##
|
115
115
|
# Create a fully-qualified TransitionRouteGroup resource string.
|
116
116
|
#
|
117
|
-
#
|
117
|
+
# @overload transition_route_group_path(project:, location:, agent:, flow:, transition_route_group:)
|
118
|
+
# The resource will be in the following format:
|
118
119
|
#
|
119
|
-
#
|
120
|
+
# `projects/{project}/locations/{location}/agents/{agent}/flows/{flow}/transitionRouteGroups/{transition_route_group}`
|
120
121
|
#
|
121
|
-
#
|
122
|
-
#
|
123
|
-
#
|
124
|
-
#
|
125
|
-
#
|
122
|
+
# @param project [String]
|
123
|
+
# @param location [String]
|
124
|
+
# @param agent [String]
|
125
|
+
# @param flow [String]
|
126
|
+
# @param transition_route_group [String]
|
127
|
+
#
|
128
|
+
# @overload transition_route_group_path(project:, location:, agent:, transition_route_group:)
|
129
|
+
# The resource will be in the following format:
|
130
|
+
#
|
131
|
+
# `projects/{project}/locations/{location}/agents/{agent}/transitionRouteGroups/{transition_route_group}`
|
132
|
+
#
|
133
|
+
# @param project [String]
|
134
|
+
# @param location [String]
|
135
|
+
# @param agent [String]
|
136
|
+
# @param transition_route_group [String]
|
126
137
|
#
|
127
138
|
# @return [::String]
|
128
|
-
def transition_route_group_path
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
139
|
+
def transition_route_group_path **args
|
140
|
+
resources = {
|
141
|
+
"agent:flow:location:project:transition_route_group" => (proc do |project:, location:, agent:, flow:, transition_route_group:|
|
142
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
143
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
144
|
+
raise ::ArgumentError, "agent cannot contain /" if agent.to_s.include? "/"
|
145
|
+
raise ::ArgumentError, "flow cannot contain /" if flow.to_s.include? "/"
|
146
|
+
|
147
|
+
"projects/#{project}/locations/#{location}/agents/#{agent}/flows/#{flow}/transitionRouteGroups/#{transition_route_group}"
|
148
|
+
end),
|
149
|
+
"agent:location:project:transition_route_group" => (proc do |project:, location:, agent:, transition_route_group:|
|
150
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
151
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
152
|
+
raise ::ArgumentError, "agent cannot contain /" if agent.to_s.include? "/"
|
153
|
+
|
154
|
+
"projects/#{project}/locations/#{location}/agents/#{agent}/transitionRouteGroups/#{transition_route_group}"
|
155
|
+
end)
|
156
|
+
}
|
157
|
+
|
158
|
+
resource = resources[args.keys.sort.join(":")]
|
159
|
+
raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
|
160
|
+
resource.call(**args)
|
135
161
|
end
|
136
162
|
|
137
163
|
##
|
@@ -8,7 +8,7 @@ require 'google/api/field_behavior_pb'
|
|
8
8
|
require 'google/protobuf/struct_pb'
|
9
9
|
|
10
10
|
|
11
|
-
descriptor_data = "\n4google/cloud/dialogflow/cx/v3/response_message.proto\x12\x1dgoogle.cloud.dialogflow.cx.v3\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1cgoogle/protobuf/struct.proto\"\
|
11
|
+
descriptor_data = "\n4google/cloud/dialogflow/cx/v3/response_message.proto\x12\x1dgoogle.cloud.dialogflow.cx.v3\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xfb\x0c\n\x0fResponseMessage\x12\x43\n\x04text\x18\x01 \x01(\x0b\x32\x33.google.cloud.dialogflow.cx.v3.ResponseMessage.TextH\x00\x12*\n\x07payload\x18\x02 \x01(\x0b\x32\x17.google.protobuf.StructH\x00\x12\x62\n\x14\x63onversation_success\x18\t \x01(\x0b\x32\x42.google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccessH\x00\x12[\n\x11output_audio_text\x18\x08 \x01(\x0b\x32>.google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioTextH\x00\x12]\n\x12live_agent_handoff\x18\n \x01(\x0b\x32?.google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoffH\x00\x12]\n\x0f\x65nd_interaction\x18\x0b \x01(\x0b\x32=.google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteractionB\x03\xe0\x41\x03H\x00\x12N\n\nplay_audio\x18\x0c \x01(\x0b\x32\x38.google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudioH\x00\x12U\n\x0bmixed_audio\x18\r \x01(\x0b\x32\x39.google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudioB\x03\xe0\x41\x03H\x00\x12g\n\x17telephony_transfer_call\x18\x12 \x01(\x0b\x32\x44.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCallH\x00\x12R\n\rresponse_type\x18\x04 \x01(\x0e\x32;.google.cloud.dialogflow.cx.v3.ResponseMessage.ResponseType\x12\x0f\n\x07\x63hannel\x18\x13 \x01(\t\x1a\x43\n\x04Text\x12\x11\n\x04text\x18\x01 \x03(\tB\x03\xe0\x41\x02\x12(\n\x1b\x61llow_playback_interruption\x18\x02 \x01(\x08\x42\x03\xe0\x41\x03\x1a=\n\x10LiveAgentHandoff\x12)\n\x08metadata\x18\x01 \x01(\x0b\x32\x17.google.protobuf.Struct\x1a@\n\x13\x43onversationSuccess\x12)\n\x08metadata\x18\x01 \x01(\x0b\x32\x17.google.protobuf.Struct\x1a\x65\n\x0fOutputAudioText\x12\x0e\n\x04text\x18\x01 \x01(\tH\x00\x12\x0e\n\x04ssml\x18\x02 \x01(\tH\x00\x12(\n\x1b\x61llow_playback_interruption\x18\x03 \x01(\x08\x42\x03\xe0\x41\x03\x42\x08\n\x06source\x1a\x10\n\x0e\x45ndInteraction\x1aM\n\tPlayAudio\x12\x16\n\taudio_uri\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12(\n\x1b\x61llow_playback_interruption\x18\x02 \x01(\x08\x42\x03\xe0\x41\x03\x1a\xc1\x01\n\nMixedAudio\x12S\n\x08segments\x18\x01 \x03(\x0b\x32\x41.google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment\x1a^\n\x07Segment\x12\x0f\n\x05\x61udio\x18\x01 \x01(\x0cH\x00\x12\r\n\x03uri\x18\x02 \x01(\tH\x00\x12(\n\x1b\x61llow_playback_interruption\x18\x03 \x01(\x08\x42\x03\xe0\x41\x03\x42\t\n\x07\x63ontent\x1a;\n\x15TelephonyTransferCall\x12\x16\n\x0cphone_number\x18\x01 \x01(\tH\x00\x42\n\n\x08\x65ndpoint\"i\n\x0cResponseType\x12\x1d\n\x19RESPONSE_TYPE_UNSPECIFIED\x10\x00\x12\x10\n\x0c\x45NTRY_PROMPT\x10\x01\x12\x14\n\x10PARAMETER_PROMPT\x10\x02\x12\x12\n\x0eHANDLER_PROMPT\x10\x03\x42\t\n\x07messageB\xba\x01\n!com.google.cloud.dialogflow.cx.v3B\x14ResponseMessageProtoP\x01Z1cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1dGoogle.Cloud.Dialogflow.Cx.V3\xea\x02!Google::Cloud::Dialogflow::CX::V3b\x06proto3"
|
12
12
|
|
13
13
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
14
14
|
|
@@ -50,6 +50,7 @@ module Google
|
|
50
50
|
ResponseMessage::MixedAudio = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio").msgclass
|
51
51
|
ResponseMessage::MixedAudio::Segment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment").msgclass
|
52
52
|
ResponseMessage::TelephonyTransferCall = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall").msgclass
|
53
|
+
ResponseMessage::ResponseType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.ResponseMessage.ResponseType").enummodule
|
53
54
|
end
|
54
55
|
end
|
55
56
|
end
|
@@ -94,7 +94,8 @@ module Google
|
|
94
94
|
# - `response`:
|
95
95
|
# [ExportTestCasesResponse][google.cloud.dialogflow.cx.v3.ExportTestCasesResponse]
|
96
96
|
rpc :ExportTestCases, ::Google::Cloud::Dialogflow::CX::V3::ExportTestCasesRequest, ::Google::Longrunning::Operation
|
97
|
-
# Fetches
|
97
|
+
# Fetches the list of run results for the given test case. A maximum of 100
|
98
|
+
# results are kept for each test case.
|
98
99
|
rpc :ListTestCaseResults, ::Google::Cloud::Dialogflow::CX::V3::ListTestCaseResultsRequest, ::Google::Cloud::Dialogflow::CX::V3::ListTestCaseResultsResponse
|
99
100
|
# Gets a test case result.
|
100
101
|
rpc :GetTestCaseResult, ::Google::Cloud::Dialogflow::CX::V3::GetTestCaseResultRequest, ::Google::Cloud::Dialogflow::CX::V3::TestCaseResult
|
@@ -1183,7 +1183,8 @@ module Google
|
|
1183
1183
|
end
|
1184
1184
|
|
1185
1185
|
##
|
1186
|
-
# Fetches
|
1186
|
+
# Fetches the list of run results for the given test case. A maximum of 100
|
1187
|
+
# results are kept for each test case.
|
1187
1188
|
#
|
1188
1189
|
# @overload list_test_case_results(request, options = nil)
|
1189
1190
|
# Pass arguments to `list_test_case_results` via a request object, either of type
|
@@ -198,24 +198,50 @@ module Google
|
|
198
198
|
##
|
199
199
|
# Create a fully-qualified TransitionRouteGroup resource string.
|
200
200
|
#
|
201
|
-
#
|
201
|
+
# @overload transition_route_group_path(project:, location:, agent:, flow:, transition_route_group:)
|
202
|
+
# The resource will be in the following format:
|
202
203
|
#
|
203
|
-
#
|
204
|
+
# `projects/{project}/locations/{location}/agents/{agent}/flows/{flow}/transitionRouteGroups/{transition_route_group}`
|
204
205
|
#
|
205
|
-
#
|
206
|
-
#
|
207
|
-
#
|
208
|
-
#
|
209
|
-
#
|
206
|
+
# @param project [String]
|
207
|
+
# @param location [String]
|
208
|
+
# @param agent [String]
|
209
|
+
# @param flow [String]
|
210
|
+
# @param transition_route_group [String]
|
211
|
+
#
|
212
|
+
# @overload transition_route_group_path(project:, location:, agent:, transition_route_group:)
|
213
|
+
# The resource will be in the following format:
|
214
|
+
#
|
215
|
+
# `projects/{project}/locations/{location}/agents/{agent}/transitionRouteGroups/{transition_route_group}`
|
216
|
+
#
|
217
|
+
# @param project [String]
|
218
|
+
# @param location [String]
|
219
|
+
# @param agent [String]
|
220
|
+
# @param transition_route_group [String]
|
210
221
|
#
|
211
222
|
# @return [::String]
|
212
|
-
def transition_route_group_path
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
223
|
+
def transition_route_group_path **args
|
224
|
+
resources = {
|
225
|
+
"agent:flow:location:project:transition_route_group" => (proc do |project:, location:, agent:, flow:, transition_route_group:|
|
226
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
227
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
228
|
+
raise ::ArgumentError, "agent cannot contain /" if agent.to_s.include? "/"
|
229
|
+
raise ::ArgumentError, "flow cannot contain /" if flow.to_s.include? "/"
|
230
|
+
|
231
|
+
"projects/#{project}/locations/#{location}/agents/#{agent}/flows/#{flow}/transitionRouteGroups/#{transition_route_group}"
|
232
|
+
end),
|
233
|
+
"agent:location:project:transition_route_group" => (proc do |project:, location:, agent:, transition_route_group:|
|
234
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
235
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
236
|
+
raise ::ArgumentError, "agent cannot contain /" if agent.to_s.include? "/"
|
237
|
+
|
238
|
+
"projects/#{project}/locations/#{location}/agents/#{agent}/transitionRouteGroups/#{transition_route_group}"
|
239
|
+
end)
|
240
|
+
}
|
217
241
|
|
218
|
-
"
|
242
|
+
resource = resources[args.keys.sort.join(":")]
|
243
|
+
raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
|
244
|
+
resource.call(**args)
|
219
245
|
end
|
220
246
|
|
221
247
|
##
|
@@ -913,7 +913,8 @@ module Google
|
|
913
913
|
end
|
914
914
|
|
915
915
|
##
|
916
|
-
# Fetches
|
916
|
+
# Fetches the list of run results for the given test case. A maximum of 100
|
917
|
+
# results are kept for each test case.
|
917
918
|
#
|
918
919
|
# @overload list_test_case_results(request, options = nil)
|
919
920
|
# Pass arguments to `list_test_case_results` via a request object, either of type
|
@@ -13,7 +13,7 @@ require 'google/protobuf/empty_pb'
|
|
13
13
|
require 'google/protobuf/field_mask_pb'
|
14
14
|
|
15
15
|
|
16
|
-
descriptor_data = "\n:google/cloud/dialogflow/cx/v3/transition_route_group.proto\x12\x1dgoogle.cloud.dialogflow.cx.v3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a(google/cloud/dialogflow/cx/v3/page.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\
|
16
|
+
descriptor_data = "\n:google/cloud/dialogflow/cx/v3/transition_route_group.proto\x12\x1dgoogle.cloud.dialogflow.cx.v3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a(google/cloud/dialogflow/cx/v3/page.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\xc9\x03\n\x14TransitionRouteGroup\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12I\n\x11transition_routes\x18\x05 \x03(\x0b\x32..google.cloud.dialogflow.cx.v3.TransitionRoute:\xbc\x02\xea\x41\xb8\x02\n.dialogflow.googleapis.com/TransitionRouteGroup\x12rprojects/{project}/locations/{location}/agents/{agent}/flows/{flow}/transitionRouteGroups/{transition_route_group}\x12\x65projects/{project}/locations/{location}/agents/{agent}/transitionRouteGroups/{transition_route_group}*\x15transitionRouteGroups2\x14transitionRouteGroup\"\xa8\x01\n ListTransitionRouteGroupsRequest\x12\x46\n\x06parent\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\x12.dialogflow.googleapis.com/TransitionRouteGroup\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x15\n\rlanguage_code\x18\x04 \x01(\t\"\x92\x01\n!ListTransitionRouteGroupsResponse\x12T\n\x17transition_route_groups\x18\x01 \x03(\x0b\x32\x33.google.cloud.dialogflow.cx.v3.TransitionRouteGroup\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"}\n\x1eGetTransitionRouteGroupRequest\x12\x44\n\x04name\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\n.dialogflow.googleapis.com/TransitionRouteGroup\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\"\xdc\x01\n!CreateTransitionRouteGroupRequest\x12\x46\n\x06parent\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\x12.dialogflow.googleapis.com/TransitionRouteGroup\x12X\n\x16transition_route_group\x18\x02 \x01(\x0b\x32\x33.google.cloud.dialogflow.cx.v3.TransitionRouteGroupB\x03\xe0\x41\x02\x12\x15\n\rlanguage_code\x18\x03 \x01(\t\"\xc5\x01\n!UpdateTransitionRouteGroupRequest\x12X\n\x16transition_route_group\x18\x01 \x01(\x0b\x32\x33.google.cloud.dialogflow.cx.v3.TransitionRouteGroupB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x15\n\rlanguage_code\x18\x03 \x01(\t\"x\n!DeleteTransitionRouteGroupRequest\x12\x44\n\x04name\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\n.dialogflow.googleapis.com/TransitionRouteGroup\x12\r\n\x05\x66orce\x18\x02 \x01(\x08\x32\xdd\x0e\n\x15TransitionRouteGroups\x12\xc3\x02\n\x19ListTransitionRouteGroups\x12?.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest\x1a@.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse\"\xa2\x01\x82\xd3\xe4\x93\x02\x92\x01\x12J/v3/{parent=projects/*/locations/*/agents/*/flows/*}/transitionRouteGroupsZD\x12\x42/v3/{parent=projects/*/locations/*/agents/*}/transitionRouteGroups\xda\x41\x06parent\x12\xb0\x02\n\x17GetTransitionRouteGroup\x12=.google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest\x1a\x33.google.cloud.dialogflow.cx.v3.TransitionRouteGroup\"\xa0\x01\x82\xd3\xe4\x93\x02\x92\x01\x12J/v3/{name=projects/*/locations/*/agents/*/flows/*/transitionRouteGroups/*}ZD\x12\x42/v3/{name=projects/*/locations/*/agents/*/transitionRouteGroups/*}\xda\x41\x04name\x12\xff\x02\n\x1a\x43reateTransitionRouteGroup\x12@.google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest\x1a\x33.google.cloud.dialogflow.cx.v3.TransitionRouteGroup\"\xe9\x01\x82\xd3\xe4\x93\x02\xc2\x01\"J/v3/{parent=projects/*/locations/*/agents/*/flows/*}/transitionRouteGroups:\x16transition_route_groupZ\\\"B/v3/{parent=projects/*/locations/*/agents/*}/transitionRouteGroups:\x16transition_route_group\xda\x41\x1dparent,transition_route_group\x12\xb2\x03\n\x1aUpdateTransitionRouteGroup\x12@.google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest\x1a\x33.google.cloud.dialogflow.cx.v3.TransitionRouteGroup\"\x9c\x02\x82\xd3\xe4\x93\x02\xf0\x01\x32\x61/v3/{transition_route_group.name=projects/*/locations/*/agents/*/flows/*/transitionRouteGroups/*}:\x16transition_route_groupZs2Y/v3/{transition_route_group.name=projects/*/locations/*/agents/*/transitionRouteGroups/*}:\x16transition_route_group\xda\x41\"transition_route_group,update_mask\x12\x99\x02\n\x1a\x44\x65leteTransitionRouteGroup\x12@.google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest\x1a\x16.google.protobuf.Empty\"\xa0\x01\x82\xd3\xe4\x93\x02\x92\x01*J/v3/{name=projects/*/locations/*/agents/*/flows/*/transitionRouteGroups/*}ZD*B/v3/{name=projects/*/locations/*/agents/*/transitionRouteGroups/*}\xda\x41\x04name\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\xbf\x01\n!com.google.cloud.dialogflow.cx.v3B\x19TransitionRouteGroupProtoP\x01Z1cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1dGoogle.Cloud.Dialogflow.Cx.V3\xea\x02!Google::Cloud::Dialogflow::CX::V3b\x06proto3"
|
17
17
|
|
18
18
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
19
19
|
|