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
@@ -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/environment.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/cloud/dialogflow/v2/fulfillment_pb'
10
12
  require 'google/protobuf/empty_pb'
11
13
  require 'google/protobuf/field_mask_pb'
12
14
  require 'google/protobuf/timestamp_pb'
13
- require 'google/protobuf'
14
15
 
15
16
  Google::Protobuf::DescriptorPool.generated_pool.build do
16
17
  add_file("google/cloud/dialogflow/v2/environment.proto", :syntax => :proto3) do
@@ -18,6 +18,7 @@
18
18
 
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/dialogflow/v2/environment_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
  @environments_stub = ::Gapic::ServiceStub.new(
142
149
  ::Google::Cloud::Dialogflow::V2::Environments::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,12 +1,13 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/dialogflow/v2/fulfillment.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/protobuf/field_mask_pb'
9
- require 'google/protobuf'
10
11
 
11
12
  Google::Protobuf::DescriptorPool.generated_pool.build do
12
13
  add_file("google/cloud/dialogflow/v2/fulfillment.proto", :syntax => :proto3) do
@@ -18,6 +18,7 @@
18
18
 
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/dialogflow/v2/fulfillment_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
  @fulfillments_stub = ::Gapic::ServiceStub.new(
142
149
  ::Google::Cloud::Dialogflow::V2::Fulfillments::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,9 +1,10 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/dialogflow/v2/gcs.proto
3
3
 
4
- require 'google/api/field_behavior_pb'
5
4
  require 'google/protobuf'
6
5
 
6
+ require 'google/api/field_behavior_pb'
7
+
7
8
  Google::Protobuf::DescriptorPool.generated_pool.build do
8
9
  add_file("google/cloud/dialogflow/v2/gcs.proto", :syntax => :proto3) do
9
10
  add_message "google.cloud.dialogflow.v2.GcsSources" do
@@ -1,9 +1,10 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/dialogflow/v2/human_agent_assistant_event.proto
3
3
 
4
- require 'google/cloud/dialogflow/v2/participant_pb'
5
4
  require 'google/protobuf'
6
5
 
6
+ require 'google/cloud/dialogflow/v2/participant_pb'
7
+
7
8
  Google::Protobuf::DescriptorPool.generated_pool.build do
8
9
  add_file("google/cloud/dialogflow/v2/human_agent_assistant_event.proto", :syntax => :proto3) do
9
10
  add_message "google.cloud.dialogflow.v2.HumanAgentAssistantEvent" do
@@ -1,6 +1,8 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/dialogflow/v2/intent.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/empty_pb'
11
13
  require 'google/protobuf/field_mask_pb'
12
14
  require 'google/protobuf/struct_pb'
13
- require 'google/protobuf'
14
15
 
15
16
  Google::Protobuf::DescriptorPool.generated_pool.build do
16
17
  add_file("google/cloud/dialogflow/v2/intent.proto", :syntax => :proto3) do
@@ -18,6 +18,7 @@
18
18
 
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/dialogflow/v2/intent_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
  @intents_stub = ::Gapic::ServiceStub.new(
148
155
  ::Google::Cloud::Dialogflow::V2::Intents::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,13 +1,14 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/dialogflow/v2/knowledge_base.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/protobuf/empty_pb'
9
11
  require 'google/protobuf/field_mask_pb'
10
- require 'google/protobuf'
11
12
 
12
13
  Google::Protobuf::DescriptorPool.generated_pool.build do
13
14
  add_file("google/cloud/dialogflow/v2/knowledge_base.proto", :syntax => :proto3) do
@@ -18,6 +18,7 @@
18
18
 
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/dialogflow/v2/knowledge_base_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
  @knowledge_bases_stub = ::Gapic::ServiceStub.new(
142
149
  ::Google::Cloud::Dialogflow::V2::KnowledgeBases::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/participant.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/protobuf/field_mask_pb'
11
13
  require 'google/protobuf/struct_pb'
12
14
  require 'google/protobuf/timestamp_pb'
13
15
  require 'google/rpc/status_pb'
14
- require 'google/protobuf'
15
16
 
16
17
  Google::Protobuf::DescriptorPool.generated_pool.build do
17
18
  add_file("google/cloud/dialogflow/v2/participant.proto", :syntax => :proto3) do
@@ -63,6 +64,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
63
64
  optional :reply_audio_config, :message, 5, "google.cloud.dialogflow.v2.OutputAudioConfig"
64
65
  optional :query_params, :message, 9, "google.cloud.dialogflow.v2.QueryParameters"
65
66
  optional :assist_query_params, :message, 14, "google.cloud.dialogflow.v2.AssistQueryParameters"
67
+ optional :cx_parameters, :message, 18, "google.protobuf.Struct"
66
68
  optional :request_id, :string, 11
67
69
  oneof :input do
68
70
  optional :text_input, :message, 6, "google.cloud.dialogflow.v2.TextInput"
@@ -18,6 +18,7 @@
18
18
 
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/dialogflow/v2/participant_pb"
21
+ require "google/cloud/location"
21
22
 
22
23
  module Google
23
24
  module Cloud
@@ -143,6 +144,12 @@ module Google
143
144
  @quota_project_id = @config.quota_project
144
145
  @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
145
146
 
147
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
148
+ config.credentials = credentials
149
+ config.quota_project = @quota_project_id
150
+ config.endpoint = @config.endpoint
151
+ end
152
+
146
153
  @participants_stub = ::Gapic::ServiceStub.new(
147
154
  ::Google::Cloud::Dialogflow::V2::Participants::Stub,
148
155
  credentials: credentials,
@@ -152,6 +159,13 @@ module Google
152
159
  )
153
160
  end
154
161
 
162
+ ##
163
+ # Get the associated client for mix-in of the Locations.
164
+ #
165
+ # @return [Google::Cloud::Location::Locations::Client]
166
+ #
167
+ attr_reader :location_client
168
+
155
169
  # Service calls
156
170
 
157
171
  ##
@@ -534,7 +548,7 @@ module Google
534
548
  # @param options [::Gapic::CallOptions, ::Hash]
535
549
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
536
550
  #
537
- # @overload analyze_content(participant: nil, text_input: nil, event_input: nil, reply_audio_config: nil, query_params: nil, assist_query_params: nil, request_id: nil)
551
+ # @overload analyze_content(participant: nil, text_input: nil, event_input: nil, reply_audio_config: nil, query_params: nil, assist_query_params: nil, cx_parameters: nil, request_id: nil)
538
552
  # Pass arguments to `analyze_content` via keyword arguments. Note that at
539
553
  # least one keyword argument is required. To specify no parameters, or to keep all
540
554
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -557,6 +571,13 @@ module Google
557
571
  # Parameters for a Dialogflow virtual-agent query.
558
572
  # @param assist_query_params [::Google::Cloud::Dialogflow::V2::AssistQueryParameters, ::Hash]
559
573
  # Parameters for a human assist query.
574
+ # @param cx_parameters [::Google::Protobuf::Struct, ::Hash]
575
+ # Additional parameters to be put into Dialogflow CX session parameters. To
576
+ # remove a parameter from the session, clients should explicitly set the
577
+ # parameter value to null.
578
+ #
579
+ # Note: this field should only be used if you are connecting to a Dialogflow
580
+ # CX agent.
560
581
  # @param request_id [::String]
561
582
  # A unique identifier for this request. Restricted to 36 ASCII characters.
562
583
  # A random UUID is recommended.
@@ -1,6 +1,8 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/dialogflow/v2/session_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/cloud/dialogflow/v2/entity_type_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/session_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/session_entity_type_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
  @session_entity_types_stub = ::Gapic::ServiceStub.new(
142
149
  ::Google::Cloud::Dialogflow::V2::SessionEntityTypes::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/session.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'
@@ -14,7 +16,6 @@ require 'google/protobuf/field_mask_pb'
14
16
  require 'google/protobuf/struct_pb'
15
17
  require 'google/rpc/status_pb'
16
18
  require 'google/type/latlng_pb'
17
- require 'google/protobuf'
18
19
 
19
20
  Google::Protobuf::DescriptorPool.generated_pool.build do
20
21
  add_file("google/cloud/dialogflow/v2/session.proto", :syntax => :proto3) do
@@ -18,6 +18,7 @@
18
18
 
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/dialogflow/v2/session_pb"
21
+ require "google/cloud/location"
21
22
 
22
23
  module Google
23
24
  module Cloud
@@ -148,6 +149,12 @@ module Google
148
149
  @quota_project_id = @config.quota_project
149
150
  @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
150
151
 
152
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
153
+ config.credentials = credentials
154
+ config.quota_project = @quota_project_id
155
+ config.endpoint = @config.endpoint
156
+ end
157
+
151
158
  @sessions_stub = ::Gapic::ServiceStub.new(
152
159
  ::Google::Cloud::Dialogflow::V2::Sessions::Stub,
153
160
  credentials: credentials,
@@ -157,6 +164,13 @@ module Google
157
164
  )
158
165
  end
159
166
 
167
+ ##
168
+ # Get the associated client for mix-in of the Locations.
169
+ #
170
+ # @return [Google::Cloud::Location::Locations::Client]
171
+ #
172
+ attr_reader :location_client
173
+
160
174
  # Service calls
161
175
 
162
176
  ##
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Dialogflow
23
23
  module V2
24
- VERSION = "0.15.1"
24
+ VERSION = "0.17.0"
25
25
  end
26
26
  end
27
27
  end
@@ -1,6 +1,8 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/dialogflow/v2/version.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/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/version.proto", :syntax => :proto3) do
@@ -18,6 +18,7 @@
18
18
 
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/dialogflow/v2/version_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
  @versions_stub = ::Gapic::ServiceStub.new(
142
149
  ::Google::Cloud::Dialogflow::V2::Versions::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,12 +1,13 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/dialogflow/v2/webhook.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'google/cloud/dialogflow/v2/context_pb'
5
7
  require 'google/cloud/dialogflow/v2/intent_pb'
6
8
  require 'google/cloud/dialogflow/v2/session_pb'
7
9
  require 'google/cloud/dialogflow/v2/session_entity_type_pb'
8
10
  require 'google/protobuf/struct_pb'
9
- require 'google/protobuf'
10
11
 
11
12
  Google::Protobuf::DescriptorPool.generated_pool.build do
12
13
  add_file("google/cloud/dialogflow/v2/webhook.proto", :syntax => :proto3) do
@@ -73,9 +73,9 @@ module Google
73
73
  # ID>`.
74
74
  # @!attribute [rw] filter
75
75
  # @return [::String]
76
- # Required. Filters to restrict results to specific answer records.
77
- # Filter on answer record type. Currently predicates on `type` is supported,
78
- # valid values are `ARTICLE_ANSWER`, `FAQ_ANSWER`.
76
+ # Optional. Filters to restrict results to specific answer records.
77
+ #
78
+ # Marked deprecated as it hasn't been, and isn't currently, supported.
79
79
  #
80
80
  # For more information about filtering, see
81
81
  # [API Filtering](https://aip.dev/160).
@@ -380,7 +380,8 @@ module Google
380
380
 
381
381
  # Custom conversation models used in agent assist feature.
382
382
  #
383
- # Supported feature: ARTICLE_SUGGESTION, SMART_COMPOSE, SMART_REPLY.
383
+ # Supported feature: ARTICLE_SUGGESTION, SMART_COMPOSE, SMART_REPLY,
384
+ # CONVERSATION_SUMMARIZATION.
384
385
  # @!attribute [rw] model
385
386
  # @return [::String]
386
387
  # Conversation model resource name. Format: `projects/<Project
@@ -35,6 +35,7 @@ module Google
35
35
  # @return [::String]
36
36
  # Required. The unique identifier of the fulfillment.
37
37
  # Supported formats:
38
+ #
38
39
  # - `projects/<Project ID>/agent/fulfillment`
39
40
  # - `projects/<Project ID>/locations/<Location ID>/agent/fulfillment`
40
41
  #
@@ -59,8 +60,10 @@ module Google
59
60
 
60
61
  # Represents configuration for a generic web service.
61
62
  # Dialogflow supports two mechanisms for authentications:
63
+ #
62
64
  # - Basic authentication with username and password.
63
65
  # - Authentication with additional authentication headers.
66
+ #
64
67
  # More information could be found at:
65
68
  # https://cloud.google.com/dialogflow/docs/fulfillment-configure.
66
69
  # @!attribute [rw] uri
@@ -215,6 +215,14 @@ module Google
215
215
  # @!attribute [rw] assist_query_params
216
216
  # @return [::Google::Cloud::Dialogflow::V2::AssistQueryParameters]
217
217
  # Parameters for a human assist query.
218
+ # @!attribute [rw] cx_parameters
219
+ # @return [::Google::Protobuf::Struct]
220
+ # Additional parameters to be put into Dialogflow CX session parameters. To
221
+ # remove a parameter from the session, clients should explicitly set the
222
+ # parameter value to null.
223
+ #
224
+ # Note: this field should only be used if you are connecting to a Dialogflow
225
+ # CX agent.
218
226
  # @!attribute [rw] request_id
219
227
  # @return [::String]
220
228
  # A unique identifier for this request. Restricted to 36 ASCII characters.
@@ -267,11 +275,21 @@ module Google
267
275
  # The suggestions for most recent human agent. The order is the same as
268
276
  # {::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionConfig#feature_configs HumanAgentAssistantConfig.SuggestionConfig.feature_configs} of
269
277
  # {::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig#human_agent_suggestion_config HumanAgentAssistantConfig.human_agent_suggestion_config}.
278
+ #
279
+ # Note that any failure of Agent Assist features will not lead to the overall
280
+ # failure of an AnalyzeContent API call. Instead, the features will
281
+ # fail silently with the error field set in the corresponding
282
+ # SuggestionResult.
270
283
  # @!attribute [rw] end_user_suggestion_results
271
284
  # @return [::Array<::Google::Cloud::Dialogflow::V2::SuggestionResult>]
272
285
  # The suggestions for end user. The order is the same as
273
286
  # {::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionConfig#feature_configs HumanAgentAssistantConfig.SuggestionConfig.feature_configs} of
274
287
  # {::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig#end_user_suggestion_config HumanAgentAssistantConfig.end_user_suggestion_config}.
288
+ #
289
+ # Same as human_agent_suggestion_results, any failure of Agent Assist
290
+ # features will not lead to the overall failure of an AnalyzeContent API
291
+ # call. Instead, the features will fail silently with the error field set in
292
+ # the corresponding SuggestionResult.
275
293
  # @!attribute [rw] dtmf_parameters
276
294
  # @return [::Google::Cloud::Dialogflow::V2::DtmfParameters]
277
295
  # Indicates the parameters of DTMF.
@@ -251,7 +251,8 @@ module Google
251
251
  # @!attribute [rw] cancels_slot_filling
252
252
  # @return [::Boolean]
253
253
  # Indicates whether the conversational query triggers a cancellation for slot
254
- # filling.
254
+ # filling. For more information, see the [cancel slot filling
255
+ # documentation](https://cloud.google.com/dialogflow/es/docs/intents-actions-parameters#cancel).
255
256
  # @!attribute [rw] fulfillment_text
256
257
  # @return [::String]
257
258
  # The text to be pronounced to the user or shown on the screen.
@@ -541,6 +542,9 @@ module Google
541
542
  end
542
543
  end
543
544
 
545
+ # ============================================================================
546
+ # Auxiliary proto messages.
547
+ #
544
548
  # Represents the natural language text to be processed.
545
549
  # @!attribute [rw] text
546
550
  # @return [::String]
@@ -44,7 +44,7 @@ module Google
44
44
  # foo = any.unpack(Foo.class);
45
45
  # }
46
46
  #
47
- # Example 3: Pack and unpack a message in Python.
47
+ # Example 3: Pack and unpack a message in Python.
48
48
  #
49
49
  # foo = Foo(...)
50
50
  # any = Any()
@@ -54,7 +54,7 @@ module Google
54
54
  # any.Unpack(foo)
55
55
  # ...
56
56
  #
57
- # Example 4: Pack and unpack a message in Go
57
+ # Example 4: Pack and unpack a message in Go
58
58
  #
59
59
  # foo := &pb.Foo{...}
60
60
  # any, err := anypb.New(foo)
@@ -75,7 +75,7 @@ module Google
75
75
  #
76
76
  #
77
77
  # JSON
78
- # ====
78
+ #
79
79
  # The JSON representation of an `Any` value uses the regular
80
80
  # representation of the deserialized, embedded message, with an
81
81
  # additional field `@type` which contains the type URL. Example: