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.
Files changed (91) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/dialogflow/cx/v3/advanced_settings_pb.rb +25 -9
  3. data/lib/google/cloud/dialogflow/cx/v3/agent_pb.rb +28 -86
  4. data/lib/google/cloud/dialogflow/cx/v3/agents/client.rb +7 -3
  5. data/lib/google/cloud/dialogflow/cx/v3/agents/operations.rb +3 -1
  6. data/lib/google/cloud/dialogflow/cx/v3/agents/rest/client.rb +7 -3
  7. data/lib/google/cloud/dialogflow/cx/v3/agents/rest/operations.rb +7 -5
  8. data/lib/google/cloud/dialogflow/cx/v3/agents/rest/service_stub.rb +9 -9
  9. data/lib/google/cloud/dialogflow/cx/v3/audio_config_pb.rb +25 -65
  10. data/lib/google/cloud/dialogflow/cx/v3/changelog_pb.rb +25 -23
  11. data/lib/google/cloud/dialogflow/cx/v3/changelogs/client.rb +4 -2
  12. data/lib/google/cloud/dialogflow/cx/v3/changelogs/rest/client.rb +4 -2
  13. data/lib/google/cloud/dialogflow/cx/v3/changelogs/rest/service_stub.rb +2 -2
  14. data/lib/google/cloud/dialogflow/cx/v3/deployment_pb.rb +25 -31
  15. data/lib/google/cloud/dialogflow/cx/v3/deployments/client.rb +4 -2
  16. data/lib/google/cloud/dialogflow/cx/v3/deployments/rest/client.rb +4 -2
  17. data/lib/google/cloud/dialogflow/cx/v3/deployments/rest/service_stub.rb +2 -2
  18. data/lib/google/cloud/dialogflow/cx/v3/entity_type_pb.rb +25 -56
  19. data/lib/google/cloud/dialogflow/cx/v3/entity_types/client.rb +4 -2
  20. data/lib/google/cloud/dialogflow/cx/v3/entity_types/rest/client.rb +4 -2
  21. data/lib/google/cloud/dialogflow/cx/v3/entity_types/rest/service_stub.rb +5 -5
  22. data/lib/google/cloud/dialogflow/cx/v3/environment_pb.rb +28 -93
  23. data/lib/google/cloud/dialogflow/cx/v3/environments/client.rb +4 -2
  24. data/lib/google/cloud/dialogflow/cx/v3/environments/operations.rb +3 -1
  25. data/lib/google/cloud/dialogflow/cx/v3/environments/rest/client.rb +4 -2
  26. data/lib/google/cloud/dialogflow/cx/v3/environments/rest/operations.rb +7 -5
  27. data/lib/google/cloud/dialogflow/cx/v3/environments/rest/service_stub.rb +9 -9
  28. data/lib/google/cloud/dialogflow/cx/v3/experiment_pb.rb +27 -127
  29. data/lib/google/cloud/dialogflow/cx/v3/experiments/client.rb +4 -2
  30. data/lib/google/cloud/dialogflow/cx/v3/experiments/rest/client.rb +4 -2
  31. data/lib/google/cloud/dialogflow/cx/v3/experiments/rest/service_stub.rb +7 -7
  32. data/lib/google/cloud/dialogflow/cx/v3/flow_pb.rb +28 -96
  33. data/lib/google/cloud/dialogflow/cx/v3/flows/client.rb +4 -2
  34. data/lib/google/cloud/dialogflow/cx/v3/flows/operations.rb +3 -1
  35. data/lib/google/cloud/dialogflow/cx/v3/flows/rest/client.rb +4 -2
  36. data/lib/google/cloud/dialogflow/cx/v3/flows/rest/operations.rb +7 -5
  37. data/lib/google/cloud/dialogflow/cx/v3/flows/rest/service_stub.rb +10 -10
  38. data/lib/google/cloud/dialogflow/cx/v3/fulfillment_pb.rb +26 -26
  39. data/lib/google/cloud/dialogflow/cx/v3/gcs_pb.rb +24 -4
  40. data/lib/google/cloud/dialogflow/cx/v3/intent_pb.rb +25 -59
  41. data/lib/google/cloud/dialogflow/cx/v3/intents/client.rb +4 -2
  42. data/lib/google/cloud/dialogflow/cx/v3/intents/rest/client.rb +4 -2
  43. data/lib/google/cloud/dialogflow/cx/v3/intents/rest/service_stub.rb +5 -5
  44. data/lib/google/cloud/dialogflow/cx/v3/page_pb.rb +27 -73
  45. data/lib/google/cloud/dialogflow/cx/v3/pages/client.rb +4 -2
  46. data/lib/google/cloud/dialogflow/cx/v3/pages/rest/client.rb +4 -2
  47. data/lib/google/cloud/dialogflow/cx/v3/pages/rest/service_stub.rb +5 -5
  48. data/lib/google/cloud/dialogflow/cx/v3/response_message_pb.rb +25 -53
  49. data/lib/google/cloud/dialogflow/cx/v3/security_settings_pb.rb +25 -65
  50. data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/client.rb +4 -2
  51. data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/rest/client.rb +4 -2
  52. data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/rest/service_stub.rb +5 -5
  53. data/lib/google/cloud/dialogflow/cx/v3/session_entity_type_pb.rb +26 -34
  54. data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/client.rb +4 -2
  55. data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/rest/client.rb +4 -2
  56. data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/rest/service_stub.rb +5 -5
  57. data/lib/google/cloud/dialogflow/cx/v3/session_pb.rb +33 -177
  58. data/lib/google/cloud/dialogflow/cx/v3/sessions/client.rb +4 -2
  59. data/lib/google/cloud/dialogflow/cx/v3/sessions/rest/client.rb +4 -2
  60. data/lib/google/cloud/dialogflow/cx/v3/sessions/rest/service_stub.rb +3 -3
  61. data/lib/google/cloud/dialogflow/cx/v3/test_case_pb.rb +34 -224
  62. data/lib/google/cloud/dialogflow/cx/v3/test_cases/client.rb +4 -2
  63. data/lib/google/cloud/dialogflow/cx/v3/test_cases/operations.rb +3 -1
  64. data/lib/google/cloud/dialogflow/cx/v3/test_cases/rest/client.rb +4 -2
  65. data/lib/google/cloud/dialogflow/cx/v3/test_cases/rest/operations.rb +7 -5
  66. data/lib/google/cloud/dialogflow/cx/v3/test_cases/rest/service_stub.rb +12 -12
  67. data/lib/google/cloud/dialogflow/cx/v3/transition_route_group_pb.rb +26 -34
  68. data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/client.rb +4 -2
  69. data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/rest/client.rb +4 -2
  70. data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/rest/service_stub.rb +5 -5
  71. data/lib/google/cloud/dialogflow/cx/v3/validation_message_pb.rb +24 -34
  72. data/lib/google/cloud/dialogflow/cx/v3/version.rb +1 -1
  73. data/lib/google/cloud/dialogflow/cx/v3/version_pb.rb +27 -55
  74. data/lib/google/cloud/dialogflow/cx/v3/versions/client.rb +4 -2
  75. data/lib/google/cloud/dialogflow/cx/v3/versions/operations.rb +3 -1
  76. data/lib/google/cloud/dialogflow/cx/v3/versions/rest/client.rb +4 -2
  77. data/lib/google/cloud/dialogflow/cx/v3/versions/rest/operations.rb +7 -5
  78. data/lib/google/cloud/dialogflow/cx/v3/versions/rest/service_stub.rb +7 -7
  79. data/lib/google/cloud/dialogflow/cx/v3/webhook_pb.rb +30 -125
  80. data/lib/google/cloud/dialogflow/cx/v3/webhooks/client.rb +4 -2
  81. data/lib/google/cloud/dialogflow/cx/v3/webhooks/rest/client.rb +4 -2
  82. data/lib/google/cloud/dialogflow/cx/v3/webhooks/rest/service_stub.rb +5 -5
  83. data/proto_docs/google/cloud/dialogflow/cx/v3/agent.rb +3 -0
  84. data/proto_docs/google/cloud/dialogflow/cx/v3/audio_config.rb +12 -5
  85. data/proto_docs/google/cloud/dialogflow/cx/v3/session.rb +6 -0
  86. data/proto_docs/google/cloud/dialogflow/cx/v3/test_case.rb +2 -1
  87. data/proto_docs/google/cloud/dialogflow/cx/v3/webhook.rb +65 -0
  88. data/proto_docs/google/protobuf/any.rb +7 -4
  89. data/proto_docs/google/protobuf/struct.rb +1 -1
  90. data/proto_docs/google/protobuf/timestamp.rb +1 -3
  91. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5eb011c9d6fcc019cf4e76acdcb936e0edb2c2609e8a2f149deeee6fe67c2869
4
- data.tar.gz: 130abfc5557f7cefa783919cb1dd9b283261c3bcc60b28423e170786743894d7
3
+ metadata.gz: 9b08e43685ab04dbbbadb097ca57eea97212e6349ece43eb2b390b863de60f22
4
+ data.tar.gz: 441475621fe11e018e2d4bfd335342ebbfca80df4b481cf6f4c93f28eb98725f
5
5
  SHA512:
6
- metadata.gz: c06488fa809f12d64bd5c75d5e7a036df125edb36e5c8ff9debfe1f08048a52f8aa5b33c6d641d6430d1cb3e8721af26fa3243a04e92605ab8e281e3fa9b6444
7
- data.tar.gz: 2fdf24c6c1b2e273c9c232ba62fbadd7cee1ab8fd57f8e60a1cb17d2e445e58d8cb3eff123870a388ae68a837f3f7461a7613e54b824780f4c7c7d3aab1e240f
6
+ metadata.gz: 1d227d2f2c919ad601e61a2e7395bdf167875b2595e2e3bb39dc5fda9f9e573b59d2bcd4b7efb060099b431d1e6846906b5cffb376179983a9b7e8e8cddfc225
7
+ data.tar.gz: 43f2329de329eae5c3d4a488bd3c22006cd4a21b73deb2603dda3401e5c16b7a236fce0b388e6bf7402773c44068ef81909a8073d449665a8953e56aba867c38
@@ -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/advanced_settings.proto
3
4
 
@@ -6,17 +7,32 @@ require 'google/protobuf'
6
7
  require 'google/api/field_behavior_pb'
7
8
  require 'google/cloud/dialogflow/cx/v3/gcs_pb'
8
9
 
9
- Google::Protobuf::DescriptorPool.generated_pool.build do
10
- add_file("google/cloud/dialogflow/cx/v3/advanced_settings.proto", :syntax => :proto3) do
11
- add_message "google.cloud.dialogflow.cx.v3.AdvancedSettings" do
12
- optional :audio_export_gcs_destination, :message, 2, "google.cloud.dialogflow.cx.v3.GcsDestination"
13
- optional :logging_settings, :message, 6, "google.cloud.dialogflow.cx.v3.AdvancedSettings.LoggingSettings"
14
- end
15
- add_message "google.cloud.dialogflow.cx.v3.AdvancedSettings.LoggingSettings" do
16
- optional :enable_stackdriver_logging, :bool, 2
17
- optional :enable_interaction_logging, :bool, 3
10
+
11
+ descriptor_data = "\n5google/cloud/dialogflow/cx/v3/advanced_settings.proto\x12\x1dgoogle.cloud.dialogflow.cx.v3\x1a\x1fgoogle/api/field_behavior.proto\x1a\'google/cloud/dialogflow/cx/v3/gcs.proto\"\x9d\x02\n\x10\x41\x64vancedSettings\x12S\n\x1c\x61udio_export_gcs_destination\x18\x02 \x01(\x0b\x32-.google.cloud.dialogflow.cx.v3.GcsDestination\x12Y\n\x10logging_settings\x18\x06 \x01(\x0b\x32?.google.cloud.dialogflow.cx.v3.AdvancedSettings.LoggingSettings\x1aY\n\x0fLoggingSettings\x12\"\n\x1a\x65nable_stackdriver_logging\x18\x02 \x01(\x08\x12\"\n\x1a\x65nable_interaction_logging\x18\x03 \x01(\x08\x42\xbb\x01\n!com.google.cloud.dialogflow.cx.v3B\x15\x41\x64vancedSettingsProtoP\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"
12
+
13
+ pool = Google::Protobuf::DescriptorPool.generated_pool
14
+
15
+ begin
16
+ pool.add_serialized_file(descriptor_data)
17
+ rescue TypeError => e
18
+ # Compatibility code: will be removed in the next major version.
19
+ require 'google/protobuf/descriptor_pb'
20
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
21
+ parsed.clear_dependency
22
+ serialized = parsed.class.encode(parsed)
23
+ file = pool.add_serialized_file(serialized)
24
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
25
+ imports = [
26
+ ["google.cloud.dialogflow.cx.v3.GcsDestination", "google/cloud/dialogflow/cx/v3/gcs.proto"],
27
+ ]
28
+ imports.each do |type_name, expected_filename|
29
+ import_file = pool.lookup(type_name).file_descriptor
30
+ if import_file.name != expected_filename
31
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
18
32
  end
19
33
  end
34
+ warn "Each proto file must use a consistent fully-qualified name."
35
+ warn "This will become an error in the next major version."
20
36
  end
21
37
 
22
38
  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/agent.proto
3
4
 
@@ -15,94 +16,35 @@ require 'google/protobuf/empty_pb'
15
16
  require 'google/protobuf/field_mask_pb'
16
17
  require 'google/protobuf/struct_pb'
17
18
 
18
- Google::Protobuf::DescriptorPool.generated_pool.build do
19
- add_file("google/cloud/dialogflow/cx/v3/agent.proto", :syntax => :proto3) do
20
- add_message "google.cloud.dialogflow.cx.v3.SpeechToTextSettings" do
21
- optional :enable_speech_adaptation, :bool, 1
22
- end
23
- add_message "google.cloud.dialogflow.cx.v3.Agent" do
24
- optional :name, :string, 1
25
- optional :display_name, :string, 2
26
- optional :default_language_code, :string, 3
27
- repeated :supported_language_codes, :string, 4
28
- optional :time_zone, :string, 5
29
- optional :description, :string, 6
30
- optional :avatar_uri, :string, 7
31
- optional :speech_to_text_settings, :message, 13, "google.cloud.dialogflow.cx.v3.SpeechToTextSettings"
32
- optional :start_flow, :string, 16
33
- optional :security_settings, :string, 17
34
- optional :enable_stackdriver_logging, :bool, 18
35
- optional :enable_spell_correction, :bool, 20
36
- optional :locked, :bool, 27
37
- optional :advanced_settings, :message, 22, "google.cloud.dialogflow.cx.v3.AdvancedSettings"
38
- optional :text_to_speech_settings, :message, 31, "google.cloud.dialogflow.cx.v3.TextToSpeechSettings"
39
- end
40
- add_message "google.cloud.dialogflow.cx.v3.ListAgentsRequest" do
41
- optional :parent, :string, 1
42
- optional :page_size, :int32, 2
43
- optional :page_token, :string, 3
44
- end
45
- add_message "google.cloud.dialogflow.cx.v3.ListAgentsResponse" do
46
- repeated :agents, :message, 1, "google.cloud.dialogflow.cx.v3.Agent"
47
- optional :next_page_token, :string, 2
48
- end
49
- add_message "google.cloud.dialogflow.cx.v3.GetAgentRequest" do
50
- optional :name, :string, 1
51
- end
52
- add_message "google.cloud.dialogflow.cx.v3.CreateAgentRequest" do
53
- optional :parent, :string, 1
54
- optional :agent, :message, 2, "google.cloud.dialogflow.cx.v3.Agent"
55
- end
56
- add_message "google.cloud.dialogflow.cx.v3.UpdateAgentRequest" do
57
- optional :agent, :message, 1, "google.cloud.dialogflow.cx.v3.Agent"
58
- optional :update_mask, :message, 2, "google.protobuf.FieldMask"
59
- end
60
- add_message "google.cloud.dialogflow.cx.v3.DeleteAgentRequest" do
61
- optional :name, :string, 1
62
- end
63
- add_message "google.cloud.dialogflow.cx.v3.ExportAgentRequest" do
64
- optional :name, :string, 1
65
- optional :agent_uri, :string, 2
66
- optional :data_format, :enum, 3, "google.cloud.dialogflow.cx.v3.ExportAgentRequest.DataFormat"
67
- optional :environment, :string, 5
68
- end
69
- add_enum "google.cloud.dialogflow.cx.v3.ExportAgentRequest.DataFormat" do
70
- value :DATA_FORMAT_UNSPECIFIED, 0
71
- value :BLOB, 1
72
- value :JSON_PACKAGE, 4
73
- end
74
- add_message "google.cloud.dialogflow.cx.v3.ExportAgentResponse" do
75
- oneof :agent do
76
- optional :agent_uri, :string, 1
77
- optional :agent_content, :bytes, 2
78
- end
79
- end
80
- add_message "google.cloud.dialogflow.cx.v3.RestoreAgentRequest" do
81
- optional :name, :string, 1
82
- optional :restore_option, :enum, 5, "google.cloud.dialogflow.cx.v3.RestoreAgentRequest.RestoreOption"
83
- oneof :agent do
84
- optional :agent_uri, :string, 2
85
- optional :agent_content, :bytes, 3
86
- end
87
- end
88
- add_enum "google.cloud.dialogflow.cx.v3.RestoreAgentRequest.RestoreOption" do
89
- value :RESTORE_OPTION_UNSPECIFIED, 0
90
- value :KEEP, 1
91
- value :FALLBACK, 2
92
- end
93
- add_message "google.cloud.dialogflow.cx.v3.ValidateAgentRequest" do
94
- optional :name, :string, 1
95
- optional :language_code, :string, 2
96
- end
97
- add_message "google.cloud.dialogflow.cx.v3.GetAgentValidationResultRequest" do
98
- optional :name, :string, 1
99
- optional :language_code, :string, 2
100
- end
101
- add_message "google.cloud.dialogflow.cx.v3.AgentValidationResult" do
102
- optional :name, :string, 1
103
- repeated :flow_validation_results, :message, 2, "google.cloud.dialogflow.cx.v3.FlowValidationResult"
19
+
20
+ descriptor_data = "\n)google/cloud/dialogflow/cx/v3/agent.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\x35google/cloud/dialogflow/cx/v3/advanced_settings.proto\x1a\x30google/cloud/dialogflow/cx/v3/audio_config.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\"8\n\x14SpeechToTextSettings\x12 \n\x18\x65nable_speech_adaptation\x18\x01 \x01(\x08\"\xf1\x05\n\x05\x41gent\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12%\n\x15\x64\x65\x66\x61ult_language_code\x18\x03 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x05\x12 \n\x18supported_language_codes\x18\x04 \x03(\t\x12\x16\n\ttime_zone\x18\x05 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0b\x64\x65scription\x18\x06 \x01(\t\x12\x12\n\navatar_uri\x18\x07 \x01(\t\x12T\n\x17speech_to_text_settings\x18\r \x01(\x0b\x32\x33.google.cloud.dialogflow.cx.v3.SpeechToTextSettings\x12:\n\nstart_flow\x18\x10 \x01(\tB&\xe0\x41\x05\xfa\x41 \n\x1e\x64ialogflow.googleapis.com/Flow\x12J\n\x11security_settings\x18\x11 \x01(\tB/\xfa\x41,\n*dialogflow.googleapis.com/SecuritySettings\x12&\n\x1a\x65nable_stackdriver_logging\x18\x12 \x01(\x08\x42\x02\x18\x01\x12\x1f\n\x17\x65nable_spell_correction\x18\x14 \x01(\x08\x12\x0e\n\x06locked\x18\x1b \x01(\x08\x12J\n\x11\x61\x64vanced_settings\x18\x16 \x01(\x0b\x32/.google.cloud.dialogflow.cx.v3.AdvancedSettings\x12T\n\x17text_to_speech_settings\x18\x1f \x01(\x0b\x32\x33.google.cloud.dialogflow.cx.v3.TextToSpeechSettings:\\\xea\x41Y\n\x1f\x64ialogflow.googleapis.com/Agent\x12\x36projects/{project}/locations/{location}/agents/{agent}\"s\n\x11ListAgentsRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1f\x64ialogflow.googleapis.com/Agent\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"c\n\x12ListAgentsResponse\x12\x34\n\x06\x61gents\x18\x01 \x03(\x0b\x32$.google.cloud.dialogflow.cx.v3.Agent\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"H\n\x0fGetAgentRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x64ialogflow.googleapis.com/Agent\"\x87\x01\n\x12\x43reateAgentRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1f\x64ialogflow.googleapis.com/Agent\x12\x38\n\x05\x61gent\x18\x02 \x01(\x0b\x32$.google.cloud.dialogflow.cx.v3.AgentB\x03\xe0\x41\x02\"\x7f\n\x12UpdateAgentRequest\x12\x38\n\x05\x61gent\x18\x01 \x01(\x0b\x32$.google.cloud.dialogflow.cx.v3.AgentB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"K\n\x12\x44\x65leteAgentRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x64ialogflow.googleapis.com/Agent\"\xf5\x02\n\x12\x45xportAgentRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x64ialogflow.googleapis.com/Agent\x12\x16\n\tagent_uri\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12V\n\x0b\x64\x61ta_format\x18\x03 \x01(\x0e\x32<.google.cloud.dialogflow.cx.v3.ExportAgentRequest.DataFormatB\x03\xe0\x41\x01\x12\x42\n\x0b\x65nvironment\x18\x05 \x01(\tB-\xe0\x41\x01\xfa\x41\'\n%dialogflow.googleapis.com/Environment\x12-\n include_bigquery_export_settings\x18\x07 \x01(\x08\x42\x03\xe0\x41\x01\"E\n\nDataFormat\x12\x1b\n\x17\x44\x41TA_FORMAT_UNSPECIFIED\x10\x00\x12\x08\n\x04\x42LOB\x10\x01\x12\x10\n\x0cJSON_PACKAGE\x10\x04\"L\n\x13\x45xportAgentResponse\x12\x13\n\tagent_uri\x18\x01 \x01(\tH\x00\x12\x17\n\ragent_content\x18\x02 \x01(\x0cH\x00\x42\x07\n\x05\x61gent\"\xa6\x02\n\x13RestoreAgentRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x64ialogflow.googleapis.com/Agent\x12\x13\n\tagent_uri\x18\x02 \x01(\tH\x00\x12\x17\n\ragent_content\x18\x03 \x01(\x0cH\x00\x12X\n\x0erestore_option\x18\x05 \x01(\x0e\x32@.google.cloud.dialogflow.cx.v3.RestoreAgentRequest.RestoreOption\"G\n\rRestoreOption\x12\x1e\n\x1aRESTORE_OPTION_UNSPECIFIED\x10\x00\x12\x08\n\x04KEEP\x10\x01\x12\x0c\n\x08\x46\x41LLBACK\x10\x02\x42\x07\n\x05\x61gent\"d\n\x14ValidateAgentRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x64ialogflow.googleapis.com/Agent\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\"\x7f\n\x1fGetAgentValidationResultRequest\x12\x45\n\x04name\x18\x01 \x01(\tB7\xe0\x41\x02\xfa\x41\x31\n/dialogflow.googleapis.com/AgentValidationResult\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\"\xfa\x01\n\x15\x41gentValidationResult\x12\x0c\n\x04name\x18\x01 \x01(\t\x12T\n\x17\x66low_validation_results\x18\x02 \x03(\x0b\x32\x33.google.cloud.dialogflow.cx.v3.FlowValidationResult:}\xea\x41z\n/dialogflow.googleapis.com/AgentValidationResult\x12Gprojects/{project}/locations/{location}/agents/{agent}/validationResult2\x99\x0e\n\x06\x41gents\x12\xae\x01\n\nListAgents\x12\x30.google.cloud.dialogflow.cx.v3.ListAgentsRequest\x1a\x31.google.cloud.dialogflow.cx.v3.ListAgentsResponse\";\x82\xd3\xe4\x93\x02,\x12*/v3/{parent=projects/*/locations/*}/agents\xda\x41\x06parent\x12\x9b\x01\n\x08GetAgent\x12..google.cloud.dialogflow.cx.v3.GetAgentRequest\x1a$.google.cloud.dialogflow.cx.v3.Agent\"9\x82\xd3\xe4\x93\x02,\x12*/v3/{name=projects/*/locations/*/agents/*}\xda\x41\x04name\x12\xb0\x01\n\x0b\x43reateAgent\x12\x31.google.cloud.dialogflow.cx.v3.CreateAgentRequest\x1a$.google.cloud.dialogflow.cx.v3.Agent\"H\x82\xd3\xe4\x93\x02\x33\"*/v3/{parent=projects/*/locations/*}/agents:\x05\x61gent\xda\x41\x0cparent,agent\x12\xbb\x01\n\x0bUpdateAgent\x12\x31.google.cloud.dialogflow.cx.v3.UpdateAgentRequest\x1a$.google.cloud.dialogflow.cx.v3.Agent\"S\x82\xd3\xe4\x93\x02\x39\x32\x30/v3/{agent.name=projects/*/locations/*/agents/*}:\x05\x61gent\xda\x41\x11\x61gent,update_mask\x12\x93\x01\n\x0b\x44\x65leteAgent\x12\x31.google.cloud.dialogflow.cx.v3.DeleteAgentRequest\x1a\x16.google.protobuf.Empty\"9\x82\xd3\xe4\x93\x02,**/v3/{name=projects/*/locations/*/agents/*}\xda\x41\x04name\x12\xcd\x01\n\x0b\x45xportAgent\x12\x31.google.cloud.dialogflow.cx.v3.ExportAgentRequest\x1a\x1d.google.longrunning.Operation\"l\x82\xd3\xe4\x93\x02\x36\"1/v3/{name=projects/*/locations/*/agents/*}:export:\x01*\xca\x41-\n\x13\x45xportAgentResponse\x12\x16google.protobuf.Struct\x12\xd2\x01\n\x0cRestoreAgent\x12\x32.google.cloud.dialogflow.cx.v3.RestoreAgentRequest\x1a\x1d.google.longrunning.Operation\"o\x82\xd3\xe4\x93\x02\x37\"2/v3/{name=projects/*/locations/*/agents/*}:restore:\x01*\xca\x41/\n\x15google.protobuf.Empty\x12\x16google.protobuf.Struct\x12\xba\x01\n\rValidateAgent\x12\x33.google.cloud.dialogflow.cx.v3.ValidateAgentRequest\x1a\x34.google.cloud.dialogflow.cx.v3.AgentValidationResult\">\x82\xd3\xe4\x93\x02\x38\"3/v3/{name=projects/*/locations/*/agents/*}:validate:\x01*\x12\xdc\x01\n\x18GetAgentValidationResult\x12>.google.cloud.dialogflow.cx.v3.GetAgentValidationResultRequest\x1a\x34.google.cloud.dialogflow.cx.v3.AgentValidationResult\"J\x82\xd3\xe4\x93\x02=\x12;/v3/{name=projects/*/locations/*/agents/*/validationResult}\xda\x41\x04name\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\xb0\x01\n!com.google.cloud.dialogflow.cx.v3B\nAgentProtoP\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"
21
+
22
+ pool = Google::Protobuf::DescriptorPool.generated_pool
23
+
24
+ begin
25
+ pool.add_serialized_file(descriptor_data)
26
+ rescue TypeError => e
27
+ # Compatibility code: will be removed in the next major version.
28
+ require 'google/protobuf/descriptor_pb'
29
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
30
+ parsed.clear_dependency
31
+ serialized = parsed.class.encode(parsed)
32
+ file = pool.add_serialized_file(serialized)
33
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
34
+ imports = [
35
+ ["google.cloud.dialogflow.cx.v3.AdvancedSettings", "google/cloud/dialogflow/cx/v3/advanced_settings.proto"],
36
+ ["google.cloud.dialogflow.cx.v3.TextToSpeechSettings", "google/cloud/dialogflow/cx/v3/audio_config.proto"],
37
+ ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
38
+ ["google.cloud.dialogflow.cx.v3.FlowValidationResult", "google/cloud/dialogflow/cx/v3/flow.proto"],
39
+ ]
40
+ imports.each do |type_name, expected_filename|
41
+ import_file = pool.lookup(type_name).file_descriptor
42
+ if import_file.name != expected_filename
43
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
104
44
  end
105
45
  end
46
+ warn "Each proto file must use a consistent fully-qualified name."
47
+ warn "This will become an error in the next major version."
106
48
  end
107
49
 
108
50
  module Google
@@ -135,7 +135,7 @@ module Google
135
135
  credentials = @config.credentials
136
136
  # Use self-signed JWT if the endpoint is unchanged from default,
137
137
  # but only if the default endpoint does not have a region prefix.
138
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
138
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
139
139
  !@config.endpoint.split(".").first.include?("-")
140
140
  credentials ||= Credentials.default scope: @config.scope,
141
141
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -656,7 +656,7 @@ module Google
656
656
  # @param options [::Gapic::CallOptions, ::Hash]
657
657
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
658
658
  #
659
- # @overload export_agent(name: nil, agent_uri: nil, data_format: nil, environment: nil)
659
+ # @overload export_agent(name: nil, agent_uri: nil, data_format: nil, environment: nil, include_bigquery_export_settings: nil)
660
660
  # Pass arguments to `export_agent` via keyword arguments. Note that at
661
661
  # least one keyword argument is required. To specify no parameters, or to keep all
662
662
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -682,6 +682,8 @@ module Google
682
682
  # Optional. Environment name. If not set, draft environment is assumed.
683
683
  # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
684
684
  # ID>/environments/<Environment ID>`.
685
+ # @param include_bigquery_export_settings [::Boolean]
686
+ # Optional. Whether to include BigQuery Export setting.
685
687
  #
686
688
  # @yield [response, operation] Access the result along with the RPC operation
687
689
  # @yieldparam response [::Gapic::Operation]
@@ -1141,7 +1143,9 @@ module Google
1141
1143
  class Configuration
1142
1144
  extend ::Gapic::Config
1143
1145
 
1144
- config_attr :endpoint, "dialogflow.googleapis.com", ::String
1146
+ DEFAULT_ENDPOINT = "dialogflow.googleapis.com"
1147
+
1148
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
1145
1149
  config_attr :credentials, nil do |value|
1146
1150
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1147
1151
  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
- config_attr :endpoint, "dialogflow.googleapis.com", ::String
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
@@ -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 == Client.configure.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
@@ -529,7 +529,7 @@ module Google
529
529
  # @param options [::Gapic::CallOptions, ::Hash]
530
530
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
531
531
  #
532
- # @overload export_agent(name: nil, agent_uri: nil, data_format: nil, environment: nil)
532
+ # @overload export_agent(name: nil, agent_uri: nil, data_format: nil, environment: nil, include_bigquery_export_settings: nil)
533
533
  # Pass arguments to `export_agent` via keyword arguments. Note that at
534
534
  # least one keyword argument is required. To specify no parameters, or to keep all
535
535
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -555,6 +555,8 @@ module Google
555
555
  # Optional. Environment name. If not set, draft environment is assumed.
556
556
  # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
557
557
  # ID>/environments/<Environment ID>`.
558
+ # @param include_bigquery_export_settings [::Boolean]
559
+ # Optional. Whether to include BigQuery Export setting.
558
560
  # @yield [result, operation] Access the result along with the TransportOperation object
559
561
  # @yieldparam result [::Gapic::Operation]
560
562
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -899,7 +901,9 @@ module Google
899
901
  class Configuration
900
902
  extend ::Gapic::Config
901
903
 
902
- config_attr :endpoint, "dialogflow.googleapis.com", ::String
904
+ DEFAULT_ENDPOINT = "dialogflow.googleapis.com"
905
+
906
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
903
907
  config_attr :credentials, nil do |value|
904
908
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
905
909
  allowed.any? { |klass| klass === value }
@@ -447,7 +447,9 @@ module Google
447
447
  class Configuration
448
448
  extend ::Gapic::Config
449
449
 
450
- config_attr :endpoint, "dialogflow.googleapis.com", ::String
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("=", 2) }
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("=", 2) }
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("=", 2) }
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("=", 2) }
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_agents_request request_pb
62
62
  query_string_params = if query_string_params.any?
63
- query_string_params.to_h { |p| p.split("=", 2) }
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_agent_request request_pb
100
100
  query_string_params = if query_string_params.any?
101
- query_string_params.to_h { |p| p.split("=", 2) }
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_agent_request request_pb
138
138
  query_string_params = if query_string_params.any?
139
- query_string_params.to_h { |p| p.split("=", 2) }
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_agent_request request_pb
176
176
  query_string_params = if query_string_params.any?
177
- query_string_params.to_h { |p| p.split("=", 2) }
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_agent_request request_pb
214
214
  query_string_params = if query_string_params.any?
215
- query_string_params.to_h { |p| p.split("=", 2) }
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_export_agent_request request_pb
252
252
  query_string_params = if query_string_params.any?
253
- query_string_params.to_h { |p| p.split("=", 2) }
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_restore_agent_request request_pb
290
290
  query_string_params = if query_string_params.any?
291
- query_string_params.to_h { |p| p.split("=", 2) }
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_validate_agent_request request_pb
328
328
  query_string_params = if query_string_params.any?
329
- query_string_params.to_h { |p| p.split("=", 2) }
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_get_agent_validation_result_request request_pb
366
366
  query_string_params = if query_string_params.any?
367
- query_string_params.to_h { |p| p.split("=", 2) }
367
+ query_string_params.to_h { |p| p.split "=", 2 }
368
368
  else
369
369
  {}
370
370
  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/audio_config.proto
3
4
 
@@ -7,73 +8,32 @@ require 'google/api/field_behavior_pb'
7
8
  require 'google/api/resource_pb'
8
9
  require 'google/protobuf/duration_pb'
9
10
 
10
- Google::Protobuf::DescriptorPool.generated_pool.build do
11
- add_file("google/cloud/dialogflow/cx/v3/audio_config.proto", :syntax => :proto3) do
12
- add_message "google.cloud.dialogflow.cx.v3.SpeechWordInfo" do
13
- optional :word, :string, 3
14
- optional :start_offset, :message, 1, "google.protobuf.Duration"
15
- optional :end_offset, :message, 2, "google.protobuf.Duration"
16
- optional :confidence, :float, 4
17
- end
18
- add_message "google.cloud.dialogflow.cx.v3.InputAudioConfig" do
19
- optional :audio_encoding, :enum, 1, "google.cloud.dialogflow.cx.v3.AudioEncoding"
20
- optional :sample_rate_hertz, :int32, 2
21
- optional :enable_word_info, :bool, 13
22
- repeated :phrase_hints, :string, 4
23
- optional :model, :string, 7
24
- optional :model_variant, :enum, 10, "google.cloud.dialogflow.cx.v3.SpeechModelVariant"
25
- optional :single_utterance, :bool, 8
26
- end
27
- add_message "google.cloud.dialogflow.cx.v3.VoiceSelectionParams" do
28
- optional :name, :string, 1
29
- optional :ssml_gender, :enum, 2, "google.cloud.dialogflow.cx.v3.SsmlVoiceGender"
30
- end
31
- add_message "google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig" do
32
- optional :speaking_rate, :double, 1
33
- optional :pitch, :double, 2
34
- optional :volume_gain_db, :double, 3
35
- repeated :effects_profile_id, :string, 5
36
- optional :voice, :message, 4, "google.cloud.dialogflow.cx.v3.VoiceSelectionParams"
37
- end
38
- add_message "google.cloud.dialogflow.cx.v3.OutputAudioConfig" do
39
- optional :audio_encoding, :enum, 1, "google.cloud.dialogflow.cx.v3.OutputAudioEncoding"
40
- optional :sample_rate_hertz, :int32, 2
41
- optional :synthesize_speech_config, :message, 3, "google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig"
42
- end
43
- add_message "google.cloud.dialogflow.cx.v3.TextToSpeechSettings" do
44
- map :synthesize_speech_configs, :string, :message, 1, "google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig"
45
- end
46
- add_enum "google.cloud.dialogflow.cx.v3.AudioEncoding" do
47
- value :AUDIO_ENCODING_UNSPECIFIED, 0
48
- value :AUDIO_ENCODING_LINEAR_16, 1
49
- value :AUDIO_ENCODING_FLAC, 2
50
- value :AUDIO_ENCODING_MULAW, 3
51
- value :AUDIO_ENCODING_AMR, 4
52
- value :AUDIO_ENCODING_AMR_WB, 5
53
- value :AUDIO_ENCODING_OGG_OPUS, 6
54
- value :AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE, 7
55
- end
56
- add_enum "google.cloud.dialogflow.cx.v3.SpeechModelVariant" do
57
- value :SPEECH_MODEL_VARIANT_UNSPECIFIED, 0
58
- value :USE_BEST_AVAILABLE, 1
59
- value :USE_STANDARD, 2
60
- value :USE_ENHANCED, 3
61
- end
62
- add_enum "google.cloud.dialogflow.cx.v3.SsmlVoiceGender" do
63
- value :SSML_VOICE_GENDER_UNSPECIFIED, 0
64
- value :SSML_VOICE_GENDER_MALE, 1
65
- value :SSML_VOICE_GENDER_FEMALE, 2
66
- value :SSML_VOICE_GENDER_NEUTRAL, 3
67
- end
68
- add_enum "google.cloud.dialogflow.cx.v3.OutputAudioEncoding" do
69
- value :OUTPUT_AUDIO_ENCODING_UNSPECIFIED, 0
70
- value :OUTPUT_AUDIO_ENCODING_LINEAR_16, 1
71
- value :OUTPUT_AUDIO_ENCODING_MP3, 2
72
- value :OUTPUT_AUDIO_ENCODING_MP3_64_KBPS, 4
73
- value :OUTPUT_AUDIO_ENCODING_OGG_OPUS, 3
74
- value :OUTPUT_AUDIO_ENCODING_MULAW, 5
11
+
12
+ descriptor_data = "\n0google/cloud/dialogflow/cx/v3/audio_config.proto\x12\x1dgoogle.cloud.dialogflow.cx.v3\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/duration.proto\"\x92\x01\n\x0eSpeechWordInfo\x12\x0c\n\x04word\x18\x03 \x01(\t\x12/\n\x0cstart_offset\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12-\n\nend_offset\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x12\n\nconfidence\x18\x04 \x01(\x02\"\x9b\x02\n\x10InputAudioConfig\x12I\n\x0e\x61udio_encoding\x18\x01 \x01(\x0e\x32,.google.cloud.dialogflow.cx.v3.AudioEncodingB\x03\xe0\x41\x02\x12\x19\n\x11sample_rate_hertz\x18\x02 \x01(\x05\x12\x18\n\x10\x65nable_word_info\x18\r \x01(\x08\x12\x14\n\x0cphrase_hints\x18\x04 \x03(\t\x12\r\n\x05model\x18\x07 \x01(\t\x12H\n\rmodel_variant\x18\n \x01(\x0e\x32\x31.google.cloud.dialogflow.cx.v3.SpeechModelVariant\x12\x18\n\x10single_utterance\x18\x08 \x01(\x08\"i\n\x14VoiceSelectionParams\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x43\n\x0bssml_gender\x18\x02 \x01(\x0e\x32..google.cloud.dialogflow.cx.v3.SsmlVoiceGender\"\xb6\x01\n\x16SynthesizeSpeechConfig\x12\x15\n\rspeaking_rate\x18\x01 \x01(\x01\x12\r\n\x05pitch\x18\x02 \x01(\x01\x12\x16\n\x0evolume_gain_db\x18\x03 \x01(\x01\x12\x1a\n\x12\x65\x66\x66\x65\x63ts_profile_id\x18\x05 \x03(\t\x12\x42\n\x05voice\x18\x04 \x01(\x0b\x32\x33.google.cloud.dialogflow.cx.v3.VoiceSelectionParams\"\xd8\x01\n\x11OutputAudioConfig\x12O\n\x0e\x61udio_encoding\x18\x01 \x01(\x0e\x32\x32.google.cloud.dialogflow.cx.v3.OutputAudioEncodingB\x03\xe0\x41\x02\x12\x19\n\x11sample_rate_hertz\x18\x02 \x01(\x05\x12W\n\x18synthesize_speech_config\x18\x03 \x01(\x0b\x32\x35.google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig\"\x82\x02\n\x14TextToSpeechSettings\x12s\n\x19synthesize_speech_configs\x18\x01 \x03(\x0b\x32P.google.cloud.dialogflow.cx.v3.TextToSpeechSettings.SynthesizeSpeechConfigsEntry\x1au\n\x1cSynthesizeSpeechConfigsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x44\n\x05value\x18\x02 \x01(\x0b\x32\x35.google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig:\x02\x38\x01*\xfb\x01\n\rAudioEncoding\x12\x1e\n\x1a\x41UDIO_ENCODING_UNSPECIFIED\x10\x00\x12\x1c\n\x18\x41UDIO_ENCODING_LINEAR_16\x10\x01\x12\x17\n\x13\x41UDIO_ENCODING_FLAC\x10\x02\x12\x18\n\x14\x41UDIO_ENCODING_MULAW\x10\x03\x12\x16\n\x12\x41UDIO_ENCODING_AMR\x10\x04\x12\x19\n\x15\x41UDIO_ENCODING_AMR_WB\x10\x05\x12\x1b\n\x17\x41UDIO_ENCODING_OGG_OPUS\x10\x06\x12)\n%AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE\x10\x07*v\n\x12SpeechModelVariant\x12$\n SPEECH_MODEL_VARIANT_UNSPECIFIED\x10\x00\x12\x16\n\x12USE_BEST_AVAILABLE\x10\x01\x12\x10\n\x0cUSE_STANDARD\x10\x02\x12\x10\n\x0cUSE_ENHANCED\x10\x03*\x8d\x01\n\x0fSsmlVoiceGender\x12!\n\x1dSSML_VOICE_GENDER_UNSPECIFIED\x10\x00\x12\x1a\n\x16SSML_VOICE_GENDER_MALE\x10\x01\x12\x1c\n\x18SSML_VOICE_GENDER_FEMALE\x10\x02\x12\x1d\n\x19SSML_VOICE_GENDER_NEUTRAL\x10\x03*\xec\x01\n\x13OutputAudioEncoding\x12%\n!OUTPUT_AUDIO_ENCODING_UNSPECIFIED\x10\x00\x12#\n\x1fOUTPUT_AUDIO_ENCODING_LINEAR_16\x10\x01\x12\x1d\n\x19OUTPUT_AUDIO_ENCODING_MP3\x10\x02\x12%\n!OUTPUT_AUDIO_ENCODING_MP3_64_KBPS\x10\x04\x12\"\n\x1eOUTPUT_AUDIO_ENCODING_OGG_OPUS\x10\x03\x12\x1f\n\x1bOUTPUT_AUDIO_ENCODING_MULAW\x10\x05\x42\x8e\x02\n!com.google.cloud.dialogflow.cx.v3B\x10\x41udioConfigProtoP\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::V3\xea\x41U\n\x1b\x61utoml.googleapis.com/Model\x12\x36projects/{project}/locations/{location}/models/{model}b\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.protobuf.Duration", "google/protobuf/duration.proto"],
28
+ ]
29
+ imports.each do |type_name, expected_filename|
30
+ import_file = pool.lookup(type_name).file_descriptor
31
+ if import_file.name != expected_filename
32
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
75
33
  end
