google-cloud-dialogflow-v2 0.15.2 → 0.17.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +10 -5
  3. data/lib/google/cloud/dialogflow/v2/agent_pb.rb +2 -1
  4. data/lib/google/cloud/dialogflow/v2/agents/client.rb +14 -0
  5. data/lib/google/cloud/dialogflow/v2/agents/operations.rb +3 -0
  6. data/lib/google/cloud/dialogflow/v2/answer_record_pb.rb +2 -1
  7. data/lib/google/cloud/dialogflow/v2/answer_records/client.rb +17 -3
  8. data/lib/google/cloud/dialogflow/v2/audio_config_pb.rb +2 -1
  9. data/lib/google/cloud/dialogflow/v2/context_pb.rb +2 -1
  10. data/lib/google/cloud/dialogflow/v2/contexts/client.rb +14 -0
  11. data/lib/google/cloud/dialogflow/v2/conversation_dataset_pb.rb +2 -1
  12. data/lib/google/cloud/dialogflow/v2/conversation_datasets/client.rb +14 -0
  13. data/lib/google/cloud/dialogflow/v2/conversation_datasets/operations.rb +3 -0
  14. data/lib/google/cloud/dialogflow/v2/conversation_event_pb.rb +2 -1
  15. data/lib/google/cloud/dialogflow/v2/conversation_model_pb.rb +2 -1
  16. data/lib/google/cloud/dialogflow/v2/conversation_models/client.rb +14 -0
  17. data/lib/google/cloud/dialogflow/v2/conversation_models/operations.rb +3 -0
  18. data/lib/google/cloud/dialogflow/v2/conversation_models/paths.rb +12 -8
  19. data/lib/google/cloud/dialogflow/v2/conversation_pb.rb +2 -1
  20. data/lib/google/cloud/dialogflow/v2/conversation_profile_pb.rb +2 -1
  21. data/lib/google/cloud/dialogflow/v2/conversation_profiles/client.rb +14 -0
  22. data/lib/google/cloud/dialogflow/v2/conversation_profiles/operations.rb +3 -0
  23. data/lib/google/cloud/dialogflow/v2/conversations/client.rb +14 -0
  24. data/lib/google/cloud/dialogflow/v2/document_pb.rb +2 -1
  25. data/lib/google/cloud/dialogflow/v2/documents/client.rb +14 -0
  26. data/lib/google/cloud/dialogflow/v2/documents/operations.rb +3 -0
  27. data/lib/google/cloud/dialogflow/v2/entity_type_pb.rb +2 -1
  28. data/lib/google/cloud/dialogflow/v2/entity_types/client.rb +14 -0
  29. data/lib/google/cloud/dialogflow/v2/entity_types/operations.rb +3 -0
  30. data/lib/google/cloud/dialogflow/v2/environment_pb.rb +2 -1
  31. data/lib/google/cloud/dialogflow/v2/environments/client.rb +14 -0
  32. data/lib/google/cloud/dialogflow/v2/fulfillment_pb.rb +2 -1
  33. data/lib/google/cloud/dialogflow/v2/fulfillments/client.rb +14 -0
  34. data/lib/google/cloud/dialogflow/v2/gcs_pb.rb +2 -1
  35. data/lib/google/cloud/dialogflow/v2/human_agent_assistant_event_pb.rb +2 -1
  36. data/lib/google/cloud/dialogflow/v2/intent_pb.rb +2 -1
  37. data/lib/google/cloud/dialogflow/v2/intents/client.rb +14 -0
  38. data/lib/google/cloud/dialogflow/v2/intents/operations.rb +3 -0
  39. data/lib/google/cloud/dialogflow/v2/knowledge_base_pb.rb +2 -1
  40. data/lib/google/cloud/dialogflow/v2/knowledge_bases/client.rb +14 -0
  41. data/lib/google/cloud/dialogflow/v2/participant_pb.rb +3 -1
  42. data/lib/google/cloud/dialogflow/v2/participants/client.rb +22 -1
  43. data/lib/google/cloud/dialogflow/v2/session_entity_type_pb.rb +2 -1
  44. data/lib/google/cloud/dialogflow/v2/session_entity_types/client.rb +14 -0
  45. data/lib/google/cloud/dialogflow/v2/session_pb.rb +2 -1
  46. data/lib/google/cloud/dialogflow/v2/sessions/client.rb +14 -0
  47. data/lib/google/cloud/dialogflow/v2/version.rb +1 -1
  48. data/lib/google/cloud/dialogflow/v2/version_pb.rb +2 -1
  49. data/lib/google/cloud/dialogflow/v2/versions/client.rb +14 -0
  50. data/lib/google/cloud/dialogflow/v2/webhook_pb.rb +2 -1
  51. data/proto_docs/google/cloud/dialogflow/v2/answer_record.rb +3 -3
  52. data/proto_docs/google/cloud/dialogflow/v2/conversation_profile.rb +2 -1
  53. data/proto_docs/google/cloud/dialogflow/v2/fulfillment.rb +3 -0
  54. data/proto_docs/google/cloud/dialogflow/v2/participant.rb +8 -0
  55. data/proto_docs/google/cloud/dialogflow/v2/session.rb +8 -3
  56. data/proto_docs/google/protobuf/any.rb +3 -3
  57. data/proto_docs/google/protobuf/empty.rb +0 -2
  58. data/proto_docs/google/protobuf/struct.rb +2 -2
  59. metadata +32 -12
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4cc8560e58b306c85dec129c49446f00cdadb4800a13469460de0c50eea3388f
4
- data.tar.gz: dd9c62ead69962d384db40f17d9c2aa4d6527d0e414f7d168265664ec22397d7
3
+ metadata.gz: 307549a7266d10daee7a1515ffa632a3b93586c5306134409ac8f00b24bba3a0
4
+ data.tar.gz: 52e226f6bce11b0dbdadac7ff645fb37b77946c20985c0ef110df3570469e313
5
5
  SHA512:
6
- metadata.gz: af82b0ebc3dffe804d83febb03d9ea25d35406fa1730d29cf39e36290cea2da872c1132df0e4dd0accb2e348ac939669f981d1359ba3a1769d32a83de51dfe30
7
- data.tar.gz: e41f94edb9743ef679bfb0f66d787de82b5e95d70061b390de397b3f5baf9075349c05944c711391a339b847b2e2daa9ee263ef05599560eea52bd558431dfa0
6
+ metadata.gz: 8cf06b7636e2fe76503dc331309aabb79218491f82fdea5a031c47e40e0168bedfe52e7c7191fb50cd9801f29fda20b434f335cb050f7a834f158e8676cdec77
7
+ data.tar.gz: fa6ce35c4288295a40000289dc806b05e70307a6dbf8b140f24b1fc2d6380e50003f464b6e7b7abdaf241a00a40117de5195bd39a369aa63e3ad616feef81f44
data/README.md CHANGED
@@ -69,16 +69,21 @@ module GRPC
69
69
  end
70
70
  ```
71
71
 
72
+
73
+ ## Google Cloud Samples
74
+
75
+ To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
76
+
72
77
  ## Supported Ruby Versions
73
78
 
74
- This library is supported on Ruby 2.5+.
79
+ This library is supported on Ruby 2.6+.
75
80
 
76
81
  Google provides official support for Ruby versions that are actively supported
77
82
  by Ruby Core—that is, Ruby versions that are either in normal maintenance or
78
- in security maintenance, and not end of life. Currently, this means Ruby 2.5
79
- and later. Older versions of Ruby _may_ still work, but are unsupported and not
80
- recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details
81
- about the Ruby support schedule.
83
+ in security maintenance, and not end of life. Older versions of Ruby _may_
84
+ still work, but are unsupported and not recommended. See
85
+ https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
86
+ support schedule.
82
87
 
83
88
  ## Which client should I use?
84
89
 
@@ -1,6 +1,8 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/dialogflow/v2/agent.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'google/api/annotations_pb'
5
7
  require 'google/api/client_pb'
6
8
  require 'google/api/field_behavior_pb'
@@ -9,7 +11,6 @@ require 'google/cloud/dialogflow/v2/validation_result_pb'
9
11
  require 'google/longrunning/operations_pb'
10
12
  require 'google/protobuf/empty_pb'
11
13
  require 'google/protobuf/field_mask_pb'
12
- require 'google/protobuf'
13
14
 
14
15
  Google::Protobuf::DescriptorPool.generated_pool.build do
15
16
  add_file("google/cloud/dialogflow/v2/agent.proto", :syntax => :proto3) do
@@ -18,6 +18,7 @@
18
18
 
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/dialogflow/v2/agent_pb"
21
+ require "google/cloud/location"
21
22
 
22
23
  module Google
23
24
  module Cloud
@@ -144,6 +145,12 @@ module Google
144
145
  config.endpoint = @config.endpoint
145
146
  end
146
147
 
148
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
149
+ config.credentials = credentials
150
+ config.quota_project = @quota_project_id
151
+ config.endpoint = @config.endpoint
152
+ end
153
+
147
154
  @agents_stub = ::Gapic::ServiceStub.new(
148
155
  ::Google::Cloud::Dialogflow::V2::Agents::Stub,
149
156
  credentials: credentials,
@@ -160,6 +167,13 @@ module Google
160
167
  #
161
168
  attr_reader :operations_client
162
169
 
170
+ ##
171
+ # Get the associated client for mix-in of the Locations.
172
+ #
173
+ # @return [Google::Cloud::Location::Locations::Client]
174
+ #
175
+ attr_reader :location_client
176
+
163
177
  # Service calls
164
178
 
165
179
  ##
@@ -95,6 +95,9 @@ module Google
95
95
  channel_args: @config.channel_args,
96
96
  interceptors: @config.interceptors
97
97
  )
98
+
99
+ # Used by an LRO wrapper for some methods of this service
100
+ @operations_client = self
98
101
  end
99
102
 
100
103
  # Service calls
@@ -1,6 +1,8 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/dialogflow/v2/answer_record.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'google/api/annotations_pb'
5
7
  require 'google/api/client_pb'
6
8
  require 'google/api/field_behavior_pb'
@@ -8,7 +10,6 @@ require 'google/api/resource_pb'
8
10
  require 'google/cloud/dialogflow/v2/participant_pb'
9
11
  require 'google/protobuf/field_mask_pb'
10
12
  require 'google/protobuf/timestamp_pb'
11
- require 'google/protobuf'
12
13
 
13
14
  Google::Protobuf::DescriptorPool.generated_pool.build do
14
15
  add_file("google/cloud/dialogflow/v2/answer_record.proto", :syntax => :proto3) do
@@ -18,6 +18,7 @@
18
18
 
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/dialogflow/v2/answer_record_pb"
21
+ require "google/cloud/location"
21
22
 
22
23
  module Google
23
24
  module Cloud
@@ -138,6 +139,12 @@ module Google
138
139
  @quota_project_id = @config.quota_project
139
140
  @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
140
141
 
142
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
143
+ config.credentials = credentials
144
+ config.quota_project = @quota_project_id
145
+ config.endpoint = @config.endpoint
146
+ end
147
+
141
148
  @answer_records_stub = ::Gapic::ServiceStub.new(
142
149
  ::Google::Cloud::Dialogflow::V2::AnswerRecords::Stub,
143
150
  credentials: credentials,
@@ -147,6 +154,13 @@ module Google
147
154
  )
148
155
  end
149
156
 
157
+ ##
158
+ # Get the associated client for mix-in of the Locations.
159
+ #
160
+ # @return [Google::Cloud::Location::Locations::Client]
161
+ #
162
+ attr_reader :location_client
163
+
150
164
  # Service calls
151
165
 
152
166
  ##
@@ -173,9 +187,9 @@ module Google
173
187
  # chronological order. Format: `projects/<Project ID>/locations/<Location
