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
@@ -131,7 +131,7 @@ module Google
|
|
131
131
|
credentials = @config.credentials
|
132
132
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
133
133
|
# but only if the default endpoint does not have a region prefix.
|
134
|
-
enable_self_signed_jwt = @config.endpoint ==
|
134
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
135
135
|
!@config.endpoint.split(".").first.include?("-")
|
136
136
|
credentials ||= Credentials.default scope: @config.scope,
|
137
137
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -1474,7 +1474,9 @@ module Google
|
|
1474
1474
|
class Configuration
|
1475
1475
|
extend ::Gapic::Config
|
1476
1476
|
|
1477
|
-
|
1477
|
+
DEFAULT_ENDPOINT = "dialogflow.googleapis.com"
|
1478
|
+
|
1479
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
1478
1480
|
config_attr :credentials, nil do |value|
|
1479
1481
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1480
1482
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -665,7 +665,9 @@ module Google
|
|
665
665
|
class Configuration
|
666
666
|
extend ::Gapic::Config
|
667
667
|
|
668
|
-
|
668
|
+
DEFAULT_ENDPOINT = "dialogflow.googleapis.com"
|
669
|
+
|
670
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
669
671
|
config_attr :credentials, nil do |value|
|
670
672
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
671
673
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -127,7 +127,7 @@ module Google
|
|
127
127
|
credentials = @config.credentials
|
128
128
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
129
129
|
# but only if the default endpoint does not have a region prefix.
|
130
|
-
enable_self_signed_jwt = @config.endpoint ==
|
130
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
131
131
|
!@config.endpoint.split(".").first.include?("-")
|
132
132
|
credentials ||= Credentials.default scope: @config.scope,
|
133
133
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -1145,7 +1145,9 @@ module Google
|
|
1145
1145
|
class Configuration
|
1146
1146
|
extend ::Gapic::Config
|
1147
1147
|
|
1148
|
-
|
1148
|
+
DEFAULT_ENDPOINT = "dialogflow.googleapis.com"
|
1149
|
+
|
1150
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
1149
1151
|
config_attr :credentials, nil do |value|
|
1150
1152
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1151
1153
|
allowed.any? { |klass| klass === value }
|
@@ -447,7 +447,9 @@ module Google
|
|
447
447
|
class Configuration
|
448
448
|
extend ::Gapic::Config
|
449
449
|
|
450
|
-
|
450
|
+
DEFAULT_ENDPOINT = "dialogflow.googleapis.com"
|
451
|
+
|
452
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
451
453
|
config_attr :credentials, nil do |value|
|
452
454
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
453
455
|
allowed.any? { |klass| klass === value }
|
@@ -568,7 +570,7 @@ module Google
|
|
568
570
|
|
569
571
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_list_operations_request request_pb
|
570
572
|
query_string_params = if query_string_params.any?
|
571
|
-
query_string_params.to_h { |p| p.split
|
573
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
572
574
|
else
|
573
575
|
{}
|
574
576
|
end
|
@@ -606,7 +608,7 @@ module Google
|
|
606
608
|
|
607
609
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_get_operation_request request_pb
|
608
610
|
query_string_params = if query_string_params.any?
|
609
|
-
query_string_params.to_h { |p| p.split
|
611
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
610
612
|
else
|
611
613
|
{}
|
612
614
|
end
|
@@ -644,7 +646,7 @@ module Google
|
|
644
646
|
|
645
647
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_delete_operation_request request_pb
|
646
648
|
query_string_params = if query_string_params.any?
|
647
|
-
query_string_params.to_h { |p| p.split
|
649
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
648
650
|
else
|
649
651
|
{}
|
650
652
|
end
|
@@ -682,7 +684,7 @@ module Google
|
|
682
684
|
|
683
685
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_cancel_operation_request request_pb
|
684
686
|
query_string_params = if query_string_params.any?
|
685
|
-
query_string_params.to_h { |p| p.split
|
687
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
686
688
|
else
|
687
689
|
{}
|
688
690
|
end
|
@@ -60,7 +60,7 @@ module Google
|
|
60
60
|
|
61
61
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_test_cases_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_batch_delete_test_cases_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_get_test_case_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_create_test_case_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_test_case_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_run_test_case_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_batch_run_test_cases_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_calculate_coverage_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_test_cases_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_test_cases_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
|
@@ -440,7 +440,7 @@ module Google
|
|
440
440
|
|
441
441
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_test_case_results_request request_pb
|
442
442
|
query_string_params = if query_string_params.any?
|
443
|
-
query_string_params.to_h { |p| p.split
|
443
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
444
444
|
else
|
445
445
|
{}
|
446
446
|
end
|
@@ -478,7 +478,7 @@ module Google
|
|
478
478
|
|
479
479
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_test_case_result_request request_pb
|
480
480
|
query_string_params = if query_string_params.any?
|
481
|
-
query_string_params.to_h { |p| p.split
|
481
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
482
482
|
else
|
483
483
|
{}
|
484
484
|
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/transition_route_group.proto
|
3
4
|
|
@@ -11,42 +12,33 @@ require 'google/cloud/dialogflow/cx/v3/page_pb'
|
|
11
12
|
require 'google/protobuf/empty_pb'
|
12
13
|
require 'google/protobuf/field_mask_pb'
|
13
14
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
optional :transition_route_group, :message, 2, "google.cloud.dialogflow.cx.v3.TransitionRouteGroup"
|
38
|
-
optional :language_code, :string, 3
|
39
|
-
end
|
40
|
-
add_message "google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest" do
|
41
|
-
optional :transition_route_group, :message, 1, "google.cloud.dialogflow.cx.v3.TransitionRouteGroup"
|
42
|
-
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
|
43
|
-
optional :language_code, :string, 3
|
44
|
-
end
|
45
|
-
add_message "google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest" do
|
46
|
-
optional :name, :string, 1
|
47
|
-
optional :force, :bool, 2
|
15
|
+
|
16
|
+
descriptor_data = "\n:google/cloud/dialogflow/cx/v3/transition_route_group.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/page.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\xb5\x02\n\x14TransitionRouteGroup\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12I\n\x11transition_routes\x18\x05 \x03(\x0b\x32..google.cloud.dialogflow.cx.v3.TransitionRoute:\xa8\x01\xea\x41\xa4\x01\n.dialogflow.googleapis.com/TransitionRouteGroup\x12rprojects/{project}/locations/{location}/agents/{agent}/flows/{flow}/transitionRouteGroups/{transition_route_group}\"\xa8\x01\n ListTransitionRouteGroupsRequest\x12\x46\n\x06parent\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\x12.dialogflow.googleapis.com/TransitionRouteGroup\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x15\n\rlanguage_code\x18\x04 \x01(\t\"\x92\x01\n!ListTransitionRouteGroupsResponse\x12T\n\x17transition_route_groups\x18\x01 \x03(\x0b\x32\x33.google.cloud.dialogflow.cx.v3.TransitionRouteGroup\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"}\n\x1eGetTransitionRouteGroupRequest\x12\x44\n\x04name\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\n.dialogflow.googleapis.com/TransitionRouteGroup\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\"\xdc\x01\n!CreateTransitionRouteGroupRequest\x12\x46\n\x06parent\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\x12.dialogflow.googleapis.com/TransitionRouteGroup\x12X\n\x16transition_route_group\x18\x02 \x01(\x0b\x32\x33.google.cloud.dialogflow.cx.v3.TransitionRouteGroupB\x03\xe0\x41\x02\x12\x15\n\rlanguage_code\x18\x03 \x01(\t\"\xc5\x01\n!UpdateTransitionRouteGroupRequest\x12X\n\x16transition_route_group\x18\x01 \x01(\x0b\x32\x33.google.cloud.dialogflow.cx.v3.TransitionRouteGroupB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x15\n\rlanguage_code\x18\x03 \x01(\t\"x\n!DeleteTransitionRouteGroupRequest\x12\x44\n\x04name\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\n.dialogflow.googleapis.com/TransitionRouteGroup\x12\r\n\x05\x66orce\x18\x02 \x01(\x08\x32\xb0\x0b\n\x15TransitionRouteGroups\x12\xfb\x01\n\x19ListTransitionRouteGroups\x12?.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest\x1a@.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse\"[\x82\xd3\xe4\x93\x02L\x12J/v3/{parent=projects/*/locations/*/agents/*/flows/*}/transitionRouteGroups\xda\x41\x06parent\x12\xe8\x01\n\x17GetTransitionRouteGroup\x12=.google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest\x1a\x33.google.cloud.dialogflow.cx.v3.TransitionRouteGroup\"Y\x82\xd3\xe4\x93\x02L\x12J/v3/{name=projects/*/locations/*/agents/*/flows/*/transitionRouteGroups/*}\xda\x41\x04name\x12\xa0\x02\n\x1a\x43reateTransitionRouteGroup\x12@.google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest\x1a\x33.google.cloud.dialogflow.cx.v3.TransitionRouteGroup\"\x8a\x01\x82\xd3\xe4\x93\x02\x64\"J/v3/{parent=projects/*/locations/*/agents/*/flows/*}/transitionRouteGroups:\x16transition_route_group\xda\x41\x1dparent,transition_route_group\x12\xbc\x02\n\x1aUpdateTransitionRouteGroup\x12@.google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest\x1a\x33.google.cloud.dialogflow.cx.v3.TransitionRouteGroup\"\xa6\x01\x82\xd3\xe4\x93\x02{2a/v3/{transition_route_group.name=projects/*/locations/*/agents/*/flows/*/transitionRouteGroups/*}:\x16transition_route_group\xda\x41\"transition_route_group,update_mask\x12\xd1\x01\n\x1a\x44\x65leteTransitionRouteGroup\x12@.google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest\x1a\x16.google.protobuf.Empty\"Y\x82\xd3\xe4\x93\x02L*J/v3/{name=projects/*/locations/*/agents/*/flows/*/transitionRouteGroups/*}\xda\x41\x04name\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\xbf\x01\n!com.google.cloud.dialogflow.cx.v3B\x19TransitionRouteGroupProtoP\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"
|
17
|
+
|
18
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
19
|
+
|
20
|
+
begin
|
21
|
+
pool.add_serialized_file(descriptor_data)
|
22
|
+
rescue TypeError => e
|
23
|
+
# Compatibility code: will be removed in the next major version.
|
24
|
+
require 'google/protobuf/descriptor_pb'
|
25
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
26
|
+
parsed.clear_dependency
|
27
|
+
serialized = parsed.class.encode(parsed)
|
28
|
+
file = pool.add_serialized_file(serialized)
|
29
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
30
|
+
imports = [
|
31
|
+
["google.cloud.dialogflow.cx.v3.TransitionRoute", "google/cloud/dialogflow/cx/v3/page.proto"],
|
32
|
+
["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
|
33
|
+
]
|
34
|
+
imports.each do |type_name, expected_filename|
|
35
|
+
import_file = pool.lookup(type_name).file_descriptor
|
36
|
+
if import_file.name != expected_filename
|
37
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
48
38
|
end
|
49
39
|
end
|
40
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
41
|
+
warn "This will become an error in the next major version."
|
50
42
|
end
|
51
43
|
|
52
44
|
module Google
|
@@ -131,7 +131,7 @@ module Google
|
|
131
131
|
credentials = @config.credentials
|
132
132
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
133
133
|
# but only if the default endpoint does not have a region prefix.
|
134
|
-
enable_self_signed_jwt = @config.endpoint ==
|
134
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
135
135
|
!@config.endpoint.split(".").first.include?("-")
|
136
136
|
credentials ||= Credentials.default scope: @config.scope,
|
137
137
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -774,7 +774,9 @@ module Google
|
|
774
774
|
class Configuration
|
775
775
|
extend ::Gapic::Config
|
776
776
|
|
777
|
-
|
777
|
+
DEFAULT_ENDPOINT = "dialogflow.googleapis.com"
|
778
|
+
|
779
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
778
780
|
config_attr :credentials, nil do |value|
|
779
781
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
780
782
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -127,7 +127,7 @@ module Google
|
|
127
127
|
credentials = @config.credentials
|
128
128
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
129
129
|
# but only if the default endpoint does not have a region prefix.
|
130
|
-
enable_self_signed_jwt = @config.endpoint ==
|
130
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
131
131
|
!@config.endpoint.split(".").first.include?("-")
|
132
132
|
credentials ||= Credentials.default scope: @config.scope,
|
133
133
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -638,7 +638,9 @@ module Google
|
|
638
638
|
class Configuration
|
639
639
|
extend ::Gapic::Config
|
640
640
|
|
641
|
-
|
641
|
+
DEFAULT_ENDPOINT = "dialogflow.googleapis.com"
|
642
|
+
|
643
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
642
644
|
config_attr :credentials, nil do |value|
|
643
645
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
644
646
|
allowed.any? { |klass| klass === value }
|
@@ -60,7 +60,7 @@ module Google
|
|
60
60
|
|
61
61
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_transition_route_groups_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_transition_route_group_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_transition_route_group_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_transition_route_group_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_transition_route_group_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,44 +1,34 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/cloud/dialogflow/cx/v3/validation_message.proto
|
3
4
|
|
4
5
|
require 'google/protobuf'
|
5
6
|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
value :PAGE, 6
|
28
|
-
value :PAGES, 13
|
29
|
-
value :TRANSITION_ROUTE_GROUP, 7
|
30
|
-
end
|
31
|
-
add_enum "google.cloud.dialogflow.cx.v3.ValidationMessage.Severity" do
|
32
|
-
value :SEVERITY_UNSPECIFIED, 0
|
33
|
-
value :INFO, 1
|
34
|
-
value :WARNING, 2
|
35
|
-
value :ERROR, 3
|
36
|
-
end
|
37
|
-
add_message "google.cloud.dialogflow.cx.v3.ResourceName" do
|
38
|
-
optional :name, :string, 1
|
39
|
-
optional :display_name, :string, 2
|
7
|
+
|
8
|
+
descriptor_data = "\n6google/cloud/dialogflow/cx/v3/validation_message.proto\x12\x1dgoogle.cloud.dialogflow.cx.v3\"\xf8\x04\n\x11ValidationMessage\x12T\n\rresource_type\x18\x01 \x01(\x0e\x32=.google.cloud.dialogflow.cx.v3.ValidationMessage.ResourceType\x12\x15\n\tresources\x18\x02 \x03(\tB\x02\x18\x01\x12\x43\n\x0eresource_names\x18\x06 \x03(\x0b\x32+.google.cloud.dialogflow.cx.v3.ResourceName\x12K\n\x08severity\x18\x03 \x01(\x0e\x32\x39.google.cloud.dialogflow.cx.v3.ValidationMessage.Severity\x12\x0e\n\x06\x64\x65tail\x18\x04 \x01(\t\"\x8b\x02\n\x0cResourceType\x12\x1d\n\x19RESOURCE_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05\x41GENT\x10\x01\x12\n\n\x06INTENT\x10\x02\x12\x1a\n\x16INTENT_TRAINING_PHRASE\x10\x08\x12\x14\n\x10INTENT_PARAMETER\x10\t\x12\x0b\n\x07INTENTS\x10\n\x12\x1b\n\x17INTENT_TRAINING_PHRASES\x10\x0b\x12\x0f\n\x0b\x45NTITY_TYPE\x10\x03\x12\x10\n\x0c\x45NTITY_TYPES\x10\x0c\x12\x0b\n\x07WEBHOOK\x10\x04\x12\x08\n\x04\x46LOW\x10\x05\x12\x08\n\x04PAGE\x10\x06\x12\t\n\x05PAGES\x10\r\x12\x1a\n\x16TRANSITION_ROUTE_GROUP\x10\x07\"F\n\x08Severity\x12\x18\n\x14SEVERITY_UNSPECIFIED\x10\x00\x12\x08\n\x04INFO\x10\x01\x12\x0b\n\x07WARNING\x10\x02\x12\t\n\x05\x45RROR\x10\x03\"2\n\x0cResourceName\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\tB\xbc\x01\n!com.google.cloud.dialogflow.cx.v3B\x16ValidationMessageProtoP\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"
|
9
|
+
|
10
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
11
|
+
|
12
|
+
begin
|
13
|
+
pool.add_serialized_file(descriptor_data)
|
14
|
+
rescue TypeError => e
|
15
|
+
# Compatibility code: will be removed in the next major version.
|
16
|
+
require 'google/protobuf/descriptor_pb'
|
17
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
18
|
+
parsed.clear_dependency
|
19
|
+
serialized = parsed.class.encode(parsed)
|
20
|
+
file = pool.add_serialized_file(serialized)
|
21
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
22
|
+
imports = [
|
23
|
+
]
|
24
|
+
imports.each do |type_name, expected_filename|
|
25
|
+
import_file = pool.lookup(type_name).file_descriptor
|
26
|
+
if import_file.name != expected_filename
|
27
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
40
28
|
end
|
41
29
|
end
|
30
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
31
|
+
warn "This will become an error in the next major version."
|
42
32
|
end
|
43
33
|
|
44
34
|
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/version.proto
|
3
4
|
|
@@ -14,63 +15,34 @@ require 'google/protobuf/field_mask_pb'
|
|
14
15
|
require 'google/protobuf/struct_pb'
|
15
16
|
require 'google/protobuf/timestamp_pb'
|
16
17
|
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
add_message "google.cloud.dialogflow.cx.v3.ListVersionsResponse" do
|
42
|
-
repeated :versions, :message, 1, "google.cloud.dialogflow.cx.v3.Version"
|
43
|
-
optional :next_page_token, :string, 2
|
44
|
-
end
|
45
|
-
add_message "google.cloud.dialogflow.cx.v3.GetVersionRequest" do
|
46
|
-
optional :name, :string, 1
|
47
|
-
end
|
48
|
-
add_message "google.cloud.dialogflow.cx.v3.CreateVersionRequest" do
|
49
|
-
optional :parent, :string, 1
|
50
|
-
optional :version, :message, 2, "google.cloud.dialogflow.cx.v3.Version"
|
51
|
-
end
|
52
|
-
add_message "google.cloud.dialogflow.cx.v3.UpdateVersionRequest" do
|
53
|
-
optional :version, :message, 1, "google.cloud.dialogflow.cx.v3.Version"
|
54
|
-
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
|
55
|
-
end
|
56
|
-
add_message "google.cloud.dialogflow.cx.v3.DeleteVersionRequest" do
|
57
|
-
optional :name, :string, 1
|
58
|
-
end
|
59
|
-
add_message "google.cloud.dialogflow.cx.v3.LoadVersionRequest" do
|
60
|
-
optional :name, :string, 1
|
61
|
-
optional :allow_override_agent_resources, :bool, 2
|
62
|
-
end
|
63
|
-
add_message "google.cloud.dialogflow.cx.v3.CompareVersionsRequest" do
|
64
|
-
optional :base_version, :string, 1
|
65
|
-
optional :target_version, :string, 2
|
66
|
-
optional :language_code, :string, 3
|
67
|
-
end
|
68
|
-
add_message "google.cloud.dialogflow.cx.v3.CompareVersionsResponse" do
|
69
|
-
optional :base_version_content_json, :string, 1
|
70
|
-
optional :target_version_content_json, :string, 2
|
71
|
-
optional :compare_time, :message, 3, "google.protobuf.Timestamp"
|
18
|
+
|
19
|
+
descriptor_data = "\n+google/cloud/dialogflow/cx/v3/version.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/flow.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"Y\n\x1e\x43reateVersionOperationMetadata\x12\x37\n\x07version\x18\x01 \x01(\tB&\xfa\x41#\n!dialogflow.googleapis.com/Version\"\xce\x03\n\x07Version\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x45\n\x0cnlu_settings\x18\x04 \x01(\x0b\x32*.google.cloud.dialogflow.cx.v3.NluSettingsB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12@\n\x05state\x18\x06 \x01(\x0e\x32,.google.cloud.dialogflow.cx.v3.Version.StateB\x03\xe0\x41\x03\"F\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07RUNNING\x10\x01\x12\r\n\tSUCCEEDED\x10\x02\x12\n\n\x06\x46\x41ILED\x10\x03:~\xea\x41{\n!dialogflow.googleapis.com/Version\x12Vprojects/{project}/locations/{location}/agents/{agent}/flows/{flow}/versions/{version}\"w\n\x13ListVersionsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\x12!dialogflow.googleapis.com/Version\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"i\n\x14ListVersionsResponse\x12\x38\n\x08versions\x18\x01 \x03(\x0b\x32&.google.cloud.dialogflow.cx.v3.Version\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"L\n\x11GetVersionRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dialogflow.googleapis.com/Version\"\x8f\x01\n\x14\x43reateVersionRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\x12!dialogflow.googleapis.com/Version\x12<\n\x07version\x18\x02 \x01(\x0b\x32&.google.cloud.dialogflow.cx.v3.VersionB\x03\xe0\x41\x02\"\x8a\x01\n\x14UpdateVersionRequest\x12<\n\x07version\x18\x01 \x01(\x0b\x32&.google.cloud.dialogflow.cx.v3.VersionB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"O\n\x14\x44\x65leteVersionRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dialogflow.googleapis.com/Version\"u\n\x12LoadVersionRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dialogflow.googleapis.com/Version\x12&\n\x1e\x61llow_override_agent_resources\x18\x02 \x01(\x08\"\xb3\x01\n\x16\x43ompareVersionsRequest\x12?\n\x0c\x62\x61se_version\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dialogflow.googleapis.com/Version\x12\x41\n\x0etarget_version\x18\x02 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!dialogflow.googleapis.com/Version\x12\x15\n\rlanguage_code\x18\x03 \x01(\t\"\x93\x01\n\x17\x43ompareVersionsResponse\x12!\n\x19\x62\x61se_version_content_json\x18\x01 \x01(\t\x12#\n\x1btarget_version_content_json\x18\x02 \x01(\t\x12\x30\n\x0c\x63ompare_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp2\xe2\x0c\n\x08Versions\x12\xc7\x01\n\x0cListVersions\x12\x32.google.cloud.dialogflow.cx.v3.ListVersionsRequest\x1a\x33.google.cloud.dialogflow.cx.v3.ListVersionsResponse\"N\x82\xd3\xe4\x93\x02?\x12=/v3/{parent=projects/*/locations/*/agents/*/flows/*}/versions\xda\x41\x06parent\x12\xb4\x01\n\nGetVersion\x12\x30.google.cloud.dialogflow.cx.v3.GetVersionRequest\x1a&.google.cloud.dialogflow.cx.v3.Version\"L\x82\xd3\xe4\x93\x02?\x12=/v3/{name=projects/*/locations/*/agents/*/flows/*/versions/*}\xda\x41\x04name\x12\xf1\x01\n\rCreateVersion\x12\x33.google.cloud.dialogflow.cx.v3.CreateVersionRequest\x1a\x1d.google.longrunning.Operation\"\x8b\x01\x82\xd3\xe4\x93\x02H\"=/v3/{parent=projects/*/locations/*/agents/*/flows/*}/versions:\x07version\xda\x41\x0eparent,version\xca\x41)\n\x07Version\x12\x1e\x43reateVersionOperationMetadata\x12\xda\x01\n\rUpdateVersion\x12\x33.google.cloud.dialogflow.cx.v3.UpdateVersionRequest\x1a&.google.cloud.dialogflow.cx.v3.Version\"l\x82\xd3\xe4\x93\x02P2E/v3/{version.name=projects/*/locations/*/agents/*/flows/*/versions/*}:\x07version\xda\x41\x13version,update_mask\x12\xaa\x01\n\rDeleteVersion\x12\x33.google.cloud.dialogflow.cx.v3.DeleteVersionRequest\x1a\x16.google.protobuf.Empty\"L\x82\xd3\xe4\x93\x02?*=/v3/{name=projects/*/locations/*/agents/*/flows/*/versions/*}\xda\x41\x04name\x12\xe8\x01\n\x0bLoadVersion\x12\x31.google.cloud.dialogflow.cx.v3.LoadVersionRequest\x1a\x1d.google.longrunning.Operation\"\x86\x01\x82\xd3\xe4\x93\x02G\"B/v3/{name=projects/*/locations/*/agents/*/flows/*/versions/*}:load:\x01*\xda\x41\x04name\xca\x41/\n\x15google.protobuf.Empty\x12\x16google.protobuf.Struct\x12\xf1\x01\n\x0f\x43ompareVersions\x12\x35.google.cloud.dialogflow.cx.v3.CompareVersionsRequest\x1a\x36.google.cloud.dialogflow.cx.v3.CompareVersionsResponse\"o\x82\xd3\xe4\x93\x02Z\"U/v3/{base_version=projects/*/locations/*/agents/*/flows/*/versions/*}:compareVersions:\x01*\xda\x41\x0c\x62\x61se_version\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\xb2\x01\n!com.google.cloud.dialogflow.cx.v3B\x0cVersionProtoP\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"
|
20
|
+
|
21
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
22
|
+
|
23
|
+
begin
|
24
|
+
pool.add_serialized_file(descriptor_data)
|
25
|
+
rescue TypeError => e
|
26
|
+
# Compatibility code: will be removed in the next major version.
|
27
|
+
require 'google/protobuf/descriptor_pb'
|
28
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
29
|
+
parsed.clear_dependency
|
30
|
+
serialized = parsed.class.encode(parsed)
|
31
|
+
file = pool.add_serialized_file(serialized)
|
32
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
33
|
+
imports = [
|
34
|
+
["google.cloud.dialogflow.cx.v3.NluSettings", "google/cloud/dialogflow/cx/v3/flow.proto"],
|
35
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
36
|
+
["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
|
37
|
+
]
|
38
|
+
imports.each do |type_name, expected_filename|
|
39
|
+
import_file = pool.lookup(type_name).file_descriptor
|
40
|
+
if import_file.name != expected_filename
|
41
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
72
42
|
end
|
73
43
|
end
|
44
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
45
|
+
warn "This will become an error in the next major version."
|
74
46
|
end
|
75
47
|
|
76
48
|
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
|
@@ -937,7 +937,9 @@ module Google
|
|
937
937
|
class Configuration
|
938
938
|
extend ::Gapic::Config
|
939
939
|
|
940
|
-
|
940
|
+
DEFAULT_ENDPOINT = "dialogflow.googleapis.com"
|
941
|
+
|
942
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
941
943
|
config_attr :credentials, nil do |value|
|
942
944
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
943
945
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -665,7 +665,9 @@ module Google
|
|
665
665
|
class Configuration
|
666
666
|
extend ::Gapic::Config
|
667
667
|
|
668
|
-
|
668
|
+
DEFAULT_ENDPOINT = "dialogflow.googleapis.com"
|
669
|
+
|
670
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
669
671
|
config_attr :credentials, nil do |value|
|
670
672
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
671
673
|
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
|
@@ -741,7 +741,9 @@ module Google
|
|
741
741
|
class Configuration
|
742
742
|
extend ::Gapic::Config
|
743
743
|
|
744
|
-
|
744
|
+
DEFAULT_ENDPOINT = "dialogflow.googleapis.com"
|
745
|
+
|
746
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
745
747
|
config_attr :credentials, nil do |value|
|
746
748
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
747
749
|
allowed.any? { |klass| klass === value }
|