google-cloud-dialogflow-v2 0.15.1 → 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) 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 +18 -0
  55. data/proto_docs/google/cloud/dialogflow/v2/session.rb +5 -1
  56. data/proto_docs/google/protobuf/any.rb +3 -3
  57. data/proto_docs/google/protobuf/struct.rb +2 -2
  58. metadata +32 -12
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0de483099dcae1e8b57baf836487a74ddda77d10d4bae0468278511ef60ebad5
4
- data.tar.gz: 89e8b14bb31e002b7cd25c30bfaf54856db69f67750d29e59b72950cefaa062c
3
+ metadata.gz: '00067869e005bf56e1e22e2548cd088e1b3080b061bb3daae56b3c506aa58994'
4
+ data.tar.gz: b2cea0735bb44c5ad8e97bbdcc2be24aab4e3c5bb14b1b13529aaed3a1982dff
5
5
  SHA512:
6
- metadata.gz: d4981db014bdcf1e6fe09e87cfa57aa31942f09732aa36115cd0cbb44b27b6381292c07de9a26559088b79a050e407451477e66674a5c2435a8bcc7bf808b075
7
- data.tar.gz: c58813241f28f467fc3ebc5576e1c1fb8ecb5cd4d0448488639f687e754863662ba639024777a6187818eb5e66c5b7b2da830574499d65354ed8a71e3ff9dae9
6
+ metadata.gz: d76af6676a88377f46bf9eea4b5702b34193d7033cdb9cb640fda232fc2e79f96885267700cdb8fd5f61ae2e143999eced598234c416c3237bd88eae3e42622c
7
+ data.tar.gz: 25d540069bcc237f7fa2801a572be60d36e1dc48e7833635557acaecaaa9236ca10cf5726afaf93aadb70ace5dc034e2305c1c717be5e0ce250d4ff6a4f133d1
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
  ##