76
34
  end
35
+ warn "Each proto file must use a consistent fully-qualified name."
36
+ warn "This will become an error in the next major version."
77
37
  end
78
38
 
79
39
  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/changelog.proto
3
4
 
@@ -9,31 +10,32 @@ require 'google/api/field_behavior_pb'
9
10
  require 'google/api/resource_pb'
10
11
  require 'google/protobuf/timestamp_pb'
11
12
 
12
- Google::Protobuf::DescriptorPool.generated_pool.build do
13
- add_file("google/cloud/dialogflow/cx/v3/changelog.proto", :syntax => :proto3) do
14
- add_message "google.cloud.dialogflow.cx.v3.ListChangelogsRequest" do
15
- optional :parent, :string, 1
16
- optional :filter, :string, 2
17
- optional :page_size, :int32, 3
18
- optional :page_token, :string, 4
19
- end
20
- add_message "google.cloud.dialogflow.cx.v3.ListChangelogsResponse" do
21
- repeated :changelogs, :message, 1, "google.cloud.dialogflow.cx.v3.Changelog"
22
- optional :next_page_token, :string, 2
23
- end
24
- add_message "google.cloud.dialogflow.cx.v3.GetChangelogRequest" do
25
- optional :name, :string, 1
26
- end
27
- add_message "google.cloud.dialogflow.cx.v3.Changelog" do
28
- optional :name, :string, 1
29
- optional :user_email, :string, 2
30
- optional :display_name, :string, 7
31
- optional :action, :string, 11
32
- optional :type, :string, 8
33
- optional :resource, :string, 3
34
- optional :create_time, :message, 4, "google.protobuf.Timestamp"
13
+
14
+ descriptor_data = "\n-google/cloud/dialogflow/cx/v3/changelog.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\x1fgoogle/protobuf/timestamp.proto\"\x8b\x01\n\x15ListChangelogsRequest\x12;\n\x06parent\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\x12#dialogflow.googleapis.com/Changelog\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\"o\n\x16ListChangelogsResponse\x12<\n\nchangelogs\x18\x01 \x03(\x0b\x32(.google.cloud.dialogflow.cx.v3.Changelog\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"P\n\x13GetChangelogRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#dialogflow.googleapis.com/Changelog\"\x9d\x02\n\tChangelog\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\nuser_email\x18\x02 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x07 \x01(\t\x12\x0e\n\x06\x61\x63tion\x18\x0b \x01(\t\x12\x0c\n\x04type\x18\x08 \x01(\t\x12\x10\n\x08resource\x18\x03 \x01(\t\x12/\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp:w\xea\x41t\n#dialogflow.googleapis.com/Changelog\x12Mprojects/{project}/locations/{location}/agents/{agent}/changelogs/{changelog}2\x87\x04\n\nChangelogs\x12\xc7\x01\n\x0eListChangelogs\x12\x34.google.cloud.dialogflow.cx.v3.ListChangelogsRequest\x1a\x35.google.cloud.dialogflow.cx.v3.ListChangelogsResponse\"H\x82\xd3\xe4\x93\x02\x39\x12\x37/v3/{parent=projects/*/locations/*/agents/*}/changelogs\xda\x41\x06parent\x12\xb4\x01\n\x0cGetChangelog\x12\x32.google.cloud.dialogflow.cx.v3.GetChangelogRequest\x1a(.google.cloud.dialogflow.cx.v3.Changelog\"F\x82\xd3\xe4\x93\x02\x39\x12\x37/v3/{name=projects/*/locations/*/agents/*/changelogs/*}\xda\x41\x04name\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\xb4\x01\n!com.google.cloud.dialogflow.cx.v3B\x0e\x43hangelogProtoP\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"
15
+
16
+ pool = Google::Protobuf::DescriptorPool.generated_pool
17
+
18
+ begin
19
+ pool.add_serialized_file(descriptor_data)
20
+ rescue TypeError => e
21
+ # Compatibility code: will be removed in the next major version.
22
+ require 'google/protobuf/descriptor_pb'
23
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
24
+ parsed.clear_dependency
25
+ serialized = parsed.class.encode(parsed)
26
+ file = pool.add_serialized_file(serialized)
27
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
28
+ imports = [
29
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
30
+ ]
31
+ imports.each do |type_name, expected_filename|
32
+ import_file = pool.lookup(type_name).file_descriptor
33
+ if import_file.name != expected_filename
34
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
35
35
  end
36
36
  end
37
+ warn "Each proto file must use a consistent fully-qualified name."
38
+ warn "This will become an error in the next major version."
37
39
  end
38
40
 
39
41
  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 == Client.configure.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
@@ -450,7 +450,9 @@ module Google
450
450
  class Configuration
451
451
  extend ::Gapic::Config
452
452
 
453
- config_attr :endpoint, "dialogflow.googleapis.com", ::String
453
+ DEFAULT_ENDPOINT = "dialogflow.googleapis.com"
454
+
455
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
454
456
  config_attr :credentials, nil do |value|
455
457
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
456
458
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC