google-cloud-dialogflow-v2 0.6.2 → 0.8.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (119) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.md +188 -190
  3. data/README.md +70 -2
  4. data/lib/google/cloud/dialogflow/v2.rb +13 -2
  5. data/lib/google/cloud/dialogflow/v2/agent_services_pb.rb +25 -40
  6. data/lib/google/cloud/dialogflow/v2/agents.rb +1 -28
  7. data/lib/google/cloud/dialogflow/v2/agents/client.rb +41 -100
  8. data/lib/google/cloud/dialogflow/v2/agents/operations.rb +96 -11
  9. data/lib/google/cloud/dialogflow/v2/agents/paths.rb +42 -3
  10. data/lib/google/cloud/dialogflow/v2/answer_record_pb.rb +100 -0
  11. data/lib/google/cloud/dialogflow/v2/answer_record_services_pb.rb +48 -0
  12. data/lib/google/cloud/dialogflow/v2/answer_records.rb +49 -0
  13. data/lib/google/cloud/dialogflow/v2/answer_records/client.rb +478 -0
  14. data/lib/google/cloud/dialogflow/v2/answer_records/credentials.rb +52 -0
  15. data/lib/google/cloud/dialogflow/v2/answer_records/paths.rb +105 -0
  16. data/lib/google/cloud/dialogflow/v2/audio_config_pb.rb +7 -0
  17. data/lib/google/cloud/dialogflow/v2/context_services_pb.rb +8 -25
  18. data/lib/google/cloud/dialogflow/v2/contexts.rb +1 -18
  19. data/lib/google/cloud/dialogflow/v2/contexts/client.rb +24 -63
  20. data/lib/google/cloud/dialogflow/v2/contexts/paths.rb +74 -2
  21. data/lib/google/cloud/dialogflow/v2/conversation_event_pb.rb +39 -0
  22. data/lib/google/cloud/dialogflow/v2/conversation_pb.rb +89 -0
  23. data/lib/google/cloud/dialogflow/v2/conversation_profile_pb.rb +182 -0
  24. data/lib/google/cloud/dialogflow/v2/conversation_profile_services_pb.rb +61 -0
  25. data/lib/google/cloud/dialogflow/v2/conversation_profiles.rb +49 -0
  26. data/lib/google/cloud/dialogflow/v2/conversation_profiles/client.rb +699 -0
  27. data/lib/google/cloud/dialogflow/v2/conversation_profiles/credentials.rb +52 -0
  28. data/lib/google/cloud/dialogflow/v2/conversation_profiles/paths.rb +246 -0
  29. data/lib/google/cloud/dialogflow/v2/conversation_services_pb.rb +75 -0
  30. data/lib/google/cloud/dialogflow/v2/conversations.rb +49 -0
  31. data/lib/google/cloud/dialogflow/v2/conversations/client.rb +757 -0
  32. data/lib/google/cloud/dialogflow/v2/conversations/credentials.rb +52 -0
  33. data/lib/google/cloud/dialogflow/v2/conversations/paths.rb +146 -0
  34. data/lib/google/cloud/dialogflow/v2/document_pb.rb +99 -0
  35. data/lib/google/cloud/dialogflow/v2/document_services_pb.rb +73 -0
  36. data/lib/google/cloud/dialogflow/v2/documents.rb +50 -0
  37. data/lib/google/cloud/dialogflow/v2/documents/client.rb +810 -0
  38. data/lib/google/cloud/dialogflow/v2/documents/credentials.rb +52 -0
  39. data/lib/google/cloud/dialogflow/v2/documents/operations.rb +655 -0
  40. data/lib/google/cloud/dialogflow/v2/documents/paths.rb +119 -0
  41. data/lib/google/cloud/dialogflow/v2/entity_type_services_pb.rb +12 -39
  42. data/lib/google/cloud/dialogflow/v2/entity_types.rb +1 -28
  43. data/lib/google/cloud/dialogflow/v2/entity_types/client.rb +28 -91
  44. data/lib/google/cloud/dialogflow/v2/entity_types/operations.rb +96 -11
  45. data/lib/google/cloud/dialogflow/v2/entity_types/paths.rb +58 -12
  46. data/lib/google/cloud/dialogflow/v2/environment_pb.rb +50 -1
  47. data/lib/google/cloud/dialogflow/v2/environment_services_pb.rb +24 -3
  48. data/lib/google/cloud/dialogflow/v2/environments.rb +1 -1
  49. data/lib/google/cloud/dialogflow/v2/environments/client.rb +430 -14
  50. data/lib/google/cloud/dialogflow/v2/environments/paths.rb +104 -5
  51. data/lib/google/cloud/dialogflow/v2/fulfillment_pb.rb +59 -0
  52. data/lib/google/cloud/dialogflow/v2/fulfillment_services_pb.rb +47 -0
  53. data/lib/google/cloud/dialogflow/v2/fulfillments.rb +49 -0
  54. data/lib/google/cloud/dialogflow/v2/fulfillments/client.rb +460 -0
  55. data/lib/google/cloud/dialogflow/v2/fulfillments/credentials.rb +52 -0
  56. data/lib/google/cloud/dialogflow/v2/fulfillments/paths.rb +69 -0
  57. data/lib/google/cloud/dialogflow/v2/gcs_pb.rb +20 -0
  58. data/lib/google/cloud/dialogflow/v2/human_agent_assistant_event_pb.rb +26 -0
  59. data/lib/google/cloud/dialogflow/v2/intent_pb.rb +2 -0
  60. data/lib/google/cloud/dialogflow/v2/intent_services_pb.rb +9 -40
  61. data/lib/google/cloud/dialogflow/v2/intents.rb +1 -32
  62. data/lib/google/cloud/dialogflow/v2/intents/client.rb +34 -81
  63. data/lib/google/cloud/dialogflow/v2/intents/operations.rb +96 -11
  64. data/lib/google/cloud/dialogflow/v2/intents/paths.rb +97 -13
  65. data/lib/google/cloud/dialogflow/v2/knowledge_base_pb.rb +60 -0
  66. data/lib/google/cloud/dialogflow/v2/knowledge_base_services_pb.rb +53 -0
  67. data/lib/google/cloud/dialogflow/v2/knowledge_bases.rb +49 -0
  68. data/lib/google/cloud/dialogflow/v2/knowledge_bases/client.rb +696 -0
  69. data/lib/google/cloud/dialogflow/v2/knowledge_bases/credentials.rb +52 -0
  70. data/lib/google/cloud/dialogflow/v2/knowledge_bases/paths.rb +105 -0
  71. data/lib/google/cloud/dialogflow/v2/participant_pb.rb +172 -0
  72. data/lib/google/cloud/dialogflow/v2/participant_services_pb.rb +64 -0
  73. data/lib/google/cloud/dialogflow/v2/participants.rb +49 -0
  74. data/lib/google/cloud/dialogflow/v2/participants/client.rb +894 -0
  75. data/lib/google/cloud/dialogflow/v2/participants/credentials.rb +52 -0
  76. data/lib/google/cloud/dialogflow/v2/participants/paths.rb +334 -0
  77. data/lib/google/cloud/dialogflow/v2/session_entity_type_services_pb.rb +7 -23
  78. data/lib/google/cloud/dialogflow/v2/session_entity_types.rb +1 -17
  79. data/lib/google/cloud/dialogflow/v2/session_entity_types/client.rb +23 -53
  80. data/lib/google/cloud/dialogflow/v2/session_entity_types/paths.rb +74 -2
  81. data/lib/google/cloud/dialogflow/v2/session_pb.rb +1 -0
  82. data/lib/google/cloud/dialogflow/v2/session_services_pb.rb +15 -7
  83. data/lib/google/cloud/dialogflow/v2/sessions.rb +4 -4
  84. data/lib/google/cloud/dialogflow/v2/sessions/client.rb +51 -15
  85. data/lib/google/cloud/dialogflow/v2/sessions/paths.rb +113 -3
  86. data/lib/google/cloud/dialogflow/v2/version.rb +1 -1
  87. data/lib/google/cloud/dialogflow/v2/version_pb.rb +69 -0
  88. data/lib/google/cloud/dialogflow/v2/version_services_pb.rb +59 -0
  89. data/lib/google/cloud/dialogflow/v2/versions.rb +49 -0
  90. data/lib/google/cloud/dialogflow/v2/versions/client.rb +709 -0
  91. data/lib/google/cloud/dialogflow/v2/versions/credentials.rb +52 -0
  92. data/lib/google/cloud/dialogflow/v2/versions/paths.rb +110 -0
  93. data/proto_docs/google/api/field_behavior.rb +6 -0
  94. data/proto_docs/google/api/resource.rb +50 -14
  95. data/proto_docs/google/cloud/dialogflow/v2/agent.rb +9 -1
  96. data/proto_docs/google/cloud/dialogflow/v2/answer_record.rb +252 -0
  97. data/proto_docs/google/cloud/dialogflow/v2/audio_config.rb +25 -0
  98. data/proto_docs/google/cloud/dialogflow/v2/context.rb +17 -2
  99. data/proto_docs/google/cloud/dialogflow/v2/conversation.rb +253 -0
  100. data/proto_docs/google/cloud/dialogflow/v2/conversation_event.rb +83 -0
  101. data/proto_docs/google/cloud/dialogflow/v2/conversation_profile.rb +522 -0
  102. data/proto_docs/google/cloud/dialogflow/v2/document.rb +267 -0
  103. data/proto_docs/google/cloud/dialogflow/v2/entity_type.rb +12 -3
  104. data/proto_docs/google/cloud/dialogflow/v2/environment.rb +187 -5
  105. data/proto_docs/google/cloud/dialogflow/v2/fulfillment.rb +144 -0
  106. data/proto_docs/google/cloud/dialogflow/v2/human_agent_assistant_event.rb +45 -0
  107. data/proto_docs/google/cloud/dialogflow/v2/intent.rb +29 -4
  108. data/proto_docs/google/cloud/dialogflow/v2/knowledge_base.rb +139 -0
  109. data/proto_docs/google/cloud/dialogflow/v2/participant.rb +503 -0
  110. data/proto_docs/google/cloud/dialogflow/v2/session.rb +52 -7
  111. data/proto_docs/google/cloud/dialogflow/v2/session_entity_type.rb +7 -6
  112. data/proto_docs/google/cloud/dialogflow/v2/validation_result.rb +1 -1
  113. data/proto_docs/google/cloud/dialogflow/v2/version.rb +176 -0
  114. data/proto_docs/google/cloud/dialogflow/v2/webhook.rb +2 -2
  115. data/proto_docs/google/longrunning/operations.rb +17 -3
  116. data/proto_docs/google/protobuf/any.rb +5 -2
  117. data/proto_docs/google/protobuf/timestamp.rb +10 -1
  118. data/proto_docs/google/type/latlng.rb +2 -2
  119. metadata +73 -9
@@ -0,0 +1,39 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/dialogflow/v2/conversation_event.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/cloud/dialogflow/v2/participant_pb'
7
+ require 'google/rpc/status_pb'
8
+ require 'google/api/annotations_pb'
9
+ Google::Protobuf::DescriptorPool.generated_pool.build do
10
+ add_file("google/cloud/dialogflow/v2/conversation_event.proto", :syntax => :proto3) do
11
+ add_message "google.cloud.dialogflow.v2.ConversationEvent" do
12
+ optional :conversation, :string, 1
13
+ optional :type, :enum, 2, "google.cloud.dialogflow.v2.ConversationEvent.Type"
14
+ optional :error_status, :message, 3, "google.rpc.Status"
15
+ oneof :payload do
16
+ optional :new_message_payload, :message, 4, "google.cloud.dialogflow.v2.Message"
17
+ end
18
+ end
19
+ add_enum "google.cloud.dialogflow.v2.ConversationEvent.Type" do
20
+ value :TYPE_UNSPECIFIED, 0
21
+ value :CONVERSATION_STARTED, 1
22
+ value :CONVERSATION_FINISHED, 2
23
+ value :HUMAN_INTERVENTION_NEEDED, 3
24
+ value :NEW_MESSAGE, 5
25
+ value :UNRECOVERABLE_ERROR, 4
26
+ end
27
+ end
28
+ end
29
+
30
+ module Google
31
+ module Cloud
32
+ module Dialogflow
33
+ module V2
34
+ ConversationEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.ConversationEvent").msgclass
35
+ ConversationEvent::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.ConversationEvent.Type").enummodule
36
+ end
37
+ end
38
+ end
39
+ end
@@ -0,0 +1,89 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/dialogflow/v2/conversation.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/annotations_pb'
7
+ require 'google/api/client_pb'
8
+ require 'google/api/field_behavior_pb'
9
+ require 'google/api/resource_pb'
10
+ require 'google/cloud/dialogflow/v2/participant_pb'
11
+ require 'google/protobuf/empty_pb'
12
+ require 'google/protobuf/timestamp_pb'
13
+ Google::Protobuf::DescriptorPool.generated_pool.build do
14
+ add_file("google/cloud/dialogflow/v2/conversation.proto", :syntax => :proto3) do
15
+ add_message "google.cloud.dialogflow.v2.Conversation" do
16
+ optional :name, :string, 1
17
+ optional :lifecycle_state, :enum, 2, "google.cloud.dialogflow.v2.Conversation.LifecycleState"
18
+ optional :conversation_profile, :string, 3
19
+ optional :phone_number, :message, 4, "google.cloud.dialogflow.v2.ConversationPhoneNumber"
20
+ optional :start_time, :message, 5, "google.protobuf.Timestamp"
21
+ optional :end_time, :message, 6, "google.protobuf.Timestamp"
22
+ optional :conversation_stage, :enum, 7, "google.cloud.dialogflow.v2.Conversation.ConversationStage"
23
+ end
24
+ add_enum "google.cloud.dialogflow.v2.Conversation.LifecycleState" do
25
+ value :LIFECYCLE_STATE_UNSPECIFIED, 0
26
+ value :IN_PROGRESS, 1
27
+ value :COMPLETED, 2
28
+ end
29
+ add_enum "google.cloud.dialogflow.v2.Conversation.ConversationStage" do
30
+ value :CONVERSATION_STAGE_UNSPECIFIED, 0
31
+ value :VIRTUAL_AGENT_STAGE, 1
32
+ value :HUMAN_ASSIST_STAGE, 2
33
+ end
34
+ add_message "google.cloud.dialogflow.v2.CreateConversationRequest" do
35
+ optional :parent, :string, 1
36
+ optional :conversation, :message, 2, "google.cloud.dialogflow.v2.Conversation"
37
+ optional :conversation_id, :string, 3
38
+ end
39
+ add_message "google.cloud.dialogflow.v2.ListConversationsRequest" do
40
+ optional :parent, :string, 1
41
+ optional :page_size, :int32, 2
42
+ optional :page_token, :string, 3
43
+ optional :filter, :string, 4
44
+ end
45
+ add_message "google.cloud.dialogflow.v2.ListConversationsResponse" do
46
+ repeated :conversations, :message, 1, "google.cloud.dialogflow.v2.Conversation"
47
+ optional :next_page_token, :string, 2
48
+ end
49
+ add_message "google.cloud.dialogflow.v2.GetConversationRequest" do
50
+ optional :name, :string, 1
51
+ end
52
+ add_message "google.cloud.dialogflow.v2.CompleteConversationRequest" do
53
+ optional :name, :string, 1
54
+ end
55
+ add_message "google.cloud.dialogflow.v2.ListMessagesRequest" do
56
+ optional :parent, :string, 1
57
+ optional :filter, :string, 4
58
+ optional :page_size, :int32, 2
59
+ optional :page_token, :string, 3
60
+ end
61
+ add_message "google.cloud.dialogflow.v2.ListMessagesResponse" do
62
+ repeated :messages, :message, 1, "google.cloud.dialogflow.v2.Message"
63
+ optional :next_page_token, :string, 2
64
+ end
65
+ add_message "google.cloud.dialogflow.v2.ConversationPhoneNumber" do
66
+ optional :phone_number, :string, 3
67
+ end
68
+ end
69
+ end
70
+
71
+ module Google
72
+ module Cloud
73
+ module Dialogflow
74
+ module V2
75
+ Conversation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.Conversation").msgclass
76
+ Conversation::LifecycleState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.Conversation.LifecycleState").enummodule
77
+ Conversation::ConversationStage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.Conversation.ConversationStage").enummodule
78
+ CreateConversationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.CreateConversationRequest").msgclass
79
+ ListConversationsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.ListConversationsRequest").msgclass
80
+ ListConversationsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.ListConversationsResponse").msgclass
81
+ GetConversationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.GetConversationRequest").msgclass
82
+ CompleteConversationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.CompleteConversationRequest").msgclass
83
+ ListMessagesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.ListMessagesRequest").msgclass
84
+ ListMessagesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.ListMessagesResponse").msgclass
85
+ ConversationPhoneNumber = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.ConversationPhoneNumber").msgclass
86
+ end
87
+ end
88
+ end
89
+ end
@@ -0,0 +1,182 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/dialogflow/v2/conversation_profile.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/annotations_pb'
7
+ require 'google/api/client_pb'
8
+ require 'google/api/field_behavior_pb'
9
+ require 'google/api/resource_pb'
10
+ require 'google/cloud/dialogflow/v2/audio_config_pb'
11
+ require 'google/cloud/dialogflow/v2/participant_pb'
12
+ require 'google/longrunning/operations_pb'
13
+ require 'google/protobuf/empty_pb'
14
+ require 'google/protobuf/field_mask_pb'
15
+ require 'google/protobuf/timestamp_pb'
16
+ Google::Protobuf::DescriptorPool.generated_pool.build do
17
+ add_file("google/cloud/dialogflow/v2/conversation_profile.proto", :syntax => :proto3) do
18
+ add_message "google.cloud.dialogflow.v2.ConversationProfile" do
19
+ optional :name, :string, 1
20
+ optional :display_name, :string, 2
21
+ optional :create_time, :message, 11, "google.protobuf.Timestamp"
22
+ optional :update_time, :message, 12, "google.protobuf.Timestamp"
23
+ optional :automated_agent_config, :message, 3, "google.cloud.dialogflow.v2.AutomatedAgentConfig"
24
+ optional :human_agent_assistant_config, :message, 4, "google.cloud.dialogflow.v2.HumanAgentAssistantConfig"
25
+ optional :human_agent_handoff_config, :message, 5, "google.cloud.dialogflow.v2.HumanAgentHandoffConfig"
26
+ optional :notification_config, :message, 6, "google.cloud.dialogflow.v2.NotificationConfig"
27
+ optional :logging_config, :message, 7, "google.cloud.dialogflow.v2.LoggingConfig"
28
+ optional :new_message_event_notification_config, :message, 8, "google.cloud.dialogflow.v2.NotificationConfig"
29
+ optional :stt_config, :message, 9, "google.cloud.dialogflow.v2.SpeechToTextConfig"
30
+ optional :language_code, :string, 10
31
+ end
32
+ add_message "google.cloud.dialogflow.v2.ListConversationProfilesRequest" do
33
+ optional :parent, :string, 1
34
+ optional :page_size, :int32, 2
35
+ optional :page_token, :string, 3
36
+ end
37
+ add_message "google.cloud.dialogflow.v2.ListConversationProfilesResponse" do
38
+ repeated :conversation_profiles, :message, 1, "google.cloud.dialogflow.v2.ConversationProfile"
39
+ optional :next_page_token, :string, 2
40
+ end
41
+ add_message "google.cloud.dialogflow.v2.GetConversationProfileRequest" do
42
+ optional :name, :string, 1
43
+ end
44
+ add_message "google.cloud.dialogflow.v2.CreateConversationProfileRequest" do
45
+ optional :parent, :string, 1
46
+ optional :conversation_profile, :message, 2, "google.cloud.dialogflow.v2.ConversationProfile"
47
+ end
48
+ add_message "google.cloud.dialogflow.v2.UpdateConversationProfileRequest" do
49
+ optional :conversation_profile, :message, 1, "google.cloud.dialogflow.v2.ConversationProfile"
50
+ optional :update_mask, :message, 2, "google.protobuf.FieldMask"
51
+ end
52
+ add_message "google.cloud.dialogflow.v2.DeleteConversationProfileRequest" do
53
+ optional :name, :string, 1
54
+ end
55
+ add_message "google.cloud.dialogflow.v2.AutomatedAgentConfig" do
56
+ optional :agent, :string, 1
57
+ end
58
+ add_message "google.cloud.dialogflow.v2.HumanAgentAssistantConfig" do
59
+ optional :notification_config, :message, 2, "google.cloud.dialogflow.v2.NotificationConfig"
60
+ optional :human_agent_suggestion_config, :message, 3, "google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig"
61
+ optional :end_user_suggestion_config, :message, 4, "google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig"
62
+ optional :message_analysis_config, :message, 5, "google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig"
63
+ end
64
+ add_message "google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings" do
65
+ optional :no_smalltalk, :bool, 1
66
+ optional :only_end_user, :bool, 2
67
+ end
68
+ add_message "google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig" do
69
+ optional :suggestion_feature, :message, 5, "google.cloud.dialogflow.v2.SuggestionFeature"
70
+ optional :enable_event_based_suggestion, :bool, 3
71
+ optional :suggestion_trigger_settings, :message, 10, "google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings"
72
+ optional :query_config, :message, 6, "google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig"
73
+ optional :conversation_model_config, :message, 7, "google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig"
74
+ end
75
+ add_message "google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig" do
76
+ repeated :feature_configs, :message, 2, "google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig"
77
+ optional :group_suggestion_responses, :bool, 3
78
+ end
79
+ add_message "google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig" do
80
+ optional :max_results, :int32, 4
81
+ optional :confidence_threshold, :float, 5
82
+ optional :context_filter_settings, :message, 7, "google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings"
83
+ oneof :query_source do
84
+ optional :knowledge_base_query_source, :message, 1, "google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource"
85
+ optional :document_query_source, :message, 2, "google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource"
86
+ optional :dialogflow_query_source, :message, 3, "google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource"
87
+ end
88
+ end
89
+ add_message "google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource" do
90
+ repeated :knowledge_bases, :string, 1
91
+ end
92
+ add_message "google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource" do
93
+ repeated :documents, :string, 1
94
+ end
95
+ add_message "google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource" do
96
+ optional :agent, :string, 1
97
+ end
98
+ add_message "google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings" do
99
+ optional :drop_handoff_messages, :bool, 1
100
+ optional :drop_virtual_agent_messages, :bool, 2
101
+ optional :drop_ivr_messages, :bool, 3
102
+ end
103
+ add_message "google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig" do
104
+ optional :model, :string, 1
105
+ end
106
+ add_message "google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig" do
107
+ optional :enable_entity_extraction, :bool, 2
108
+ optional :enable_sentiment_analysis, :bool, 3
109
+ end
110
+ add_message "google.cloud.dialogflow.v2.HumanAgentHandoffConfig" do
111
+ oneof :agent_service do
112
+ optional :live_person_config, :message, 1, "google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig"
113
+ optional :salesforce_live_agent_config, :message, 2, "google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig"
114
+ end
115
+ end
116
+ add_message "google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig" do
117
+ optional :account_number, :string, 1
118
+ end
119
+ add_message "google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig" do
120
+ optional :organization_id, :string, 1
121
+ optional :deployment_id, :string, 2
122
+ optional :button_id, :string, 3
123
+ optional :endpoint_domain, :string, 4
124
+ end
125
+ add_message "google.cloud.dialogflow.v2.NotificationConfig" do
126
+ optional :topic, :string, 1
127
+ optional :message_format, :enum, 2, "google.cloud.dialogflow.v2.NotificationConfig.MessageFormat"
128
+ end
129
+ add_enum "google.cloud.dialogflow.v2.NotificationConfig.MessageFormat" do
130
+ value :MESSAGE_FORMAT_UNSPECIFIED, 0
131
+ value :PROTO, 1
132
+ value :JSON, 2
133
+ end
134
+ add_message "google.cloud.dialogflow.v2.LoggingConfig" do
135
+ optional :enable_stackdriver_logging, :bool, 3
136
+ end
137
+ add_message "google.cloud.dialogflow.v2.SuggestionFeature" do
138
+ optional :type, :enum, 1, "google.cloud.dialogflow.v2.SuggestionFeature.Type"
139
+ end
140
+ add_enum "google.cloud.dialogflow.v2.SuggestionFeature.Type" do
141
+ value :TYPE_UNSPECIFIED, 0
142
+ value :ARTICLE_SUGGESTION, 1
143
+ value :FAQ, 2
144
+ end
145
+ end
146
+ end
147
+
148
+ module Google
149
+ module Cloud
150
+ module Dialogflow
151
+ module V2
152
+ ConversationProfile = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.ConversationProfile").msgclass
153
+ ListConversationProfilesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.ListConversationProfilesRequest").msgclass
154
+ ListConversationProfilesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.ListConversationProfilesResponse").msgclass
155
+ GetConversationProfileRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.GetConversationProfileRequest").msgclass
156
+ CreateConversationProfileRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.CreateConversationProfileRequest").msgclass
157
+ UpdateConversationProfileRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.UpdateConversationProfileRequest").msgclass
158
+ DeleteConversationProfileRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.DeleteConversationProfileRequest").msgclass
159
+ AutomatedAgentConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.AutomatedAgentConfig").msgclass
160
+ HumanAgentAssistantConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.HumanAgentAssistantConfig").msgclass
161
+ HumanAgentAssistantConfig::SuggestionTriggerSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings").msgclass
162
+ HumanAgentAssistantConfig::SuggestionFeatureConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig").msgclass
163
+ HumanAgentAssistantConfig::SuggestionConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig").msgclass
164
+ HumanAgentAssistantConfig::SuggestionQueryConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig").msgclass
165
+ HumanAgentAssistantConfig::SuggestionQueryConfig::KnowledgeBaseQuerySource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource").msgclass
166
+ HumanAgentAssistantConfig::SuggestionQueryConfig::DocumentQuerySource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource").msgclass
167
+ HumanAgentAssistantConfig::SuggestionQueryConfig::DialogflowQuerySource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource").msgclass
168
+ HumanAgentAssistantConfig::SuggestionQueryConfig::ContextFilterSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings").msgclass
169
+ HumanAgentAssistantConfig::ConversationModelConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig").msgclass
170
+ HumanAgentAssistantConfig::MessageAnalysisConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.HumanAgentAssistantConfig.MessageAnalysisConfig").msgclass
171
+ HumanAgentHandoffConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.HumanAgentHandoffConfig").msgclass
172
+ HumanAgentHandoffConfig::LivePersonConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.HumanAgentHandoffConfig.LivePersonConfig").msgclass
173
+ HumanAgentHandoffConfig::SalesforceLiveAgentConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.HumanAgentHandoffConfig.SalesforceLiveAgentConfig").msgclass
174
+ NotificationConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.NotificationConfig").msgclass
175
+ NotificationConfig::MessageFormat = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.NotificationConfig.MessageFormat").enummodule
176
+ LoggingConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.LoggingConfig").msgclass
177
+ SuggestionFeature = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.SuggestionFeature").msgclass
178
+ SuggestionFeature::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.SuggestionFeature.Type").enummodule
179
+ end
180
+ end
181
+ end
182
+ end
@@ -0,0 +1,61 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: google/cloud/dialogflow/v2/conversation_profile.proto for package 'google.cloud.dialogflow.v2'
3
+ # Original file comments:
4
+ # Copyright 2021 Google LLC
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
18
+
19
+ require 'grpc'
20
+ require 'google/cloud/dialogflow/v2/conversation_profile_pb'
21
+
22
+ module Google
23
+ module Cloud
24
+ module Dialogflow
25
+ module V2
26
+ module ConversationProfiles
27
+ # Service for managing [ConversationProfiles][google.cloud.dialogflow.v2.ConversationProfile].
28
+ class Service
29
+
30
+ include ::GRPC::GenericService
31
+
32
+ self.marshal_class_method = :encode
33
+ self.unmarshal_class_method = :decode
34
+ self.service_name = 'google.cloud.dialogflow.v2.ConversationProfiles'
35
+
36
+ # Returns the list of all conversation profiles in the specified project.
37
+ rpc :ListConversationProfiles, ::Google::Cloud::Dialogflow::V2::ListConversationProfilesRequest, ::Google::Cloud::Dialogflow::V2::ListConversationProfilesResponse
38
+ # Retrieves the specified conversation profile.
39
+ rpc :GetConversationProfile, ::Google::Cloud::Dialogflow::V2::GetConversationProfileRequest, ::Google::Cloud::Dialogflow::V2::ConversationProfile
40
+ # Creates a conversation profile in the specified project.
41
+ #
42
+ # [ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][]
43
+ # aren't populated in the response. You can retrieve them via
44
+ # [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] API.
45
+ rpc :CreateConversationProfile, ::Google::Cloud::Dialogflow::V2::CreateConversationProfileRequest, ::Google::Cloud::Dialogflow::V2::ConversationProfile
46
+ # Updates the specified conversation profile.
47
+ #
48
+ # [ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][]
49
+ # aren't populated in the response. You can retrieve them via
50
+ # [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] API.
51
+ rpc :UpdateConversationProfile, ::Google::Cloud::Dialogflow::V2::UpdateConversationProfileRequest, ::Google::Cloud::Dialogflow::V2::ConversationProfile
52
+ # Deletes the specified conversation profile.
53
+ rpc :DeleteConversationProfile, ::Google::Cloud::Dialogflow::V2::DeleteConversationProfileRequest, ::Google::Protobuf::Empty
54
+ end
55
+
56
+ Stub = Service.rpc_stub_class
57
+ end
58
+ end
59
+ end
60
+ end
61
+ end
@@ -0,0 +1,49 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2021 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "gapic/common"
20
+ require "gapic/config"
21
+ require "gapic/config/method"
22
+
23
+ require "google/cloud/dialogflow/v2/version"
24
+
25
+ require "google/cloud/dialogflow/v2/conversation_profiles/credentials"
26
+ require "google/cloud/dialogflow/v2/conversation_profiles/paths"
27
+ require "google/cloud/dialogflow/v2/conversation_profiles/client"
28
+
29
+ module Google
30
+ module Cloud
31
+ module Dialogflow
32
+ module V2
33
+ ##
34
+ # Service for managing {::Google::Cloud::Dialogflow::V2::ConversationProfile ConversationProfiles}.
35
+ #
36
+ # To load this service and instantiate a client:
37
+ #
38
+ # require "google/cloud/dialogflow/v2/conversation_profiles"
39
+ # client = ::Google::Cloud::Dialogflow::V2::ConversationProfiles::Client.new
40
+ #
41
+ module ConversationProfiles
42
+ end
43
+ end
44
+ end
45
+ end
46
+ end
47
+
48
+ helper_path = ::File.join __dir__, "conversation_profiles", "helpers.rb"
49
+ require "google/cloud/dialogflow/v2/conversation_profiles/helpers" if ::File.file? helper_path
@@ -0,0 +1,699 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2021 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "google/cloud/errors"
20
+ require "google/cloud/dialogflow/v2/conversation_profile_pb"
21
+
22
+ module Google
23
+ module Cloud
24
+ module Dialogflow
25
+ module V2
26
+ module ConversationProfiles
27
+ ##
28
+ # Client for the ConversationProfiles service.
29
+ #
30
+ # Service for managing {::Google::Cloud::Dialogflow::V2::ConversationProfile ConversationProfiles}.
31
+ #
32
+ class Client
33
+ include Paths
34
+
35
+ # @private
36
+ attr_reader :conversation_profiles_stub
37
+
38
+ ##
39
+ # Configure the ConversationProfiles Client class.
40
+ #
41
+ # See {::Google::Cloud::Dialogflow::V2::ConversationProfiles::Client::Configuration}
42
+ # for a description of the configuration fields.
43
+ #
44
+ # ## Example
45
+ #
46
+ # To modify the configuration for all ConversationProfiles clients:
47
+ #
48
+ # ::Google::Cloud::Dialogflow::V2::ConversationProfiles::Client.configure do |config|
49
+ # config.timeout = 10.0
50
+ # end
51
+ #
52
+ # @yield [config] Configure the Client client.
53
+ # @yieldparam config [Client::Configuration]
54
+ #
55
+ # @return [Client::Configuration]
56
+ #
57
+ def self.configure
58
+ @configure ||= begin
59
+ namespace = ["Google", "Cloud", "Dialogflow", "V2"]
60
+ parent_config = while namespace.any?
61
+ parent_name = namespace.join "::"
62
+ parent_const = const_get parent_name
63
+ break parent_const.configure if parent_const.respond_to? :configure
64
+ namespace.pop
65
+ end
66
+ default_config = Client::Configuration.new parent_config
67
+
68
+ default_config.timeout = 60.0
69
+ default_config.retry_policy = {
70
+ initial_delay: 0.1,
71
+ max_delay: 60.0,
72
+ multiplier: 1.3,
73
+ retry_codes: [14]
74
+ }
75
+
76
+ default_config
77
+ end
78
+ yield @configure if block_given?
79
+ @configure
80
+ end
81
+
82
+ ##
83
+ # Configure the ConversationProfiles Client instance.
84
+ #
85
+ # The configuration is set to the derived mode, meaning that values can be changed,
86
+ # but structural changes (adding new fields, etc.) are not allowed. Structural changes
87
+ # should be made on {Client.configure}.
88
+ #
89
+ # See {::Google::Cloud::Dialogflow::V2::ConversationProfiles::Client::Configuration}
90
+ # for a description of the configuration fields.
91
+ #
92
+ # @yield [config] Configure the Client client.
93
+ # @yieldparam config [Client::Configuration]
94
+ #
95
+ # @return [Client::Configuration]
96
+ #
97
+ def configure
98
+ yield @config if block_given?
99
+ @config
100
+ end
101
+
102
+ ##
103
+ # Create a new ConversationProfiles client object.
104
+ #
105
+ # ## Examples
106
+ #
107
+ # To create a new ConversationProfiles client with the default
108
+ # configuration:
109
+ #
110
+ # client = ::Google::Cloud::Dialogflow::V2::ConversationProfiles::Client.new
111
+ #
112
+ # To create a new ConversationProfiles client with a custom
113
+ # configuration:
114
+ #
115
+ # client = ::Google::Cloud::Dialogflow::V2::ConversationProfiles::Client.new do |config|
116
+ # config.timeout = 10.0
117
+ # end
118
+ #
119
+ # @yield [config] Configure the ConversationProfiles client.
120
+ # @yieldparam config [Client::Configuration]
121
+ #
122
+ def initialize
123
+ # These require statements are intentionally placed here to initialize
124
+ # the gRPC module only when it's required.
125
+ # See https://github.com/googleapis/toolkit/issues/446
126
+ require "gapic/grpc"
127
+ require "google/cloud/dialogflow/v2/conversation_profile_services_pb"
128
+
129
+ # Create the configuration object
130
+ @config = Configuration.new Client.configure
131
+
132
+ # Yield the configuration if needed
133
+ yield @config if block_given?
134
+
135
+ # Create credentials
136
+ credentials = @config.credentials
137
+ # Use self-signed JWT if the scope and endpoint are unchanged from default,
138
+ # but only if the default endpoint does not have a region prefix.
139
+ enable_self_signed_jwt = @config.scope == Client.configure.scope &&
140
+ @config.endpoint == Client.configure.endpoint &&
141
+ !@config.endpoint.split(".").first.include?("-")
142
+ credentials ||= Credentials.default scope: @config.scope,
143
+ enable_self_signed_jwt: enable_self_signed_jwt
144
+ if credentials.is_a?(String) || credentials.is_a?(Hash)
145
+ credentials = Credentials.new credentials, scope: @config.scope
146
+ end
147
+ @quota_project_id = @config.quota_project
148
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
149
+
150
+ @conversation_profiles_stub = ::Gapic::ServiceStub.new(
151
+ ::Google::Cloud::Dialogflow::V2::ConversationProfiles::Stub,
152
+ credentials: credentials,
153
+ endpoint: @config.endpoint,
154
+ channel_args: @config.channel_args,
155
+ interceptors: @config.interceptors
156
+ )
157
+ end
158
+
159
+ # Service calls
160
+
161
+ ##
162
+ # Returns the list of all conversation profiles in the specified project.
163
+ #
164
+ # @overload list_conversation_profiles(request, options = nil)
165
+ # Pass arguments to `list_conversation_profiles` via a request object, either of type
166
+ # {::Google::Cloud::Dialogflow::V2::ListConversationProfilesRequest} or an equivalent Hash.
167
+ #
168
+ # @param request [::Google::Cloud::Dialogflow::V2::ListConversationProfilesRequest, ::Hash]
169
+ # A request object representing the call parameters. Required. To specify no
170
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
171
+ # @param options [::Gapic::CallOptions, ::Hash]
172
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
173
+ #
174
+ # @overload list_conversation_profiles(parent: nil, page_size: nil, page_token: nil)
175
+ # Pass arguments to `list_conversation_profiles` via keyword arguments. Note that at
176
+ # least one keyword argument is required. To specify no parameters, or to keep all
177
+ # the default parameter values, pass an empty Hash as a request object (see above).
178
+ #
179
+ # @param parent [::String]
180
+ # Required. The project to list all conversation profiles from.
181
+ # Format: `projects/<Project ID>/locations/<Location ID>`.
182
+ # @param page_size [::Integer]
183
+ # The maximum number of items to return in a single page. By
184
+ # default 100 and at most 1000.
185
+ # @param page_token [::String]
186
+ # The next_page_token value returned from a previous list request.
187
+ #
188
+ # @yield [response, operation] Access the result along with the RPC operation
189
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dialogflow::V2::ConversationProfile>]
190
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
191
+ #
192
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dialogflow::V2::ConversationProfile>]
193
+ #
194
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
195
+ #
196
+ def list_conversation_profiles request, options = nil
197
+ raise ::ArgumentError, "request must be provided" if request.nil?
198
+
199
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dialogflow::V2::ListConversationProfilesRequest
200
+
201
+ # Converts hash and nil to an options object
202
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
203
+
204
+ # Customize the options with defaults
205
+ metadata = @config.rpcs.list_conversation_profiles.metadata.to_h
206
+
207
+ # Set x-goog-api-client and x-goog-user-project headers
208
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
209
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
210
+ gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
211
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
212
+
213
+ header_params = {
214
+ "parent" => request.parent
215
+ }
216
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
217
+ metadata[:"x-goog-request-params"] ||= request_params_header
218
+
219
+ options.apply_defaults timeout: @config.rpcs.list_conversation_profiles.timeout,
220
+ metadata: metadata,
221
+ retry_policy: @config.rpcs.list_conversation_profiles.retry_policy
222
+ options.apply_defaults metadata: @config.metadata,
223
+ retry_policy: @config.retry_policy
224
+
225
+ @conversation_profiles_stub.call_rpc :list_conversation_profiles, request, options: options do |response, operation|
226
+ response = ::Gapic::PagedEnumerable.new @conversation_profiles_stub, :list_conversation_profiles, request, response, operation, options
227
+ yield response, operation if block_given?
228
+ return response
229
+ end
230
+ rescue ::GRPC::BadStatus => e
231
+ raise ::Google::Cloud::Error.from_error(e)
232
+ end
233
+
234
+ ##
235
+ # Retrieves the specified conversation profile.
236
+ #
237
+ # @overload get_conversation_profile(request, options = nil)
238
+ # Pass arguments to `get_conversation_profile` via a request object, either of type
239
+ # {::Google::Cloud::Dialogflow::V2::GetConversationProfileRequest} or an equivalent Hash.
240
+ #
241
+ # @param request [::Google::Cloud::Dialogflow::V2::GetConversationProfileRequest, ::Hash]
242
+ # A request object representing the call parameters. Required. To specify no
243
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
244
+ # @param options [::Gapic::CallOptions, ::Hash]
245
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
246
+ #
247
+ # @overload get_conversation_profile(name: nil)
248
+ # Pass arguments to `get_conversation_profile` via keyword arguments. Note that at
249
+ # least one keyword argument is required. To specify no parameters, or to keep all
250
+ # the default parameter values, pass an empty Hash as a request object (see above).
251
+ #
252
+ # @param name [::String]
253
+ # Required. The resource name of the conversation profile.
254
+ # Format: `projects/<Project ID>/locations/<Location
255
+ # ID>/conversationProfiles/<Conversation Profile ID>`.
256
+ #
257
+ # @yield [response, operation] Access the result along with the RPC operation
258
+ # @yieldparam response [::Google::Cloud::Dialogflow::V2::ConversationProfile]
259
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
260
+ #
261
+ # @return [::Google::Cloud::Dialogflow::V2::ConversationProfile]
262
+ #
263
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
264
+ #
265
+ def get_conversation_profile request, options = nil
266
+ raise ::ArgumentError, "request must be provided" if request.nil?
267
+
268
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dialogflow::V2::GetConversationProfileRequest
269
+
270
+ # Converts hash and nil to an options object
271
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
272
+
273
+ # Customize the options with defaults
274
+ metadata = @config.rpcs.get_conversation_profile.metadata.to_h
275
+
276
+ # Set x-goog-api-client and x-goog-user-project headers
277
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
278
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
279
+ gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
280
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
281
+
282
+ header_params = {
283
+ "name" => request.name
284
+ }
285
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
286
+ metadata[:"x-goog-request-params"] ||= request_params_header
287
+
288
+ options.apply_defaults timeout: @config.rpcs.get_conversation_profile.timeout,
289
+ metadata: metadata,
290
+ retry_policy: @config.rpcs.get_conversation_profile.retry_policy
291
+ options.apply_defaults metadata: @config.metadata,
292
+ retry_policy: @config.retry_policy
293
+
294
+ @conversation_profiles_stub.call_rpc :get_conversation_profile, request, options: options do |response, operation|
295
+ yield response, operation if block_given?
296
+ return response
297
+ end
298
+ rescue ::GRPC::BadStatus => e
299
+ raise ::Google::Cloud::Error.from_error(e)
300
+ end
301
+
302
+ ##
303
+ # Creates a conversation profile in the specified project.
304
+ #
305
+ # [ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][]
306
+ # aren't populated in the response. You can retrieve them via
307
+ # {::Google::Cloud::Dialogflow::V2::ConversationProfiles::Client#get_conversation_profile GetConversationProfile} API.
308
+ #
309
+ # @overload create_conversation_profile(request, options = nil)
310
+ # Pass arguments to `create_conversation_profile` via a request object, either of type
311
+ # {::Google::Cloud::Dialogflow::V2::CreateConversationProfileRequest} or an equivalent Hash.
312
+ #
313
+ # @param request [::Google::Cloud::Dialogflow::V2::CreateConversationProfileRequest, ::Hash]
314
+ # A request object representing the call parameters. Required. To specify no
315
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
316
+ # @param options [::Gapic::CallOptions, ::Hash]
317
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
318
+ #
319
+ # @overload create_conversation_profile(parent: nil, conversation_profile: nil)
320
+ # Pass arguments to `create_conversation_profile` via keyword arguments. Note that at
321
+ # least one keyword argument is required. To specify no parameters, or to keep all
322
+ # the default parameter values, pass an empty Hash as a request object (see above).
323
+ #
324
+ # @param parent [::String]
325
+ # Required. The project to create a conversation profile for.
326
+ # Format: `projects/<Project ID>/locations/<Location ID>`.
327
+ # @param conversation_profile [::Google::Cloud::Dialogflow::V2::ConversationProfile, ::Hash]
328
+ # Required. The conversation profile to create.
329
+ #
330
+ # @yield [response, operation] Access the result along with the RPC operation
331
+ # @yieldparam response [::Google::Cloud::Dialogflow::V2::ConversationProfile]
332
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
333
+ #
334
+ # @return [::Google::Cloud::Dialogflow::V2::ConversationProfile]
335
+ #
336
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
337
+ #
338
+ def create_conversation_profile request, options = nil
339
+ raise ::ArgumentError, "request must be provided" if request.nil?
340
+
341
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dialogflow::V2::CreateConversationProfileRequest
342
+
343
+ # Converts hash and nil to an options object
344
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
345
+
346
+ # Customize the options with defaults
347
+ metadata = @config.rpcs.create_conversation_profile.metadata.to_h
348
+
349
+ # Set x-goog-api-client and x-goog-user-project headers
350
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
351
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
352
+ gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
353
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
354
+
355
+ header_params = {
356
+ "parent" => request.parent
357
+ }
358
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
359
+ metadata[:"x-goog-request-params"] ||= request_params_header
360
+
361
+ options.apply_defaults timeout: @config.rpcs.create_conversation_profile.timeout,
362
+ metadata: metadata,
363
+ retry_policy: @config.rpcs.create_conversation_profile.retry_policy
364
+ options.apply_defaults metadata: @config.metadata,
365
+ retry_policy: @config.retry_policy
366
+
367
+ @conversation_profiles_stub.call_rpc :create_conversation_profile, request, options: options do |response, operation|
368
+ yield response, operation if block_given?
369
+ return response
370
+ end
371
+ rescue ::GRPC::BadStatus => e
372
+ raise ::Google::Cloud::Error.from_error(e)
373
+ end
374
+
375
+ ##
376
+ # Updates the specified conversation profile.
377
+ #
378
+ # [ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][]
379
+ # aren't populated in the response. You can retrieve them via
380
+ # {::Google::Cloud::Dialogflow::V2::ConversationProfiles::Client#get_conversation_profile GetConversationProfile} API.
381
+ #
382
+ # @overload update_conversation_profile(request, options = nil)
383
+ # Pass arguments to `update_conversation_profile` via a request object, either of type
384
+ # {::Google::Cloud::Dialogflow::V2::UpdateConversationProfileRequest} or an equivalent Hash.
385
+ #
386
+ # @param request [::Google::Cloud::Dialogflow::V2::UpdateConversationProfileRequest, ::Hash]
387
+ # A request object representing the call parameters. Required. To specify no
388
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
389
+ # @param options [::Gapic::CallOptions, ::Hash]
390
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
391
+ #
392
+ # @overload update_conversation_profile(conversation_profile: nil, update_mask: nil)
393
+ # Pass arguments to `update_conversation_profile` via keyword arguments. Note that at
394
+ # least one keyword argument is required. To specify no parameters, or to keep all
395
+ # the default parameter values, pass an empty Hash as a request object (see above).
396
+ #
397
+ # @param conversation_profile [::Google::Cloud::Dialogflow::V2::ConversationProfile, ::Hash]
398
+ # Required. The conversation profile to update.
399
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
400
+ # Required. The mask to control which fields to update.
401
+ #
402
+ # @yield [response, operation] Access the result along with the RPC operation
403
+ # @yieldparam response [::Google::Cloud::Dialogflow::V2::ConversationProfile]
404
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
405
+ #
406
+ # @return [::Google::Cloud::Dialogflow::V2::ConversationProfile]
407
+ #
408
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
409
+ #
410
+ def update_conversation_profile request, options = nil
411
+ raise ::ArgumentError, "request must be provided" if request.nil?
412
+
413
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dialogflow::V2::UpdateConversationProfileRequest
414
+
415
+ # Converts hash and nil to an options object
416
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
417
+
418
+ # Customize the options with defaults
419
+ metadata = @config.rpcs.update_conversation_profile.metadata.to_h
420
+
421
+ # Set x-goog-api-client and x-goog-user-project headers
422
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
423
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
424
+ gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
425
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
426
+
427
+ header_params = {
428
+ "conversation_profile.name" => request.conversation_profile.name
429
+ }
430
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
431
+ metadata[:"x-goog-request-params"] ||= request_params_header
432
+
433
+ options.apply_defaults timeout: @config.rpcs.update_conversation_profile.timeout,
434
+ metadata: metadata,
435
+ retry_policy: @config.rpcs.update_conversation_profile.retry_policy
436
+ options.apply_defaults metadata: @config.metadata,
437
+ retry_policy: @config.retry_policy
438
+
439
+ @conversation_profiles_stub.call_rpc :update_conversation_profile, request, options: options do |response, operation|
440
+ yield response, operation if block_given?
441
+ return response
442
+ end
443
+ rescue ::GRPC::BadStatus => e
444
+ raise ::Google::Cloud::Error.from_error(e)
445
+ end
446
+
447
+ ##
448
+ # Deletes the specified conversation profile.
449
+ #
450
+ # @overload delete_conversation_profile(request, options = nil)
451
+ # Pass arguments to `delete_conversation_profile` via a request object, either of type
452
+ # {::Google::Cloud::Dialogflow::V2::DeleteConversationProfileRequest} or an equivalent Hash.
453
+ #
454
+ # @param request [::Google::Cloud::Dialogflow::V2::DeleteConversationProfileRequest, ::Hash]
455
+ # A request object representing the call parameters. Required. To specify no
456
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
457
+ # @param options [::Gapic::CallOptions, ::Hash]
458
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
459
+ #
460
+ # @overload delete_conversation_profile(name: nil)
461
+ # Pass arguments to `delete_conversation_profile` via keyword arguments. Note that at
462
+ # least one keyword argument is required. To specify no parameters, or to keep all
463
+ # the default parameter values, pass an empty Hash as a request object (see above).
464
+ #
465
+ # @param name [::String]
466
+ # Required. The name of the conversation profile to delete.
467
+ # Format: `projects/<Project ID>/locations/<Location
468
+ # ID>/conversationProfiles/<Conversation Profile ID>`.
469
+ #
470
+ # @yield [response, operation] Access the result along with the RPC operation
471
+ # @yieldparam response [::Google::Protobuf::Empty]
472
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
473
+ #
474
+ # @return [::Google::Protobuf::Empty]
475
+ #
476
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
477
+ #
478
+ def delete_conversation_profile request, options = nil
479
+ raise ::ArgumentError, "request must be provided" if request.nil?
480
+
481
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dialogflow::V2::DeleteConversationProfileRequest
482
+
483
+ # Converts hash and nil to an options object
484
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
485
+
486
+ # Customize the options with defaults
487
+ metadata = @config.rpcs.delete_conversation_profile.metadata.to_h
488
+
489
+ # Set x-goog-api-client and x-goog-user-project headers
490
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
491
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
492
+ gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
493
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
494
+
495
+ header_params = {
496
+ "name" => request.name
497
+ }
498
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
499
+ metadata[:"x-goog-request-params"] ||= request_params_header
500
+
501
+ options.apply_defaults timeout: @config.rpcs.delete_conversation_profile.timeout,
502
+ metadata: metadata,
503
+ retry_policy: @config.rpcs.delete_conversation_profile.retry_policy
504
+ options.apply_defaults metadata: @config.metadata,
505
+ retry_policy: @config.retry_policy
506
+
507
+ @conversation_profiles_stub.call_rpc :delete_conversation_profile, request, options: options do |response, operation|
508
+ yield response, operation if block_given?
509
+ return response
510
+ end
511
+ rescue ::GRPC::BadStatus => e
512
+ raise ::Google::Cloud::Error.from_error(e)
513
+ end
514
+
515
+ ##
516
+ # Configuration class for the ConversationProfiles API.
517
+ #
518
+ # This class represents the configuration for ConversationProfiles,
519
+ # providing control over timeouts, retry behavior, logging, transport
520
+ # parameters, and other low-level controls. Certain parameters can also be
521
+ # applied individually to specific RPCs. See
522
+ # {::Google::Cloud::Dialogflow::V2::ConversationProfiles::Client::Configuration::Rpcs}
523
+ # for a list of RPCs that can be configured independently.
524
+ #
525
+ # Configuration can be applied globally to all clients, or to a single client
526
+ # on construction.
527
+ #
528
+ # # Examples
529
+ #
530
+ # To modify the global config, setting the timeout for list_conversation_profiles
531
+ # to 20 seconds, and all remaining timeouts to 10 seconds:
532
+ #
533
+ # ::Google::Cloud::Dialogflow::V2::ConversationProfiles::Client.configure do |config|
534
+ # config.timeout = 10.0
535
+ # config.rpcs.list_conversation_profiles.timeout = 20.0
536
+ # end
537
+ #
538
+ # To apply the above configuration only to a new client:
539
+ #
540
+ # client = ::Google::Cloud::Dialogflow::V2::ConversationProfiles::Client.new do |config|
541
+ # config.timeout = 10.0
542
+ # config.rpcs.list_conversation_profiles.timeout = 20.0
543
+ # end
544
+ #
545
+ # @!attribute [rw] endpoint
546
+ # The hostname or hostname:port of the service endpoint.
547
+ # Defaults to `"dialogflow.googleapis.com"`.
548
+ # @return [::String]
549
+ # @!attribute [rw] credentials
550
+ # Credentials to send with calls. You may provide any of the following types:
551
+ # * (`String`) The path to a service account key file in JSON format
552
+ # * (`Hash`) A service account key as a Hash
553
+ # * (`Google::Auth::Credentials`) A googleauth credentials object
554
+ # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
555
+ # * (`Signet::OAuth2::Client`) A signet oauth2 client object
556
+ # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
557
+ # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
558
+ # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
559
+ # * (`nil`) indicating no credentials
560
+ # @return [::Object]
561
+ # @!attribute [rw] scope
562
+ # The OAuth scopes
563
+ # @return [::Array<::String>]
564
+ # @!attribute [rw] lib_name
565
+ # The library name as recorded in instrumentation and logging
566
+ # @return [::String]
567
+ # @!attribute [rw] lib_version
568
+ # The library version as recorded in instrumentation and logging
569
+ # @return [::String]
570
+ # @!attribute [rw] channel_args
571
+ # Extra parameters passed to the gRPC channel. Note: this is ignored if a
572
+ # `GRPC::Core::Channel` object is provided as the credential.
573
+ # @return [::Hash]
574
+ # @!attribute [rw] interceptors
575
+ # An array of interceptors that are run before calls are executed.
576
+ # @return [::Array<::GRPC::ClientInterceptor>]
577
+ # @!attribute [rw] timeout
578
+ # The call timeout in seconds.
579
+ # @return [::Numeric]
580
+ # @!attribute [rw] metadata
581
+ # Additional gRPC headers to be sent with the call.
582
+ # @return [::Hash{::Symbol=>::String}]
583
+ # @!attribute [rw] retry_policy
584
+ # The retry policy. The value is a hash with the following keys:
585
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
586
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
587
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
588
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
589
+ # trigger a retry.
590
+ # @return [::Hash]
591
+ # @!attribute [rw] quota_project
592
+ # A separate project against which to charge quota.
593
+ # @return [::String]
594
+ #
595
+ class Configuration
596
+ extend ::Gapic::Config
597
+
598
+ config_attr :endpoint, "dialogflow.googleapis.com", ::String
599
+ config_attr :credentials, nil do |value|
600
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
601
+ allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
602
+ allowed.any? { |klass| klass === value }
603
+ end
604
+ config_attr :scope, nil, ::String, ::Array, nil
605
+ config_attr :lib_name, nil, ::String, nil
606
+ config_attr :lib_version, nil, ::String, nil
607
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
608
+ config_attr :interceptors, nil, ::Array, nil
609
+ config_attr :timeout, nil, ::Numeric, nil
610
+ config_attr :metadata, nil, ::Hash, nil
611
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
612
+ config_attr :quota_project, nil, ::String, nil
613
+
614
+ # @private
615
+ def initialize parent_config = nil
616
+ @parent_config = parent_config unless parent_config.nil?
617
+
618
+ yield self if block_given?
619
+ end
620
+
621
+ ##
622
+ # Configurations for individual RPCs
623
+ # @return [Rpcs]
624
+ #
625
+ def rpcs
626
+ @rpcs ||= begin
627
+ parent_rpcs = nil
628
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
629
+ Rpcs.new parent_rpcs
630
+ end
631
+ end
632
+
633
+ ##
634
+ # Configuration RPC class for the ConversationProfiles API.
635
+ #
636
+ # Includes fields providing the configuration for each RPC in this service.
637
+ # Each configuration object is of type `Gapic::Config::Method` and includes
638
+ # the following configuration fields:
639
+ #
640
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
641
+ # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
642
+ # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
643
+ # include the following keys:
644
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
645
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
646
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
647
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
648
+ # trigger a retry.
649
+ #
650
+ class Rpcs
651
+ ##
652
+ # RPC-specific configuration for `list_conversation_profiles`
653
+ # @return [::Gapic::Config::Method]
654
+ #
655
+ attr_reader :list_conversation_profiles
656
+ ##
657
+ # RPC-specific configuration for `get_conversation_profile`
658
+ # @return [::Gapic::Config::Method]
659
+ #
660
+ attr_reader :get_conversation_profile
661
+ ##
662
+ # RPC-specific configuration for `create_conversation_profile`
663
+ # @return [::Gapic::Config::Method]
664
+ #
665
+ attr_reader :create_conversation_profile
666
+ ##
667
+ # RPC-specific configuration for `update_conversation_profile`
668
+ # @return [::Gapic::Config::Method]
669
+ #
670
+ attr_reader :update_conversation_profile
671
+ ##
672
+ # RPC-specific configuration for `delete_conversation_profile`
673
+ # @return [::Gapic::Config::Method]
674
+ #
675
+ attr_reader :delete_conversation_profile
676
+
677
+ # @private
678
+ def initialize parent_rpcs = nil
679
+ list_conversation_profiles_config = parent_rpcs.list_conversation_profiles if parent_rpcs.respond_to? :list_conversation_profiles
680
+ @list_conversation_profiles = ::Gapic::Config::Method.new list_conversation_profiles_config
681
+ get_conversation_profile_config = parent_rpcs.get_conversation_profile if parent_rpcs.respond_to? :get_conversation_profile
682
+ @get_conversation_profile = ::Gapic::Config::Method.new get_conversation_profile_config
683
+ create_conversation_profile_config = parent_rpcs.create_conversation_profile if parent_rpcs.respond_to? :create_conversation_profile
684
+ @create_conversation_profile = ::Gapic::Config::Method.new create_conversation_profile_config
685
+ update_conversation_profile_config = parent_rpcs.update_conversation_profile if parent_rpcs.respond_to? :update_conversation_profile
686
+ @update_conversation_profile = ::Gapic::Config::Method.new update_conversation_profile_config
687
+ delete_conversation_profile_config = parent_rpcs.delete_conversation_profile if parent_rpcs.respond_to? :delete_conversation_profile
688
+ @delete_conversation_profile = ::Gapic::Config::Method.new delete_conversation_profile_config
689
+
690
+ yield self if block_given?
691
+ end
692
+ end
693
+ end
694
+ end
695
+ end
696
+ end
697
+ end
698
+ end
699
+ end