google-cloud-dialogflow-v2 1.12.0 → 1.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/dialogflow/v2/agent_coaching_instruction_pb.rb +47 -0
  3. data/lib/google/cloud/dialogflow/v2/agents/client.rb +20 -3
  4. data/lib/google/cloud/dialogflow/v2/agents/operations.rb +20 -3
  5. data/lib/google/cloud/dialogflow/v2/answer_record_pb.rb +3 -1
  6. data/lib/google/cloud/dialogflow/v2/answer_records/client.rb +20 -3
  7. data/lib/google/cloud/dialogflow/v2/answer_records/paths.rb +19 -0
  8. data/lib/google/cloud/dialogflow/v2/audio_config_pb.rb +3 -1
  9. data/lib/google/cloud/dialogflow/v2/contexts/client.rb +20 -3
  10. data/lib/google/cloud/dialogflow/v2/conversation_datasets/client.rb +20 -3
  11. data/lib/google/cloud/dialogflow/v2/conversation_datasets/operations.rb +20 -3
  12. data/lib/google/cloud/dialogflow/v2/conversation_event_pb.rb +3 -1
  13. data/lib/google/cloud/dialogflow/v2/conversation_model_pb.rb +1 -1
  14. data/lib/google/cloud/dialogflow/v2/conversation_models/client.rb +20 -3
  15. data/lib/google/cloud/dialogflow/v2/conversation_models/operations.rb +20 -3
  16. data/lib/google/cloud/dialogflow/v2/conversation_pb.rb +1 -1
  17. data/lib/google/cloud/dialogflow/v2/conversation_profile_pb.rb +3 -1
  18. data/lib/google/cloud/dialogflow/v2/conversation_profiles/client.rb +20 -3
  19. data/lib/google/cloud/dialogflow/v2/conversation_profiles/operations.rb +20 -3
  20. data/lib/google/cloud/dialogflow/v2/conversations/client.rb +30 -4
  21. data/lib/google/cloud/dialogflow/v2/conversations/paths.rb +19 -0
  22. data/lib/google/cloud/dialogflow/v2/conversations/rest/client.rb +10 -1
  23. data/lib/google/cloud/dialogflow/v2/document_pb.rb +1 -1
  24. data/lib/google/cloud/dialogflow/v2/documents/client.rb +20 -3
  25. data/lib/google/cloud/dialogflow/v2/documents/operations.rb +20 -3
  26. data/lib/google/cloud/dialogflow/v2/encryption_spec_service/client.rb +20 -3
  27. data/lib/google/cloud/dialogflow/v2/encryption_spec_service/operations.rb +20 -3
  28. data/lib/google/cloud/dialogflow/v2/entity_types/client.rb +20 -3
  29. data/lib/google/cloud/dialogflow/v2/entity_types/operations.rb +20 -3
  30. data/lib/google/cloud/dialogflow/v2/environments/client.rb +20 -3
  31. data/lib/google/cloud/dialogflow/v2/fulfillments/client.rb +20 -3
  32. data/lib/google/cloud/dialogflow/v2/generator_evaluation_pb.rb +82 -0
  33. data/lib/google/cloud/dialogflow/v2/generator_evaluation_services_pb.rb +51 -0
  34. data/lib/google/cloud/dialogflow/v2/generator_evaluations/client.rb +815 -0
  35. data/lib/google/cloud/dialogflow/v2/generator_evaluations/credentials.rb +52 -0
  36. data/lib/google/cloud/dialogflow/v2/generator_evaluations/operations.rb +841 -0
  37. data/lib/google/cloud/dialogflow/v2/generator_evaluations/paths.rb +92 -0
  38. data/lib/google/cloud/dialogflow/v2/generator_evaluations/rest/client.rb +752 -0
  39. data/lib/google/cloud/dialogflow/v2/generator_evaluations/rest/operations.rb +945 -0
  40. data/lib/google/cloud/dialogflow/v2/generator_evaluations/rest/service_stub.rb +326 -0
  41. data/lib/google/cloud/dialogflow/v2/generator_evaluations/rest.rb +54 -0
  42. data/lib/google/cloud/dialogflow/v2/generator_evaluations.rb +56 -0
  43. data/lib/google/cloud/dialogflow/v2/generator_pb.rb +18 -1
  44. data/lib/google/cloud/dialogflow/v2/generators/client.rb +20 -3
  45. data/lib/google/cloud/dialogflow/v2/generators/paths.rb +19 -0
  46. data/lib/google/cloud/dialogflow/v2/intents/client.rb +20 -3
  47. data/lib/google/cloud/dialogflow/v2/intents/operations.rb +20 -3
  48. data/lib/google/cloud/dialogflow/v2/knowledge_bases/client.rb +20 -3
  49. data/lib/google/cloud/dialogflow/v2/operations_pb.rb +45 -0
  50. data/lib/google/cloud/dialogflow/v2/participant_pb.rb +3 -1
  51. data/lib/google/cloud/dialogflow/v2/participants/client.rb +20 -3
  52. data/lib/google/cloud/dialogflow/v2/rest.rb +3 -0
  53. data/lib/google/cloud/dialogflow/v2/session_entity_types/client.rb +20 -3
  54. data/lib/google/cloud/dialogflow/v2/sessions/client.rb +20 -3
  55. data/lib/google/cloud/dialogflow/v2/sip_trunk_pb.rb +62 -0
  56. data/lib/google/cloud/dialogflow/v2/sip_trunk_services_pb.rb +53 -0
  57. data/lib/google/cloud/dialogflow/v2/sip_trunks/client.rb +885 -0
  58. data/lib/google/cloud/dialogflow/v2/sip_trunks/credentials.rb +52 -0
  59. data/lib/google/cloud/dialogflow/v2/sip_trunks/paths.rb +69 -0
  60. data/lib/google/cloud/dialogflow/v2/sip_trunks/rest/client.rb +815 -0
  61. data/lib/google/cloud/dialogflow/v2/sip_trunks/rest/service_stub.rb +388 -0
  62. data/lib/google/cloud/dialogflow/v2/sip_trunks/rest.rb +53 -0
  63. data/lib/google/cloud/dialogflow/v2/sip_trunks.rb +55 -0
  64. data/lib/google/cloud/dialogflow/v2/tool_call_pb.rb +52 -0
  65. data/lib/google/cloud/dialogflow/v2/tool_pb.rb +80 -0
  66. data/lib/google/cloud/dialogflow/v2/tool_services_pb.rb +55 -0
  67. data/lib/google/cloud/dialogflow/v2/tools/client.rb +897 -0
  68. data/lib/google/cloud/dialogflow/v2/tools/credentials.rb +52 -0
  69. data/lib/google/cloud/dialogflow/v2/tools/paths.rb +109 -0
  70. data/lib/google/cloud/dialogflow/v2/tools/rest/client.rb +827 -0
  71. data/lib/google/cloud/dialogflow/v2/tools/rest/service_stub.rb +388 -0
  72. data/lib/google/cloud/dialogflow/v2/tools/rest.rb +55 -0
  73. data/lib/google/cloud/dialogflow/v2/tools.rb +57 -0
  74. data/lib/google/cloud/dialogflow/v2/version.rb +1 -1
  75. data/lib/google/cloud/dialogflow/v2/versions/client.rb +20 -3
  76. data/lib/google/cloud/dialogflow/v2/webhook_pb.rb +2 -1
  77. data/lib/google/cloud/dialogflow/v2.rb +3 -0
  78. data/proto_docs/google/cloud/dialogflow/v2/agent_coaching_instruction.rb +109 -0
  79. data/proto_docs/google/cloud/dialogflow/v2/answer_record.rb +8 -3
  80. data/proto_docs/google/cloud/dialogflow/v2/audio_config.rb +40 -0
  81. data/proto_docs/google/cloud/dialogflow/v2/conversation.rb +19 -2
  82. data/proto_docs/google/cloud/dialogflow/v2/conversation_event.rb +2 -0
  83. data/proto_docs/google/cloud/dialogflow/v2/conversation_model.rb +12 -0
  84. data/proto_docs/google/cloud/dialogflow/v2/conversation_profile.rb +38 -6
  85. data/proto_docs/google/cloud/dialogflow/v2/document.rb +3 -0
  86. data/proto_docs/google/cloud/dialogflow/v2/generator.rb +220 -4
  87. data/proto_docs/google/cloud/dialogflow/v2/generator_evaluation.rb +539 -0
  88. data/proto_docs/google/cloud/dialogflow/v2/operations.rb +39 -0
  89. data/proto_docs/google/cloud/dialogflow/v2/participant.rb +70 -7
  90. data/proto_docs/google/cloud/dialogflow/v2/sip_trunk.rb +211 -0
  91. data/proto_docs/google/cloud/dialogflow/v2/tool.rb +552 -0
  92. data/proto_docs/google/cloud/dialogflow/v2/tool_call.rb +115 -0
  93. metadata +39 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 797959e3c53bf45e2c3a62a8d5fef0b0fde83c6991fe7232f9b35d69236441da
4
- data.tar.gz: f96b3925f507ecd69840d8d2ab381382a1e2878c49d71e6cda465217e02b5a32
3
+ metadata.gz: 6a6375e473f621d063213b20a0b5e5f8e9883d5d2a29372cd1572915f4a805ff
4
+ data.tar.gz: a7cd00495c87d199898e16fe68c52533ea2696c989e8c7a30505d6eec02d85b8
5
5
  SHA512:
6
- metadata.gz: 9a7b9f54ffe44e5dc65ecd45e0e3f72619acd7bc45a5088453e461a229cf64bcf3687854038b18b92ca358fba38f5b703aa1998c67ac19a7295058d7377c3eeb
7
- data.tar.gz: d64607393685056fe0e117f39bb961b37287fe905f63c219ceaec1be04e7755ddbbb70d71a1f602958199d5d5cca91a68c5ceb88036b2889928c5b282d56593c
6
+ metadata.gz: 8505054f7934be33c70b1dcad9db0486030bce50079b5d8625d4be98f7e8f73c383159be1f6017f8bcc8afa7a78ce66e8981a0dd73004c5e70d14ac1360dc2e8
7
+ data.tar.gz: '098d79fa7c849a653c22d1be4c9dc39d6696e9bc9b6a79ab9638f884b91d7413aac2735eb9dfda48f22d4656b1e0585ad4639022a83ea18dc1cb71216cdad510'
@@ -0,0 +1,47 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/cloud/dialogflow/v2/agent_coaching_instruction.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/api/field_behavior_pb'
8
+
9
+
10
+ descriptor_data = "\n;google/cloud/dialogflow/v2/agent_coaching_instruction.proto\x12\x1agoogle.cloud.dialogflow.v2\x1a\x1fgoogle/api/field_behavior.proto\"\x9c\x06\n\x18\x41gentCoachingInstruction\x12\x19\n\x0c\x64isplay_name\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x1c\n\x0f\x64isplay_details\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tcondition\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x19\n\x0c\x61gent_action\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rsystem_action\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12n\n\x16\x64uplicate_check_result\x18\x08 \x01(\x0b\x32I.google.cloud.dialogflow.v2.AgentCoachingInstruction.DuplicateCheckResultB\x03\xe0\x41\x03\x12`\n\x10triggering_event\x18\n \x01(\x0e\x32\x41.google.cloud.dialogflow.v2.AgentCoachingInstruction.TriggerEventB\x03\xe0\x41\x01\x1a\x8b\x02\n\x14\x44uplicateCheckResult\x12\x81\x01\n\x15\x64uplicate_suggestions\x18\x01 \x03(\x0b\x32].google.cloud.dialogflow.v2.AgentCoachingInstruction.DuplicateCheckResult.DuplicateSuggestionB\x03\xe0\x41\x03\x1ao\n\x13\x44uplicateSuggestion\x12\x1a\n\ranswer_record\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x1d\n\x10suggestion_index\x18\x03 \x01(\x05\x42\x03\xe0\x41\x03\x12\x1d\n\x10similarity_score\x18\x04 \x01(\x02\x42\x03\xe0\x41\x03\"\x97\x01\n\x0cTriggerEvent\x12\x1d\n\x19TRIGGER_EVENT_UNSPECIFIED\x10\x00\x12\x14\n\x10\x45ND_OF_UTTERANCE\x10\x01\x12\x0f\n\x0bMANUAL_CALL\x10\x02\x12\x14\n\x10\x43USTOMER_MESSAGE\x10\x03\x12\x11\n\rAGENT_MESSAGE\x10\x04\x12\x18\n\x14TOOL_CALL_COMPLETION\x10\x05\x42\xa3\x01\n\x1e\x63om.google.cloud.dialogflow.v2B\x1d\x41gentCoachingInstructionProtoP\x01Z>cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dialogflowpb\xa2\x02\x02\x44\x46\xaa\x02\x1aGoogle.Cloud.Dialogflow.V2b\x06proto3"
11
+
12
+ pool = Google::Protobuf::DescriptorPool.generated_pool
13
+
14
+ begin
15
+ pool.add_serialized_file(descriptor_data)
16
+ rescue TypeError
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}"
30
+ end
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."
34
+ end
35
+
36
+ module Google
37
+ module Cloud
38
+ module Dialogflow
39
+ module V2
40
+ AgentCoachingInstruction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.AgentCoachingInstruction").msgclass
41
+ AgentCoachingInstruction::DuplicateCheckResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.AgentCoachingInstruction.DuplicateCheckResult").msgclass
42
+ AgentCoachingInstruction::DuplicateCheckResult::DuplicateSuggestion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.AgentCoachingInstruction.DuplicateCheckResult.DuplicateSuggestion").msgclass
43
+ AgentCoachingInstruction::TriggerEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.AgentCoachingInstruction.TriggerEvent").enummodule
44
+ end
45
+ end
46
+ end
47
+ end
@@ -1205,8 +1205,6 @@ module Google
1205
1205
  # @return [::String,nil]
1206
1206
  # @!attribute [rw] credentials
1207
1207
  # Credentials to send with calls. You may provide any of the following types:
1208
- # * (`String`) The path to a service account key file in JSON format
1209
- # * (`Hash`) A service account key as a Hash
1210
1208
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1211
1209
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1212
1210
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -1215,7 +1213,26 @@ module Google
1215
1213
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1216
1214
  # * (`nil`) indicating no credentials
1217
1215
  #
1218
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
1216
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
1217
+ # is deprecated. Providing an unvalidated credential configuration to
1218
+ # Google APIs can compromise the security of your systems and data.
1219
+ #
1220
+ # @example
1221
+ #
1222
+ # # The recommended way to provide credentials is to use the `make_creds` method
1223
+ # # on the appropriate credentials class for your environment.
1224
+ #
1225
+ # require "googleauth"
1226
+ #
1227
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
1228
+ # json_key_io: ::File.open("/path/to/keyfile.json")
1229
+ # )
1230
+ #
1231
+ # client = ::Google::Cloud::Dialogflow::V2::Agents::Client.new do |config|
1232
+ # config.credentials = credentials
1233
+ # end
1234
+ #
1235
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
1219
1236
  # external source for authentication to Google Cloud, you must validate it before
1220
1237
  # providing it to a Google API client library. Providing an unvalidated credential
1221
1238
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -642,8 +642,6 @@ module Google
642
642
  # @return [::String,nil]
643
643
  # @!attribute [rw] credentials
644
644
  # Credentials to send with calls. You may provide any of the following types:
645
- # * (`String`) The path to a service account key file in JSON format
646
- # * (`Hash`) A service account key as a Hash
647
645
  # * (`Google::Auth::Credentials`) A googleauth credentials object
648
646
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
649
647
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -652,7 +650,26 @@ module Google
652
650
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
653
651
  # * (`nil`) indicating no credentials
654
652
  #
655
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
653
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
654
+ # is deprecated. Providing an unvalidated credential configuration to
655
+ # Google APIs can compromise the security of your systems and data.
656
+ #
657
+ # @example
658
+ #
659
+ # # The recommended way to provide credentials is to use the `make_creds` method
660
+ # # on the appropriate credentials class for your environment.
661
+ #
662
+ # require "googleauth"
663
+ #
664
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
665
+ # json_key_io: ::File.open("/path/to/keyfile.json")
666
+ # )
667
+ #
668
+ # client = ::Google::Longrunning::Operations::Client.new do |config|
669
+ # config.credentials = credentials
670
+ # end
671
+ #
672
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
656
673
  # external source for authentication to Google Cloud, you must validate it before
657
674
  # providing it to a Google API client library. Providing an unvalidated credential
658
675
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -8,12 +8,13 @@ require 'google/api/annotations_pb'
8
8
  require 'google/api/client_pb'
9
9
  require 'google/api/field_behavior_pb'
10
10
  require 'google/api/resource_pb'
11
+ require 'google/cloud/dialogflow/v2/generator_pb'
11
12
  require 'google/cloud/dialogflow/v2/participant_pb'
12
13
  require 'google/protobuf/field_mask_pb'
13
14
  require 'google/protobuf/timestamp_pb'
14
15
 
15
16
 