174
188
  # ID>`.
175
189
  # @param filter [::String]
176
- # Required. Filters to restrict results to specific answer records.
177
- # Filter on answer record type. Currently predicates on `type` is supported,
178
- # valid values are `ARTICLE_ANSWER`, `FAQ_ANSWER`.
190
+ # Optional. Filters to restrict results to specific answer records.
191
+ #
192
+ # Marked deprecated as it hasn't been, and isn't currently, supported.
179
193
  #
180
194
  # For more information about filtering, see
181
195
  # [API Filtering](https://aip.dev/160).
@@ -1,10 +1,11 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/dialogflow/v2/audio_config.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'google/api/field_behavior_pb'
5
7
  require 'google/api/resource_pb'
6
8
  require 'google/protobuf/duration_pb'
7
- require 'google/protobuf'
8
9
 
9
10
  Google::Protobuf::DescriptorPool.generated_pool.build do
10
11
  add_file("google/cloud/dialogflow/v2/audio_config.proto", :syntax => :proto3) do
@@ -1,6 +1,8 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/dialogflow/v2/context.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'google/api/annotations_pb'
5
7
  require 'google/api/client_pb'
6
8
  require 'google/api/field_behavior_pb'
@@ -8,7 +10,6 @@ require 'google/api/resource_pb'
8
10
  require 'google/protobuf/empty_pb'
9
11
  require 'google/protobuf/field_mask_pb'
10
12
  require 'google/protobuf/struct_pb'
11
- require 'google/protobuf'
12
13
 
13
14
  Google::Protobuf::DescriptorPool.generated_pool.build do
14
15
  add_file("google/cloud/dialogflow/v2/context.proto", :syntax => :proto3) do
@@ -18,6 +18,7 @@
18
18
 
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/dialogflow/v2/context_pb"
21
+ require "google/cloud/location"
21
22
 
22
23
  module Google
23
24
  module Cloud
@@ -138,6 +139,12 @@ module Google
138
139
  @quota_project_id = @config.quota_project
139
140
  @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
140
141
 
142
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
143
+ config.credentials = credentials
144
+ config.quota_project = @quota_project_id
145
+ config.endpoint = @config.endpoint
146
+ end
147
+
141
148
  @contexts_stub = ::Gapic::ServiceStub.new(
142
149
  ::Google::Cloud::Dialogflow::V2::Contexts::Stub,
143
150
  credentials: credentials,
@@ -147,6 +154,13 @@ module Google
147
154
  )
148
155
  end
149
156
 
157
+ ##
158
+ # Get the associated client for mix-in of the Locations.
159
+ #
160
+ # @return [Google::Cloud::Location::Locations::Client]
161
+ #
162
+ attr_reader :location_client
163
+
150
164
  # Service calls
151
165
 
152
166
  ##
@@ -1,6 +1,8 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/dialogflow/v2/conversation_dataset.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'google/api/annotations_pb'
5
7
  require 'google/api/client_pb'
6
8
  require 'google/api/field_behavior_pb'
@@ -9,7 +11,6 @@ require 'google/cloud/dialogflow/v2/gcs_pb'
9
11
  require 'google/longrunning/operations_pb'
10
12
  require 'google/protobuf/timestamp_pb'
11
13
  require 'google/rpc/status_pb'
12
- require 'google/protobuf'
13
14
 
14
15
  Google::Protobuf::DescriptorPool.generated_pool.build do
15
16
  add_file("google/cloud/dialogflow/v2/conversation_dataset.proto", :syntax => :proto3) do
@@ -18,6 +18,7 @@
18
18
 
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/dialogflow/v2/conversation_dataset_pb"
21
+ require "google/cloud/location"
21
22
 
22
23
  module Google
23
24
  module Cloud
@@ -147,6 +148,12 @@ module Google
147
148
  config.endpoint = @config.endpoint
148
149
  end
149
150
 
151
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
152
+ config.credentials = credentials
153
+ config.quota_project = @quota_project_id
154
+ config.endpoint = @config.endpoint
155
+ end
156
+
150
157
  @conversation_datasets_stub = ::Gapic::ServiceStub.new(
151
158
  ::Google::Cloud::Dialogflow::V2::ConversationDatasets::Stub,
152
159
  credentials: credentials,
@@ -163,6 +170,13 @@ module Google
163
170
  #
164
171
  attr_reader :operations_client
165
172
 
173
+ ##
174
+ # Get the associated client for mix-in of the Locations.
175
+ #
176
+ # @return [Google::Cloud::Location::Locations::Client]
177
+ #
178
+ attr_reader :location_client
179
+
166
180
  # Service calls
167
181
 
168
182
  ##
@@ -95,6 +95,9 @@ module Google
95
95
  channel_args: @config.channel_args,
96
96
  interceptors: @config.interceptors
97
97
  )
98
+
99
+ # Used by an LRO wrapper for some methods of this service
100
+ @operations_client = self
98
101
  end
99
102
 
100
103
  # Service calls
@@ -1,9 +1,10 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/dialogflow/v2/conversation_event.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'google/cloud/dialogflow/v2/participant_pb'
5
7
  require 'google/rpc/status_pb'
6
- require 'google/protobuf'
7
8
 
8
9
  Google::Protobuf::DescriptorPool.generated_pool.build do
9
10
  add_file("google/cloud/dialogflow/v2/conversation_event.proto", :syntax => :proto3) do
@@ -1,13 +1,14 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/dialogflow/v2/conversation_model.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'google/api/annotations_pb'
5
7
  require 'google/api/client_pb'
6
8
  require 'google/api/field_behavior_pb'
7
9
  require 'google/api/resource_pb'
8
10
  require 'google/longrunning/operations_pb'
9
11
  require 'google/protobuf/timestamp_pb'
10
- require 'google/protobuf'
11
12
 
12
13
  Google::Protobuf::DescriptorPool.generated_pool.build do
13
14
  add_file("google/cloud/dialogflow/v2/conversation_model.proto", :syntax => :proto3) do
@@ -18,6 +18,7 @@
18
18
 
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/dialogflow/v2/conversation_model_pb"
21
+ require "google/cloud/location"
21
22
 
22
23
  module Google
23
24
  module Cloud
@@ -144,6 +145,12 @@ module Google
144
145
  config.endpoint = @config.endpoint
145
146
  end
146
147
 
148
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
149
+ config.credentials = credentials
150
+ config.quota_project = @quota_project_id
151
+ config.endpoint = @config.endpoint
152
+ end
153
+
147
154
  @conversation_models_stub = ::Gapic::ServiceStub.new(
148
155
  ::Google::Cloud::Dialogflow::V2::ConversationModels::Stub,
149
156
  credentials: credentials,
@@ -160,6 +167,13 @@ module Google
160
167
  #
161
168
  attr_reader :operations_client
162
169
 
170
+ ##
171
+ # Get the associated client for mix-in of the Locations.
172
+ #
173
+ # @return [Google::Cloud::Location::Locations::Client]
174
+ #
175
+ attr_reader :location_client
176
+
163
177
  # Service calls
164
178
 
165
179
  ##
@@ -95,6 +95,9 @@ module Google
95
95
  channel_args: @config.channel_args,
96
96
  interceptors: @config.interceptors
97
97
  )
98
+
99
+ # Used by an LRO wrapper for some methods of this service
100
+ @operations_client = self
98
101
  end
99
102
 
100
103
  # Service calls
@@ -87,36 +87,40 @@ module Google
87
87
  ##
88
88
  # Create a fully-qualified ConversationModelEvaluation resource string.
89
89
  #
90
- # @overload conversation_model_evaluation_path(project:, conversation_model:)
90
+ # @overload conversation_model_evaluation_path(project:, conversation_model:, evaluation:)
91
91
  # The resource will be in the following format:
92
92
  #
93
- # `projects/{project}/conversationModels/{conversation_model}/evaluations/evaluation`
93
+ # `projects/{project}/conversationModels/{conversation_model}/evaluations/{evaluation}`
94
94
  #
95
95
  # @param project [String]
96
96
  # @param conversation_model [String]
97
+ # @param evaluation [String]
97
98
  #
98
- # @overload conversation_model_evaluation_path(project:, location:, conversation_model:)
99
+ # @overload conversation_model_evaluation_path(project:, location:, conversation_model:, evaluation:)
99
100
  # The resource will be in the following format:
100
101
  #
101
- # `projects/{project}/locations/{location}/conversationModels/{conversation_model}/evaluations/evaluation`
102
+ # `projects/{project}/locations/{location}/conversationModels/{conversation_model}/evaluations/{evaluation}`
102
103
  #
103
104
  # @param project [String]
104
105
  # @param location [String]
105
106
  # @param conversation_model [String]
107
+ # @param evaluation [String]
106
108
  #
107
109
  # @return [::String]
108
110
  def conversation_model_evaluation_path **args
109
111
  resources = {
110
- "conversation_model:project" => (proc do |project:, conversation_model:|
112
+ "conversation_model:evaluation:project" => (proc do |project:, conversation_model:, evaluation:|
111
113
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
114
+ raise ::ArgumentError, "conversation_model cannot contain /" if conversation_model.to_s.include? "/"
112
115
 
113
- "projects/#{project}/conversationModels/#{conversation_model}/evaluations/evaluation"
116
+ "projects/#{project}/conversationModels/#{conversation_model}/evaluations/#{evaluation}"
114
117
  end),
115
- "conversation_model:location:project" => (proc do |project:, location:, conversation_model:|
118
+ "conversation_model:evaluation:location:project" => (proc do |project:, location:, conversation_model:, evaluation:|
116
119
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
117
120
  raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
121
+ raise ::ArgumentError, "conversation_model cannot contain /" if conversation_model.to_s.include? "/"
118
122
 
119
- "projects/#{project}/locations/#{location}/conversationModels/#{conversation_model}/evaluations/evaluation"
123
+ "projects/#{project}/locations/#{location}/conversationModels/#{conversation_model}/evaluations/#{evaluation}"
120
124
  end)
121
125
  }
122
126
 
@@ -1,13 +1,14 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/dialogflow/v2/conversation.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'google/api/annotations_pb'
5
7
  require 'google/api/client_pb'
6
8
  require 'google/api/field_behavior_pb'
7
9
  require 'google/api/resource_pb'
8
10
  require 'google/cloud/dialogflow/v2/participant_pb'
9
11
  require 'google/protobuf/timestamp_pb'
10
- require 'google/protobuf'
11
12
 
12
13
  Google::Protobuf::DescriptorPool.generated_pool.build do
13
14
  add_file("google/cloud/dialogflow/v2/conversation.proto", :syntax => :proto3) do
@@ -1,6 +1,8 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/dialogflow/v2/conversation_profile.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'google/api/annotations_pb'
5
7
  require 'google/api/client_pb'
6
8
  require 'google/api/field_behavior_pb'
@@ -11,7 +13,6 @@ require 'google/longrunning/operations_pb'
11
13
  require 'google/protobuf/empty_pb'
12
14
  require 'google/protobuf/field_mask_pb'
13
15
  require 'google/protobuf/timestamp_pb'
14
- require 'google/protobuf'
15
16
 
16
17
  Google::Protobuf::DescriptorPool.generated_pool.build do
17
18
  add_file("google/cloud/dialogflow/v2/conversation_profile.proto", :syntax => :proto3) do
@@ -18,6 +18,7 @@
18
18
 
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/dialogflow/v2/conversation_profile_pb"
21
+ require "google/cloud/location"
21
22
 
22
23
  module Google
23
24
  module Cloud
@@ -144,6 +145,12 @@ module Google
144
145
  config.endpoint = @config.endpoint
145
146
  end
146
147
 
148
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
149
+ config.credentials = credentials
150
+ config.quota_project = @quota_project_id
151
+ config.endpoint = @config.endpoint
152
+ end
153
+
147
154
  @conversation_profiles_stub = ::Gapic::ServiceStub.new(
148
155
  ::Google::Cloud::Dialogflow::V2::ConversationProfiles::Stub,
149
156
  credentials: credentials,
@@ -160,6 +167,13 @@ module Google
160
167
  #
161
168
  attr_reader :operations_client
162
169
 
170
+ ##
171
+ # Get the associated client for mix-in of the Locations.
172
+ #
173
+ # @return [Google::Cloud::Location::Locations::Client]
174
+ #
175
+ attr_reader :location_client
176
+
163
177
  # Service calls
164
178
 
165
179
  ##
@@ -95,6 +95,9 @@ module Google
95
95
  channel_args: @config.channel_args,
96
96
  interceptors: @config.interceptors
97
97
  )
98
+
99
+ # Used by an LRO wrapper for some methods of this service
100
+ @operations_client = self
98
101
  end
99
102
 
100
103
  # Service calls
@@ -18,6 +18,7 @@
18
18
 
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/dialogflow/v2/conversation_pb"
21
+ require "google/cloud/location"
21
22
 
22
23
  module Google
23
24
  module Cloud
@@ -138,6 +139,12 @@ module Google
138
139
  @quota_project_id = @config.quota_project
139
140
  @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
140
141
 
142
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
143
+ config.credentials = credentials
144
+ config.quota_project = @quota_project_id
145
+ config.endpoint = @config.endpoint
146
+ end
147
+
141
148
  @conversations_stub = ::Gapic::ServiceStub.new(
142
149
  ::Google::Cloud::Dialogflow::V2::Conversations::Stub,
143
150
  credentials: credentials,
@@ -147,6 +154,13 @@ module Google
147
154
  )
148
155
  end
149
156
 
157
+ ##
158
+ # Get the associated client for mix-in of the Locations.
159
+ #
160
+ # @return [Google::Cloud::Location::Locations::Client]
161
+ #
162
+ attr_reader :location_client
163
+
150
164
  # Service calls
151
165
 
152
166
  ##
@@ -1,6 +1,8 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/dialogflow/v2/document.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'google/api/annotations_pb'
5
7
  require 'google/api/client_pb'
6
8
  require 'google/api/field_behavior_pb'
@@ -10,7 +12,6 @@ require 'google/longrunning/operations_pb'
10
12
  require 'google/protobuf/field_mask_pb'
11
13
  require 'google/protobuf/timestamp_pb'
12
14
  require 'google/rpc/status_pb'
13
- require 'google/protobuf'
14
15
 
15
16
  Google::Protobuf::DescriptorPool.generated_pool.build do
16
17
  add_file("google/cloud/dialogflow/v2/document.proto", :syntax => :proto3) do
@@ -18,6 +18,7 @@
18
18
 
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/dialogflow/v2/document_pb"
21
+ require "google/cloud/location"
21
22
 
22
23
  module Google
23
24
  module Cloud
@@ -144,6 +145,12 @@ module Google
144
145
  config.endpoint = @config.endpoint
145
146
  end
146
147
 
148
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
149
+ config.credentials = credentials
150
+ config.quota_project = @quota_project_id
151
+ config.endpoint = @config.endpoint
152
+ end
153
+
147
154
  @documents_stub = ::Gapic::ServiceStub.new(
148
155
  ::Google::Cloud::Dialogflow::V2::Documents::Stub,
149
156
  credentials: credentials,
@@ -160,6 +167,13 @@ module Google
160
167
  #
161
168
  attr_reader :operations_client
162
169
 
170
+ ##
171
+ # Get the associated client for mix-in of the Locations.
172
+ #
173
+ # @return [Google::Cloud::Location::Locations::Client]
174
+ #
175
+ attr_reader :location_client
176
+
163
177
  # Service calls
164
178
 
165
179
  ##
@@ -95,6 +95,9 @@ module Google
95
95
  channel_args: @config.channel_args,
96
96
  interceptors: @config.interceptors
97
97
  )
98
+
99
+ # Used by an LRO wrapper for some methods of this service
100
+ @operations_client = self
98
101
  end
99
102
 
100
103
  # Service calls
@@ -1,6 +1,8 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/dialogflow/v2/entity_type.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'google/api/annotations_pb'
5
7
  require 'google/api/client_pb'
6
8
  require 'google/api/field_behavior_pb'
@@ -8,7 +10,6 @@ require 'google/api/resource_pb'
8
10
  require 'google/longrunning/operations_pb'
9
11
  require 'google/protobuf/empty_pb'
10
12
  require 'google/protobuf/field_mask_pb'
11
- require 'google/protobuf'
12
13
 
13
14
  Google::Protobuf::DescriptorPool.generated_pool.build do
14
15
  add_file("google/cloud/dialogflow/v2/entity_type.proto", :syntax => :proto3) do
@@ -18,6 +18,7 @@
18
18
 
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/dialogflow/v2/entity_type_pb"
21
+ require "google/cloud/location"
21
22
 
22
23
  module Google
23
24
  module Cloud
@@ -144,6 +145,12 @@ module Google
144
145
  config.endpoint = @config.endpoint
145
146
  end
146
147
 
148
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
149
+ config.credentials = credentials
150
+ config.quota_project = @quota_project_id
151
+ config.endpoint = @config.endpoint
152
+ end
153
+
147
154
  @entity_types_stub = ::Gapic::ServiceStub.new(
148
155
  ::Google::Cloud::Dialogflow::V2::EntityTypes::Stub,
149
156
  credentials: credentials,
@@ -160,6 +167,13 @@ module Google
160
167
  #
161
168
  attr_reader :operations_client
162
169
 
170
+ ##
171
+ # Get the associated client for mix-in of the Locations.
172
+ #
173
+ # @return [Google::Cloud::Location::Locations::Client]
174
+ #
175
+ attr_reader :location_client
176
+
163
177
  # Service calls
164
178
 
165
179
  ##