google-cloud-dialogflow-cx-v3 0.16.0 → 0.18.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/dialogflow/cx/v3/advanced_settings_pb.rb +25 -9
- data/lib/google/cloud/dialogflow/cx/v3/agent_pb.rb +28 -86
- data/lib/google/cloud/dialogflow/cx/v3/agents/client.rb +7 -3
- data/lib/google/cloud/dialogflow/cx/v3/agents/operations.rb +3 -1
- data/lib/google/cloud/dialogflow/cx/v3/agents/rest/client.rb +7 -3
- data/lib/google/cloud/dialogflow/cx/v3/agents/rest/operations.rb +7 -5
- data/lib/google/cloud/dialogflow/cx/v3/agents/rest/service_stub.rb +9 -9
- data/lib/google/cloud/dialogflow/cx/v3/audio_config_pb.rb +25 -65
- data/lib/google/cloud/dialogflow/cx/v3/changelog_pb.rb +25 -23
- data/lib/google/cloud/dialogflow/cx/v3/changelogs/client.rb +4 -2
- data/lib/google/cloud/dialogflow/cx/v3/changelogs/rest/client.rb +4 -2
- data/lib/google/cloud/dialogflow/cx/v3/changelogs/rest/service_stub.rb +2 -2
- data/lib/google/cloud/dialogflow/cx/v3/deployment_pb.rb +25 -31
- data/lib/google/cloud/dialogflow/cx/v3/deployments/client.rb +4 -2
- data/lib/google/cloud/dialogflow/cx/v3/deployments/rest/client.rb +4 -2
- data/lib/google/cloud/dialogflow/cx/v3/deployments/rest/service_stub.rb +2 -2
- data/lib/google/cloud/dialogflow/cx/v3/entity_type_pb.rb +25 -56
- data/lib/google/cloud/dialogflow/cx/v3/entity_types/client.rb +4 -2
- data/lib/google/cloud/dialogflow/cx/v3/entity_types/rest/client.rb +4 -2
- data/lib/google/cloud/dialogflow/cx/v3/entity_types/rest/service_stub.rb +5 -5
- data/lib/google/cloud/dialogflow/cx/v3/environment_pb.rb +28 -93
- data/lib/google/cloud/dialogflow/cx/v3/environments/client.rb +4 -2
- data/lib/google/cloud/dialogflow/cx/v3/environments/operations.rb +3 -1
- data/lib/google/cloud/dialogflow/cx/v3/environments/rest/client.rb +4 -2
- data/lib/google/cloud/dialogflow/cx/v3/environments/rest/operations.rb +7 -5
- data/lib/google/cloud/dialogflow/cx/v3/environments/rest/service_stub.rb +9 -9
- data/lib/google/cloud/dialogflow/cx/v3/experiment_pb.rb +27 -127
- data/lib/google/cloud/dialogflow/cx/v3/experiments/client.rb +4 -2
- data/lib/google/cloud/dialogflow/cx/v3/experiments/rest/client.rb +4 -2
- data/lib/google/cloud/dialogflow/cx/v3/experiments/rest/service_stub.rb +7 -7
- data/lib/google/cloud/dialogflow/cx/v3/flow_pb.rb +28 -96
- data/lib/google/cloud/dialogflow/cx/v3/flows/client.rb +4 -2
- data/lib/google/cloud/dialogflow/cx/v3/flows/operations.rb +3 -1
- data/lib/google/cloud/dialogflow/cx/v3/flows/rest/client.rb +4 -2
- data/lib/google/cloud/dialogflow/cx/v3/flows/rest/operations.rb +7 -5
- data/lib/google/cloud/dialogflow/cx/v3/flows/rest/service_stub.rb +10 -10
- data/lib/google/cloud/dialogflow/cx/v3/fulfillment_pb.rb +26 -26
- data/lib/google/cloud/dialogflow/cx/v3/gcs_pb.rb +24 -4
- data/lib/google/cloud/dialogflow/cx/v3/intent_pb.rb +25 -59
- data/lib/google/cloud/dialogflow/cx/v3/intents/client.rb +4 -2
- data/lib/google/cloud/dialogflow/cx/v3/intents/rest/client.rb +4 -2
- data/lib/google/cloud/dialogflow/cx/v3/intents/rest/service_stub.rb +5 -5
- data/lib/google/cloud/dialogflow/cx/v3/page_pb.rb +27 -73
- data/lib/google/cloud/dialogflow/cx/v3/pages/client.rb +4 -2
- data/lib/google/cloud/dialogflow/cx/v3/pages/rest/client.rb +4 -2
- data/lib/google/cloud/dialogflow/cx/v3/pages/rest/service_stub.rb +5 -5
- data/lib/google/cloud/dialogflow/cx/v3/response_message_pb.rb +25 -53
- data/lib/google/cloud/dialogflow/cx/v3/security_settings_pb.rb +25 -65
- data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/client.rb +4 -2
- data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/rest/client.rb +4 -2
- data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/rest/service_stub.rb +5 -5
- data/lib/google/cloud/dialogflow/cx/v3/session_entity_type_pb.rb +26 -34
- data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/client.rb +4 -2
- data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/rest/client.rb +4 -2
- data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/rest/service_stub.rb +5 -5
- data/lib/google/cloud/dialogflow/cx/v3/session_pb.rb +33 -177
- data/lib/google/cloud/dialogflow/cx/v3/sessions/client.rb +4 -2
- data/lib/google/cloud/dialogflow/cx/v3/sessions/rest/client.rb +4 -2
- data/lib/google/cloud/dialogflow/cx/v3/sessions/rest/service_stub.rb +3 -3
- data/lib/google/cloud/dialogflow/cx/v3/test_case_pb.rb +34 -224
- data/lib/google/cloud/dialogflow/cx/v3/test_cases/client.rb +4 -2
- data/lib/google/cloud/dialogflow/cx/v3/test_cases/operations.rb +3 -1
- data/lib/google/cloud/dialogflow/cx/v3/test_cases/rest/client.rb +4 -2
- data/lib/google/cloud/dialogflow/cx/v3/test_cases/rest/operations.rb +7 -5
- data/lib/google/cloud/dialogflow/cx/v3/test_cases/rest/service_stub.rb +12 -12
- data/lib/google/cloud/dialogflow/cx/v3/transition_route_group_pb.rb +26 -34
- data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/client.rb +4 -2
- data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/rest/client.rb +4 -2
- data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/rest/service_stub.rb +5 -5
- data/lib/google/cloud/dialogflow/cx/v3/validation_message_pb.rb +24 -34
- data/lib/google/cloud/dialogflow/cx/v3/version.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/version_pb.rb +27 -55
- data/lib/google/cloud/dialogflow/cx/v3/versions/client.rb +4 -2
- data/lib/google/cloud/dialogflow/cx/v3/versions/operations.rb +3 -1
- data/lib/google/cloud/dialogflow/cx/v3/versions/rest/client.rb +4 -2
- data/lib/google/cloud/dialogflow/cx/v3/versions/rest/operations.rb +7 -5
- data/lib/google/cloud/dialogflow/cx/v3/versions/rest/service_stub.rb +7 -7
- data/lib/google/cloud/dialogflow/cx/v3/webhook_pb.rb +30 -125
- data/lib/google/cloud/dialogflow/cx/v3/webhooks/client.rb +4 -2
- data/lib/google/cloud/dialogflow/cx/v3/webhooks/rest/client.rb +4 -2
- data/lib/google/cloud/dialogflow/cx/v3/webhooks/rest/service_stub.rb +5 -5
- data/proto_docs/google/cloud/dialogflow/cx/v3/agent.rb +3 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/audio_config.rb +12 -5
- data/proto_docs/google/cloud/dialogflow/cx/v3/session.rb +6 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/test_case.rb +2 -1
- data/proto_docs/google/cloud/dialogflow/cx/v3/webhook.rb +65 -0
- data/proto_docs/google/protobuf/any.rb +7 -4
- data/proto_docs/google/protobuf/struct.rb +1 -1
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- metadata +4 -4
@@ -60,7 +60,7 @@ module Google
|
|
60
60
|
|
61
61
|
verb, uri, query_string_params, body = ServiceStub.transcode_create_flow_request request_pb
|
62
62
|
query_string_params = if query_string_params.any?
|
63
|
-
query_string_params.to_h { |p| p.split
|
63
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
64
64
|
else
|
65
65
|
{}
|
66
66
|
end
|
@@ -98,7 +98,7 @@ module Google
|
|
98
98
|
|
99
99
|
verb, uri, query_string_params, body = ServiceStub.transcode_delete_flow_request request_pb
|
100
100
|
query_string_params = if query_string_params.any?
|
101
|
-
query_string_params.to_h { |p| p.split
|
101
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
102
102
|
else
|
103
103
|
{}
|
104
104
|
end
|
@@ -136,7 +136,7 @@ module Google
|
|
136
136
|
|
137
137
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_flows_request request_pb
|
138
138
|
query_string_params = if query_string_params.any?
|
139
|
-
query_string_params.to_h { |p| p.split
|
139
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
140
140
|
else
|
141
141
|
{}
|
142
142
|
end
|
@@ -174,7 +174,7 @@ module Google
|
|
174
174
|
|
175
175
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_flow_request request_pb
|
176
176
|
query_string_params = if query_string_params.any?
|
177
|
-
query_string_params.to_h { |p| p.split
|
177
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
178
178
|
else
|
179
179
|
{}
|
180
180
|
end
|
@@ -212,7 +212,7 @@ module Google
|
|
212
212
|
|
213
213
|
verb, uri, query_string_params, body = ServiceStub.transcode_update_flow_request request_pb
|
214
214
|
query_string_params = if query_string_params.any?
|
215
|
-
query_string_params.to_h { |p| p.split
|
215
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
216
216
|
else
|
217
217
|
{}
|
218
218
|
end
|
@@ -250,7 +250,7 @@ module Google
|
|
250
250
|
|
251
251
|
verb, uri, query_string_params, body = ServiceStub.transcode_train_flow_request request_pb
|
252
252
|
query_string_params = if query_string_params.any?
|
253
|
-
query_string_params.to_h { |p| p.split
|
253
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
254
254
|
else
|
255
255
|
{}
|
256
256
|
end
|
@@ -288,7 +288,7 @@ module Google
|
|
288
288
|
|
289
289
|
verb, uri, query_string_params, body = ServiceStub.transcode_validate_flow_request request_pb
|
290
290
|
query_string_params = if query_string_params.any?
|
291
|
-
query_string_params.to_h { |p| p.split
|
291
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
292
292
|
else
|
293
293
|
{}
|
294
294
|
end
|
@@ -326,7 +326,7 @@ module Google
|
|
326
326
|
|
327
327
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_flow_validation_result_request request_pb
|
328
328
|
query_string_params = if query_string_params.any?
|
329
|
-
query_string_params.to_h { |p| p.split
|
329
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
330
330
|
else
|
331
331
|
{}
|
332
332
|
end
|
@@ -364,7 +364,7 @@ module Google
|
|
364
364
|
|
365
365
|
verb, uri, query_string_params, body = ServiceStub.transcode_import_flow_request request_pb
|
366
366
|
query_string_params = if query_string_params.any?
|
367
|
-
query_string_params.to_h { |p| p.split
|
367
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
368
368
|
else
|
369
369
|
{}
|
370
370
|
end
|
@@ -402,7 +402,7 @@ module Google
|
|
402
402
|
|
403
403
|
verb, uri, query_string_params, body = ServiceStub.transcode_export_flow_request request_pb
|
404
404
|
query_string_params = if query_string_params.any?
|
405
|
-
query_string_params.to_h { |p| p.split
|
405
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
406
406
|
else
|
407
407
|
{}
|
408
408
|
end
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/cloud/dialogflow/cx/v3/fulfillment.proto
|
3
4
|
|
@@ -7,34 +8,33 @@ require 'google/api/resource_pb'
|
|
7
8
|
require 'google/cloud/dialogflow/cx/v3/response_message_pb'
|
8
9
|
require 'google/protobuf/struct_pb'
|
9
10
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
optional :message, :message, 1, "google.cloud.dialogflow.cx.v3.ResponseMessage"
|
34
|
-
optional :additional_cases, :message, 2, "google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases"
|
35
|
-
end
|
11
|
+
|
12
|
+
descriptor_data = "\n/google/cloud/dialogflow/cx/v3/fulfillment.proto\x12\x1dgoogle.cloud.dialogflow.cx.v3\x1a\x19google/api/resource.proto\x1a\x34google/cloud/dialogflow/cx/v3/response_message.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xe3\x06\n\x0b\x46ulfillment\x12@\n\x08messages\x18\x01 \x03(\x0b\x32..google.cloud.dialogflow.cx.v3.ResponseMessage\x12\x37\n\x07webhook\x18\x02 \x01(\tB&\xfa\x41#\n!dialogflow.googleapis.com/Webhook\x12 \n\x18return_partial_responses\x18\x08 \x01(\x08\x12\x0b\n\x03tag\x18\x03 \x01(\t\x12\\\n\x15set_parameter_actions\x18\x04 \x03(\x0b\x32=.google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction\x12V\n\x11\x63onditional_cases\x18\x05 \x03(\x0b\x32;.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases\x1aN\n\x12SetParameterAction\x12\x11\n\tparameter\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.Value\x1a\xa3\x03\n\x10\x43onditionalCases\x12O\n\x05\x63\x61ses\x18\x01 \x03(\x0b\x32@.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case\x1a\xbd\x02\n\x04\x43\x61se\x12\x11\n\tcondition\x18\x01 \x01(\t\x12\x62\n\x0c\x63\x61se_content\x18\x02 \x03(\x0b\x32L.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent\x1a\xbd\x01\n\x0b\x43\x61seContent\x12\x41\n\x07message\x18\x01 \x01(\x0b\x32..google.cloud.dialogflow.cx.v3.ResponseMessageH\x00\x12W\n\x10\x61\x64\x64itional_cases\x18\x02 \x01(\x0b\x32;.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCasesH\x00\x42\x12\n\x10\x63\x61ses_or_messageB\xb6\x01\n!com.google.cloud.dialogflow.cx.v3B\x10\x46ulfillmentProtoP\x01Z1cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1dGoogle.Cloud.Dialogflow.Cx.V3\xea\x02!Google::Cloud::Dialogflow::CX::V3b\x06proto3"
|
13
|
+
|
14
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
15
|
+
|
16
|
+
begin
|
17
|
+
pool.add_serialized_file(descriptor_data)
|
18
|
+
rescue TypeError => e
|
19
|
+
# Compatibility code: will be removed in the next major version.
|
20
|
+
require 'google/protobuf/descriptor_pb'
|
21
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
22
|
+
parsed.clear_dependency
|
23
|
+
serialized = parsed.class.encode(parsed)
|
24
|
+
file = pool.add_serialized_file(serialized)
|
25
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
26
|
+
imports = [
|
27
|
+
["google.cloud.dialogflow.cx.v3.ResponseMessage", "google/cloud/dialogflow/cx/v3/response_message.proto"],
|
28
|
+
["google.protobuf.Value", "google/protobuf/struct.proto"],
|
29
|
+
]
|
30
|
+
imports.each do |type_name, expected_filename|
|
31
|
+
import_file = pool.lookup(type_name).file_descriptor
|
32
|
+
if import_file.name != expected_filename
|
33
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
36
34
|
end
|
37
35
|
end
|
36
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
37
|
+
warn "This will become an error in the next major version."
|
38
38
|
end
|
39
39
|
|
40
40
|
module Google
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/cloud/dialogflow/cx/v3/gcs.proto
|
3
4
|
|
@@ -5,12 +6,31 @@ require 'google/protobuf'
|
|
5
6
|
|
6
7
|
require 'google/api/field_behavior_pb'
|
7
8
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
|
10
|
+
descriptor_data = "\n\'google/cloud/dialogflow/cx/v3/gcs.proto\x12\x1dgoogle.cloud.dialogflow.cx.v3\x1a\x1fgoogle/api/field_behavior.proto\"\"\n\x0eGcsDestination\x12\x10\n\x03uri\x18\x01 \x01(\tB\x03\xe0\x41\x02\x42\xae\x01\n!com.google.cloud.dialogflow.cx.v3B\x08GcsProtoP\x01Z1cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1dGoogle.Cloud.Dialogflow.Cx.V3\xea\x02!Google::Cloud::Dialogflow::CX::V3b\x06proto3"
|
11
|
+
|
12
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
13
|
+
|
14
|
+
begin
|
15
|
+
pool.add_serialized_file(descriptor_data)
|
16
|
+
rescue TypeError => e
|
17
|
+
# Compatibility code: will be removed in the next major version.
|
18
|
+
require 'google/protobuf/descriptor_pb'
|
19
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
20
|
+
parsed.clear_dependency
|
21
|
+
serialized = parsed.class.encode(parsed)
|
22
|
+
file = pool.add_serialized_file(serialized)
|
23
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
24
|
+
imports = [
|
25
|
+
]
|
26
|
+
imports.each do |type_name, expected_filename|
|
27
|
+
import_file = pool.lookup(type_name).file_descriptor
|
28
|
+
if import_file.name != expected_filename
|
29
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
12
30
|
end
|
13
31
|
end
|
32
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
33
|
+
warn "This will become an error in the next major version."
|
14
34
|
end
|
15
35
|
|
16
36
|
module Google
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/cloud/dialogflow/cx/v3/intent.proto
|
3
4
|
|
@@ -10,67 +11,32 @@ require 'google/api/resource_pb'
|
|
10
11
|
require 'google/protobuf/empty_pb'
|
11
12
|
require 'google/protobuf/field_mask_pb'
|
12
13
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
optional :id, :string, 1
|
36
|
-
optional :entity_type, :string, 2
|
37
|
-
optional :is_list, :bool, 3
|
38
|
-
optional :redact, :bool, 4
|
39
|
-
end
|
40
|
-
add_message "google.cloud.dialogflow.cx.v3.ListIntentsRequest" do
|
41
|
-
optional :parent, :string, 1
|
42
|
-
optional :language_code, :string, 2
|
43
|
-
optional :intent_view, :enum, 5, "google.cloud.dialogflow.cx.v3.IntentView"
|
44
|
-
optional :page_size, :int32, 3
|
45
|
-
optional :page_token, :string, 4
|
46
|
-
end
|
47
|
-
add_message "google.cloud.dialogflow.cx.v3.ListIntentsResponse" do
|
48
|
-
repeated :intents, :message, 1, "google.cloud.dialogflow.cx.v3.Intent"
|
49
|
-
optional :next_page_token, :string, 2
|
50
|
-
end
|
51
|
-
add_message "google.cloud.dialogflow.cx.v3.GetIntentRequest" do
|
52
|
-
optional :name, :string, 1
|
53
|
-
optional :language_code, :string, 2
|
54
|
-
end
|
55
|
-
add_message "google.cloud.dialogflow.cx.v3.CreateIntentRequest" do
|
56
|
-
optional :parent, :string, 1
|
57
|
-
optional :intent, :message, 2, "google.cloud.dialogflow.cx.v3.Intent"
|
58
|
-
optional :language_code, :string, 3
|
59
|
-
end
|
60
|
-
add_message "google.cloud.dialogflow.cx.v3.UpdateIntentRequest" do
|
61
|
-
optional :intent, :message, 1, "google.cloud.dialogflow.cx.v3.Intent"
|
62
|
-
optional :language_code, :string, 2
|
63
|
-
optional :update_mask, :message, 3, "google.protobuf.FieldMask"
|
64
|
-
end
|
65
|
-
add_message "google.cloud.dialogflow.cx.v3.DeleteIntentRequest" do
|
66
|
-
optional :name, :string, 1
|
67
|
-
end
|
68
|
-
add_enum "google.cloud.dialogflow.cx.v3.IntentView" do
|
69
|
-
value :INTENT_VIEW_UNSPECIFIED, 0
|
70
|
-
value :INTENT_VIEW_PARTIAL, 1
|
71
|
-
value :INTENT_VIEW_FULL, 2
|
14
|
+
|
15
|
+
descriptor_data = "\n*google/cloud/dialogflow/cx/v3/intent.proto\x12\x1dgoogle.cloud.dialogflow.cx.v3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\x9c\x06\n\x06Intent\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12N\n\x10training_phrases\x18\x03 \x03(\x0b\x32\x34.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase\x12\x43\n\nparameters\x18\x04 \x03(\x0b\x32/.google.cloud.dialogflow.cx.v3.Intent.Parameter\x12\x10\n\x08priority\x18\x05 \x01(\x05\x12\x13\n\x0bis_fallback\x18\x06 \x01(\x08\x12\x41\n\x06labels\x18\x07 \x03(\x0b\x32\x31.google.cloud.dialogflow.cx.v3.Intent.LabelsEntry\x12\x13\n\x0b\x64\x65scription\x18\x08 \x01(\t\x1a\xb2\x01\n\x0eTrainingPhrase\x12\n\n\x02id\x18\x01 \x01(\t\x12M\n\x05parts\x18\x02 \x03(\x0b\x32\x39.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.PartB\x03\xe0\x41\x02\x12\x14\n\x0crepeat_count\x18\x03 \x01(\x05\x1a/\n\x04Part\x12\x11\n\x04text\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x14\n\x0cparameter_id\x18\x02 \x01(\t\x1a\x80\x01\n\tParameter\x12\x0f\n\x02id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x41\n\x0b\x65ntity_type\x18\x02 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$dialogflow.googleapis.com/EntityType\x12\x0f\n\x07is_list\x18\x03 \x01(\x08\x12\x0e\n\x06redact\x18\x04 \x01(\x08\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:n\xea\x41k\n dialogflow.googleapis.com/Intent\x12Gprojects/{project}/locations/{location}/agents/{agent}/intents/{intent}\"\xcc\x01\n\x12ListIntentsRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\x12 dialogflow.googleapis.com/Intent\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\x12>\n\x0bintent_view\x18\x05 \x01(\x0e\x32).google.cloud.dialogflow.cx.v3.IntentView\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\"f\n\x13ListIntentsResponse\x12\x36\n\x07intents\x18\x01 \x03(\x0b\x32%.google.cloud.dialogflow.cx.v3.Intent\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"a\n\x10GetIntentRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n dialogflow.googleapis.com/Intent\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\"\xa2\x01\n\x13\x43reateIntentRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\x12 dialogflow.googleapis.com/Intent\x12:\n\x06intent\x18\x02 \x01(\x0b\x32%.google.cloud.dialogflow.cx.v3.IntentB\x03\xe0\x41\x02\x12\x15\n\rlanguage_code\x18\x03 \x01(\t\"\x99\x01\n\x13UpdateIntentRequest\x12:\n\x06intent\x18\x01 \x01(\x0b\x32%.google.cloud.dialogflow.cx.v3.IntentB\x03\xe0\x41\x02\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\x12/\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"M\n\x13\x44\x65leteIntentRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n dialogflow.googleapis.com/Intent*X\n\nIntentView\x12\x1b\n\x17INTENT_VIEW_UNSPECIFIED\x10\x00\x12\x17\n\x13INTENT_VIEW_PARTIAL\x10\x01\x12\x14\n\x10INTENT_VIEW_FULL\x10\x02\x32\x9e\x08\n\x07Intents\x12\xbb\x01\n\x0bListIntents\x12\x31.google.cloud.dialogflow.cx.v3.ListIntentsRequest\x1a\x32.google.cloud.dialogflow.cx.v3.ListIntentsResponse\"E\x82\xd3\xe4\x93\x02\x36\x12\x34/v3/{parent=projects/*/locations/*/agents/*}/intents\xda\x41\x06parent\x12\xa8\x01\n\tGetIntent\x12/.google.cloud.dialogflow.cx.v3.GetIntentRequest\x1a%.google.cloud.dialogflow.cx.v3.Intent\"C\x82\xd3\xe4\x93\x02\x36\x12\x34/v3/{name=projects/*/locations/*/agents/*/intents/*}\xda\x41\x04name\x12\xbf\x01\n\x0c\x43reateIntent\x12\x32.google.cloud.dialogflow.cx.v3.CreateIntentRequest\x1a%.google.cloud.dialogflow.cx.v3.Intent\"T\x82\xd3\xe4\x93\x02>\"4/v3/{parent=projects/*/locations/*/agents/*}/intents:\x06intent\xda\x41\rparent,intent\x12\xcb\x01\n\x0cUpdateIntent\x12\x32.google.cloud.dialogflow.cx.v3.UpdateIntentRequest\x1a%.google.cloud.dialogflow.cx.v3.Intent\"`\x82\xd3\xe4\x93\x02\x45\x32;/v3/{intent.name=projects/*/locations/*/agents/*/intents/*}:\x06intent\xda\x41\x12intent,update_mask\x12\x9f\x01\n\x0c\x44\x65leteIntent\x12\x32.google.cloud.dialogflow.cx.v3.DeleteIntentRequest\x1a\x16.google.protobuf.Empty\"C\x82\xd3\xe4\x93\x02\x36*4/v3/{name=projects/*/locations/*/agents/*/intents/*}\xda\x41\x04name\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\xb1\x01\n!com.google.cloud.dialogflow.cx.v3B\x0bIntentProtoP\x01Z1cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1dGoogle.Cloud.Dialogflow.Cx.V3\xea\x02!Google::Cloud::Dialogflow::CX::V3b\x06proto3"
|
16
|
+
|
17
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
18
|
+
|
19
|
+
begin
|
20
|
+
pool.add_serialized_file(descriptor_data)
|
21
|
+
rescue TypeError => e
|
22
|
+
# Compatibility code: will be removed in the next major version.
|
23
|
+
require 'google/protobuf/descriptor_pb'
|
24
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
25
|
+
parsed.clear_dependency
|
26
|
+
serialized = parsed.class.encode(parsed)
|
27
|
+
file = pool.add_serialized_file(serialized)
|
28
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
29
|
+
imports = [
|
30
|
+
["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
|
31
|
+
]
|
32
|
+
imports.each do |type_name, expected_filename|
|
33
|
+
import_file = pool.lookup(type_name).file_descriptor
|
34
|
+
if import_file.name != expected_filename
|
35
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
72
36
|
end
|
73
37
|
end
|
38
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
39
|
+
warn "This will become an error in the next major version."
|
74
40
|
end
|
75
41
|
|
76
42
|
module Google
|
@@ -130,7 +130,7 @@ module Google
|
|
130
130
|
credentials = @config.credentials
|
131
131
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
132
132
|
# but only if the default endpoint does not have a region prefix.
|
133
|
-
enable_self_signed_jwt = @config.endpoint ==
|
133
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
134
134
|
!@config.endpoint.split(".").first.include?("-")
|
135
135
|
credentials ||= Credentials.default scope: @config.scope,
|
136
136
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -748,7 +748,9 @@ module Google
|
|
748
748
|
class Configuration
|
749
749
|
extend ::Gapic::Config
|
750
750
|
|
751
|
-
|
751
|
+
DEFAULT_ENDPOINT = "dialogflow.googleapis.com"
|
752
|
+
|
753
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
752
754
|
config_attr :credentials, nil do |value|
|
753
755
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
754
756
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -126,7 +126,7 @@ module Google
|
|
126
126
|
credentials = @config.credentials
|
127
127
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
128
128
|
# but only if the default endpoint does not have a region prefix.
|
129
|
-
enable_self_signed_jwt = @config.endpoint ==
|
129
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
130
130
|
!@config.endpoint.split(".").first.include?("-")
|
131
131
|
credentials ||= Credentials.default scope: @config.scope,
|
132
132
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -612,7 +612,9 @@ module Google
|
|
612
612
|
class Configuration
|
613
613
|
extend ::Gapic::Config
|
614
614
|
|
615
|
-
|
615
|
+
DEFAULT_ENDPOINT = "dialogflow.googleapis.com"
|
616
|
+
|
617
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
616
618
|
config_attr :credentials, nil do |value|
|
617
619
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
618
620
|
allowed.any? { |klass| klass === value }
|
@@ -60,7 +60,7 @@ module Google
|
|
60
60
|
|
61
61
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_intents_request request_pb
|
62
62
|
query_string_params = if query_string_params.any?
|
63
|
-
query_string_params.to_h { |p| p.split
|
63
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
64
64
|
else
|
65
65
|
{}
|
66
66
|
end
|
@@ -98,7 +98,7 @@ module Google
|
|
98
98
|
|
99
99
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_intent_request request_pb
|
100
100
|
query_string_params = if query_string_params.any?
|
101
|
-
query_string_params.to_h { |p| p.split
|
101
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
102
102
|
else
|
103
103
|
{}
|
104
104
|
end
|
@@ -136,7 +136,7 @@ module Google
|
|
136
136
|
|
137
137
|
verb, uri, query_string_params, body = ServiceStub.transcode_create_intent_request request_pb
|
138
138
|
query_string_params = if query_string_params.any?
|
139
|
-
query_string_params.to_h { |p| p.split
|
139
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
140
140
|
else
|
141
141
|
{}
|
142
142
|
end
|
@@ -174,7 +174,7 @@ module Google
|
|
174
174
|
|
175
175
|
verb, uri, query_string_params, body = ServiceStub.transcode_update_intent_request request_pb
|
176
176
|
query_string_params = if query_string_params.any?
|
177
|
-
query_string_params.to_h { |p| p.split
|
177
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
178
178
|
else
|
179
179
|
{}
|
180
180
|
end
|
@@ -212,7 +212,7 @@ module Google
|
|
212
212
|
|
213
213
|
verb, uri, query_string_params, body = ServiceStub.transcode_delete_intent_request request_pb
|
214
214
|
query_string_params = if query_string_params.any?
|
215
|
-
query_string_params.to_h { |p| p.split
|
215
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
216
216
|
else
|
217
217
|
{}
|
218
218
|
end
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/cloud/dialogflow/cx/v3/page.proto
|
3
4
|
|
@@ -12,81 +13,34 @@ require 'google/protobuf/empty_pb'
|
|
12
13
|
require 'google/protobuf/field_mask_pb'
|
13
14
|
require 'google/protobuf/struct_pb'
|
14
15
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
optional :initial_prompt_fulfillment, :message, 3, "google.cloud.dialogflow.cx.v3.Fulfillment"
|
40
|
-
repeated :reprompt_event_handlers, :message, 5, "google.cloud.dialogflow.cx.v3.EventHandler"
|
41
|
-
end
|
42
|
-
add_message "google.cloud.dialogflow.cx.v3.EventHandler" do
|
43
|
-
optional :name, :string, 6
|
44
|
-
optional :event, :string, 4
|
45
|
-
optional :trigger_fulfillment, :message, 5, "google.cloud.dialogflow.cx.v3.Fulfillment"
|
46
|
-
oneof :target do
|
47
|
-
optional :target_page, :string, 2
|
48
|
-
optional :target_flow, :string, 3
|
49
|
-
end
|
50
|
-
end
|
51
|
-
add_message "google.cloud.dialogflow.cx.v3.TransitionRoute" do
|
52
|
-
optional :name, :string, 6
|
53
|
-
optional :intent, :string, 1
|
54
|
-
optional :condition, :string, 2
|
55
|
-
optional :trigger_fulfillment, :message, 3, "google.cloud.dialogflow.cx.v3.Fulfillment"
|
56
|
-
oneof :target do
|
57
|
-
optional :target_page, :string, 4
|
58
|
-
optional :target_flow, :string, 5
|
59
|
-
end
|
60
|
-
end
|
61
|
-
add_message "google.cloud.dialogflow.cx.v3.ListPagesRequest" do
|
62
|
-
optional :parent, :string, 1
|
63
|
-
optional :language_code, :string, 2
|
64
|
-
optional :page_size, :int32, 3
|
65
|
-
optional :page_token, :string, 4
|
66
|
-
end
|
67
|
-
add_message "google.cloud.dialogflow.cx.v3.ListPagesResponse" do
|
68
|
-
repeated :pages, :message, 1, "google.cloud.dialogflow.cx.v3.Page"
|
69
|
-
optional :next_page_token, :string, 2
|
70
|
-
end
|
71
|
-
add_message "google.cloud.dialogflow.cx.v3.GetPageRequest" do
|
72
|
-
optional :name, :string, 1
|
73
|
-
optional :language_code, :string, 2
|
74
|
-
end
|
75
|
-
add_message "google.cloud.dialogflow.cx.v3.CreatePageRequest" do
|
76
|
-
optional :parent, :string, 1
|
77
|
-
optional :page, :message, 2, "google.cloud.dialogflow.cx.v3.Page"
|
78
|
-
optional :language_code, :string, 3
|
79
|
-
end
|
80
|
-
add_message "google.cloud.dialogflow.cx.v3.UpdatePageRequest" do
|
81
|
-
optional :page, :message, 1, "google.cloud.dialogflow.cx.v3.Page"
|
82
|
-
optional :language_code, :string, 2
|
83
|
-
optional :update_mask, :message, 3, "google.protobuf.FieldMask"
|
84
|
-
end
|
85
|
-
add_message "google.cloud.dialogflow.cx.v3.DeletePageRequest" do
|
86
|
-
optional :name, :string, 1
|
87
|
-
optional :force, :bool, 2
|
16
|
+
|
17
|
+
descriptor_data = "\n(google/cloud/dialogflow/cx/v3/page.proto\x12\x1dgoogle.cloud.dialogflow.cx.v3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a/google/cloud/dialogflow/cx/v3/fulfillment.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1cgoogle/protobuf/struct.proto\"\x86\x04\n\x04Page\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x45\n\x11\x65ntry_fulfillment\x18\x07 \x01(\x0b\x32*.google.cloud.dialogflow.cx.v3.Fulfillment\x12\x31\n\x04\x66orm\x18\x04 \x01(\x0b\x32#.google.cloud.dialogflow.cx.v3.Form\x12T\n\x17transition_route_groups\x18\x0b \x03(\tB3\xfa\x41\x30\n.dialogflow.googleapis.com/TransitionRouteGroup\x12I\n\x11transition_routes\x18\t \x03(\x0b\x32..google.cloud.dialogflow.cx.v3.TransitionRoute\x12\x43\n\x0e\x65vent_handlers\x18\n \x03(\x0b\x32+.google.cloud.dialogflow.cx.v3.EventHandler:u\xea\x41r\n\x1e\x64ialogflow.googleapis.com/Page\x12Pprojects/{project}/locations/{location}/agents/{agent}/flows/{flow}/pages/{page}\"\xa3\x04\n\x04\x46orm\x12\x41\n\nparameters\x18\x01 \x03(\x0b\x32-.google.cloud.dialogflow.cx.v3.Form.Parameter\x1a\xd7\x03\n\tParameter\x12\x19\n\x0c\x64isplay_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x10\n\x08required\x18\x02 \x01(\x08\x12\x41\n\x0b\x65ntity_type\x18\x03 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$dialogflow.googleapis.com/EntityType\x12\x0f\n\x07is_list\x18\x04 \x01(\x08\x12V\n\rfill_behavior\x18\x07 \x01(\x0b\x32:.google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehaviorB\x03\xe0\x41\x02\x12-\n\rdefault_value\x18\t \x01(\x0b\x32\x16.google.protobuf.Value\x12\x0e\n\x06redact\x18\x0b \x01(\x08\x1a\xb1\x01\n\x0c\x46illBehavior\x12S\n\x1ainitial_prompt_fulfillment\x18\x03 \x01(\x0b\x32*.google.cloud.dialogflow.cx.v3.FulfillmentB\x03\xe0\x41\x02\x12L\n\x17reprompt_event_handlers\x18\x05 \x03(\x0b\x32+.google.cloud.dialogflow.cx.v3.EventHandler\"\x80\x02\n\x0c\x45ventHandler\x12\x11\n\x04name\x18\x06 \x01(\tB\x03\xe0\x41\x03\x12\x12\n\x05\x65vent\x18\x04 \x01(\tB\x03\xe0\x41\x02\x12G\n\x13trigger_fulfillment\x18\x05 \x01(\x0b\x32*.google.cloud.dialogflow.cx.v3.Fulfillment\x12:\n\x0btarget_page\x18\x02 \x01(\tB#\xfa\x41 \n\x1e\x64ialogflow.googleapis.com/PageH\x00\x12:\n\x0btarget_flow\x18\x03 \x01(\tB#\xfa\x41 \n\x1e\x64ialogflow.googleapis.com/FlowH\x00\x42\x08\n\x06target\"\xb9\x02\n\x0fTransitionRoute\x12\x11\n\x04name\x18\x06 \x01(\tB\x03\xe0\x41\x03\x12\x35\n\x06intent\x18\x01 \x01(\tB%\xfa\x41\"\n dialogflow.googleapis.com/Intent\x12\x11\n\tcondition\x18\x02 \x01(\t\x12G\n\x13trigger_fulfillment\x18\x03 \x01(\x0b\x32*.google.cloud.dialogflow.cx.v3.Fulfillment\x12:\n\x0btarget_page\x18\x04 \x01(\tB#\xfa\x41 \n\x1e\x64ialogflow.googleapis.com/PageH\x00\x12:\n\x0btarget_flow\x18\x05 \x01(\tB#\xfa\x41 \n\x1e\x64ialogflow.googleapis.com/FlowH\x00\x42\x08\n\x06target\"\x88\x01\n\x10ListPagesRequest\x12\x36\n\x06parent\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \x12\x1e\x64ialogflow.googleapis.com/Page\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\"`\n\x11ListPagesResponse\x12\x32\n\x05pages\x18\x01 \x03(\x0b\x32#.google.cloud.dialogflow.cx.v3.Page\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"]\n\x0eGetPageRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x64ialogflow.googleapis.com/Page\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\"\x9a\x01\n\x11\x43reatePageRequest\x12\x36\n\x06parent\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \x12\x1e\x64ialogflow.googleapis.com/Page\x12\x36\n\x04page\x18\x02 \x01(\x0b\x32#.google.cloud.dialogflow.cx.v3.PageB\x03\xe0\x41\x02\x12\x15\n\rlanguage_code\x18\x03 \x01(\t\"\x93\x01\n\x11UpdatePageRequest\x12\x36\n\x04page\x18\x01 \x01(\x0b\x32#.google.cloud.dialogflow.cx.v3.PageB\x03\xe0\x41\x02\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\x12/\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"X\n\x11\x44\x65letePageRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x64ialogflow.googleapis.com/Page\x12\r\n\x05\x66orce\x18\x02 \x01(\x08\x32\x94\x08\n\x05Pages\x12\xbb\x01\n\tListPages\x12/.google.cloud.dialogflow.cx.v3.ListPagesRequest\x1a\x30.google.cloud.dialogflow.cx.v3.ListPagesResponse\"K\x82\xd3\xe4\x93\x02<\x12:/v3/{parent=projects/*/locations/*/agents/*/flows/*}/pages\xda\x41\x06parent\x12\xa8\x01\n\x07GetPage\x12-.google.cloud.dialogflow.cx.v3.GetPageRequest\x1a#.google.cloud.dialogflow.cx.v3.Page\"I\x82\xd3\xe4\x93\x02<\x12:/v3/{name=projects/*/locations/*/agents/*/flows/*/pages/*}\xda\x41\x04name\x12\xbb\x01\n\nCreatePage\x12\x30.google.cloud.dialogflow.cx.v3.CreatePageRequest\x1a#.google.cloud.dialogflow.cx.v3.Page\"V\x82\xd3\xe4\x93\x02\x42\":/v3/{parent=projects/*/locations/*/agents/*/flows/*}/pages:\x04page\xda\x41\x0bparent,page\x12\xc5\x01\n\nUpdatePage\x12\x30.google.cloud.dialogflow.cx.v3.UpdatePageRequest\x1a#.google.cloud.dialogflow.cx.v3.Page\"`\x82\xd3\xe4\x93\x02G2?/v3/{page.name=projects/*/locations/*/agents/*/flows/*/pages/*}:\x04page\xda\x41\x10page,update_mask\x12\xa1\x01\n\nDeletePage\x12\x30.google.cloud.dialogflow.cx.v3.DeletePageRequest\x1a\x16.google.protobuf.Empty\"I\x82\xd3\xe4\x93\x02<*:/v3/{name=projects/*/locations/*/agents/*/flows/*/pages/*}\xda\x41\x04name\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\xaf\x01\n!com.google.cloud.dialogflow.cx.v3B\tPageProtoP\x01Z1cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1dGoogle.Cloud.Dialogflow.Cx.V3\xea\x02!Google::Cloud::Dialogflow::CX::V3b\x06proto3"
|
18
|
+
|
19
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
20
|
+
|
21
|
+
begin
|
22
|
+
pool.add_serialized_file(descriptor_data)
|
23
|
+
rescue TypeError => e
|
24
|
+
# Compatibility code: will be removed in the next major version.
|
25
|
+
require 'google/protobuf/descriptor_pb'
|
26
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
27
|
+
parsed.clear_dependency
|
28
|
+
serialized = parsed.class.encode(parsed)
|
29
|
+
file = pool.add_serialized_file(serialized)
|
30
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
31
|
+
imports = [
|
32
|
+
["google.cloud.dialogflow.cx.v3.Fulfillment", "google/cloud/dialogflow/cx/v3/fulfillment.proto"],
|
33
|
+
["google.protobuf.Value", "google/protobuf/struct.proto"],
|
34
|
+
["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
|
35
|
+
]
|
36
|
+
imports.each do |type_name, expected_filename|
|
37
|
+
import_file = pool.lookup(type_name).file_descriptor
|
38
|
+
if import_file.name != expected_filename
|
39
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
88
40
|
end
|
89
41
|
end
|
42
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
43
|
+
warn "This will become an error in the next major version."
|
90
44
|
end
|
91
45
|
|
92
46
|
module Google
|
@@ -130,7 +130,7 @@ module Google
|
|
130
130
|
credentials = @config.credentials
|
131
131
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
132
132
|
# but only if the default endpoint does not have a region prefix.
|
133
|
-
enable_self_signed_jwt = @config.endpoint ==
|
133
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
134
134
|
!@config.endpoint.split(".").first.include?("-")
|
135
135
|
credentials ||= Credentials.default scope: @config.scope,
|
136
136
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -803,7 +803,9 @@ module Google
|
|
803
803
|
class Configuration
|
804
804
|
extend ::Gapic::Config
|
805
805
|
|
806
|
-
|
806
|
+
DEFAULT_ENDPOINT = "dialogflow.googleapis.com"
|
807
|
+
|
808
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
807
809
|
config_attr :credentials, nil do |value|
|
808
810
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
809
811
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -126,7 +126,7 @@ module Google
|
|
126
126
|
credentials = @config.credentials
|
127
127
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
128
128
|
# but only if the default endpoint does not have a region prefix.
|
129
|
-
enable_self_signed_jwt = @config.endpoint ==
|
129
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
130
130
|
!@config.endpoint.split(".").first.include?("-")
|
131
131
|
credentials ||= Credentials.default scope: @config.scope,
|
132
132
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -667,7 +667,9 @@ module Google
|
|
667
667
|
class Configuration
|
668
668
|
extend ::Gapic::Config
|
669
669
|
|
670
|
-
|
670
|
+
DEFAULT_ENDPOINT = "dialogflow.googleapis.com"
|
671
|
+
|
672
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
671
673
|
config_attr :credentials, nil do |value|
|
672
674
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
673
675
|
allowed.any? { |klass| klass === value }
|
@@ -60,7 +60,7 @@ module Google
|
|
60
60
|
|
61
61
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_pages_request request_pb
|
62
62
|
query_string_params = if query_string_params.any?
|
63
|
-
query_string_params.to_h { |p| p.split
|
63
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
64
64
|
else
|
65
65
|
{}
|
66
66
|
end
|
@@ -98,7 +98,7 @@ module Google
|
|
98
98
|
|
99
99
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_page_request request_pb
|
100
100
|
query_string_params = if query_string_params.any?
|
101
|
-
query_string_params.to_h { |p| p.split
|
101
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
102
102
|
else
|
103
103
|
{}
|
104
104
|
end
|
@@ -136,7 +136,7 @@ module Google
|
|
136
136
|
|
137
137
|
verb, uri, query_string_params, body = ServiceStub.transcode_create_page_request request_pb
|
138
138
|
query_string_params = if query_string_params.any?
|
139
|
-
query_string_params.to_h { |p| p.split
|
139
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
140
140
|
else
|
141
141
|
{}
|
142
142
|
end
|
@@ -174,7 +174,7 @@ module Google
|
|
174
174
|
|
175
175
|
verb, uri, query_string_params, body = ServiceStub.transcode_update_page_request request_pb
|
176
176
|
query_string_params = if query_string_params.any?
|
177
|
-
query_string_params.to_h { |p| p.split
|
177
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
178
178
|
else
|
179
179
|
{}
|
180
180
|
end
|
@@ -212,7 +212,7 @@ module Google
|
|
212
212
|
|
213
213
|
verb, uri, query_string_params, body = ServiceStub.transcode_delete_page_request request_pb
|
214
214
|
query_string_params = if query_string_params.any?
|
215
|
-
query_string_params.to_h { |p| p.split
|
215
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
216
216
|
else
|
217
217
|
{}
|
218
218
|
end
|