16
- descriptor_data = "\n.google/cloud/dialogflow/v2/answer_record.proto\x12\x1agoogle.cloud.dialogflow.v2\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/v2/participant.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xf1\x02\n\x0c\x41nswerRecord\x12\x0c\n\x04name\x18\x01 \x01(\t\x12H\n\x0f\x61nswer_feedback\x18\x02 \x01(\x0b\x32*.google.cloud.dialogflow.v2.AnswerFeedbackB\x03\xe0\x41\x02\x12W\n\x16\x61gent_assistant_record\x18\x04 \x01(\x0b\x32\x30.google.cloud.dialogflow.v2.AgentAssistantRecordB\x03\xe0\x41\x03H\x00:\xa5\x01\xea\x41\xa1\x01\n&dialogflow.googleapis.com/AnswerRecord\x12\x30projects/{project}/answerRecords/{answer_record}\x12\x45projects/{project}/locations/{location}/answerRecords/{answer_record}B\x08\n\x06record\"\xa0\x01\n\x18ListAnswerRecordsRequest\x12>\n\x06parent\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\x12&dialogflow.googleapis.com/AnswerRecord\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x04 \x01(\tB\x03\xe0\x41\x01\"v\n\x19ListAnswerRecordsResponse\x12@\n\x0e\x61nswer_records\x18\x01 \x03(\x0b\x32(.google.cloud.dialogflow.v2.AnswerRecord\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x97\x01\n\x19UpdateAnswerRecordRequest\x12\x44\n\ranswer_record\x18\x01 \x01(\x0b\x32(.google.cloud.dialogflow.v2.AnswerRecordB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\xd2\x03\n\x0e\x41nswerFeedback\x12V\n\x11\x63orrectness_level\x18\x01 \x01(\x0e\x32;.google.cloud.dialogflow.v2.AnswerFeedback.CorrectnessLevel\x12]\n\x1f\x61gent_assistant_detail_feedback\x18\x02 \x01(\x0b\x32\x32.google.cloud.dialogflow.v2.AgentAssistantFeedbackH\x00\x12\x0f\n\x07\x63licked\x18\x03 \x01(\x08\x12.\n\nclick_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x11\n\tdisplayed\x18\x04 \x01(\x08\x12\x30\n\x0c\x64isplay_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"p\n\x10\x43orrectnessLevel\x12!\n\x1d\x43ORRECTNESS_LEVEL_UNSPECIFIED\x10\x00\x12\x0f\n\x0bNOT_CORRECT\x10\x01\x12\x15\n\x11PARTIALLY_CORRECT\x10\x02\x12\x11\n\rFULLY_CORRECT\x10\x03\x42\x11\n\x0f\x64\x65tail_feedback\"\xfb\n\n\x16\x41gentAssistantFeedback\x12\x61\n\x10\x61nswer_relevance\x18\x01 \x01(\x0e\x32\x42.google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevanceB\x03\xe0\x41\x01\x12i\n\x14\x64ocument_correctness\x18\x02 \x01(\x0e\x32\x46.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentCorrectnessB\x03\xe0\x41\x01\x12g\n\x13\x64ocument_efficiency\x18\x03 \x01(\x0e\x32\x45.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiencyB\x03\xe0\x41\x01\x12m\n\x16summarization_feedback\x18\x04 \x01(\x0b\x32H.google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedbackB\x03\xe0\x41\x01\x12r\n\x19knowledge_search_feedback\x18\x05 \x01(\x0b\x32J.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedbackB\x03\xe0\x41\x01\x12r\n\x19knowledge_assist_feedback\x18\x06 \x01(\x0b\x32J.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedbackB\x03\xe0\x41\x01\x1a\xbb\x02\n\x15SummarizationFeedback\x12.\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bsubmit_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x14\n\x0csummary_text\x18\x03 \x01(\t\x12v\n\rtext_sections\x18\x04 \x03(\x0b\x32Z.google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback.TextSectionsEntryB\x03\xe0\x41\x01\x1a\x33\n\x11TextSectionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x46\n\x17KnowledgeSearchFeedback\x12\x15\n\ranswer_copied\x18\x01 \x01(\x08\x12\x14\n\x0c\x63licked_uris\x18\x02 \x03(\t\x1a\x46\n\x17KnowledgeAssistFeedback\x12\x15\n\ranswer_copied\x18\x01 \x01(\x08\x12\x14\n\x0c\x63licked_uris\x18\x02 \x03(\t\"Q\n\x0f\x41nswerRelevance\x12 \n\x1c\x41NSWER_RELEVANCE_UNSPECIFIED\x10\x00\x12\x0e\n\nIRRELEVANT\x10\x01\x12\x0c\n\x08RELEVANT\x10\x02\"W\n\x13\x44ocumentCorrectness\x12$\n DOCUMENT_CORRECTNESS_UNSPECIFIED\x10\x00\x12\r\n\tINCORRECT\x10\x01\x12\x0b\n\x07\x43ORRECT\x10\x02\"Y\n\x12\x44ocumentEfficiency\x12#\n\x1f\x44OCUMENT_EFFICIENCY_UNSPECIFIED\x10\x00\x12\x0f\n\x0bINEFFICIENT\x10\x01\x12\r\n\tEFFICIENT\x10\x02\"\x94\x02\n\x14\x41gentAssistantRecord\x12S\n\x19\x61rticle_suggestion_answer\x18\x05 \x01(\x0b\x32).google.cloud.dialogflow.v2.ArticleAnswerB\x03\xe0\x41\x03H\x00\x12@\n\nfaq_answer\x18\x06 \x01(\x0b\x32%.google.cloud.dialogflow.v2.FaqAnswerB\x03\xe0\x41\x03H\x00\x12[\n\x18\x64ialogflow_assist_answer\x18\x07 \x01(\x0b\x32\x32.google.cloud.dialogflow.v2.DialogflowAssistAnswerB\x03\xe0\x41\x03H\x00\x42\x08\n\x06\x61nswer2\xad\x05\n\rAnswerRecords\x12\xed\x01\n\x11ListAnswerRecords\x12\x34.google.cloud.dialogflow.v2.ListAnswerRecordsRequest\x1a\x35.google.cloud.dialogflow.v2.ListAnswerRecordsResponse\"k\xda\x41\x06parent\x82\xd3\xe4\x93\x02\\\x12%/v2/{parent=projects/*}/answerRecordsZ3\x12\x31/v2/{parent=projects/*/locations/*}/answerRecords\x12\xb1\x02\n\x12UpdateAnswerRecord\x12\x35.google.cloud.dialogflow.v2.UpdateAnswerRecordRequest\x1a(.google.cloud.dialogflow.v2.AnswerRecord\"\xb9\x01\xda\x41\x19\x61nswer_record,update_mask\x82\xd3\xe4\x93\x02\x96\x01\x32\x33/v2/{answer_record.name=projects/*/answerRecords/*}:\ranswer_recordZP2?/v2/{answer_record.name=projects/*/locations/*/answerRecords/*}:\ranswer_record\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\x98\x01\n\x1e\x63om.google.cloud.dialogflow.v2B\x12\x41nswerRecordsProtoP\x01Z>cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dialogflowpb\xa2\x02\x02\x44\x46\xaa\x02\x1aGoogle.Cloud.Dialogflow.V2b\x06proto3"
17
+ descriptor_data = "\n.google/cloud/dialogflow/v2/answer_record.proto\x12\x1agoogle.cloud.dialogflow.v2\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/v2/generator.proto\x1a,google/cloud/dialogflow/v2/participant.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xf1\x02\n\x0c\x41nswerRecord\x12\x0c\n\x04name\x18\x01 \x01(\t\x12H\n\x0f\x61nswer_feedback\x18\x02 \x01(\x0b\x32*.google.cloud.dialogflow.v2.AnswerFeedbackB\x03\xe0\x41\x02\x12W\n\x16\x61gent_assistant_record\x18\x04 \x01(\x0b\x32\x30.google.cloud.dialogflow.v2.AgentAssistantRecordB\x03\xe0\x41\x03H\x00:\xa5\x01\xea\x41\xa1\x01\n&dialogflow.googleapis.com/AnswerRecord\x12\x30projects/{project}/answerRecords/{answer_record}\x12\x45projects/{project}/locations/{location}/answerRecords/{answer_record}B\x08\n\x06record\"\xa0\x01\n\x18ListAnswerRecordsRequest\x12>\n\x06parent\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\x12&dialogflow.googleapis.com/AnswerRecord\x12\x13\n\x06\x66ilter\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x04 \x01(\tB\x03\xe0\x41\x01\"v\n\x19ListAnswerRecordsResponse\x12@\n\x0e\x61nswer_records\x18\x01 \x03(\x0b\x32(.google.cloud.dialogflow.v2.AnswerRecord\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x97\x01\n\x19UpdateAnswerRecordRequest\x12\x44\n\ranswer_record\x18\x01 \x01(\x0b\x32(.google.cloud.dialogflow.v2.AnswerRecordB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\xd2\x03\n\x0e\x41nswerFeedback\x12V\n\x11\x63orrectness_level\x18\x01 \x01(\x0e\x32;.google.cloud.dialogflow.v2.AnswerFeedback.CorrectnessLevel\x12]\n\x1f\x61gent_assistant_detail_feedback\x18\x02 \x01(\x0b\x32\x32.google.cloud.dialogflow.v2.AgentAssistantFeedbackH\x00\x12\x0f\n\x07\x63licked\x18\x03 \x01(\x08\x12.\n\nclick_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x11\n\tdisplayed\x18\x04 \x01(\x08\x12\x30\n\x0c\x64isplay_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"p\n\x10\x43orrectnessLevel\x12!\n\x1d\x43ORRECTNESS_LEVEL_UNSPECIFIED\x10\x00\x12\x0f\n\x0bNOT_CORRECT\x10\x01\x12\x15\n\x11PARTIALLY_CORRECT\x10\x02\x12\x11\n\rFULLY_CORRECT\x10\x03\x42\x11\n\x0f\x64\x65tail_feedback\"\xfb\n\n\x16\x41gentAssistantFeedback\x12\x61\n\x10\x61nswer_relevance\x18\x01 \x01(\x0e\x32\x42.google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevanceB\x03\xe0\x41\x01\x12i\n\x14\x64ocument_correctness\x18\x02 \x01(\x0e\x32\x46.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentCorrectnessB\x03\xe0\x41\x01\x12g\n\x13\x64ocument_efficiency\x18\x03 \x01(\x0e\x32\x45.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiencyB\x03\xe0\x41\x01\x12m\n\x16summarization_feedback\x18\x04 \x01(\x0b\x32H.google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedbackB\x03\xe0\x41\x01\x12r\n\x19knowledge_search_feedback\x18\x05 \x01(\x0b\x32J.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedbackB\x03\xe0\x41\x01\x12r\n\x19knowledge_assist_feedback\x18\x06 \x01(\x0b\x32J.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeAssistFeedbackB\x03\xe0\x41\x01\x1a\xbb\x02\n\x15SummarizationFeedback\x12.\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bsubmit_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x14\n\x0csummary_text\x18\x03 \x01(\t\x12v\n\rtext_sections\x18\x04 \x03(\x0b\x32Z.google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback.TextSectionsEntryB\x03\xe0\x41\x01\x1a\x33\n\x11TextSectionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x46\n\x17KnowledgeSearchFeedback\x12\x15\n\ranswer_copied\x18\x01 \x01(\x08\x12\x14\n\x0c\x63licked_uris\x18\x02 \x03(\t\x1a\x46\n\x17KnowledgeAssistFeedback\x12\x15\n\ranswer_copied\x18\x01 \x01(\x08\x12\x14\n\x0c\x63licked_uris\x18\x02 \x03(\t\"Q\n\x0f\x41nswerRelevance\x12 \n\x1c\x41NSWER_RELEVANCE_UNSPECIFIED\x10\x00\x12\x0e\n\nIRRELEVANT\x10\x01\x12\x0c\n\x08RELEVANT\x10\x02\"W\n\x13\x44ocumentCorrectness\x12$\n DOCUMENT_CORRECTNESS_UNSPECIFIED\x10\x00\x12\r\n\tINCORRECT\x10\x01\x12\x0b\n\x07\x43ORRECT\x10\x02\"Y\n\x12\x44ocumentEfficiency\x12#\n\x1f\x44OCUMENT_EFFICIENCY_UNSPECIFIED\x10\x00\x12\x0f\n\x0bINEFFICIENT\x10\x01\x12\r\n\tEFFICIENT\x10\x02\"\xea\x02\n\x14\x41gentAssistantRecord\x12S\n\x19\x61rticle_suggestion_answer\x18\x05 \x01(\x0b\x32).google.cloud.dialogflow.v2.ArticleAnswerB\x03\xe0\x41\x03H\x00\x12@\n\nfaq_answer\x18\x06 \x01(\x0b\x32%.google.cloud.dialogflow.v2.FaqAnswerB\x03\xe0\x41\x03H\x00\x12[\n\x18\x64ialogflow_assist_answer\x18\x07 \x01(\x0b\x32\x32.google.cloud.dialogflow.v2.DialogflowAssistAnswerB\x03\xe0\x41\x03H\x00\x12T\n\x14generator_suggestion\x18\x08 \x01(\x0b\x32/.google.cloud.dialogflow.v2.GeneratorSuggestionB\x03\xe0\x41\x03H\x00\x42\x08\n\x06\x61nswer2\xad\x05\n\rAnswerRecords\x12\xed\x01\n\x11ListAnswerRecords\x12\x34.google.cloud.dialogflow.v2.ListAnswerRecordsRequest\x1a\x35.google.cloud.dialogflow.v2.ListAnswerRecordsResponse\"k\xda\x41\x06parent\x82\xd3\xe4\x93\x02\\\x12%/v2/{parent=projects/*}/answerRecordsZ3\x12\x31/v2/{parent=projects/*/locations/*}/answerRecords\x12\xb1\x02\n\x12UpdateAnswerRecord\x12\x35.google.cloud.dialogflow.v2.UpdateAnswerRecordRequest\x1a(.google.cloud.dialogflow.v2.AnswerRecord\"\xb9\x01\xda\x41\x19\x61nswer_record,update_mask\x82\xd3\xe4\x93\x02\x96\x01\x32\x33/v2/{answer_record.name=projects/*/answerRecords/*}:\ranswer_recordZP2?/v2/{answer_record.name=projects/*/locations/*/answerRecords/*}:\ranswer_record\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\x98\x01\n\x1e\x63om.google.cloud.dialogflow.v2B\x12\x41nswerRecordsProtoP\x01Z>cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dialogflowpb\xa2\x02\x02\x44\x46\xaa\x02\x1aGoogle.Cloud.Dialogflow.V2b\x06proto3"
17
18
 
18
19
  pool = Google::Protobuf::DescriptorPool.generated_pool
19
20
 
@@ -31,6 +32,7 @@ rescue TypeError
31
32
  ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
32
33
  ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
33
34
  ["google.cloud.dialogflow.v2.ArticleAnswer", "google/cloud/dialogflow/v2/participant.proto"],
35
+ ["google.cloud.dialogflow.v2.GeneratorSuggestion", "google/cloud/dialogflow/v2/generator.proto"],
34
36
  ]
35
37
  imports.each do |type_name, expected_filename|
36
38
  import_file = pool.lookup(type_name).file_descriptor
@@ -447,8 +447,6 @@ module Google
447
447
  # @return [::String,nil]
448
448
  # @!attribute [rw] credentials
449
449
  # Credentials to send with calls. You may provide any of the following types:
450
- # * (`String`) The path to a service account key file in JSON format
451
- # * (`Hash`) A service account key as a Hash
452
450
  # * (`Google::Auth::Credentials`) A googleauth credentials object
453
451
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
454
452
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -457,7 +455,26 @@ module Google
457
455
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
458
456
  # * (`nil`) indicating no credentials
459
457
  #
460
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
458
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
459
+ # is deprecated. Providing an unvalidated credential configuration to
460
+ # Google APIs can compromise the security of your systems and data.
461
+ #
462
+ # @example
463
+ #
464
+ # # The recommended way to provide credentials is to use the `make_creds` method
465
+ # # on the appropriate credentials class for your environment.
466
+ #
467
+ # require "googleauth"
468
+ #
469
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
470
+ # json_key_io: ::File.open("/path/to/keyfile.json")
471
+ # )
472
+ #
473
+ # client = ::Google::Cloud::Dialogflow::V2::AnswerRecords::Client.new do |config|
474
+ # config.credentials = credentials
475
+ # end
476
+ #
477
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
461
478
  # external source for authentication to Google Cloud, you must validate it before
462
479
  # providing it to a Google API client library. Providing an unvalidated credential
463
480
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -222,6 +222,25 @@ module Google
222
222
  "projects/#{project}"
223
223
  end
224
224
 
225
+ ##
226
+ # Create a fully-qualified Tool resource string.
227
+ #
228
+ # The resource will be in the following format:
229
+ #
230
+ # `projects/{project}/locations/{location}/tools/{tool}`
231
+ #
232
+ # @param project [String]
233
+ # @param location [String]
234
+ # @param tool [String]
235
+ #
236
+ # @return [::String]
237
+ def tool_path project:, location:, tool:
238
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
239
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
240
+
241
+ "projects/#{project}/locations/#{location}/tools/#{tool}"
242
+ end
243
+
225
244
  extend self
226
245
  end
227
246
  end
@@ -9,7 +9,7 @@ require 'google/api/resource_pb'
9
9
  require 'google/protobuf/duration_pb'
10
10
 
11
11
 
12
- descriptor_data = "\n-google/cloud/dialogflow/v2/audio_config.proto\x12\x1agoogle.cloud.dialogflow.v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/duration.proto\"9\n\rSpeechContext\x12\x14\n\x07phrases\x18\x01 \x03(\tB\x03\xe0\x41\x01\x12\x12\n\x05\x62oost\x18\x02 \x01(\x02\x42\x03\xe0\x41\x01\"\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\"\xb6\x04\n\x10InputAudioConfig\x12\x46\n\x0e\x61udio_encoding\x18\x01 \x01(\x0e\x32).google.cloud.dialogflow.v2.AudioEncodingB\x03\xe0\x41\x02\x12\x1e\n\x11sample_rate_hertz\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02\x12\x1a\n\rlanguage_code\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x10\x65nable_word_info\x18\r \x01(\x08\x12\x18\n\x0cphrase_hints\x18\x04 \x03(\tB\x02\x18\x01\x12\x42\n\x0fspeech_contexts\x18\x0b \x03(\x0b\x32).google.cloud.dialogflow.v2.SpeechContext\x12\r\n\x05model\x18\x07 \x01(\t\x12\x45\n\rmodel_variant\x18\n \x01(\x0e\x32..google.cloud.dialogflow.v2.SpeechModelVariant\x12\x18\n\x10single_utterance\x18\x08 \x01(\x08\x12*\n\"disable_no_speech_recognized_event\x18\x0e \x01(\x08\x12$\n\x1c\x65nable_automatic_punctuation\x18\x11 \x01(\x08\x12\x39\n\x0bphrase_sets\x18\x14 \x03(\tB$\xfa\x41!\n\x1fspeech.googleapis.com/PhraseSet\x12)\n!opt_out_conformer_model_migration\x18\x1a \x01(\x08\"p\n\x14VoiceSelectionParams\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x45\n\x0bssml_gender\x18\x02 \x01(\x0e\x32+.google.cloud.dialogflow.v2.SsmlVoiceGenderB\x03\xe0\x41\x01\"\xcc\x01\n\x16SynthesizeSpeechConfig\x12\x1a\n\rspeaking_rate\x18\x01 \x01(\x01\x42\x03\xe0\x41\x01\x12\x12\n\x05pitch\x18\x02 \x01(\x01\x42\x03\xe0\x41\x01\x12\x1b\n\x0evolume_gain_db\x18\x03 \x01(\x01\x42\x03\xe0\x41\x01\x12\x1f\n\x12\x65\x66\x66\x65\x63ts_profile_id\x18\x05 \x03(\tB\x03\xe0\x41\x01\x12\x44\n\x05voice\x18\x04 \x01(\x0b\x32\x30.google.cloud.dialogflow.v2.VoiceSelectionParamsB\x03\xe0\x41\x01\"\xd2\x01\n\x11OutputAudioConfig\x12L\n\x0e\x61udio_encoding\x18\x01 \x01(\x0e\x32/.google.cloud.dialogflow.v2.OutputAudioEncodingB\x03\xe0\x41\x02\x12\x19\n\x11sample_rate_hertz\x18\x02 \x01(\x05\x12T\n\x18synthesize_speech_config\x18\x03 \x01(\x0b\x32\x32.google.cloud.dialogflow.v2.SynthesizeSpeechConfig\"U\n\x13TelephonyDtmfEvents\x12>\n\x0b\x64tmf_events\x18\x01 \x03(\x0e\x32).google.cloud.dialogflow.v2.TelephonyDtmf\"\xe2\x02\n\x12SpeechToTextConfig\x12L\n\x14speech_model_variant\x18\x01 \x01(\x0e\x32..google.cloud.dialogflow.v2.SpeechModelVariant\x12\r\n\x05model\x18\x02 \x01(\t\x12\x39\n\x0bphrase_sets\x18\x04 \x03(\tB$\xfa\x41!\n\x1fspeech.googleapis.com/PhraseSet\x12\x41\n\x0e\x61udio_encoding\x18\x06 \x01(\x0e\x32).google.cloud.dialogflow.v2.AudioEncoding\x12\x19\n\x11sample_rate_hertz\x18\x07 \x01(\x05\x12\x15\n\rlanguage_code\x18\x08 \x01(\t\x12\x18\n\x10\x65nable_word_info\x18\t \x01(\x08\x12%\n\x1duse_timeout_based_endpointing\x18\x0b \x01(\x08*\x94\x02\n\rTelephonyDtmf\x12\x1e\n\x1aTELEPHONY_DTMF_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x44TMF_ONE\x10\x01\x12\x0c\n\x08\x44TMF_TWO\x10\x02\x12\x0e\n\nDTMF_THREE\x10\x03\x12\r\n\tDTMF_FOUR\x10\x04\x12\r\n\tDTMF_FIVE\x10\x05\x12\x0c\n\x08\x44TMF_SIX\x10\x06\x12\x0e\n\nDTMF_SEVEN\x10\x07\x12\x0e\n\nDTMF_EIGHT\x10\x08\x12\r\n\tDTMF_NINE\x10\t\x12\r\n\tDTMF_ZERO\x10\n\x12\n\n\x06\x44TMF_A\x10\x0b\x12\n\n\x06\x44TMF_B\x10\x0c\x12\n\n\x06\x44TMF_C\x10\r\x12\n\n\x06\x44TMF_D\x10\x0e\x12\r\n\tDTMF_STAR\x10\x0f\x12\x0e\n\nDTMF_POUND\x10\x10*\x94\x02\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\x12\x17\n\x13\x41UDIO_ENCODING_ALAW\x10\x08*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*\x8c\x02\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\x12\x1e\n\x1aOUTPUT_AUDIO_ENCODING_ALAW\x10\x06\x42\xd3\x02\n\x1e\x63om.google.cloud.dialogflow.v2B\x10\x41udioConfigProtoP\x01Z>cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dialogflowpb\xa2\x02\x02\x44\x46\xaa\x02\x1aGoogle.Cloud.Dialogflow.V2\xea\x41U\n\x1b\x61utoml.googleapis.com/Model\x12\x36projects/{project}/locations/{location}/models/{model}\xea\x41\x62\n\x1fspeech.googleapis.com/PhraseSet\x12?projects/{project}/locations/{location}/phraseSets/{phrase_set}b\x06proto3"
12
+ descriptor_data = "\n-google/cloud/dialogflow/v2/audio_config.proto\x12\x1agoogle.cloud.dialogflow.v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/duration.proto\"9\n\rSpeechContext\x12\x14\n\x07phrases\x18\x01 \x03(\tB\x03\xe0\x41\x01\x12\x12\n\x05\x62oost\x18\x02 \x01(\x02\x42\x03\xe0\x41\x01\"\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\"\xb6\x04\n\x10InputAudioConfig\x12\x46\n\x0e\x61udio_encoding\x18\x01 \x01(\x0e\x32).google.cloud.dialogflow.v2.AudioEncodingB\x03\xe0\x41\x02\x12\x1e\n\x11sample_rate_hertz\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02\x12\x1a\n\rlanguage_code\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x10\x65nable_word_info\x18\r \x01(\x08\x12\x18\n\x0cphrase_hints\x18\x04 \x03(\tB\x02\x18\x01\x12\x42\n\x0fspeech_contexts\x18\x0b \x03(\x0b\x32).google.cloud.dialogflow.v2.SpeechContext\x12\r\n\x05model\x18\x07 \x01(\t\x12\x45\n\rmodel_variant\x18\n \x01(\x0e\x32..google.cloud.dialogflow.v2.SpeechModelVariant\x12\x18\n\x10single_utterance\x18\x08 \x01(\x08\x12*\n\"disable_no_speech_recognized_event\x18\x0e \x01(\x08\x12$\n\x1c\x65nable_automatic_punctuation\x18\x11 \x01(\x08\x12\x39\n\x0bphrase_sets\x18\x14 \x03(\tB$\xfa\x41!\n\x1fspeech.googleapis.com/PhraseSet\x12)\n!opt_out_conformer_model_migration\x18\x1a \x01(\x08\"p\n\x14VoiceSelectionParams\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x45\n\x0bssml_gender\x18\x02 \x01(\x0e\x32+.google.cloud.dialogflow.v2.SsmlVoiceGenderB\x03\xe0\x41\x01\"\xa0\x02\n\x16SynthesizeSpeechConfig\x12\x1a\n\rspeaking_rate\x18\x01 \x01(\x01\x42\x03\xe0\x41\x01\x12\x12\n\x05pitch\x18\x02 \x01(\x01\x42\x03\xe0\x41\x01\x12\x1b\n\x0evolume_gain_db\x18\x03 \x01(\x01\x42\x03\xe0\x41\x01\x12\x1f\n\x12\x65\x66\x66\x65\x63ts_profile_id\x18\x05 \x03(\tB\x03\xe0\x41\x01\x12\x44\n\x05voice\x18\x04 \x01(\x0b\x32\x30.google.cloud.dialogflow.v2.VoiceSelectionParamsB\x03\xe0\x41\x01\x12R\n\x0epronunciations\x18\x06 \x03(\x0b\x32\x35.google.cloud.dialogflow.v2.CustomPronunciationParamsB\x03\xe0\x41\x01\"\x96\x02\n\x19\x43ustomPronunciationParams\x12\x0e\n\x06phrase\x18\x01 \x01(\t\x12\x61\n\x11phonetic_encoding\x18\x02 \x01(\x0e\x32\x46.google.cloud.dialogflow.v2.CustomPronunciationParams.PhoneticEncoding\x12\x15\n\rpronunciation\x18\x03 \x01(\t\"o\n\x10PhoneticEncoding\x12!\n\x1dPHONETIC_ENCODING_UNSPECIFIED\x10\x00\x12\x19\n\x15PHONETIC_ENCODING_IPA\x10\x01\x12\x1d\n\x19PHONETIC_ENCODING_X_SAMPA\x10\x02\"\xd2\x01\n\x11OutputAudioConfig\x12L\n\x0e\x61udio_encoding\x18\x01 \x01(\x0e\x32/.google.cloud.dialogflow.v2.OutputAudioEncodingB\x03\xe0\x41\x02\x12\x19\n\x11sample_rate_hertz\x18\x02 \x01(\x05\x12T\n\x18synthesize_speech_config\x18\x03 \x01(\x0b\x32\x32.google.cloud.dialogflow.v2.SynthesizeSpeechConfig\"U\n\x13TelephonyDtmfEvents\x12>\n\x0b\x64tmf_events\x18\x01 \x03(\x0e\x32).google.cloud.dialogflow.v2.TelephonyDtmf\"\xe2\x02\n\x12SpeechToTextConfig\x12L\n\x14speech_model_variant\x18\x01 \x01(\x0e\x32..google.cloud.dialogflow.v2.SpeechModelVariant\x12\r\n\x05model\x18\x02 \x01(\t\x12\x39\n\x0bphrase_sets\x18\x04 \x03(\tB$\xfa\x41!\n\x1fspeech.googleapis.com/PhraseSet\x12\x41\n\x0e\x61udio_encoding\x18\x06 \x01(\x0e\x32).google.cloud.dialogflow.v2.AudioEncoding\x12\x19\n\x11sample_rate_hertz\x18\x07 \x01(\x05\x12\x15\n\rlanguage_code\x18\x08 \x01(\t\x12\x18\n\x10\x65nable_word_info\x18\t \x01(\x08\x12%\n\x1duse_timeout_based_endpointing\x18\x0b \x01(\x08*\x94\x02\n\rTelephonyDtmf\x12\x1e\n\x1aTELEPHONY_DTMF_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x44TMF_ONE\x10\x01\x12\x0c\n\x08\x44TMF_TWO\x10\x02\x12\x0e\n\nDTMF_THREE\x10\x03\x12\r\n\tDTMF_FOUR\x10\x04\x12\r\n\tDTMF_FIVE\x10\x05\x12\x0c\n\x08\x44TMF_SIX\x10\x06\x12\x0e\n\nDTMF_SEVEN\x10\x07\x12\x0e\n\nDTMF_EIGHT\x10\x08\x12\r\n\tDTMF_NINE\x10\t\x12\r\n\tDTMF_ZERO\x10\n\x12\n\n\x06\x44TMF_A\x10\x0b\x12\n\n\x06\x44TMF_B\x10\x0c\x12\n\n\x06\x44TMF_C\x10\r\x12\n\n\x06\x44TMF_D\x10\x0e\x12\r\n\tDTMF_STAR\x10\x0f\x12\x0e\n\nDTMF_POUND\x10\x10*\x94\x02\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\x12\x17\n\x13\x41UDIO_ENCODING_ALAW\x10\x08*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*\x8c\x02\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\x12\x1e\n\x1aOUTPUT_AUDIO_ENCODING_ALAW\x10\x06\x42\xd3\x02\n\x1e\x63om.google.cloud.dialogflow.v2B\x10\x41udioConfigProtoP\x01Z>cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dialogflowpb\xa2\x02\x02\x44\x46\xaa\x02\x1aGoogle.Cloud.Dialogflow.V2\xea\x41U\n\x1b\x61utoml.googleapis.com/Model\x12\x36projects/{project}/locations/{location}/models/{model}\xea\x41\x62\n\x1fspeech.googleapis.com/PhraseSet\x12?projects/{project}/locations/{location}/phraseSets/{phrase_set}b\x06proto3"
13
13
 
14
14
  pool = Google::Protobuf::DescriptorPool.generated_pool
15
15
 
@@ -45,6 +45,8 @@ module Google
45
45
  InputAudioConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.InputAudioConfig").msgclass
46
46
  VoiceSelectionParams = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.VoiceSelectionParams").msgclass
47
47
  SynthesizeSpeechConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.SynthesizeSpeechConfig").msgclass
48
+ CustomPronunciationParams = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.CustomPronunciationParams").msgclass
49
+ CustomPronunciationParams::PhoneticEncoding = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.CustomPronunciationParams.PhoneticEncoding").enummodule
48
50
  OutputAudioConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.OutputAudioConfig").msgclass
49
51
  TelephonyDtmfEvents = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.TelephonyDtmfEvents").msgclass
50
52
  SpeechToTextConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.SpeechToTextConfig").msgclass
@@ -791,8 +791,6 @@ module Google
791
791
  # @return [::String,nil]
792
792
  # @!attribute [rw] credentials
793
793
  # Credentials to send with calls. You may provide any of the following types:
794
- # * (`String`) The path to a service account key file in JSON format
795
- # * (`Hash`) A service account key as a Hash
796
794
  # * (`Google::Auth::Credentials`) A googleauth credentials object
797
795
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
798
796
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -801,7 +799,26 @@ module Google
801
799
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
802
800
  # * (`nil`) indicating no credentials
803
801
  #
804
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
802
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
803
+ # is deprecated. Providing an unvalidated credential configuration to
804
+ # Google APIs can compromise the security of your systems and data.
805
+ #
806
+ # @example
807
+ #
808
+ # # The recommended way to provide credentials is to use the `make_creds` method
809
+ # # on the appropriate credentials class for your environment.
810
+ #
811
+ # require "googleauth"
812
+ #
813
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
814
+ # json_key_io: ::File.open("/path/to/keyfile.json")
815
+ # )
816
+ #
817
+ # client = ::Google::Cloud::Dialogflow::V2::Contexts::Client.new do |config|
818
+ # config.credentials = credentials
819
+ # end
820
+ #
821
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
805
822
  # external source for authentication to Google Cloud, you must validate it before
806
823
  # providing it to a Google API client library. Providing an unvalidated credential
807
824
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -761,8 +761,6 @@ module Google
761
761
  # @return [::String,nil]
762
762
  # @!attribute [rw] credentials
763
763
  # Credentials to send with calls. You may provide any of the following types:
764
- # * (`String`) The path to a service account key file in JSON format
765
- # * (`Hash`) A service account key as a Hash
766
764
  # * (`Google::Auth::Credentials`) A googleauth credentials object
767
765
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
768
766
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -771,7 +769,26 @@ module Google
771
769
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
772
770
  # * (`nil`) indicating no credentials
773
771
  #
774
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
772
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
773
+ # is deprecated. Providing an unvalidated credential configuration to
774
+ # Google APIs can compromise the security of your systems and data.
775
+ #
776
+ # @example
777
+ #
778
+ # # The recommended way to provide credentials is to use the `make_creds` method
779
+ # # on the appropriate credentials class for your environment.
780
+ #
781
+ # require "googleauth"
782
+ #
783
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
784
+ # json_key_io: ::File.open("/path/to/keyfile.json")
785
+ # )
786
+ #
787
+ # client = ::Google::Cloud::Dialogflow::V2::ConversationDatasets::Client.new do |config|
788
+ # config.credentials = credentials
789
+ # end
790
+ #
791
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
775
792
  # external source for authentication to Google Cloud, you must validate it before
776
793
  # providing it to a Google API client library. Providing an unvalidated credential
777
794
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -642,8 +642,6 @@ module Google
642
642
  # @return [::String,nil]
643
643
  # @!attribute [rw] credentials
644
644
  # Credentials to send with calls. You may provide any of the following types:
645
- # * (`String`) The path to a service account key file in JSON format
646
- # * (`Hash`) A service account key as a Hash
647
645
  # * (`Google::Auth::Credentials`) A googleauth credentials object
648
646
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
649
647
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -652,7 +650,26 @@ module Google
652
650
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
653
651
  # * (`nil`) indicating no credentials
654
652
  #
655
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
653
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
654
+ # is deprecated. Providing an unvalidated credential configuration to
655
+ # Google APIs can compromise the security of your systems and data.
656
+ #
657
+ # @example
658
+ #
659
+ # # The recommended way to provide credentials is to use the `make_creds` method
660
+ # # on the appropriate credentials class for your environment.
661
+ #
662
+ # require "googleauth"
663
+ #
664
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
665
+ # json_key_io: ::File.open("/path/to/keyfile.json")
666
+ # )
667
+ #
668
+ # client = ::Google::Longrunning::Operations::Client.new do |config|
669
+ # config.credentials = credentials
670
+ # end
671
+ #
672
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
656
673
  # external source for authentication to Google Cloud, you must validate it before
657
674
  # providing it to a Google API client library. Providing an unvalidated credential
658
675
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -4,12 +4,14 @@
4
4
 
5
5
  require 'google/protobuf'
6
6
 
7
+ require 'google/api/field_behavior_pb'
8
+ require 'google/api/resource_pb'
7
9
  require 'google/cloud/dialogflow/v2/participant_pb'
8
10
  require 'google/cloud/dialogflow/v2/session_pb'
9
11
  require 'google/rpc/status_pb'
10
12
 
11
13
 
