google-cloud-dialogflow-cx-v3 0.20.0 → 0.22.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (85) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/dialogflow/cx/v3/advanced_settings_pb.rb +2 -1
  3. data/lib/google/cloud/dialogflow/cx/v3/agent_pb.rb +6 -1
  4. data/lib/google/cloud/dialogflow/cx/v3/agent_services_pb.rb +4 -0
  5. data/lib/google/cloud/dialogflow/cx/v3/agents/client.rb +200 -1
  6. data/lib/google/cloud/dialogflow/cx/v3/agents/operations.rb +10 -1
  7. data/lib/google/cloud/dialogflow/cx/v3/agents/paths.rb +19 -0
  8. data/lib/google/cloud/dialogflow/cx/v3/agents/rest/client.rb +338 -0
  9. data/lib/google/cloud/dialogflow/cx/v3/agents/rest/operations.rb +75 -0
  10. data/lib/google/cloud/dialogflow/cx/v3/agents/rest/service_stub.rb +119 -0
  11. data/lib/google/cloud/dialogflow/cx/v3/changelogs/client.rb +10 -1
  12. data/lib/google/cloud/dialogflow/cx/v3/changelogs/rest/client.rb +36 -0
  13. data/lib/google/cloud/dialogflow/cx/v3/data_store_connection_pb.rb +45 -0
  14. data/lib/google/cloud/dialogflow/cx/v3/deployments/client.rb +10 -1
  15. data/lib/google/cloud/dialogflow/cx/v3/deployments/rest/client.rb +36 -0
  16. data/lib/google/cloud/dialogflow/cx/v3/entity_types/client.rb +10 -1
  17. data/lib/google/cloud/dialogflow/cx/v3/entity_types/rest/client.rb +84 -0
  18. data/lib/google/cloud/dialogflow/cx/v3/environments/client.rb +10 -1
  19. data/lib/google/cloud/dialogflow/cx/v3/environments/operations.rb +10 -1
  20. data/lib/google/cloud/dialogflow/cx/v3/environments/rest/client.rb +184 -0
  21. data/lib/google/cloud/dialogflow/cx/v3/environments/rest/operations.rb +75 -0
  22. data/lib/google/cloud/dialogflow/cx/v3/experiments/client.rb +10 -1
  23. data/lib/google/cloud/dialogflow/cx/v3/experiments/rest/client.rb +116 -0
  24. data/lib/google/cloud/dialogflow/cx/v3/flow_pb.rb +3 -1
  25. data/lib/google/cloud/dialogflow/cx/v3/flows/client.rb +10 -1
  26. data/lib/google/cloud/dialogflow/cx/v3/flows/operations.rb +10 -1
  27. data/lib/google/cloud/dialogflow/cx/v3/flows/rest/client.rb +185 -0
  28. data/lib/google/cloud/dialogflow/cx/v3/flows/rest/operations.rb +75 -0
  29. data/lib/google/cloud/dialogflow/cx/v3/fulfillment_pb.rb +3 -1
  30. data/lib/google/cloud/dialogflow/cx/v3/generative_settings_pb.rb +51 -0
  31. data/lib/google/cloud/dialogflow/cx/v3/import_strategy_pb.rb +2 -2
  32. data/lib/google/cloud/dialogflow/cx/v3/inline_pb.rb +47 -0
  33. data/lib/google/cloud/dialogflow/cx/v3/intent_pb.rb +13 -1
  34. data/lib/google/cloud/dialogflow/cx/v3/intent_services_pb.rb +22 -0
  35. data/lib/google/cloud/dialogflow/cx/v3/intents/client.rb +278 -1
  36. data/lib/google/cloud/dialogflow/cx/v3/intents/operations.rb +781 -0
  37. data/lib/google/cloud/dialogflow/cx/v3/intents/rest/client.rb +338 -0
  38. data/lib/google/cloud/dialogflow/cx/v3/intents/rest/operations.rb +892 -0
  39. data/lib/google/cloud/dialogflow/cx/v3/intents/rest/service_stub.rb +120 -0
  40. data/lib/google/cloud/dialogflow/cx/v3/intents/rest.rb +1 -0
  41. data/lib/google/cloud/dialogflow/cx/v3/intents.rb +1 -0
  42. data/lib/google/cloud/dialogflow/cx/v3/page_pb.rb +6 -1
  43. data/lib/google/cloud/dialogflow/cx/v3/pages/client.rb +10 -1
  44. data/lib/google/cloud/dialogflow/cx/v3/pages/rest/client.rb +84 -0
  45. data/lib/google/cloud/dialogflow/cx/v3/response_message_pb.rb +2 -1
  46. data/lib/google/cloud/dialogflow/cx/v3/safety_settings_pb.rb +47 -0
  47. data/lib/google/cloud/dialogflow/cx/v3/security_settings_pb.rb +2 -1
  48. data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/client.rb +10 -1
  49. data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/rest/client.rb +84 -0
  50. data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/client.rb +10 -1
  51. data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/rest/client.rb +84 -0
  52. data/lib/google/cloud/dialogflow/cx/v3/session_pb.rb +3 -1
  53. data/lib/google/cloud/dialogflow/cx/v3/sessions/client.rb +10 -1
  54. data/lib/google/cloud/dialogflow/cx/v3/sessions/rest/client.rb +48 -0
  55. data/lib/google/cloud/dialogflow/cx/v3/test_cases/client.rb +10 -1
  56. data/lib/google/cloud/dialogflow/cx/v3/test_cases/operations.rb +10 -1
  57. data/lib/google/cloud/dialogflow/cx/v3/test_cases/rest/client.rb +228 -0
  58. data/lib/google/cloud/dialogflow/cx/v3/test_cases/rest/operations.rb +75 -0
  59. data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/client.rb +10 -1
  60. data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/rest/client.rb +84 -0
  61. data/lib/google/cloud/dialogflow/cx/v3/validation_message_pb.rb +1 -1
  62. data/lib/google/cloud/dialogflow/cx/v3/version.rb +1 -1
  63. data/lib/google/cloud/dialogflow/cx/v3/versions/client.rb +10 -1
  64. data/lib/google/cloud/dialogflow/cx/v3/versions/operations.rb +10 -1
  65. data/lib/google/cloud/dialogflow/cx/v3/versions/rest/client.rb +130 -0
  66. data/lib/google/cloud/dialogflow/cx/v3/versions/rest/operations.rb +75 -0
  67. data/lib/google/cloud/dialogflow/cx/v3/webhooks/client.rb +10 -1
  68. data/lib/google/cloud/dialogflow/cx/v3/webhooks/rest/client.rb +84 -0
  69. data/proto_docs/google/api/field_behavior.rb +14 -0
  70. data/proto_docs/google/cloud/dialogflow/cx/v3/advanced_settings.rb +28 -0
  71. data/proto_docs/google/cloud/dialogflow/cx/v3/agent.rb +44 -0
  72. data/proto_docs/google/cloud/dialogflow/cx/v3/data_store_connection.rb +61 -0
  73. data/proto_docs/google/cloud/dialogflow/cx/v3/flow.rb +7 -0
  74. data/proto_docs/google/cloud/dialogflow/cx/v3/fulfillment.rb +11 -0
  75. data/proto_docs/google/cloud/dialogflow/cx/v3/generative_settings.rb +109 -0
  76. data/proto_docs/google/cloud/dialogflow/cx/v3/import_strategy.rb +1 -1
  77. data/proto_docs/google/cloud/dialogflow/cx/v3/inline.rb +49 -0
  78. data/proto_docs/google/cloud/dialogflow/cx/v3/intent.rb +175 -0
  79. data/proto_docs/google/cloud/dialogflow/cx/v3/page.rb +52 -2
  80. data/proto_docs/google/cloud/dialogflow/cx/v3/response_message.rb +14 -0
  81. data/proto_docs/google/cloud/dialogflow/cx/v3/safety_settings.rb +49 -0
  82. data/proto_docs/google/cloud/dialogflow/cx/v3/security_settings.rb +17 -2
  83. data/proto_docs/google/cloud/dialogflow/cx/v3/session.rb +11 -1
  84. data/proto_docs/google/cloud/dialogflow/cx/v3/validation_message.rb +3 -0
  85. metadata +15 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 18c09830e52dcea6a74a30119512563e9c151f205e9f7b54199e7e120576a7ac
4
- data.tar.gz: 753ff204b9f290e76fac6ecc5f93ca327614aab0219652525176e743813406df
3
+ metadata.gz: c951273cade2586137698ceb5b16c9726e4f6ab753a970cfc59df54d0386a96a
4
+ data.tar.gz: bb3d04cf93be3de7c5b857daa218ad5db237b0e5ffa9b806553ab13f10b24a14
5
5
  SHA512:
6
- metadata.gz: c5d9efdc70b01227098d3a003655e823185b2e34c80031990dccab876d9d548decbcb21de593febc915dd406f8ec24591481428d1e2dbca01385c93429d6f01a
7
- data.tar.gz: fbd7a608d5165340b45516c125acf0ef1148f5d712fd7cc96c18a778dd8a176af2df0ea1ee866c7497745bd197a54e8565530af6604ef0b8d154c80b50778f2c
6
+ metadata.gz: b1c879933465103ecf6e8fecd7aeda3fd138cba23082cde76a24163304895232701a30bb07c8446c8bf4143febf3a5706ad68568ef948a37b55ce6b21fcf8c69
7
+ data.tar.gz: c355d4c0c881ef73b0b8e32b90918e7cad8f14502391550342153b594c7f5945f98daf1c68a493c1bc79104550064eb5d0f084d24a3944dd7fc3d8ef4fdd0f95
@@ -8,7 +8,7 @@ require 'google/api/field_behavior_pb'
8
8
  require 'google/cloud/dialogflow/cx/v3/gcs_pb'
9
9
 
10
10
 
11
- descriptor_data = "\n5google/cloud/dialogflow/cx/v3/advanced_settings.proto\x12\x1dgoogle.cloud.dialogflow.cx.v3\x1a\x1fgoogle/api/field_behavior.proto\x1a\'google/cloud/dialogflow/cx/v3/gcs.proto\"\x9d\x02\n\x10\x41\x64vancedSettings\x12S\n\x1c\x61udio_export_gcs_destination\x18\x02 \x01(\x0b\x32-.google.cloud.dialogflow.cx.v3.GcsDestination\x12Y\n\x10logging_settings\x18\x06 \x01(\x0b\x32?.google.cloud.dialogflow.cx.v3.AdvancedSettings.LoggingSettings\x1aY\n\x0fLoggingSettings\x12\"\n\x1a\x65nable_stackdriver_logging\x18\x02 \x01(\x08\x12\"\n\x1a\x65nable_interaction_logging\x18\x03 \x01(\x08\x42\xbb\x01\n!com.google.cloud.dialogflow.cx.v3B\x15\x41\x64vancedSettingsProtoP\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"
11
+ descriptor_data = "\n5google/cloud/dialogflow/cx/v3/advanced_settings.proto\x12\x1dgoogle.cloud.dialogflow.cx.v3\x1a\x1fgoogle/api/field_behavior.proto\x1a\'google/cloud/dialogflow/cx/v3/gcs.proto\"\xbd\x03\n\x10\x41\x64vancedSettings\x12S\n\x1c\x61udio_export_gcs_destination\x18\x02 \x01(\x0b\x32-.google.cloud.dialogflow.cx.v3.GcsDestination\x12S\n\rdtmf_settings\x18\x05 \x01(\x0b\x32<.google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings\x12Y\n\x10logging_settings\x18\x06 \x01(\x0b\x32?.google.cloud.dialogflow.cx.v3.AdvancedSettings.LoggingSettings\x1aI\n\x0c\x44tmfSettings\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12\x12\n\nmax_digits\x18\x02 \x01(\x05\x12\x14\n\x0c\x66inish_digit\x18\x03 \x01(\t\x1aY\n\x0fLoggingSettings\x12\"\n\x1a\x65nable_stackdriver_logging\x18\x02 \x01(\x08\x12\"\n\x1a\x65nable_interaction_logging\x18\x03 \x01(\x08\x42\xbb\x01\n!com.google.cloud.dialogflow.cx.v3B\x15\x41\x64vancedSettingsProtoP\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
 
@@ -41,6 +41,7 @@ module Google
41
41
  module CX
42
42
  module V3
43
43
  AdvancedSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.AdvancedSettings").msgclass
44
+ AdvancedSettings::DtmfSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.AdvancedSettings.DtmfSettings").msgclass
44
45
  AdvancedSettings::LoggingSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.AdvancedSettings.LoggingSettings").msgclass
45
46
  end
46
47
  end
@@ -11,13 +11,14 @@ require 'google/api/resource_pb'
11
11
  require 'google/cloud/dialogflow/cx/v3/advanced_settings_pb'
12
12
  require 'google/cloud/dialogflow/cx/v3/audio_config_pb'
13
13
  require 'google/cloud/dialogflow/cx/v3/flow_pb'
14
+ require 'google/cloud/dialogflow/cx/v3/generative_settings_pb'
14
15
  require 'google/longrunning/operations_pb'
15
16
  require 'google/protobuf/empty_pb'
16
17
  require 'google/protobuf/field_mask_pb'
17
18
  require 'google/protobuf/struct_pb'
18
19
 
19
20
 
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
+ 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\x37google/cloud/dialogflow/cx/v3/generative_settings.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\"\x91\n\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\x12\x61\n\x18gen_app_builder_settings\x18! \x01(\x0b\x32:.google.cloud.dialogflow.cx.v3.Agent.GenAppBuilderSettingsH\x00\x88\x01\x01\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\x1a,\n\x15GenAppBuilderSettings\x12\x13\n\x06\x65ngine\x18\x01 \x01(\tB\x03\xe0\x41\x02:\\\xea\x41Y\n\x1f\x64ialogflow.googleapis.com/Agent\x12\x36projects/{project}/locations/{location}/agents/{agent}B\x1b\n\x19_gen_app_builder_settings\"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}/validationResult\"\x83\x01\n\x1cGetGenerativeSettingsRequest\x12G\n\x04name\x18\x01 \x01(\tB9\xe0\x41\x02\xfa\x41\x33\n1dialogflow.googleapis.com/AgentGenerativeSettings\x12\x1a\n\rlanguage_code\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\xac\x01\n\x1fUpdateGenerativeSettingsRequest\x12S\n\x13generative_settings\x18\x01 \x01(\x0b\x32\x31.google.cloud.dialogflow.cx.v3.GenerativeSettingsB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x32\xa2\x12\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\x12\xe3\x01\n\x15GetGenerativeSettings\x12;.google.cloud.dialogflow.cx.v3.GetGenerativeSettingsRequest\x1a\x31.google.cloud.dialogflow.cx.v3.GenerativeSettings\"Z\x82\xd3\xe4\x93\x02?\x12=/v3/{name=projects/*/locations/*/agents/*/generativeSettings}\xda\x41\x12name,language_code\x12\xa0\x02\n\x18UpdateGenerativeSettings\x12>.google.cloud.dialogflow.cx.v3.UpdateGenerativeSettingsRequest\x1a\x31.google.cloud.dialogflow.cx.v3.GenerativeSettings\"\x90\x01\x82\xd3\xe4\x93\x02h2Q/v3/{generative_settings.name=projects/*/locations/*/agents/*/generativeSettings}:\x13generative_settings\xda\x41\x1fgenerative_settings,update_mask\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
22
 
22
23
  pool = Google::Protobuf::DescriptorPool.generated_pool
23
24
 
@@ -36,6 +37,7 @@ rescue TypeError => e
36
37
  ["google.cloud.dialogflow.cx.v3.TextToSpeechSettings", "google/cloud/dialogflow/cx/v3/audio_config.proto"],
37
38
  ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
38
39
  ["google.cloud.dialogflow.cx.v3.FlowValidationResult", "google/cloud/dialogflow/cx/v3/flow.proto"],
40
+ ["google.cloud.dialogflow.cx.v3.GenerativeSettings", "google/cloud/dialogflow/cx/v3/generative_settings.proto"],
39
41
  ]
40
42
  imports.each do |type_name, expected_filename|
41
43
  import_file = pool.lookup(type_name).file_descriptor
@@ -56,6 +58,7 @@ module Google
56
58
  Agent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.Agent").msgclass
57
59
  Agent::GitIntegrationSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.Agent.GitIntegrationSettings").msgclass
58
60
  Agent::GitIntegrationSettings::GithubSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.Agent.GitIntegrationSettings.GithubSettings").msgclass
61
+ Agent::GenAppBuilderSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.Agent.GenAppBuilderSettings").msgclass
59
62
  ListAgentsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.ListAgentsRequest").msgclass
60
63
  ListAgentsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.ListAgentsResponse").msgclass
61
64
  GetAgentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.GetAgentRequest").msgclass
@@ -72,6 +75,8 @@ module Google
72
75
  ValidateAgentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.ValidateAgentRequest").msgclass
73
76
  GetAgentValidationResultRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.GetAgentValidationResultRequest").msgclass
74
77
  AgentValidationResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.AgentValidationResult").msgclass
78
+ GetGenerativeSettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.GetGenerativeSettingsRequest").msgclass
79
+ UpdateGenerativeSettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.UpdateGenerativeSettingsRequest").msgclass
75
80
  end
76
81
  end
77
82
  end
@@ -88,6 +88,10 @@ module Google
88
88
  # Gets the latest agent validation result. Agent validation is performed
89
89
  # when ValidateAgent is called.
90
90
  rpc :GetAgentValidationResult, ::Google::Cloud::Dialogflow::CX::V3::GetAgentValidationResultRequest, ::Google::Cloud::Dialogflow::CX::V3::AgentValidationResult
91
+ # Gets the generative settings for the agent.
92
+ rpc :GetGenerativeSettings, ::Google::Cloud::Dialogflow::CX::V3::GetGenerativeSettingsRequest, ::Google::Cloud::Dialogflow::CX::V3::GenerativeSettings
93
+ # Updates the generative settings for the agent.
94
+ rpc :UpdateGenerativeSettings, ::Google::Cloud::Dialogflow::CX::V3::UpdateGenerativeSettingsRequest, ::Google::Cloud::Dialogflow::CX::V3::GenerativeSettings
91
95
  end
92
96
 
93
97
  Stub = Service.rpc_stub_class
@@ -162,7 +162,8 @@ module Google
162
162
  credentials: credentials,
163
163
  endpoint: @config.endpoint,
164
164
  channel_args: @config.channel_args,
165
- interceptors: @config.interceptors
165
+ interceptors: @config.interceptors,
166
+ channel_pool_config: @config.channel_pool
166
167
  )
167
168
  end
168
169
 
@@ -1065,6 +1066,182 @@ module Google
1065
1066
  raise ::Google::Cloud::Error.from_error(e)
1066
1067
  end
1067
1068
 
1069
+ ##
1070
+ # Gets the generative settings for the agent.
1071
+ #
1072
+ # @overload get_generative_settings(request, options = nil)
1073
+ # Pass arguments to `get_generative_settings` via a request object, either of type
1074
+ # {::Google::Cloud::Dialogflow::CX::V3::GetGenerativeSettingsRequest} or an equivalent Hash.
1075
+ #
1076
+ # @param request [::Google::Cloud::Dialogflow::CX::V3::GetGenerativeSettingsRequest, ::Hash]
1077
+ # A request object representing the call parameters. Required. To specify no
1078
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1079
+ # @param options [::Gapic::CallOptions, ::Hash]
1080
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1081
+ #
1082
+ # @overload get_generative_settings(name: nil, language_code: nil)
1083
+ # Pass arguments to `get_generative_settings` via keyword arguments. Note that at
1084
+ # least one keyword argument is required. To specify no parameters, or to keep all
1085
+ # the default parameter values, pass an empty Hash as a request object (see above).
1086
+ #
1087
+ # @param name [::String]
1088
+ # Required. Format: `projects/<Project ID>/locations/<Location
1089
+ # ID>/agents/<Agent ID>/generativeSettings`.
1090
+ # @param language_code [::String]
1091
+ # Required. Language code of the generative settings.
1092
+ #
1093
+ # @yield [response, operation] Access the result along with the RPC operation
1094
+ # @yieldparam response [::Google::Cloud::Dialogflow::CX::V3::GenerativeSettings]
1095
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1096
+ #
1097
+ # @return [::Google::Cloud::Dialogflow::CX::V3::GenerativeSettings]
1098
+ #
1099
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1100
+ #
1101
+ # @example Basic example
1102
+ # require "google/cloud/dialogflow/cx/v3"
1103
+ #
1104
+ # # Create a client object. The client can be reused for multiple calls.
1105
+ # client = Google::Cloud::Dialogflow::CX::V3::Agents::Client.new
1106
+ #
1107
+ # # Create a request. To set request fields, pass in keyword arguments.
1108
+ # request = Google::Cloud::Dialogflow::CX::V3::GetGenerativeSettingsRequest.new
1109
+ #
1110
+ # # Call the get_generative_settings method.
1111
+ # result = client.get_generative_settings request
1112
+ #
1113
+ # # The returned object is of type Google::Cloud::Dialogflow::CX::V3::GenerativeSettings.
1114
+ # p result
1115
+ #
1116
+ def get_generative_settings request, options = nil
1117
+ raise ::ArgumentError, "request must be provided" if request.nil?
1118
+
1119
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dialogflow::CX::V3::GetGenerativeSettingsRequest
1120
+
1121
+ # Converts hash and nil to an options object
1122
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1123
+
1124
+ # Customize the options with defaults
1125
+ metadata = @config.rpcs.get_generative_settings.metadata.to_h
1126
+
1127
+ # Set x-goog-api-client and x-goog-user-project headers
1128
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1129
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1130
+ gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
1131
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1132
+
1133
+ header_params = {}
1134
+ if request.name
1135
+ header_params["name"] = request.name
1136
+ end
1137
+
1138
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1139
+ metadata[:"x-goog-request-params"] ||= request_params_header
1140
+
1141
+ options.apply_defaults timeout: @config.rpcs.get_generative_settings.timeout,
1142
+ metadata: metadata,
1143
+ retry_policy: @config.rpcs.get_generative_settings.retry_policy
1144
+
1145
+ options.apply_defaults timeout: @config.timeout,
1146
+ metadata: @config.metadata,
1147
+ retry_policy: @config.retry_policy
1148
+
1149
+ @agents_stub.call_rpc :get_generative_settings, request, options: options do |response, operation|
1150
+ yield response, operation if block_given?
1151
+ return response
1152
+ end
1153
+ rescue ::GRPC::BadStatus => e
1154
+ raise ::Google::Cloud::Error.from_error(e)
1155
+ end
1156
+
1157
+ ##
1158
+ # Updates the generative settings for the agent.
1159
+ #
1160
+ # @overload update_generative_settings(request, options = nil)
1161
+ # Pass arguments to `update_generative_settings` via a request object, either of type
1162
+ # {::Google::Cloud::Dialogflow::CX::V3::UpdateGenerativeSettingsRequest} or an equivalent Hash.
1163
+ #
1164
+ # @param request [::Google::Cloud::Dialogflow::CX::V3::UpdateGenerativeSettingsRequest, ::Hash]
1165
+ # A request object representing the call parameters. Required. To specify no
1166
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1167
+ # @param options [::Gapic::CallOptions, ::Hash]
1168
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1169
+ #
1170
+ # @overload update_generative_settings(generative_settings: nil, update_mask: nil)
1171
+ # Pass arguments to `update_generative_settings` via keyword arguments. Note that at
1172
+ # least one keyword argument is required. To specify no parameters, or to keep all
1173
+ # the default parameter values, pass an empty Hash as a request object (see above).
1174
+ #
1175
+ # @param generative_settings [::Google::Cloud::Dialogflow::CX::V3::GenerativeSettings, ::Hash]
1176
+ # Required. Generative settings to update.
1177
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
1178
+ # Optional. The mask to control which fields get updated. If the mask is not
1179
+ # present, all fields will be updated.
1180
+ #
1181
+ # @yield [response, operation] Access the result along with the RPC operation
1182
+ # @yieldparam response [::Google::Cloud::Dialogflow::CX::V3::GenerativeSettings]
1183
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1184
+ #
1185
+ # @return [::Google::Cloud::Dialogflow::CX::V3::GenerativeSettings]
1186
+ #
1187
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1188
+ #
1189
+ # @example Basic example
1190
+ # require "google/cloud/dialogflow/cx/v3"
1191
+ #
1192
+ # # Create a client object. The client can be reused for multiple calls.
1193
+ # client = Google::Cloud::Dialogflow::CX::V3::Agents::Client.new
1194
+ #
1195
+ # # Create a request. To set request fields, pass in keyword arguments.
1196
+ # request = Google::Cloud::Dialogflow::CX::V3::UpdateGenerativeSettingsRequest.new
1197
+ #
1198
+ # # Call the update_generative_settings method.
1199
+ # result = client.update_generative_settings request
1200
+ #
1201
+ # # The returned object is of type Google::Cloud::Dialogflow::CX::V3::GenerativeSettings.
1202
+ # p result
1203
+ #
1204
+ def update_generative_settings request, options = nil
1205
+ raise ::ArgumentError, "request must be provided" if request.nil?
1206
+
1207
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dialogflow::CX::V3::UpdateGenerativeSettingsRequest
1208
+
1209
+ # Converts hash and nil to an options object
1210
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1211
+
1212
+ # Customize the options with defaults
1213
+ metadata = @config.rpcs.update_generative_settings.metadata.to_h
1214
+
1215
+ # Set x-goog-api-client and x-goog-user-project headers
1216
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1217
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1218
+ gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
1219
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1220
+
1221
+ header_params = {}
1222
+ if request.generative_settings&.name
1223
+ header_params["generative_settings.name"] = request.generative_settings.name
1224
+ end
1225
+
1226
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1227
+ metadata[:"x-goog-request-params"] ||= request_params_header
1228
+
1229
+ options.apply_defaults timeout: @config.rpcs.update_generative_settings.timeout,
1230
+ metadata: metadata,
1231
+ retry_policy: @config.rpcs.update_generative_settings.retry_policy
1232
+
1233
+ options.apply_defaults timeout: @config.timeout,
1234
+ metadata: @config.metadata,
1235
+ retry_policy: @config.retry_policy
1236
+
1237
+ @agents_stub.call_rpc :update_generative_settings, request, options: options do |response, operation|
1238
+ yield response, operation if block_given?
1239
+ return response
1240
+ end
1241
+ rescue ::GRPC::BadStatus => e
1242
+ raise ::Google::Cloud::Error.from_error(e)
1243
+ end
1244
+
1068
1245
  ##
1069
1246
  # Configuration class for the Agents API.
1070
1247
  #
@@ -1184,6 +1361,14 @@ module Google
1184
1361
  end
1185
1362
  end
1186
1363
 
1364
+ ##
1365
+ # Configuration for the channel pool
1366
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
1367
+ #
1368
+ def channel_pool
1369
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
1370
+ end
1371
+
1187
1372
  ##
1188
1373
  # Configuration RPC class for the Agents API.
1189
1374
  #
@@ -1247,6 +1432,16 @@ module Google
1247
1432
  # @return [::Gapic::Config::Method]
1248
1433
  #
1249
1434
  attr_reader :get_agent_validation_result
1435
+ ##
1436
+ # RPC-specific configuration for `get_generative_settings`
1437
+ # @return [::Gapic::Config::Method]
1438
+ #
1439
+ attr_reader :get_generative_settings
1440
+ ##
1441
+ # RPC-specific configuration for `update_generative_settings`
1442
+ # @return [::Gapic::Config::Method]
1443
+ #
1444
+ attr_reader :update_generative_settings
1250
1445
 
1251
1446
  # @private
1252
1447
  def initialize parent_rpcs = nil
@@ -1268,6 +1463,10 @@ module Google
1268
1463
  @validate_agent = ::Gapic::Config::Method.new validate_agent_config
1269
1464
  get_agent_validation_result_config = parent_rpcs.get_agent_validation_result if parent_rpcs.respond_to? :get_agent_validation_result
1270
1465
  @get_agent_validation_result = ::Gapic::Config::Method.new get_agent_validation_result_config
1466
+ get_generative_settings_config = parent_rpcs.get_generative_settings if parent_rpcs.respond_to? :get_generative_settings
1467
+ @get_generative_settings = ::Gapic::Config::Method.new get_generative_settings_config
1468
+ update_generative_settings_config = parent_rpcs.update_generative_settings if parent_rpcs.respond_to? :update_generative_settings
1469
+ @update_generative_settings = ::Gapic::Config::Method.new update_generative_settings_config
1271
1470
 
1272
1471
  yield self if block_given?
1273
1472
  end
@@ -94,7 +94,8 @@ module Google
94
94
  credentials: credentials,
95
95
  endpoint: @config.endpoint,
96
96
  channel_args: @config.channel_args,
97
- interceptors: @config.interceptors
97
+ interceptors: @config.interceptors,
98
+ channel_pool_config: @config.channel_pool
98
99
  )
99
100
 
100
101
  # Used by an LRO wrapper for some methods of this service
@@ -702,6 +703,14 @@ module Google
702
703
  end
703
704
  end
704
705
 
706
+ ##
707
+ # Configuration for the channel pool
708
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
709
+ #
710
+ def channel_pool
711
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
712
+ end
713
+
705
714
  ##
706
715
  # Configuration RPC class for the Operations API.
707
716
  #
@@ -44,6 +44,25 @@ module Google
44
44
  "projects/#{project}/locations/#{location}/agents/#{agent}"
45
45
  end
46
46
 
47
+ ##
48
+ # Create a fully-qualified AgentGenerativeSettings resource string.
49
+ #
50
+ # The resource will be in the following format:
51
+ #
52
+ # `projects/{project}/locations/{location}/agents/{agent}/generativeSettings`
53
+ #
54
+ # @param project [String]
55
+ # @param location [String]
56
+ # @param agent [String]
57
+ #
58
+ # @return [::String]
59
+ def agent_generative_settings_path project:, location:, agent:
60
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
61
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
62
+
63
+ "projects/#{project}/locations/#{location}/agents/#{agent}/generativeSettings"
64
+ end
65
+
47
66
  ##
48
67
  # Create a fully-qualified AgentValidationResult resource string.
49
68
  #