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.
- checksums.yaml +4 -4
- data/README.md +10 -5
- data/lib/google/cloud/dialogflow/v2/agent_pb.rb +2 -1
- data/lib/google/cloud/dialogflow/v2/agents/client.rb +14 -0
- data/lib/google/cloud/dialogflow/v2/agents/operations.rb +3 -0
- data/lib/google/cloud/dialogflow/v2/answer_record_pb.rb +2 -1
- data/lib/google/cloud/dialogflow/v2/answer_records/client.rb +17 -3
- data/lib/google/cloud/dialogflow/v2/audio_config_pb.rb +2 -1
- data/lib/google/cloud/dialogflow/v2/context_pb.rb +2 -1
- data/lib/google/cloud/dialogflow/v2/contexts/client.rb +14 -0
- data/lib/google/cloud/dialogflow/v2/conversation_dataset_pb.rb +2 -1
- data/lib/google/cloud/dialogflow/v2/conversation_datasets/client.rb +14 -0
- data/lib/google/cloud/dialogflow/v2/conversation_datasets/operations.rb +3 -0
- data/lib/google/cloud/dialogflow/v2/conversation_event_pb.rb +2 -1
- data/lib/google/cloud/dialogflow/v2/conversation_model_pb.rb +2 -1
- data/lib/google/cloud/dialogflow/v2/conversation_models/client.rb +14 -0
- data/lib/google/cloud/dialogflow/v2/conversation_models/operations.rb +3 -0
- data/lib/google/cloud/dialogflow/v2/conversation_models/paths.rb +12 -8
- data/lib/google/cloud/dialogflow/v2/conversation_pb.rb +2 -1
- data/lib/google/cloud/dialogflow/v2/conversation_profile_pb.rb +2 -1
- data/lib/google/cloud/dialogflow/v2/conversation_profiles/client.rb +14 -0
- data/lib/google/cloud/dialogflow/v2/conversation_profiles/operations.rb +3 -0
- data/lib/google/cloud/dialogflow/v2/conversations/client.rb +14 -0
- data/lib/google/cloud/dialogflow/v2/document_pb.rb +2 -1
- data/lib/google/cloud/dialogflow/v2/documents/client.rb +14 -0
- data/lib/google/cloud/dialogflow/v2/documents/operations.rb +3 -0
- data/lib/google/cloud/dialogflow/v2/entity_type_pb.rb +2 -1
- data/lib/google/cloud/dialogflow/v2/entity_types/client.rb +14 -0
- data/lib/google/cloud/dialogflow/v2/entity_types/operations.rb +3 -0
- data/lib/google/cloud/dialogflow/v2/environment_pb.rb +2 -1
- data/lib/google/cloud/dialogflow/v2/environments/client.rb +14 -0
- data/lib/google/cloud/dialogflow/v2/fulfillment_pb.rb +2 -1
- data/lib/google/cloud/dialogflow/v2/fulfillments/client.rb +14 -0
- data/lib/google/cloud/dialogflow/v2/gcs_pb.rb +2 -1
- data/lib/google/cloud/dialogflow/v2/human_agent_assistant_event_pb.rb +2 -1
- data/lib/google/cloud/dialogflow/v2/intent_pb.rb +2 -1
- data/lib/google/cloud/dialogflow/v2/intents/client.rb +14 -0
- data/lib/google/cloud/dialogflow/v2/intents/operations.rb +3 -0
- data/lib/google/cloud/dialogflow/v2/knowledge_base_pb.rb +2 -1
- data/lib/google/cloud/dialogflow/v2/knowledge_bases/client.rb +14 -0
- data/lib/google/cloud/dialogflow/v2/participant_pb.rb +3 -1
- data/lib/google/cloud/dialogflow/v2/participants/client.rb +22 -1
- data/lib/google/cloud/dialogflow/v2/session_entity_type_pb.rb +2 -1
- data/lib/google/cloud/dialogflow/v2/session_entity_types/client.rb +14 -0
- data/lib/google/cloud/dialogflow/v2/session_pb.rb +2 -1
- data/lib/google/cloud/dialogflow/v2/sessions/client.rb +14 -0
- data/lib/google/cloud/dialogflow/v2/version.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/version_pb.rb +2 -1
- data/lib/google/cloud/dialogflow/v2/versions/client.rb +14 -0
- data/lib/google/cloud/dialogflow/v2/webhook_pb.rb +2 -1
- data/proto_docs/google/cloud/dialogflow/v2/answer_record.rb +3 -3
- data/proto_docs/google/cloud/dialogflow/v2/conversation_profile.rb +2 -1
- data/proto_docs/google/cloud/dialogflow/v2/fulfillment.rb +3 -0
- data/proto_docs/google/cloud/dialogflow/v2/participant.rb +8 -0
- data/proto_docs/google/cloud/dialogflow/v2/session.rb +8 -3
- data/proto_docs/google/protobuf/any.rb +3 -3
- data/proto_docs/google/protobuf/empty.rb +0 -2
- data/proto_docs/google/protobuf/struct.rb +2 -2
- metadata +32 -12
@@ -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
|
##
|
@@ -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
|
##
|
@@ -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
|
-
#
|
77
|
-
#
|
78
|
-
#
|
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.
|
@@ -181,7 +181,8 @@ module Google
|
|
181
181
|
# Instructs the speech recognizer how to process the speech audio.
|
182
182
|
# @!attribute [rw] text
|
183
183
|
# @return [::Google::Cloud::Dialogflow::V2::TextInput]
|
184
|
-
# The natural language text to be processed.
|
184
|
+
# The natural language text to be processed. Text length must not exceed
|
185
|
+
# 256 character for virtual agent interactions.
|
185
186
|
# @!attribute [rw] event
|
186
187
|
# @return [::Google::Cloud::Dialogflow::V2::EventInput]
|
187
188
|
# The event to be processed.
|
@@ -251,7 +252,8 @@ module Google
|
|
251
252
|
# @!attribute [rw] cancels_slot_filling
|
252
253
|
# @return [::Boolean]
|
253
254
|
# Indicates whether the conversational query triggers a cancellation for slot
|
254
|
-
# filling.
|
255
|
+
# filling. For more information, see the [cancel slot filling
|
256
|
+
# documentation](https://cloud.google.com/dialogflow/es/docs/intents-actions-parameters#cancel).
|
255
257
|
# @!attribute [rw] fulfillment_text
|
256
258
|
# @return [::String]
|
257
259
|
# The text to be pronounced to the user or shown on the screen.
|
@@ -541,11 +543,14 @@ module Google
|
|
541
543
|
end
|
542
544
|
end
|
543
545
|
|
546
|
+
# ============================================================================
|
547
|
+
# Auxiliary proto messages.
|
548
|
+
#
|
544
549
|
# Represents the natural language text to be processed.
|
545
550
|
# @!attribute [rw] text
|
546
551
|
# @return [::String]
|
547
552
|
# Required. The UTF-8 encoded natural language text to be processed.
|
548
|
-
# Text length must not exceed 256 characters.
|
553
|
+
# Text length must not exceed 256 characters for virtual agent interactions.
|
549
554
|
# @!attribute [rw] language_code
|
550
555
|
# @return [::String]
|
551
556
|
# Required. The language of this conversational query. See [Language
|
@@ -44,7 +44,7 @@ module Google
|
|
44
44
|
# foo = any.unpack(Foo.class);
|
45
45
|
# }
|
46
46
|
#
|
47
|
-
#
|
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
|
-
#
|
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:
|
@@ -26,8 +26,6 @@ module Google
|
|
26
26
|
# service Foo {
|
27
27
|
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
28
28
|
# }
|
29
|
-
#
|
30
|
-
# The JSON representation for `Empty` is empty JSON object `{}`.
|
31
29
|
class Empty
|
32
30
|
include ::Google::Protobuf::MessageExts
|
33
31
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|