12
- descriptor_data = "\n3google/cloud/dialogflow/v2/conversation_event.proto\x12\x1agoogle.cloud.dialogflow.v2\x1a,google/cloud/dialogflow/v2/participant.proto\x1a(google/cloud/dialogflow/v2/session.proto\x1a\x17google/rpc/status.proto\"\xff\x03\n\x11\x43onversationEvent\x12\x14\n\x0c\x63onversation\x18\x01 \x01(\t\x12@\n\x04type\x18\x02 \x01(\x0e\x32\x32.google.cloud.dialogflow.v2.ConversationEvent.Type\x12(\n\x0c\x65rror_status\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12\x42\n\x13new_message_payload\x18\x04 \x01(\x0b\x32#.google.cloud.dialogflow.v2.MessageH\x00\x12`\n\x1enew_recognition_result_payload\x18\x05 \x01(\x0b\x32\x36.google.cloud.dialogflow.v2.StreamingRecognitionResultH\x00\"\xb6\x01\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x18\n\x14\x43ONVERSATION_STARTED\x10\x01\x12\x19\n\x15\x43ONVERSATION_FINISHED\x10\x02\x12\x1d\n\x19HUMAN_INTERVENTION_NEEDED\x10\x03\x12\x0f\n\x0bNEW_MESSAGE\x10\x05\x12\x1a\n\x16NEW_RECOGNITION_RESULT\x10\x07\x12\x17\n\x13UNRECOVERABLE_ERROR\x10\x04\x42\t\n\x07payloadB\x9c\x01\n\x1e\x63om.google.cloud.dialogflow.v2B\x16\x43onversationEventProtoP\x01Z>cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dialogflowpb\xa2\x02\x02\x44\x46\xaa\x02\x1aGoogle.Cloud.Dialogflow.V2b\x06proto3"
14
+ descriptor_data = "\n3google/cloud/dialogflow/v2/conversation_event.proto\x12\x1agoogle.cloud.dialogflow.v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a,google/cloud/dialogflow/v2/participant.proto\x1a(google/cloud/dialogflow/v2/session.proto\x1a\x17google/rpc/status.proto\"\xff\x03\n\x11\x43onversationEvent\x12\x14\n\x0c\x63onversation\x18\x01 \x01(\t\x12@\n\x04type\x18\x02 \x01(\x0e\x32\x32.google.cloud.dialogflow.v2.ConversationEvent.Type\x12(\n\x0c\x65rror_status\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12\x42\n\x13new_message_payload\x18\x04 \x01(\x0b\x32#.google.cloud.dialogflow.v2.MessageH\x00\x12`\n\x1enew_recognition_result_payload\x18\x05 \x01(\x0b\x32\x36.google.cloud.dialogflow.v2.StreamingRecognitionResultH\x00\"\xb6\x01\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x18\n\x14\x43ONVERSATION_STARTED\x10\x01\x12\x19\n\x15\x43ONVERSATION_FINISHED\x10\x02\x12\x1d\n\x19HUMAN_INTERVENTION_NEEDED\x10\x03\x12\x0f\n\x0bNEW_MESSAGE\x10\x05\x12\x1a\n\x16NEW_RECOGNITION_RESULT\x10\x07\x12\x17\n\x13UNRECOVERABLE_ERROR\x10\x04\x42\t\n\x07payloadB\x9c\x01\n\x1e\x63om.google.cloud.dialogflow.v2B\x16\x43onversationEventProtoP\x01Z>cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dialogflowpb\xa2\x02\x02\x44\x46\xaa\x02\x1aGoogle.Cloud.Dialogflow.V2b\x06proto3"
13
15
 
14
16
  pool = Google::Protobuf::DescriptorPool.generated_pool
15
17
 
@@ -13,7 +13,7 @@ require 'google/protobuf/empty_pb'
13
13
  require 'google/protobuf/timestamp_pb'
14
14
 
15
15
 
16
- descriptor_data = "\n3google/cloud/dialogflow/v2/conversation_model.proto\x12\x1agoogle.cloud.dialogflow.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x8d\x08\n\x11\x43onversationModel\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12?\n\x08\x64\x61tasets\x18\x04 \x03(\x0b\x32(.google.cloud.dialogflow.v2.InputDatasetB\x03\xe0\x41\x02\x12G\n\x05state\x18\x07 \x01(\x0e\x32\x33.google.cloud.dialogflow.v2.ConversationModel.StateB\x03\xe0\x41\x03\x12\x15\n\rlanguage_code\x18\x13 \x01(\t\x12g\n!article_suggestion_model_metadata\x18\x08 \x01(\x0b\x32:.google.cloud.dialogflow.v2.ArticleSuggestionModelMetadataH\x00\x12Y\n\x1asmart_reply_model_metadata\x18\t \x01(\x0b\x32\x33.google.cloud.dialogflow.v2.SmartReplyModelMetadataH\x00\x12\x1f\n\rsatisfies_pzs\x18\x19 \x01(\x08\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x1f\n\rsatisfies_pzi\x18\x1a \x01(\x08\x42\x03\xe0\x41\x03H\x02\x88\x01\x01\"\x91\x01\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\x0e\n\nUNDEPLOYED\x10\x02\x12\r\n\tDEPLOYING\x10\x03\x12\x0c\n\x08\x44\x45PLOYED\x10\x04\x12\x0f\n\x0bUNDEPLOYING\x10\x05\x12\x0c\n\x08\x44\x45LETING\x10\x06\x12\n\n\x06\x46\x41ILED\x10\x07\x12\x0b\n\x07PENDING\x10\x08\"g\n\tModelType\x12\x1a\n\x16MODEL_TYPE_UNSPECIFIED\x10\x00\x12\"\n\x1eSMART_REPLY_DUAL_ENCODER_MODEL\x10\x02\x12\x1a\n\x16SMART_REPLY_BERT_MODEL\x10\x06:\xbe\x01\xea\x41\xba\x01\n+dialogflow.googleapis.com/ConversationModel\x12Oprojects/{project}/locations/{location}/conversationModels/{conversation_model}\x12:projects/{project}/conversationModels/{conversation_model}B\x10\n\x0emodel_metadataB\x10\n\x0e_satisfies_pzsB\x10\n\x0e_satisfies_pzi\"\xcf\x04\n\x1b\x43onversationModelEvaluation\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12L\n\x11\x65valuation_config\x18\x06 \x01(\x0b\x32,.google.cloud.dialogflow.v2.EvaluationConfigB\x03\xe0\x41\x01\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12Q\n\x13smart_reply_metrics\x18\x05 \x01(\x0b\x32-.google.cloud.dialogflow.v2.SmartReplyMetricsB\x03\xe0\x41\x03H\x00\x12(\n\x1braw_human_eval_template_csv\x18\x08 \x01(\tB\x03\xe0\x41\x03:\xfa\x01\xea\x41\xf6\x01\n5dialogflow.googleapis.com/ConversationModelEvaluation\x12Sprojects/{project}/conversationModels/{conversation_model}/evaluations/{evaluation}\x12hprojects/{project}/locations/{location}/conversationModels/{conversation_model}/evaluations/{evaluation}B\t\n\x07metrics\"\x9c\x04\n\x10\x45valuationConfig\x12?\n\x08\x64\x61tasets\x18\x03 \x03(\x0b\x32(.google.cloud.dialogflow.v2.InputDatasetB\x03\xe0\x41\x02\x12[\n\x12smart_reply_config\x18\x02 \x01(\x0b\x32=.google.cloud.dialogflow.v2.EvaluationConfig.SmartReplyConfigH\x00\x12_\n\x14smart_compose_config\x18\x04 \x01(\x0b\x32?.google.cloud.dialogflow.v2.EvaluationConfig.SmartComposeConfigH\x00\x1av\n\x10SmartReplyConfig\x12\x43\n\x12\x61llowlist_document\x18\x01 \x01(\tB\'\xfa\x41$\n\"dialogflow.googleapis.com/Document\x12\x1d\n\x10max_result_count\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02\x1ax\n\x12SmartComposeConfig\x12\x43\n\x12\x61llowlist_document\x18\x01 \x01(\tB\'\xfa\x41$\n\"dialogflow.googleapis.com/Document\x12\x1d\n\x10max_result_count\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02\x42\x17\n\x15model_specific_config\"V\n\x0cInputDataset\x12\x46\n\x07\x64\x61taset\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-dialogflow.googleapis.com/ConversationDataset\"{\n\x1e\x41rticleSuggestionModelMetadata\x12Y\n\x13training_model_type\x18\x03 \x01(\x0e\x32\x37.google.cloud.dialogflow.v2.ConversationModel.ModelTypeB\x03\xe0\x41\x01\"t\n\x17SmartReplyModelMetadata\x12Y\n\x13training_model_type\x18\x06 \x01(\x0e\x32\x37.google.cloud.dialogflow.v2.ConversationModel.ModelTypeB\x03\xe0\x41\x01\"\xc7\x01\n\x11SmartReplyMetrics\x12\x1a\n\x12\x61llowlist_coverage\x18\x01 \x01(\x02\x12P\n\rtop_n_metrics\x18\x02 \x03(\x0b\x32\x39.google.cloud.dialogflow.v2.SmartReplyMetrics.TopNMetrics\x12\x1a\n\x12\x63onversation_count\x18\x03 \x01(\x03\x1a(\n\x0bTopNMetrics\x12\t\n\x01n\x18\x01 \x01(\x05\x12\x0e\n\x06recall\x18\x02 \x01(\x02\"\x80\x01\n\x1e\x43reateConversationModelRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12N\n\x12\x63onversation_model\x18\x02 \x01(\x0b\x32-.google.cloud.dialogflow.v2.ConversationModelB\x03\xe0\x41\x02\"0\n\x1bGetConversationModelRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\"e\n\x1dListConversationModelsRequest\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x85\x01\n\x1eListConversationModelsResponse\x12J\n\x13\x63onversation_models\x18\x01 \x03(\x0b\x32-.google.cloud.dialogflow.v2.ConversationModel\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"3\n\x1e\x44\x65leteConversationModelRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\"3\n\x1e\x44\x65ployConversationModelRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\"5\n UndeployConversationModelRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\":\n%GetConversationModelEvaluationRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\"o\n\'ListConversationModelEvaluationsRequest\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\xa4\x01\n(ListConversationModelEvaluationsResponse\x12_\n\x1e\x63onversation_model_evaluations\x18\x01 \x03(\x0b\x32\x37.google.cloud.dialogflow.v2.ConversationModelEvaluation\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xde\x01\n(CreateConversationModelEvaluationRequest\x12M\n\x06parent\x18\x01 \x01(\tB=\xe0\x41\x02\xfa\x41\x37\x12\x35\x64ialogflow.googleapis.com/ConversationModelEvaluation\x12\x63\n\x1d\x63onversation_model_evaluation\x18\x02 \x01(\x0b\x32\x37.google.cloud.dialogflow.v2.ConversationModelEvaluationB\x03\xe0\x41\x02\"\xc7\x02\n(CreateConversationModelOperationMetadata\x12\x1a\n\x12\x63onversation_model\x18\x01 \x01(\t\x12Y\n\x05state\x18\x02 \x01(\x0e\x32J.google.cloud.dialogflow.v2.CreateConversationModelOperationMetadata.State\x12/\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"s\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\r\n\tSUCCEEDED\x10\x02\x12\n\n\x06\x46\x41ILED\x10\x03\x12\r\n\tCANCELLED\x10\x04\x12\x0e\n\nCANCELLING\x10\x05\x12\x0c\n\x08TRAINING\x10\x06\"w\n(DeployConversationModelOperationMetadata\x12\x1a\n\x12\x63onversation_model\x18\x01 \x01(\t\x12/\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"y\n*UndeployConversationModelOperationMetadata\x12\x1a\n\x12\x63onversation_model\x18\x01 \x01(\t\x12/\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"w\n(DeleteConversationModelOperationMetadata\x12\x1a\n\x12\x63onversation_model\x18\x01 \x01(\t\x12/\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xf6\x02\n2CreateConversationModelEvaluationOperationMetadata\x12%\n\x1d\x63onversation_model_evaluation\x18\x01 \x01(\t\x12\x1a\n\x12\x63onversation_model\x18\x04 \x01(\t\x12\x63\n\x05state\x18\x02 \x01(\x0e\x32T.google.cloud.dialogflow.v2.CreateConversationModelEvaluationOperationMetadata.State\x12/\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"g\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x10\n\x0cINITIALIZING\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\r\n\tCANCELLED\x10\x03\x12\r\n\tSUCCEEDED\x10\x04\x12\n\n\x06\x46\x41ILED\x10\x05\x32\xfe\x16\n\x12\x43onversationModels\x12\xe8\x02\n\x17\x43reateConversationModel\x12:.google.cloud.dialogflow.v2.CreateConversationModelRequest\x1a\x1d.google.longrunning.Operation\"\xf1\x01\xca\x41=\n\x11\x43onversationModel\x12(CreateConversationModelOperationMetadata\xda\x41\x19parent,conversation_model\x82\xd3\xe4\x93\x02\x8e\x01\"*/v2/{parent=projects/*}/conversationModels:\x12\x63onversation_modelZL\"6/v2/{parent=projects/*/locations/*}/conversationModels:\x12\x63onversation_model\x12\xf3\x01\n\x14GetConversationModel\x12\x37.google.cloud.dialogflow.v2.GetConversationModelRequest\x1a-.google.cloud.dialogflow.v2.ConversationModel\"s\xda\x41\x04name\x82\xd3\xe4\x93\x02\x66\x12*/v2/{name=projects/*/conversationModels/*}Z8\x12\x36/v2/{name=projects/*/locations/*/conversationModels/*}\x12\x86\x02\n\x16ListConversationModels\x12\x39.google.cloud.dialogflow.v2.ListConversationModelsRequest\x1a:.google.cloud.dialogflow.v2.ListConversationModelsResponse\"u\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x66\x12*/v2/{parent=projects/*}/conversationModelsZ8\x12\x36/v2/{parent=projects/*/locations/*}/conversationModels\x12\xae\x02\n\x17\x44\x65leteConversationModel\x12:.google.cloud.dialogflow.v2.DeleteConversationModelRequest\x1a\x1d.google.longrunning.Operation\"\xb7\x01\xca\x41\x41\n\x15google.protobuf.Empty\x12(DeleteConversationModelOperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x66**/v2/{name=projects/*/conversationModels/*}Z8*6/v2/{name=projects/*/locations/*/conversationModels/*}\x12\xbb\x02\n\x17\x44\x65ployConversationModel\x12:.google.cloud.dialogflow.v2.DeployConversationModelRequest\x1a\x1d.google.longrunning.Operation\"\xc4\x01\xca\x41\x41\n\x15google.protobuf.Empty\x12(DeployConversationModelOperationMetadata\x82\xd3\xe4\x93\x02z\"1/v2/{name=projects/*/conversationModels/*}:deploy:\x01*ZB\"=/v2/{name=projects/*/locations/*/conversationModels/*}:deploy:\x01*\x12\xc5\x02\n\x19UndeployConversationModel\x12<.google.cloud.dialogflow.v2.UndeployConversationModelRequest\x1a\x1d.google.longrunning.Operation\"\xca\x01\xca\x41\x43\n\x15google.protobuf.Empty\x12*UndeployConversationModelOperationMetadata\x82\xd3\xe4\x93\x02~\"3/v2/{name=projects/*/conversationModels/*}:undeploy:\x01*ZD\"?/v2/{name=projects/*/locations/*/conversationModels/*}:undeploy:\x01*\x12\xaf\x02\n\x1eGetConversationModelEvaluation\x12\x41.google.cloud.dialogflow.v2.GetConversationModelEvaluationRequest\x1a\x37.google.cloud.dialogflow.v2.ConversationModelEvaluation\"\x90\x01\xda\x41\x04name\x82\xd3\xe4\x93\x02\x82\x01\x12\x38/v2/{name=projects/*/conversationModels/*/evaluations/*}ZF\x12\x44/v2/{name=projects/*/locations/*/conversationModels/*/evaluations/*}\x12\xc2\x02\n ListConversationModelEvaluations\x12\x43.google.cloud.dialogflow.v2.ListConversationModelEvaluationsRequest\x1a\x44.google.cloud.dialogflow.v2.ListConversationModelEvaluationsResponse\"\x92\x01\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x82\x01\x12\x38/v2/{parent=projects/*/conversationModels/*}/evaluationsZF\x12\x44/v2/{parent=projects/*/locations/*/conversationModels/*}/evaluations\x12\xd5\x02\n!CreateConversationModelEvaluation\x12\x44.google.cloud.dialogflow.v2.CreateConversationModelEvaluationRequest\x1a\x1d.google.longrunning.Operation\"\xca\x01\xca\x41Q\n\x1b\x43onversationModelEvaluation\x12\x32\x43reateConversationModelEvaluationOperationMetadata\xda\x41$parent,conversation_model_evaluation\x82\xd3\xe4\x93\x02I\"D/v2/{parent=projects/*/locations/*/conversationModels/*}/evaluations:\x01*\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\x9c\x01\n\x1e\x63om.google.cloud.dialogflow.v2B\x16\x43onversationModelProtoP\x01Z>cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dialogflowpb\xa2\x02\x02\x44\x46\xaa\x02\x1aGoogle.Cloud.Dialogflow.V2b\x06proto3"
16
+ descriptor_data = "\n3google/cloud/dialogflow/v2/conversation_model.proto\x12\x1agoogle.cloud.dialogflow.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x8d\x08\n\x11\x43onversationModel\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12?\n\x08\x64\x61tasets\x18\x04 \x03(\x0b\x32(.google.cloud.dialogflow.v2.InputDatasetB\x03\xe0\x41\x02\x12G\n\x05state\x18\x07 \x01(\x0e\x32\x33.google.cloud.dialogflow.v2.ConversationModel.StateB\x03\xe0\x41\x03\x12\x15\n\rlanguage_code\x18\x13 \x01(\t\x12g\n!article_suggestion_model_metadata\x18\x08 \x01(\x0b\x32:.google.cloud.dialogflow.v2.ArticleSuggestionModelMetadataH\x00\x12Y\n\x1asmart_reply_model_metadata\x18\t \x01(\x0b\x32\x33.google.cloud.dialogflow.v2.SmartReplyModelMetadataH\x00\x12\x1f\n\rsatisfies_pzs\x18\x19 \x01(\x08\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x1f\n\rsatisfies_pzi\x18\x1a \x01(\x08\x42\x03\xe0\x41\x03H\x02\x88\x01\x01\"\x91\x01\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\x0e\n\nUNDEPLOYED\x10\x02\x12\r\n\tDEPLOYING\x10\x03\x12\x0c\n\x08\x44\x45PLOYED\x10\x04\x12\x0f\n\x0bUNDEPLOYING\x10\x05\x12\x0c\n\x08\x44\x45LETING\x10\x06\x12\n\n\x06\x46\x41ILED\x10\x07\x12\x0b\n\x07PENDING\x10\x08\"g\n\tModelType\x12\x1a\n\x16MODEL_TYPE_UNSPECIFIED\x10\x00\x12\"\n\x1eSMART_REPLY_DUAL_ENCODER_MODEL\x10\x02\x12\x1a\n\x16SMART_REPLY_BERT_MODEL\x10\x06:\xbe\x01\xea\x41\xba\x01\n+dialogflow.googleapis.com/ConversationModel\x12Oprojects/{project}/locations/{location}/conversationModels/{conversation_model}\x12:projects/{project}/conversationModels/{conversation_model}B\x10\n\x0emodel_metadataB\x10\n\x0e_satisfies_pzsB\x10\n\x0e_satisfies_pzi\"\xcf\x04\n\x1b\x43onversationModelEvaluation\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12L\n\x11\x65valuation_config\x18\x06 \x01(\x0b\x32,.google.cloud.dialogflow.v2.EvaluationConfigB\x03\xe0\x41\x01\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12Q\n\x13smart_reply_metrics\x18\x05 \x01(\x0b\x32-.google.cloud.dialogflow.v2.SmartReplyMetricsB\x03\xe0\x41\x03H\x00\x12(\n\x1braw_human_eval_template_csv\x18\x08 \x01(\tB\x03\xe0\x41\x03:\xfa\x01\xea\x41\xf6\x01\n5dialogflow.googleapis.com/ConversationModelEvaluation\x12Sprojects/{project}/conversationModels/{conversation_model}/evaluations/{evaluation}\x12hprojects/{project}/locations/{location}/conversationModels/{conversation_model}/evaluations/{evaluation}B\t\n\x07metrics\"\x9c\x04\n\x10\x45valuationConfig\x12?\n\x08\x64\x61tasets\x18\x03 \x03(\x0b\x32(.google.cloud.dialogflow.v2.InputDatasetB\x03\xe0\x41\x02\x12[\n\x12smart_reply_config\x18\x02 \x01(\x0b\x32=.google.cloud.dialogflow.v2.EvaluationConfig.SmartReplyConfigH\x00\x12_\n\x14smart_compose_config\x18\x04 \x01(\x0b\x32?.google.cloud.dialogflow.v2.EvaluationConfig.SmartComposeConfigH\x00\x1av\n\x10SmartReplyConfig\x12\x43\n\x12\x61llowlist_document\x18\x01 \x01(\tB\'\xfa\x41$\n\"dialogflow.googleapis.com/Document\x12\x1d\n\x10max_result_count\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02\x1ax\n\x12SmartComposeConfig\x12\x43\n\x12\x61llowlist_document\x18\x01 \x01(\tB\'\xfa\x41$\n\"dialogflow.googleapis.com/Document\x12\x1d\n\x10max_result_count\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02\x42\x17\n\x15model_specific_config\"V\n\x0cInputDataset\x12\x46\n\x07\x64\x61taset\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-dialogflow.googleapis.com/ConversationDataset\"{\n\x1e\x41rticleSuggestionModelMetadata\x12Y\n\x13training_model_type\x18\x03 \x01(\x0e\x32\x37.google.cloud.dialogflow.v2.ConversationModel.ModelTypeB\x03\xe0\x41\x01\"t\n\x17SmartReplyModelMetadata\x12Y\n\x13training_model_type\x18\x06 \x01(\x0e\x32\x37.google.cloud.dialogflow.v2.ConversationModel.ModelTypeB\x03\xe0\x41\x01\"\xc7\x01\n\x11SmartReplyMetrics\x12\x1a\n\x12\x61llowlist_coverage\x18\x01 \x01(\x02\x12P\n\rtop_n_metrics\x18\x02 \x03(\x0b\x32\x39.google.cloud.dialogflow.v2.SmartReplyMetrics.TopNMetrics\x12\x1a\n\x12\x63onversation_count\x18\x03 \x01(\x03\x1a(\n\x0bTopNMetrics\x12\t\n\x01n\x18\x01 \x01(\x05\x12\x0e\n\x06recall\x18\x02 \x01(\x02\"\x80\x01\n\x1e\x43reateConversationModelRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12N\n\x12\x63onversation_model\x18\x02 \x01(\x0b\x32-.google.cloud.dialogflow.v2.ConversationModelB\x03\xe0\x41\x02\"0\n\x1bGetConversationModelRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\"e\n\x1dListConversationModelsRequest\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x85\x01\n\x1eListConversationModelsResponse\x12J\n\x13\x63onversation_models\x18\x01 \x03(\x0b\x32-.google.cloud.dialogflow.v2.ConversationModel\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"3\n\x1e\x44\x65leteConversationModelRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\"3\n\x1e\x44\x65ployConversationModelRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\"5\n UndeployConversationModelRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\":\n%GetConversationModelEvaluationRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\"o\n\'ListConversationModelEvaluationsRequest\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\xa4\x01\n(ListConversationModelEvaluationsResponse\x12_\n\x1e\x63onversation_model_evaluations\x18\x01 \x03(\x0b\x32\x37.google.cloud.dialogflow.v2.ConversationModelEvaluation\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xde\x01\n(CreateConversationModelEvaluationRequest\x12M\n\x06parent\x18\x01 \x01(\tB=\xe0\x41\x02\xfa\x41\x37\x12\x35\x64ialogflow.googleapis.com/ConversationModelEvaluation\x12\x63\n\x1d\x63onversation_model_evaluation\x18\x02 \x01(\x0b\x32\x37.google.cloud.dialogflow.v2.ConversationModelEvaluationB\x03\xe0\x41\x02\"\xf6\x02\n(CreateConversationModelOperationMetadata\x12\x1a\n\x12\x63onversation_model\x18\x01 \x01(\t\x12Y\n\x05state\x18\x02 \x01(\x0e\x32J.google.cloud.dialogflow.v2.CreateConversationModelOperationMetadata.State\x12/\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12-\n\tdone_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"s\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\r\n\tSUCCEEDED\x10\x02\x12\n\n\x06\x46\x41ILED\x10\x03\x12\r\n\tCANCELLED\x10\x04\x12\x0e\n\nCANCELLING\x10\x05\x12\x0c\n\x08TRAINING\x10\x06\"\xa6\x01\n(DeployConversationModelOperationMetadata\x12\x1a\n\x12\x63onversation_model\x18\x01 \x01(\t\x12/\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12-\n\tdone_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xa8\x01\n*UndeployConversationModelOperationMetadata\x12\x1a\n\x12\x63onversation_model\x18\x01 \x01(\t\x12/\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12-\n\tdone_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xa6\x01\n(DeleteConversationModelOperationMetadata\x12\x1a\n\x12\x63onversation_model\x18\x01 \x01(\t\x12/\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12-\n\tdone_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xf6\x02\n2CreateConversationModelEvaluationOperationMetadata\x12%\n\x1d\x63onversation_model_evaluation\x18\x01 \x01(\t\x12\x1a\n\x12\x63onversation_model\x18\x04 \x01(\t\x12\x63\n\x05state\x18\x02 \x01(\x0e\x32T.google.cloud.dialogflow.v2.CreateConversationModelEvaluationOperationMetadata.State\x12/\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"g\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x10\n\x0cINITIALIZING\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\r\n\tCANCELLED\x10\x03\x12\r\n\tSUCCEEDED\x10\x04\x12\n\n\x06\x46\x41ILED\x10\x05\x32\xfe\x16\n\x12\x43onversationModels\x12\xe8\x02\n\x17\x43reateConversationModel\x12:.google.cloud.dialogflow.v2.CreateConversationModelRequest\x1a\x1d.google.longrunning.Operation\"\xf1\x01\xca\x41=\n\x11\x43onversationModel\x12(CreateConversationModelOperationMetadata\xda\x41\x19parent,conversation_model\x82\xd3\xe4\x93\x02\x8e\x01\"*/v2/{parent=projects/*}/conversationModels:\x12\x63onversation_modelZL\"6/v2/{parent=projects/*/locations/*}/conversationModels:\x12\x63onversation_model\x12\xf3\x01\n\x14GetConversationModel\x12\x37.google.cloud.dialogflow.v2.GetConversationModelRequest\x1a-.google.cloud.dialogflow.v2.ConversationModel\"s\xda\x41\x04name\x82\xd3\xe4\x93\x02\x66\x12*/v2/{name=projects/*/conversationModels/*}Z8\x12\x36/v2/{name=projects/*/locations/*/conversationModels/*}\x12\x86\x02\n\x16ListConversationModels\x12\x39.google.cloud.dialogflow.v2.ListConversationModelsRequest\x1a:.google.cloud.dialogflow.v2.ListConversationModelsResponse\"u\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x66\x12*/v2/{parent=projects/*}/conversationModelsZ8\x12\x36/v2/{parent=projects/*/locations/*}/conversationModels\x12\xae\x02\n\x17\x44\x65leteConversationModel\x12:.google.cloud.dialogflow.v2.DeleteConversationModelRequest\x1a\x1d.google.longrunning.Operation\"\xb7\x01\xca\x41\x41\n\x15google.protobuf.Empty\x12(DeleteConversationModelOperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x66**/v2/{name=projects/*/conversationModels/*}Z8*6/v2/{name=projects/*/locations/*/conversationModels/*}\x12\xbb\x02\n\x17\x44\x65ployConversationModel\x12:.google.cloud.dialogflow.v2.DeployConversationModelRequest\x1a\x1d.google.longrunning.Operation\"\xc4\x01\xca\x41\x41\n\x15google.protobuf.Empty\x12(DeployConversationModelOperationMetadata\x82\xd3\xe4\x93\x02z\"1/v2/{name=projects/*/conversationModels/*}:deploy:\x01*ZB\"=/v2/{name=projects/*/locations/*/conversationModels/*}:deploy:\x01*\x12\xc5\x02\n\x19UndeployConversationModel\x12<.google.cloud.dialogflow.v2.UndeployConversationModelRequest\x1a\x1d.google.longrunning.Operation\"\xca\x01\xca\x41\x43\n\x15google.protobuf.Empty\x12*UndeployConversationModelOperationMetadata\x82\xd3\xe4\x93\x02~\"3/v2/{name=projects/*/conversationModels/*}:undeploy:\x01*ZD\"?/v2/{name=projects/*/locations/*/conversationModels/*}:undeploy:\x01*\x12\xaf\x02\n\x1eGetConversationModelEvaluation\x12\x41.google.cloud.dialogflow.v2.GetConversationModelEvaluationRequest\x1a\x37.google.cloud.dialogflow.v2.ConversationModelEvaluation\"\x90\x01\xda\x41\x04name\x82\xd3\xe4\x93\x02\x82\x01\x12\x38/v2/{name=projects/*/conversationModels/*/evaluations/*}ZF\x12\x44/v2/{name=projects/*/locations/*/conversationModels/*/evaluations/*}\x12\xc2\x02\n ListConversationModelEvaluations\x12\x43.google.cloud.dialogflow.v2.ListConversationModelEvaluationsRequest\x1a\x44.google.cloud.dialogflow.v2.ListConversationModelEvaluationsResponse\"\x92\x01\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x82\x01\x12\x38/v2/{parent=projects/*/conversationModels/*}/evaluationsZF\x12\x44/v2/{parent=projects/*/locations/*/conversationModels/*}/evaluations\x12\xd5\x02\n!CreateConversationModelEvaluation\x12\x44.google.cloud.dialogflow.v2.CreateConversationModelEvaluationRequest\x1a\x1d.google.longrunning.Operation\"\xca\x01\xca\x41Q\n\x1b\x43onversationModelEvaluation\x12\x32\x43reateConversationModelEvaluationOperationMetadata\xda\x41$parent,conversation_model_evaluation\x82\xd3\xe4\x93\x02I\"D/v2/{parent=projects/*/locations/*/conversationModels/*}/evaluations:\x01*\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\x9c\x01\n\x1e\x63om.google.cloud.dialogflow.v2B\x16\x43onversationModelProtoP\x01Z>cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dialogflowpb\xa2\x02\x02\x44\x46\xaa\x02\x1aGoogle.Cloud.Dialogflow.V2b\x06proto3"
17
17
 
18
18
  pool = Google::Protobuf::DescriptorPool.generated_pool
19
19
 
@@ -1142,8 +1142,6 @@ module Google
1142
1142
  # @return [::String,nil]
1143
1143
  # @!attribute [rw] credentials
1144
1144
  # Credentials to send with calls. You may provide any of the following types:
1145
- # * (`String`) The path to a service account key file in JSON format
1146
- # * (`Hash`) A service account key as a Hash
1147
1145
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1148
1146
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1149
1147
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -1152,7 +1150,26 @@ module Google
1152
1150
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1153
1151
  # * (`nil`) indicating no credentials
1154
1152
  #
1155
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
1153
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
1154
+ # is deprecated. Providing an unvalidated credential configuration to
1155
+ # Google APIs can compromise the security of your systems and data.
1156
+ #
1157
+ # @example
1158
+ #
1159
+ # # The recommended way to provide credentials is to use the `make_creds` method
1160
+ # # on the appropriate credentials class for your environment.
1161
+ #
1162
+ # require "googleauth"
1163
+ #
1164
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
1165
+ # json_key_io: ::File.open("/path/to/keyfile.json")
1166
+ # )
1167
+ #
1168
+ # client = ::Google::Cloud::Dialogflow::V2::ConversationModels::Client.new do |config|
1169
+ # config.credentials = credentials
1170
+ # end
1171
+ #
1172
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
1156
1173
  # external source for authentication to Google Cloud, you must validate it before
1157
1174
  # providing it to a Google API client library. Providing an unvalidated credential
1158
1175
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -642,8 +642,6 @@ module Google
642
642
  # @return [::String,nil]
643
643
  # @!attribute [rw] credentials
644
644
  # Credentials to send with calls. You may provide any of the following types:
645
- # * (`String`) The path to a service account key file in JSON format
646
- # * (`Hash`) A service account key as a Hash
647
645
  # * (`Google::Auth::Credentials`) A googleauth credentials object
648
646
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
649
647
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -652,7 +650,26 @@ module Google
652
650
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
653
651
  # * (`nil`) indicating no credentials
654
652
  #
655
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
653
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
654
+ # is deprecated. Providing an unvalidated credential configuration to
655
+ # Google APIs can compromise the security of your systems and data.
656
+ #
657
+ # @example
658
+ #
659
+ # # The recommended way to provide credentials is to use the `make_creds` method
660
+ # # on the appropriate credentials class for your environment.
661
+ #
662
+ # require "googleauth"
663
+ #
664
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
665
+ # json_key_io: ::File.open("/path/to/keyfile.json")
666
+ # )
667
+ #
668
+ # client = ::Google::Longrunning::Operations::Client.new do |config|
669
+ # config.credentials = credentials
670
+ # end
671
+ #
672
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
656
673
  # external source for authentication to Google Cloud, you must validate it before
657
674
  # providing it to a Google API client library. Providing an unvalidated credential
658
675
  # configuration to Google APIs can compromise the security of your systems and data.