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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (25) 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/flow_pb.rb +3 -1
  4. data/lib/google/cloud/dialogflow/cx/v3/fulfillment_pb.rb +3 -1
  5. data/lib/google/cloud/dialogflow/cx/v3/inline_pb.rb +47 -0
  6. data/lib/google/cloud/dialogflow/cx/v3/intent_pb.rb +13 -1
  7. data/lib/google/cloud/dialogflow/cx/v3/intent_services_pb.rb +22 -0
  8. data/lib/google/cloud/dialogflow/cx/v3/intents/client.rb +268 -0
  9. data/lib/google/cloud/dialogflow/cx/v3/intents/operations.rb +781 -0
  10. data/lib/google/cloud/dialogflow/cx/v3/intents/rest/client.rb +254 -0
  11. data/lib/google/cloud/dialogflow/cx/v3/intents/rest/operations.rb +892 -0
  12. data/lib/google/cloud/dialogflow/cx/v3/intents/rest/service_stub.rb +120 -0
  13. data/lib/google/cloud/dialogflow/cx/v3/intents/rest.rb +1 -0
  14. data/lib/google/cloud/dialogflow/cx/v3/intents.rb +1 -0
  15. data/lib/google/cloud/dialogflow/cx/v3/page_pb.rb +3 -1
  16. data/lib/google/cloud/dialogflow/cx/v3/session_pb.rb +3 -1
  17. data/lib/google/cloud/dialogflow/cx/v3/version.rb +1 -1
  18. data/proto_docs/google/cloud/dialogflow/cx/v3/advanced_settings.rb +28 -0
  19. data/proto_docs/google/cloud/dialogflow/cx/v3/flow.rb +4 -0
  20. data/proto_docs/google/cloud/dialogflow/cx/v3/fulfillment.rb +11 -0
  21. data/proto_docs/google/cloud/dialogflow/cx/v3/inline.rb +49 -0
  22. data/proto_docs/google/cloud/dialogflow/cx/v3/intent.rb +175 -0
  23. data/proto_docs/google/cloud/dialogflow/cx/v3/page.rb +8 -0
  24. data/proto_docs/google/cloud/dialogflow/cx/v3/session.rb +7 -0
  25. metadata +6 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9e105b444a8e7da27267bfbaeb28464cc6f2ca4350eec707411dd7290898ac6d
4
- data.tar.gz: adb06ae68c02ff720acf7b79da18ec00117fecbabc2ca92f30c76a14bb1e690d
3
+ metadata.gz: c951273cade2586137698ceb5b16c9726e4f6ab753a970cfc59df54d0386a96a
4
+ data.tar.gz: bb3d04cf93be3de7c5b857daa218ad5db237b0e5ffa9b806553ab13f10b24a14
5
5
  SHA512:
6
- metadata.gz: 80389838c57b6c9e8a6bc135bd9de5f6d29a315877e88f111c2f7bcd3fcde18cd8d1fd279db39303989012b8b870222416cc0b2f3b737c59f5030cc2366fd123
7
- data.tar.gz: 3e5510fe8cd53164c86206eb88d232eb8a12f5d1955ece666a82298bf9eab1018dfcc547a983b8fb3bbff930793807ac3a10d8a8885ab1571084260c417b7d04
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
@@ -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/advanced_settings_pb'
11
12
  require 'google/cloud/dialogflow/cx/v3/import_strategy_pb'
12
13
  require 'google/cloud/dialogflow/cx/v3/page_pb'
13
14
  require 'google/cloud/dialogflow/cx/v3/validation_message_pb'
@@ -18,7 +19,7 @@ require 'google/protobuf/struct_pb'
18
19
  require 'google/protobuf/timestamp_pb'
19
20
 
20
21
 
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\"\xbc\x04\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\x12\x64\n\x1cknowledge_connector_settings\x18\x12 \x01(\x0b\x32\x39.google.cloud.dialogflow.cx.v3.KnowledgeConnectorSettingsB\x03\xe0\x41\x01: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"
22
+ 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\x35google/cloud/dialogflow/cx/v3/advanced_settings.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\"\x88\x05\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\x12J\n\x11\x61\x64vanced_settings\x18\x0e \x01(\x0b\x32/.google.cloud.dialogflow.cx.v3.AdvancedSettings\x12\x64\n\x1cknowledge_connector_settings\x18\x12 \x01(\x0b\x32\x39.google.cloud.dialogflow.cx.v3.KnowledgeConnectorSettingsB\x03\xe0\x41\x01: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"
22
23
 
23
24
  pool = Google::Protobuf::DescriptorPool.generated_pool
24
25
 
@@ -34,6 +35,7 @@ rescue TypeError => e
34
35
  warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
35
36
  imports = [
36
37
  ["google.cloud.dialogflow.cx.v3.TransitionRoute", "google/cloud/dialogflow/cx/v3/page.proto"],
38
+ ["google.cloud.dialogflow.cx.v3.AdvancedSettings", "google/cloud/dialogflow/cx/v3/advanced_settings.proto"],
37
39
  ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
38
40
  ["google.cloud.dialogflow.cx.v3.ValidationMessage", "google/cloud/dialogflow/cx/v3/validation_message.proto"],
39
41
  ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
@@ -5,11 +5,12 @@
5
5
  require 'google/protobuf'
6
6
 
7
7
  require 'google/api/resource_pb'
8
+ require 'google/cloud/dialogflow/cx/v3/advanced_settings_pb'
8
9
  require 'google/cloud/dialogflow/cx/v3/response_message_pb'
9
10
  require 'google/protobuf/struct_pb'
10
11
 
11
12
 
12
- descriptor_data = "\n/google/cloud/dialogflow/cx/v3/fulfillment.proto\x12\x1dgoogle.cloud.dialogflow.cx.v3\x1a\x19google/api/resource.proto\x1a\x34google/cloud/dialogflow/cx/v3/response_message.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xe3\x06\n\x0b\x46ulfillment\x12@\n\x08messages\x18\x01 \x03(\x0b\x32..google.cloud.dialogflow.cx.v3.ResponseMessage\x12\x37\n\x07webhook\x18\x02 \x01(\tB&\xfa\x41#\n!dialogflow.googleapis.com/Webhook\x12 \n\x18return_partial_responses\x18\x08 \x01(\x08\x12\x0b\n\x03tag\x18\x03 \x01(\t\x12\\\n\x15set_parameter_actions\x18\x04 \x03(\x0b\x32=.google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction\x12V\n\x11\x63onditional_cases\x18\x05 \x03(\x0b\x32;.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases\x1aN\n\x12SetParameterAction\x12\x11\n\tparameter\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.Value\x1a\xa3\x03\n\x10\x43onditionalCases\x12O\n\x05\x63\x61ses\x18\x01 \x03(\x0b\x32@.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case\x1a\xbd\x02\n\x04\x43\x61se\x12\x11\n\tcondition\x18\x01 \x01(\t\x12\x62\n\x0c\x63\x61se_content\x18\x02 \x03(\x0b\x32L.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent\x1a\xbd\x01\n\x0b\x43\x61seContent\x12\x41\n\x07message\x18\x01 \x01(\x0b\x32..google.cloud.dialogflow.cx.v3.ResponseMessageH\x00\x12W\n\x10\x61\x64\x64itional_cases\x18\x02 \x01(\x0b\x32;.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCasesH\x00\x42\x12\n\x10\x63\x61ses_or_messageB\xb6\x01\n!com.google.cloud.dialogflow.cx.v3B\x10\x46ulfillmentProtoP\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"
13
+ descriptor_data = "\n/google/cloud/dialogflow/cx/v3/fulfillment.proto\x12\x1dgoogle.cloud.dialogflow.cx.v3\x1a\x19google/api/resource.proto\x1a\x35google/cloud/dialogflow/cx/v3/advanced_settings.proto\x1a\x34google/cloud/dialogflow/cx/v3/response_message.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xd3\x07\n\x0b\x46ulfillment\x12@\n\x08messages\x18\x01 \x03(\x0b\x32..google.cloud.dialogflow.cx.v3.ResponseMessage\x12\x37\n\x07webhook\x18\x02 \x01(\tB&\xfa\x41#\n!dialogflow.googleapis.com/Webhook\x12 \n\x18return_partial_responses\x18\x08 \x01(\x08\x12\x0b\n\x03tag\x18\x03 \x01(\t\x12\\\n\x15set_parameter_actions\x18\x04 \x03(\x0b\x32=.google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction\x12V\n\x11\x63onditional_cases\x18\x05 \x03(\x0b\x32;.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases\x12J\n\x11\x61\x64vanced_settings\x18\x07 \x01(\x0b\x32/.google.cloud.dialogflow.cx.v3.AdvancedSettings\x12\"\n\x1a\x65nable_generative_fallback\x18\x0c \x01(\x08\x1aN\n\x12SetParameterAction\x12\x11\n\tparameter\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.Value\x1a\xa3\x03\n\x10\x43onditionalCases\x12O\n\x05\x63\x61ses\x18\x01 \x03(\x0b\x32@.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case\x1a\xbd\x02\n\x04\x43\x61se\x12\x11\n\tcondition\x18\x01 \x01(\t\x12\x62\n\x0c\x63\x61se_content\x18\x02 \x03(\x0b\x32L.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent\x1a\xbd\x01\n\x0b\x43\x61seContent\x12\x41\n\x07message\x18\x01 \x01(\x0b\x32..google.cloud.dialogflow.cx.v3.ResponseMessageH\x00\x12W\n\x10\x61\x64\x64itional_cases\x18\x02 \x01(\x0b\x32;.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCasesH\x00\x42\x12\n\x10\x63\x61ses_or_messageB\xb6\x01\n!com.google.cloud.dialogflow.cx.v3B\x10\x46ulfillmentProtoP\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"
13
14
 
14
15
  pool = Google::Protobuf::DescriptorPool.generated_pool
15
16
 
@@ -25,6 +26,7 @@ rescue TypeError => e
25
26
  warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
26
27
  imports = [
27
28
  ["google.cloud.dialogflow.cx.v3.ResponseMessage", "google/cloud/dialogflow/cx/v3/response_message.proto"],
29
+ ["google.cloud.dialogflow.cx.v3.AdvancedSettings", "google/cloud/dialogflow/cx/v3/advanced_settings.proto"],
28
30
  ["google.protobuf.Value", "google/protobuf/struct.proto"],
29
31
  ]
30
32
  imports.each do |type_name, expected_filename|
@@ -0,0 +1,47 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/cloud/dialogflow/cx/v3/inline.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/api/field_behavior_pb'
8
+
9
+
10
+ descriptor_data = "\n*google/cloud/dialogflow/cx/v3/inline.proto\x12\x1dgoogle.cloud.dialogflow.cx.v3\x1a\x1fgoogle/api/field_behavior.proto\")\n\x11InlineDestination\x12\x14\n\x07\x63ontent\x18\x01 \x01(\x0c\x42\x03\xe0\x41\x03\"\x1f\n\x0cInlineSource\x12\x0f\n\x07\x63ontent\x18\x01 \x01(\x0c\x42\xb1\x01\n!com.google.cloud.dialogflow.cx.v3B\x0bInlineProtoP\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
+
12
+ pool = Google::Protobuf::DescriptorPool.generated_pool
13
+
14
+ begin
15
+ pool.add_serialized_file(descriptor_data)
16
+ rescue TypeError => e
17
+ # Compatibility code: will be removed in the next major version.
18
+ require 'google/protobuf/descriptor_pb'
19
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
20
+ parsed.clear_dependency
21
+ serialized = parsed.class.encode(parsed)
22
+ file = pool.add_serialized_file(serialized)
23
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
24
+ imports = [
25
+ ]
26
+ imports.each do |type_name, expected_filename|
27
+ import_file = pool.lookup(type_name).file_descriptor
28
+ if import_file.name != expected_filename
29
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
30
+ end
31
+ end
32
+ warn "Each proto file must use a consistent fully-qualified name."
33
+ warn "This will become an error in the next major version."
34
+ end
35
+
36
+ module Google
37
+ module Cloud
38
+ module Dialogflow
39
+ module CX
40
+ module V3
41
+ InlineDestination = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.InlineDestination").msgclass
42
+ InlineSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.InlineSource").msgclass
43
+ end
44
+ end
45
+ end
46
+ end
47
+ end
@@ -8,11 +8,13 @@ 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/inline_pb'
12
+ require 'google/longrunning/operations_pb'
11
13
  require 'google/protobuf/empty_pb'
12
14
  require 'google/protobuf/field_mask_pb'
13
15
 
14
16
 
15
- descriptor_data = "\n*google/cloud/dialogflow/cx/v3/intent.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\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\x9c\x06\n\x06Intent\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12N\n\x10training_phrases\x18\x03 \x03(\x0b\x32\x34.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase\x12\x43\n\nparameters\x18\x04 \x03(\x0b\x32/.google.cloud.dialogflow.cx.v3.Intent.Parameter\x12\x10\n\x08priority\x18\x05 \x01(\x05\x12\x13\n\x0bis_fallback\x18\x06 \x01(\x08\x12\x41\n\x06labels\x18\x07 \x03(\x0b\x32\x31.google.cloud.dialogflow.cx.v3.Intent.LabelsEntry\x12\x13\n\x0b\x64\x65scription\x18\x08 \x01(\t\x1a\xb2\x01\n\x0eTrainingPhrase\x12\n\n\x02id\x18\x01 \x01(\t\x12M\n\x05parts\x18\x02 \x03(\x0b\x32\x39.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.PartB\x03\xe0\x41\x02\x12\x14\n\x0crepeat_count\x18\x03 \x01(\x05\x1a/\n\x04Part\x12\x11\n\x04text\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x14\n\x0cparameter_id\x18\x02 \x01(\t\x1a\x80\x01\n\tParameter\x12\x0f\n\x02id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x41\n\x0b\x65ntity_type\x18\x02 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$dialogflow.googleapis.com/EntityType\x12\x0f\n\x07is_list\x18\x03 \x01(\x08\x12\x0e\n\x06redact\x18\x04 \x01(\x08\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:n\xea\x41k\n dialogflow.googleapis.com/Intent\x12Gprojects/{project}/locations/{location}/agents/{agent}/intents/{intent}\"\xcc\x01\n\x12ListIntentsRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\x12 dialogflow.googleapis.com/Intent\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\x12>\n\x0bintent_view\x18\x05 \x01(\x0e\x32).google.cloud.dialogflow.cx.v3.IntentView\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\"f\n\x13ListIntentsResponse\x12\x36\n\x07intents\x18\x01 \x03(\x0b\x32%.google.cloud.dialogflow.cx.v3.Intent\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"a\n\x10GetIntentRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n dialogflow.googleapis.com/Intent\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\"\xa2\x01\n\x13\x43reateIntentRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\x12 dialogflow.googleapis.com/Intent\x12:\n\x06intent\x18\x02 \x01(\x0b\x32%.google.cloud.dialogflow.cx.v3.IntentB\x03\xe0\x41\x02\x12\x15\n\rlanguage_code\x18\x03 \x01(\t\"\x99\x01\n\x13UpdateIntentRequest\x12:\n\x06intent\x18\x01 \x01(\x0b\x32%.google.cloud.dialogflow.cx.v3.IntentB\x03\xe0\x41\x02\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\x12/\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"M\n\x13\x44\x65leteIntentRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n dialogflow.googleapis.com/Intent*X\n\nIntentView\x12\x1b\n\x17INTENT_VIEW_UNSPECIFIED\x10\x00\x12\x17\n\x13INTENT_VIEW_PARTIAL\x10\x01\x12\x14\n\x10INTENT_VIEW_FULL\x10\x02\x32\x9e\x08\n\x07Intents\x12\xbb\x01\n\x0bListIntents\x12\x31.google.cloud.dialogflow.cx.v3.ListIntentsRequest\x1a\x32.google.cloud.dialogflow.cx.v3.ListIntentsResponse\"E\x82\xd3\xe4\x93\x02\x36\x12\x34/v3/{parent=projects/*/locations/*/agents/*}/intents\xda\x41\x06parent\x12\xa8\x01\n\tGetIntent\x12/.google.cloud.dialogflow.cx.v3.GetIntentRequest\x1a%.google.cloud.dialogflow.cx.v3.Intent\"C\x82\xd3\xe4\x93\x02\x36\x12\x34/v3/{name=projects/*/locations/*/agents/*/intents/*}\xda\x41\x04name\x12\xbf\x01\n\x0c\x43reateIntent\x12\x32.google.cloud.dialogflow.cx.v3.CreateIntentRequest\x1a%.google.cloud.dialogflow.cx.v3.Intent\"T\x82\xd3\xe4\x93\x02>\"4/v3/{parent=projects/*/locations/*/agents/*}/intents:\x06intent\xda\x41\rparent,intent\x12\xcb\x01\n\x0cUpdateIntent\x12\x32.google.cloud.dialogflow.cx.v3.UpdateIntentRequest\x1a%.google.cloud.dialogflow.cx.v3.Intent\"`\x82\xd3\xe4\x93\x02\x45\x32;/v3/{intent.name=projects/*/locations/*/agents/*/intents/*}:\x06intent\xda\x41\x12intent,update_mask\x12\x9f\x01\n\x0c\x44\x65leteIntent\x12\x32.google.cloud.dialogflow.cx.v3.DeleteIntentRequest\x1a\x16.google.protobuf.Empty\"C\x82\xd3\xe4\x93\x02\x36*4/v3/{name=projects/*/locations/*/agents/*/intents/*}\xda\x41\x04name\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\xb1\x01\n!com.google.cloud.dialogflow.cx.v3B\x0bIntentProtoP\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
+ descriptor_data = "\n*google/cloud/dialogflow/cx/v3/intent.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/inline.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\x9c\x06\n\x06Intent\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12N\n\x10training_phrases\x18\x03 \x03(\x0b\x32\x34.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase\x12\x43\n\nparameters\x18\x04 \x03(\x0b\x32/.google.cloud.dialogflow.cx.v3.Intent.Parameter\x12\x10\n\x08priority\x18\x05 \x01(\x05\x12\x13\n\x0bis_fallback\x18\x06 \x01(\x08\x12\x41\n\x06labels\x18\x07 \x03(\x0b\x32\x31.google.cloud.dialogflow.cx.v3.Intent.LabelsEntry\x12\x13\n\x0b\x64\x65scription\x18\x08 \x01(\t\x1a\xb2\x01\n\x0eTrainingPhrase\x12\n\n\x02id\x18\x01 \x01(\t\x12M\n\x05parts\x18\x02 \x03(\x0b\x32\x39.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.PartB\x03\xe0\x41\x02\x12\x14\n\x0crepeat_count\x18\x03 \x01(\x05\x1a/\n\x04Part\x12\x11\n\x04text\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x14\n\x0cparameter_id\x18\x02 \x01(\t\x1a\x80\x01\n\tParameter\x12\x0f\n\x02id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x41\n\x0b\x65ntity_type\x18\x02 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$dialogflow.googleapis.com/EntityType\x12\x0f\n\x07is_list\x18\x03 \x01(\x08\x12\x0e\n\x06redact\x18\x04 \x01(\x08\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:n\xea\x41k\n dialogflow.googleapis.com/Intent\x12Gprojects/{project}/locations/{location}/agents/{agent}/intents/{intent}\"\xcc\x01\n\x12ListIntentsRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\x12 dialogflow.googleapis.com/Intent\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\x12>\n\x0bintent_view\x18\x05 \x01(\x0e\x32).google.cloud.dialogflow.cx.v3.IntentView\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\"f\n\x13ListIntentsResponse\x12\x36\n\x07intents\x18\x01 \x03(\x0b\x32%.google.cloud.dialogflow.cx.v3.Intent\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"a\n\x10GetIntentRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n dialogflow.googleapis.com/Intent\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\"\xa2\x01\n\x13\x43reateIntentRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\x12 dialogflow.googleapis.com/Intent\x12:\n\x06intent\x18\x02 \x01(\x0b\x32%.google.cloud.dialogflow.cx.v3.IntentB\x03\xe0\x41\x02\x12\x15\n\rlanguage_code\x18\x03 \x01(\t\"\x99\x01\n\x13UpdateIntentRequest\x12:\n\x06intent\x18\x01 \x01(\x0b\x32%.google.cloud.dialogflow.cx.v3.IntentB\x03\xe0\x41\x02\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\x12/\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"M\n\x13\x44\x65leteIntentRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n dialogflow.googleapis.com/Intent\"\x91\x03\n\x14ImportIntentsRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\x12 dialogflow.googleapis.com/Intent\x12\x15\n\x0bintents_uri\x18\x02 \x01(\tH\x00\x12\x46\n\x0fintents_content\x18\x03 \x01(\x0b\x32+.google.cloud.dialogflow.cx.v3.InlineSourceH\x00\x12U\n\x0cmerge_option\x18\x04 \x01(\x0e\x32?.google.cloud.dialogflow.cx.v3.ImportIntentsRequest.MergeOption\"~\n\x0bMergeOption\x12\x1c\n\x18MERGE_OPTION_UNSPECIFIED\x10\x00\x12\x0e\n\x06REJECT\x10\x01\x1a\x02\x08\x01\x12\x0b\n\x07REPLACE\x10\x02\x12\t\n\x05MERGE\x10\x03\x12\n\n\x06RENAME\x10\x04\x12\x13\n\x0fREPORT_CONFLICT\x10\x05\x12\x08\n\x04KEEP\x10\x06\x42\t\n\x07intents\"\x8d\x02\n\x15ImportIntentsResponse\x12\x36\n\x07intents\x18\x01 \x03(\tB%\xfa\x41\"\n dialogflow.googleapis.com/Intent\x12h\n\x15\x63onflicting_resources\x18\x02 \x01(\x0b\x32I.google.cloud.dialogflow.cx.v3.ImportIntentsResponse.ConflictingResources\x1aR\n\x14\x43onflictingResources\x12\x1c\n\x14intent_display_names\x18\x01 \x03(\t\x12\x1c\n\x14\x65ntity_display_names\x18\x02 \x03(\t\"\x17\n\x15ImportIntentsMetadata\"\xda\x02\n\x14\x45xportIntentsRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\x12 dialogflow.googleapis.com/Intent\x12\x14\n\x07intents\x18\x02 \x03(\tB\x03\xe0\x41\x02\x12\x1a\n\x0bintents_uri\x18\x03 \x01(\tB\x03\xe0\x41\x01H\x00\x12%\n\x16intents_content_inline\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01H\x00\x12X\n\x0b\x64\x61ta_format\x18\x05 \x01(\x0e\x32>.google.cloud.dialogflow.cx.v3.ExportIntentsRequest.DataFormatB\x03\xe0\x41\x01\"F\n\nDataFormat\x12\x1b\n\x17\x44\x41TA_FORMAT_UNSPECIFIED\x10\x00\x12\x08\n\x04\x42LOB\x10\x01\x12\x08\n\x04JSON\x10\x02\x12\x07\n\x03\x43SV\x10\x03\x42\r\n\x0b\x64\x65stination\"\x86\x01\n\x15\x45xportIntentsResponse\x12\x15\n\x0bintents_uri\x18\x01 \x01(\tH\x00\x12K\n\x0fintents_content\x18\x02 \x01(\x0b\x32\x30.google.cloud.dialogflow.cx.v3.InlineDestinationH\x00\x42\t\n\x07intents\"\x17\n\x15\x45xportIntentsMetadata*X\n\nIntentView\x12\x1b\n\x17INTENT_VIEW_UNSPECIFIED\x10\x00\x12\x17\n\x13INTENT_VIEW_PARTIAL\x10\x01\x12\x14\n\x10INTENT_VIEW_FULL\x10\x02\x32\xdc\x0b\n\x07Intents\x12\xbb\x01\n\x0bListIntents\x12\x31.google.cloud.dialogflow.cx.v3.ListIntentsRequest\x1a\x32.google.cloud.dialogflow.cx.v3.ListIntentsResponse\"E\x82\xd3\xe4\x93\x02\x36\x12\x34/v3/{parent=projects/*/locations/*/agents/*}/intents\xda\x41\x06parent\x12\xa8\x01\n\tGetIntent\x12/.google.cloud.dialogflow.cx.v3.GetIntentRequest\x1a%.google.cloud.dialogflow.cx.v3.Intent\"C\x82\xd3\xe4\x93\x02\x36\x12\x34/v3/{name=projects/*/locations/*/agents/*/intents/*}\xda\x41\x04name\x12\xbf\x01\n\x0c\x43reateIntent\x12\x32.google.cloud.dialogflow.cx.v3.CreateIntentRequest\x1a%.google.cloud.dialogflow.cx.v3.Intent\"T\x82\xd3\xe4\x93\x02>\"4/v3/{parent=projects/*/locations/*/agents/*}/intents:\x06intent\xda\x41\rparent,intent\x12\xcb\x01\n\x0cUpdateIntent\x12\x32.google.cloud.dialogflow.cx.v3.UpdateIntentRequest\x1a%.google.cloud.dialogflow.cx.v3.Intent\"`\x82\xd3\xe4\x93\x02\x45\x32;/v3/{intent.name=projects/*/locations/*/agents/*/intents/*}:\x06intent\xda\x41\x12intent,update_mask\x12\x9f\x01\n\x0c\x44\x65leteIntent\x12\x32.google.cloud.dialogflow.cx.v3.DeleteIntentRequest\x1a\x16.google.protobuf.Empty\"C\x82\xd3\xe4\x93\x02\x36*4/v3/{name=projects/*/locations/*/agents/*/intents/*}\xda\x41\x04name\x12\xdc\x01\n\rImportIntents\x12\x33.google.cloud.dialogflow.cx.v3.ImportIntentsRequest\x1a\x1d.google.longrunning.Operation\"w\x82\xd3\xe4\x93\x02@\";/v3/{parent=projects/*/locations/*/agents/*}/intents:import:\x01*\xca\x41.\n\x15ImportIntentsResponse\x12\x15ImportIntentsMetadata\x12\xdc\x01\n\rExportIntents\x12\x33.google.cloud.dialogflow.cx.v3.ExportIntentsRequest\x1a\x1d.google.longrunning.Operation\"w\x82\xd3\xe4\x93\x02@\";/v3/{parent=projects/*/locations/*/agents/*}/intents:export:\x01*\xca\x41.\n\x15\x45xportIntentsResponse\x12\x15\x45xportIntentsMetadata\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\xb1\x01\n!com.google.cloud.dialogflow.cx.v3B\x0bIntentProtoP\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"
16
18
 
17
19
  pool = Google::Protobuf::DescriptorPool.generated_pool
18
20
 
@@ -28,6 +30,7 @@ rescue TypeError => e
28
30
  warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
29
31
  imports = [
30
32
  ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
33
+ ["google.cloud.dialogflow.cx.v3.InlineSource", "google/cloud/dialogflow/cx/v3/inline.proto"],
31
34
  ]
32
35
  imports.each do |type_name, expected_filename|
33
36
  import_file = pool.lookup(type_name).file_descriptor
@@ -54,6 +57,15 @@ module Google
54
57
  CreateIntentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.CreateIntentRequest").msgclass
55
58
  UpdateIntentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.UpdateIntentRequest").msgclass
56
59
  DeleteIntentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.DeleteIntentRequest").msgclass
60
+ ImportIntentsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.ImportIntentsRequest").msgclass
61
+ ImportIntentsRequest::MergeOption = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.ImportIntentsRequest.MergeOption").enummodule
62
+ ImportIntentsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.ImportIntentsResponse").msgclass
63
+ ImportIntentsResponse::ConflictingResources = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.ImportIntentsResponse.ConflictingResources").msgclass
64
+ ImportIntentsMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.ImportIntentsMetadata").msgclass
65
+ ExportIntentsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.ExportIntentsRequest").msgclass
66
+ ExportIntentsRequest::DataFormat = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.ExportIntentsRequest.DataFormat").enummodule
67
+ ExportIntentsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.ExportIntentsResponse").msgclass
68
+ ExportIntentsMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.ExportIntentsMetadata").msgclass
57
69
  IntentView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.IntentView").enummodule
58
70
  end
59
71
  end
@@ -56,6 +56,28 @@ module Google
56
56
  # [training
57
57
  # documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).
58
58
  rpc :DeleteIntent, ::Google::Cloud::Dialogflow::CX::V3::DeleteIntentRequest, ::Google::Protobuf::Empty
59
+ # Imports the specified intents into the agent.
60
+ #
61
+ # This method is a [long-running
62
+ # operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
63
+ # The returned `Operation` type has the following method-specific fields:
64
+ #
65
+ # - `metadata`:
66
+ # [ImportIntentsMetadata][google.cloud.dialogflow.cx.v3.ImportIntentsMetadata]
67
+ # - `response`:
68
+ # [ImportIntentsResponse][google.cloud.dialogflow.cx.v3.ImportIntentsResponse]
69
+ rpc :ImportIntents, ::Google::Cloud::Dialogflow::CX::V3::ImportIntentsRequest, ::Google::Longrunning::Operation
70
+ # Exports the selected intents.
71
+ #
72
+ # This method is a [long-running
73
+ # operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
74
+ # The returned `Operation` type has the following method-specific fields:
75
+ #
76
+ # - `metadata`:
77
+ # [ExportIntentsMetadata][google.cloud.dialogflow.cx.v3.ExportIntentsMetadata]
78
+ # - `response`:
79
+ # [ExportIntentsResponse][google.cloud.dialogflow.cx.v3.ExportIntentsResponse]
80
+ rpc :ExportIntents, ::Google::Cloud::Dialogflow::CX::V3::ExportIntentsRequest, ::Google::Longrunning::Operation
59
81
  end
60
82
 
61
83
  Stub = Service.rpc_stub_class
@@ -140,6 +140,12 @@ module Google
140
140
  @quota_project_id = @config.quota_project
141
141
  @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
142
142
 
143
+ @operations_client = Operations.new do |config|
144
+ config.credentials = credentials
145
+ config.quota_project = @quota_project_id
146
+ config.endpoint = @config.endpoint
147
+ end
148
+
143
149
  @location_client = Google::Cloud::Location::Locations::Client.new do |config|
144
150
  config.credentials = credentials
145
151
  config.quota_project = @quota_project_id
@@ -156,6 +162,13 @@ module Google
156
162
  )
157
163
  end
158
164
 
165
+ ##
166
+ # Get the associated client for long-running operations.
167
+ #
168
+ # @return [::Google::Cloud::Dialogflow::CX::V3::Intents::Operations]
169
+ #
170
+ attr_reader :operations_client
171
+
159
172
  ##
160
173
  # Get the associated client for mix-in of the Locations.
161
174
  #
@@ -667,6 +680,247 @@ module Google
667
680
  raise ::Google::Cloud::Error.from_error(e)
668
681
  end
669
682
 
683
+ ##
684
+ # Imports the specified intents into the agent.
685
+ #
686
+ # This method is a [long-running
687
+ # operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
688
+ # The returned `Operation` type has the following method-specific fields:
689
+ #
690
+ # - `metadata`:
691
+ # {::Google::Cloud::Dialogflow::CX::V3::ImportIntentsMetadata ImportIntentsMetadata}
692
+ # - `response`:
693
+ # {::Google::Cloud::Dialogflow::CX::V3::ImportIntentsResponse ImportIntentsResponse}
694
+ #
695
+ # @overload import_intents(request, options = nil)
696
+ # Pass arguments to `import_intents` via a request object, either of type
697
+ # {::Google::Cloud::Dialogflow::CX::V3::ImportIntentsRequest} or an equivalent Hash.
698
+ #
699
+ # @param request [::Google::Cloud::Dialogflow::CX::V3::ImportIntentsRequest, ::Hash]
700
+ # A request object representing the call parameters. Required. To specify no
701
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
702
+ # @param options [::Gapic::CallOptions, ::Hash]
703
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
704
+ #
705
+ # @overload import_intents(parent: nil, intents_uri: nil, intents_content: nil, merge_option: nil)
706
+ # Pass arguments to `import_intents` via keyword arguments. Note that at
707
+ # least one keyword argument is required. To specify no parameters, or to keep all
708
+ # the default parameter values, pass an empty Hash as a request object (see above).
709
+ #
710
+ # @param parent [::String]
711
+ # Required. The agent to import the intents into.
712
+ # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
713
+ # @param intents_uri [::String]
714
+ # The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI
715
+ # to import intents from. The format of this URI must be
716
+ # `gs://<bucket-name>/<object-name>`.
717
+ #
718
+ # Dialogflow performs a read operation for the Cloud Storage object
719
+ # on the caller's behalf, so your request authentication must
720
+ # have read permissions for the object. For more information, see
721
+ # [Dialogflow access
722
+ # control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
723
+ # @param intents_content [::Google::Cloud::Dialogflow::CX::V3::InlineSource, ::Hash]
724
+ # Uncompressed byte content of intents.
725
+ # @param merge_option [::Google::Cloud::Dialogflow::CX::V3::ImportIntentsRequest::MergeOption]
726
+ # Merge option for importing intents. If not specified, `REJECT` is assumed.
727
+ #
728
+ # @yield [response, operation] Access the result along with the RPC operation
729
+ # @yieldparam response [::Gapic::Operation]
730
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
731
+ #
732
+ # @return [::Gapic::Operation]
733
+ #
734
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
735
+ #
736
+ # @example Basic example
737
+ # require "google/cloud/dialogflow/cx/v3"
738
+ #
739
+ # # Create a client object. The client can be reused for multiple calls.
740
+ # client = Google::Cloud::Dialogflow::CX::V3::Intents::Client.new
741
+ #
742
+ # # Create a request. To set request fields, pass in keyword arguments.
743
+ # request = Google::Cloud::Dialogflow::CX::V3::ImportIntentsRequest.new
744
+ #
745
+ # # Call the import_intents method.
746
+ # result = client.import_intents request
747
+ #
748
+ # # The returned object is of type Gapic::Operation. You can use it to
749
+ # # check the status of an operation, cancel it, or wait for results.
750
+ # # Here is how to wait for a response.
751
+ # result.wait_until_done! timeout: 60
752
+ # if result.response?
753
+ # p result.response
754
+ # else
755
+ # puts "No response received."
756
+ # end
757
+ #
758
+ def import_intents request, options = nil
759
+ raise ::ArgumentError, "request must be provided" if request.nil?
760
+
761
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dialogflow::CX::V3::ImportIntentsRequest
762
+
763
+ # Converts hash and nil to an options object
764
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
765
+
766
+ # Customize the options with defaults
767
+ metadata = @config.rpcs.import_intents.metadata.to_h
768
+
769
+ # Set x-goog-api-client and x-goog-user-project headers
770
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
771
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
772
+ gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
773
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
774
+
775
+ header_params = {}
776
+ if request.parent
777
+ header_params["parent"] = request.parent
778
+ end
779
+
780
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
781
+ metadata[:"x-goog-request-params"] ||= request_params_header
782
+
783
+ options.apply_defaults timeout: @config.rpcs.import_intents.timeout,
784
+ metadata: metadata,
785
+ retry_policy: @config.rpcs.import_intents.retry_policy
786
+
787
+ options.apply_defaults timeout: @config.timeout,
788
+ metadata: @config.metadata,
789
+ retry_policy: @config.retry_policy
790
+
791
+ @intents_stub.call_rpc :import_intents, request, options: options do |response, operation|
792
+ response = ::Gapic::Operation.new response, @operations_client, options: options
793
+ yield response, operation if block_given?
794
+ return response
795
+ end
796
+ rescue ::GRPC::BadStatus => e
797
+ raise ::Google::Cloud::Error.from_error(e)
798
+ end
799
+
800
+ ##
801
+ # Exports the selected intents.
802
+ #
803
+ # This method is a [long-running
804
+ # operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
805
+ # The returned `Operation` type has the following method-specific fields:
806
+ #
807
+ # - `metadata`:
808
+ # {::Google::Cloud::Dialogflow::CX::V3::ExportIntentsMetadata ExportIntentsMetadata}
809
+ # - `response`:
810
+ # {::Google::Cloud::Dialogflow::CX::V3::ExportIntentsResponse ExportIntentsResponse}
811
+ #
812
+ # @overload export_intents(request, options = nil)
813
+ # Pass arguments to `export_intents` via a request object, either of type
814
+ # {::Google::Cloud::Dialogflow::CX::V3::ExportIntentsRequest} or an equivalent Hash.
815
+ #
816
+ # @param request [::Google::Cloud::Dialogflow::CX::V3::ExportIntentsRequest, ::Hash]
817
+ # A request object representing the call parameters. Required. To specify no
818
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
819
+ # @param options [::Gapic::CallOptions, ::Hash]
820
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
821
+ #
822
+ # @overload export_intents(parent: nil, intents: nil, intents_uri: nil, intents_content_inline: nil, data_format: nil)
823
+ # Pass arguments to `export_intents` via keyword arguments. Note that at
824
+ # least one keyword argument is required. To specify no parameters, or to keep all
825
+ # the default parameter values, pass an empty Hash as a request object (see above).
826
+ #
827
+ # @param parent [::String]
828
+ # Required. The name of the parent agent to export intents.
829
+ # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
830
+ # ID>`.
831
+ # @param intents [::Array<::String>]
832
+ # Required. The name of the intents to export.
833
+ # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
834
+ # ID>/intents/<Intent ID>`.
835
+ # @param intents_uri [::String]
836
+ # Optional. The [Google Cloud
837
+ # Storage](https://cloud.google.com/storage/docs/) URI to export the
838
+ # intents to. The format of this URI must be
839
+ # `gs://<bucket-name>/<object-name>`.
840
+ #
841
+ # Dialogflow performs a write operation for the Cloud Storage object
842
+ # on the caller's behalf, so your request authentication must
843
+ # have write permissions for the object. For more information, see
844
+ # [Dialogflow access
845
+ # control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
846
+ # @param intents_content_inline [::Boolean]
847
+ # Optional. The option to return the serialized intents inline.
848
+ # @param data_format [::Google::Cloud::Dialogflow::CX::V3::ExportIntentsRequest::DataFormat]
849
+ # Optional. The data format of the exported intents. If not specified, `BLOB`
850
+ # is assumed.
851
+ #
852
+ # @yield [response, operation] Access the result along with the RPC operation
853
+ # @yieldparam response [::Gapic::Operation]
854
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
855
+ #
856
+ # @return [::Gapic::Operation]
857
+ #
858
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
859
+ #
860
+ # @example Basic example
861
+ # require "google/cloud/dialogflow/cx/v3"
862
+ #
863
+ # # Create a client object. The client can be reused for multiple calls.
864
+ # client = Google::Cloud::Dialogflow::CX::V3::Intents::Client.new
865
+ #
866
+ # # Create a request. To set request fields, pass in keyword arguments.
867
+ # request = Google::Cloud::Dialogflow::CX::V3::ExportIntentsRequest.new
868
+ #
869
+ # # Call the export_intents method.
870
+ # result = client.export_intents request
871
+ #
872
+ # # The returned object is of type Gapic::Operation. You can use it to
873
+ # # check the status of an operation, cancel it, or wait for results.
874
+ # # Here is how to wait for a response.
875
+ # result.wait_until_done! timeout: 60
876
+ # if result.response?
877
+ # p result.response
878
+ # else
879
+ # puts "No response received."
880
+ # end
881
+ #
882
+ def export_intents request, options = nil
883
+ raise ::ArgumentError, "request must be provided" if request.nil?
884
+
885
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dialogflow::CX::V3::ExportIntentsRequest
886
+
887
+ # Converts hash and nil to an options object
888
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
889
+
890
+ # Customize the options with defaults
891
+ metadata = @config.rpcs.export_intents.metadata.to_h
892
+
893
+ # Set x-goog-api-client and x-goog-user-project headers
894
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
895
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
896
+ gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
897
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
898
+
899
+ header_params = {}
900
+ if request.parent
901
+ header_params["parent"] = request.parent
902
+ end
903
+
904
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
905
+ metadata[:"x-goog-request-params"] ||= request_params_header
906
+
907
+ options.apply_defaults timeout: @config.rpcs.export_intents.timeout,
908
+ metadata: metadata,
909
+ retry_policy: @config.rpcs.export_intents.retry_policy
910
+
911
+ options.apply_defaults timeout: @config.timeout,
912
+ metadata: @config.metadata,
913
+ retry_policy: @config.retry_policy
914
+
915
+ @intents_stub.call_rpc :export_intents, request, options: options do |response, operation|
916
+ response = ::Gapic::Operation.new response, @operations_client, options: options
917
+ yield response, operation if block_given?
918
+ return response
919
+ end
920
+ rescue ::GRPC::BadStatus => e
921
+ raise ::Google::Cloud::Error.from_error(e)
922
+ end
923
+
670
924
  ##
671
925
  # Configuration class for the Intents API.
672
926
  #
@@ -837,6 +1091,16 @@ module Google
837
1091
  # @return [::Gapic::Config::Method]
838
1092
  #
839
1093
  attr_reader :delete_intent
1094
+ ##
1095
+ # RPC-specific configuration for `import_intents`
1096
+ # @return [::Gapic::Config::Method]
1097
+ #
1098
+ attr_reader :import_intents
1099
+ ##
1100
+ # RPC-specific configuration for `export_intents`
1101
+ # @return [::Gapic::Config::Method]
1102
+ #
1103
+ attr_reader :export_intents
840
1104
 
841
1105
  # @private
842
1106
  def initialize parent_rpcs = nil
@@ -850,6 +1114,10 @@ module Google
850
1114
  @update_intent = ::Gapic::Config::Method.new update_intent_config
851
1115
  delete_intent_config = parent_rpcs.delete_intent if parent_rpcs.respond_to? :delete_intent
852
1116
  @delete_intent = ::Gapic::Config::Method.new delete_intent_config
1117
+ import_intents_config = parent_rpcs.import_intents if parent_rpcs.respond_to? :import_intents
1118
+ @import_intents = ::Gapic::Config::Method.new import_intents_config
1119
+ export_intents_config = parent_rpcs.export_intents if parent_rpcs.respond_to? :export_intents
1120
+ @export_intents = ::Gapic::Config::Method.new export_intents_config
853
1121
 
854
1122
  yield self if block_given?
855
1123
  end