google-cloud-dialogflow-v2 0.12.0 → 0.15.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 (56) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +1 -1
  3. data/AUTHENTICATION.md +7 -25
  4. data/README.md +1 -1
  5. data/lib/google/cloud/dialogflow/v2/agents/client.rb +1 -0
  6. data/lib/google/cloud/dialogflow/v2/answer_record_pb.rb +0 -1
  7. data/lib/google/cloud/dialogflow/v2/audio_config_pb.rb +0 -2
  8. data/lib/google/cloud/dialogflow/v2/conversation_dataset_pb.rb +92 -0
  9. data/lib/google/cloud/dialogflow/v2/conversation_dataset_services_pb.rb +81 -0
  10. data/lib/google/cloud/dialogflow/v2/conversation_datasets/client.rb +849 -0
  11. data/lib/google/cloud/dialogflow/v2/conversation_datasets/credentials.rb +52 -0
  12. data/lib/google/cloud/dialogflow/v2/conversation_datasets/operations.rb +767 -0
  13. data/lib/google/cloud/dialogflow/v2/conversation_datasets/paths.rb +69 -0
  14. data/lib/google/cloud/dialogflow/v2/conversation_datasets.rb +53 -0
  15. data/lib/google/cloud/dialogflow/v2/conversation_event_pb.rb +0 -1
  16. data/lib/google/cloud/dialogflow/v2/conversation_model_pb.rb +205 -0
  17. data/lib/google/cloud/dialogflow/v2/conversation_model_services_pb.rb +98 -0
  18. data/lib/google/cloud/dialogflow/v2/conversation_models/client.rb +1257 -0
  19. data/lib/google/cloud/dialogflow/v2/conversation_models/credentials.rb +52 -0
  20. data/lib/google/cloud/dialogflow/v2/conversation_models/operations.rb +767 -0
  21. data/lib/google/cloud/dialogflow/v2/conversation_models/paths.rb +179 -0
  22. data/lib/google/cloud/dialogflow/v2/conversation_models.rb +50 -0
  23. data/lib/google/cloud/dialogflow/v2/conversation_pb.rb +0 -1
  24. data/lib/google/cloud/dialogflow/v2/conversation_profile_pb.rb +31 -0
  25. data/lib/google/cloud/dialogflow/v2/conversation_profile_services_pb.rb +27 -0
  26. data/lib/google/cloud/dialogflow/v2/conversation_profiles/client.rb +250 -0
  27. data/lib/google/cloud/dialogflow/v2/conversation_profiles/operations.rb +767 -0
  28. data/lib/google/cloud/dialogflow/v2/conversation_profiles/paths.rb +31 -9
  29. data/lib/google/cloud/dialogflow/v2/conversation_profiles.rb +1 -0
  30. data/lib/google/cloud/dialogflow/v2/document_pb.rb +51 -0
  31. data/lib/google/cloud/dialogflow/v2/document_services_pb.rb +21 -0
  32. data/lib/google/cloud/dialogflow/v2/documents/client.rb +272 -2
  33. data/lib/google/cloud/dialogflow/v2/entity_types/client.rb +1 -0
  34. data/lib/google/cloud/dialogflow/v2/gcs_pb.rb +8 -1
  35. data/lib/google/cloud/dialogflow/v2/human_agent_assistant_event_pb.rb +0 -1
  36. data/lib/google/cloud/dialogflow/v2/intent_pb.rb +0 -2
  37. data/lib/google/cloud/dialogflow/v2/intents/client.rb +1 -0
  38. data/lib/google/cloud/dialogflow/v2/knowledge_base_pb.rb +1 -0
  39. data/lib/google/cloud/dialogflow/v2/knowledge_bases/client.rb +28 -1
  40. data/lib/google/cloud/dialogflow/v2/participant_pb.rb +22 -2
  41. data/lib/google/cloud/dialogflow/v2/participant_services_pb.rb +3 -0
  42. data/lib/google/cloud/dialogflow/v2/participants/client.rb +115 -7
  43. data/lib/google/cloud/dialogflow/v2/validation_result_pb.rb +0 -1
  44. data/lib/google/cloud/dialogflow/v2/version.rb +1 -1
  45. data/lib/google/cloud/dialogflow/v2/webhook_pb.rb +0 -1
  46. data/lib/google/cloud/dialogflow/v2.rb +4 -0
  47. data/proto_docs/google/api/resource.rb +10 -71
  48. data/proto_docs/google/cloud/dialogflow/v2/audio_config.rb +4 -1
  49. data/proto_docs/google/cloud/dialogflow/v2/conversation_dataset.rb +211 -0
  50. data/proto_docs/google/cloud/dialogflow/v2/conversation_model.rb +522 -0
  51. data/proto_docs/google/cloud/dialogflow/v2/conversation_profile.rb +100 -2
  52. data/proto_docs/google/cloud/dialogflow/v2/document.rb +157 -0
  53. data/proto_docs/google/cloud/dialogflow/v2/gcs.rb +50 -0
  54. data/proto_docs/google/cloud/dialogflow/v2/knowledge_base.rb +28 -0
  55. data/proto_docs/google/cloud/dialogflow/v2/participant.rb +123 -65
  56. metadata +21 -3
@@ -162,7 +162,7 @@ module Google
162
162
  # @param options [::Gapic::CallOptions, ::Hash]
163
163
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
164
164
  #
165
- # @overload list_knowledge_bases(parent: nil, page_size: nil, page_token: nil)
165
+ # @overload list_knowledge_bases(parent: nil, page_size: nil, page_token: nil, filter: nil)
166
166
  # Pass arguments to `list_knowledge_bases` via keyword arguments. Note that at
167
167
  # least one keyword argument is required. To specify no parameters, or to keep all
168
168
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -175,6 +175,33 @@ module Google
175
175
  # default 10 and at most 100.
176
176
  # @param page_token [::String]
177
177
  # The next_page_token value returned from a previous list request.
178
+ # @param filter [::String]
179
+ # The filter expression used to filter knowledge bases returned by the list
180
+ # method. The expression has the following syntax:
181
+ #
182
+ # <field> <operator> <value> [AND <field> <operator> <value>] ...
183
+ #
184
+ # The following fields and operators are supported:
185
+ #
186
+ # * display_name with has(:) operator
187
+ # * language_code with equals(=) operator
188
+ #
189
+ # Examples:
190
+ #
191
+ # * 'language_code=en-us' matches knowledge bases with en-us language code.
192
+ # * 'display_name:articles' matches knowledge bases whose display name
193
+ # contains "articles".
194
+ # * 'display_name:"Best Articles"' matches knowledge bases whose display
195
+ # name contains "Best Articles".
196
+ # * 'language_code=en-gb AND display_name=articles' matches all knowledge
197
+ # bases whose display name contains "articles" and whose language code is
198
+ # "en-gb".
199
+ #
200
+ # Note: An empty filter string (i.e. "") is a no-op and will result in no
201
+ # filtering.
202
+ #
203
+ # For more information about filtering, see
204
+ # [API Filtering](https://aip.dev/160).
178
205
  #
179
206
  # @yield [response, operation] Access the result along with the RPC operation
180
207
  # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dialogflow::V2::KnowledgeBase>]
@@ -7,8 +7,6 @@ require 'google/api/field_behavior_pb'
7
7
  require 'google/api/resource_pb'
8
8
  require 'google/cloud/dialogflow/v2/audio_config_pb'
9
9
  require 'google/cloud/dialogflow/v2/session_pb'
10
- require 'google/protobuf/any_pb'
11
- require 'google/protobuf/duration_pb'
12
10
  require 'google/protobuf/field_mask_pb'
13
11
  require 'google/protobuf/struct_pb'
14
12
  require 'google/protobuf/timestamp_pb'
@@ -36,7 +34,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
36
34
  optional :participant, :string, 4
37
35
  optional :participant_role, :enum, 5, "google.cloud.dialogflow.v2.Participant.Role"
38
36
  optional :create_time, :message, 6, "google.protobuf.Timestamp"
37
+ optional :send_time, :message, 9, "google.protobuf.Timestamp"
39
38
  optional :message_annotation, :message, 7, "google.cloud.dialogflow.v2.MessageAnnotation"
39
+ optional :sentiment_analysis, :message, 8, "google.cloud.dialogflow.v2.SentimentAnalysisResult"
40
40
  end
41
41
  add_message "google.cloud.dialogflow.v2.CreateParticipantRequest" do
42
42
  optional :parent, :string, 1
@@ -103,6 +103,17 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
103
103
  optional :latest_message, :string, 2
104
104
  optional :context_size, :int32, 3
105
105
  end
106
+ add_message "google.cloud.dialogflow.v2.SuggestSmartRepliesRequest" do
107
+ optional :parent, :string, 1
108
+ optional :current_text_input, :message, 4, "google.cloud.dialogflow.v2.TextInput"
109
+ optional :latest_message, :string, 2
110
+ optional :context_size, :int32, 3
111
+ end
112
+ add_message "google.cloud.dialogflow.v2.SuggestSmartRepliesResponse" do
113
+ repeated :smart_reply_answers, :message, 1, "google.cloud.dialogflow.v2.SmartReplyAnswer"
114
+ optional :latest_message, :string, 2
115
+ optional :context_size, :int32, 3
116
+ end
106
117
  add_message "google.cloud.dialogflow.v2.OutputAudio" do
107
118
  optional :config, :message, 1, "google.cloud.dialogflow.v2.OutputAudioConfig"
108
119
  optional :audio, :bytes, 2
@@ -133,11 +144,17 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
133
144
  map :metadata, :string, :string, 5
134
145
  optional :answer_record, :string, 6
135
146
  end
147
+ add_message "google.cloud.dialogflow.v2.SmartReplyAnswer" do
148
+ optional :reply, :string, 1
149
+ optional :confidence, :float, 2
150
+ optional :answer_record, :string, 3
151
+ end
136
152
  add_message "google.cloud.dialogflow.v2.SuggestionResult" do
137
153
  oneof :suggestion_response do
138
154
  optional :error, :message, 1, "google.rpc.Status"
139
155
  optional :suggest_articles_response, :message, 2, "google.cloud.dialogflow.v2.SuggestArticlesResponse"
140
156
  optional :suggest_faq_answers_response, :message, 3, "google.cloud.dialogflow.v2.SuggestFaqAnswersResponse"
157
+ optional :suggest_smart_replies_response, :message, 4, "google.cloud.dialogflow.v2.SuggestSmartRepliesResponse"
141
158
  end
142
159
  end
143
160
  add_message "google.cloud.dialogflow.v2.AnnotatedMessagePart" do
@@ -174,11 +191,14 @@ module Google
174
191
  SuggestArticlesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.SuggestArticlesResponse").msgclass
175
192
  SuggestFaqAnswersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.SuggestFaqAnswersRequest").msgclass
176
193
  SuggestFaqAnswersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.SuggestFaqAnswersResponse").msgclass
194
+ SuggestSmartRepliesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.SuggestSmartRepliesRequest").msgclass
195
+ SuggestSmartRepliesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.SuggestSmartRepliesResponse").msgclass
177
196
  OutputAudio = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.OutputAudio").msgclass
178
197
  AutomatedAgentReply = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.AutomatedAgentReply").msgclass
179
198
  AutomatedAgentReply::AutomatedAgentReplyType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType").enummodule
180
199
  ArticleAnswer = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.ArticleAnswer").msgclass
181
200
  FaqAnswer = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.FaqAnswer").msgclass
201
+ SmartReplyAnswer = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.SmartReplyAnswer").msgclass
182
202
  SuggestionResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.SuggestionResult").msgclass
183
203
  AnnotatedMessagePart = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.AnnotatedMessagePart").msgclass
184
204
  MessageAnnotation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.MessageAnnotation").msgclass
@@ -54,6 +54,9 @@ module Google
54
54
  # Gets suggested faq answers for a participant based on specific historical
55
55
  # messages.
56
56
  rpc :SuggestFaqAnswers, ::Google::Cloud::Dialogflow::V2::SuggestFaqAnswersRequest, ::Google::Cloud::Dialogflow::V2::SuggestFaqAnswersResponse
57
+ # Gets smart replies for a participant based on specific historical
58
+ # messages.
59
+ rpc :SuggestSmartReplies, ::Google::Cloud::Dialogflow::V2::SuggestSmartRepliesRequest, ::Google::Cloud::Dialogflow::V2::SuggestSmartRepliesResponse
57
60
  end
58
61
 
59
62
  Stub = Service.rpc_stub_class
@@ -650,16 +650,15 @@ module Google
650
650
  # Format: `projects/<Project ID>/locations/<Location
651
651
  # ID>/conversations/<Conversation ID>/participants/<Participant ID>`.
652
652
  # @param latest_message [::String]
653
- # The name of the latest conversation message to compile suggestion
653
+ # Optional. The name of the latest conversation message to compile suggestion
654
654
  # for. If empty, it will be the latest message of the conversation.
655
655
  #
656
656
  # Format: `projects/<Project ID>/locations/<Location
657
657
  # ID>/conversations/<Conversation ID>/messages/<Message ID>`.
658
658
  # @param context_size [::Integer]
659
- # Max number of messages prior to and including
660
- # {::Google::Cloud::Dialogflow::V2::SuggestArticlesRequest#latest_message latest_message}
661
- # to use as context when compiling the suggestion. By default 20 and at
662
- # most 50.
659
+ # Optional. Max number of messages prior to and including
660
+ # {::Google::Cloud::Dialogflow::V2::SuggestArticlesRequest#latest_message latest_message} to use as context
661
+ # when compiling the suggestion. By default 20 and at most 50.
663
662
  # @param assist_query_params [::Google::Cloud::Dialogflow::V2::AssistQueryParameters, ::Hash]
664
663
  # Parameters for a human assist query.
665
664
  #
@@ -751,13 +750,13 @@ module Google
751
750
  # Format: `projects/<Project ID>/locations/<Location
752
751
  # ID>/conversations/<Conversation ID>/participants/<Participant ID>`.
753
752
  # @param latest_message [::String]
754
- # The name of the latest conversation message to compile suggestion
753
+ # Optional. The name of the latest conversation message to compile suggestion
755
754
  # for. If empty, it will be the latest message of the conversation.
756
755
  #
757
756
  # Format: `projects/<Project ID>/locations/<Location
758
757
  # ID>/conversations/<Conversation ID>/messages/<Message ID>`.
759
758
  # @param context_size [::Integer]
760
- # Max number of messages prior to and including
759
+ # Optional. Max number of messages prior to and including
761
760
  # [latest_message] to use as context when compiling the
762
761
  # suggestion. By default 20 and at most 50.
763
762
  # @param assist_query_params [::Google::Cloud::Dialogflow::V2::AssistQueryParameters, ::Hash]
@@ -827,6 +826,108 @@ module Google
827
826
  raise ::Google::Cloud::Error.from_error(e)
828
827
  end
829
828
 
829
+ ##
830
+ # Gets smart replies for a participant based on specific historical
831
+ # messages.
832
+ #
833
+ # @overload suggest_smart_replies(request, options = nil)
834
+ # Pass arguments to `suggest_smart_replies` via a request object, either of type
835
+ # {::Google::Cloud::Dialogflow::V2::SuggestSmartRepliesRequest} or an equivalent Hash.
836
+ #
837
+ # @param request [::Google::Cloud::Dialogflow::V2::SuggestSmartRepliesRequest, ::Hash]
838
+ # A request object representing the call parameters. Required. To specify no
839
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
840
+ # @param options [::Gapic::CallOptions, ::Hash]
841
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
842
+ #
843
+ # @overload suggest_smart_replies(parent: nil, current_text_input: nil, latest_message: nil, context_size: nil)
844
+ # Pass arguments to `suggest_smart_replies` via keyword arguments. Note that at
845
+ # least one keyword argument is required. To specify no parameters, or to keep all
846
+ # the default parameter values, pass an empty Hash as a request object (see above).
847
+ #
848
+ # @param parent [::String]
849
+ # Required. The name of the participant to fetch suggestion for.
850
+ # Format: `projects/<Project ID>/locations/<Location
851
+ # ID>/conversations/<Conversation ID>/participants/<Participant ID>`.
852
+ # @param current_text_input [::Google::Cloud::Dialogflow::V2::TextInput, ::Hash]
853
+ # The current natural language text segment to compile suggestion
854
+ # for. This provides a way for user to get follow up smart reply suggestion
855
+ # after a smart reply selection, without sending a text message.
856
+ # @param latest_message [::String]
857
+ # The name of the latest conversation message to compile suggestion
858
+ # for. If empty, it will be the latest message of the conversation.
859
+ #
860
+ # Format: `projects/<Project ID>/locations/<Location
861
+ # ID>/conversations/<Conversation ID>/messages/<Message ID>`.
862
+ # @param context_size [::Integer]
863
+ # Max number of messages prior to and including
864
+ # [latest_message] to use as context when compiling the
865
+ # suggestion. By default 20 and at most 50.
866
+ #
867
+ # @yield [response, operation] Access the result along with the RPC operation
868
+ # @yieldparam response [::Google::Cloud::Dialogflow::V2::SuggestSmartRepliesResponse]
869
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
870
+ #
871
+ # @return [::Google::Cloud::Dialogflow::V2::SuggestSmartRepliesResponse]
872
+ #
873
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
874
+ #
875
+ # @example Basic example
876
+ # require "google/cloud/dialogflow/v2"
877
+ #
878
+ # # Create a client object. The client can be reused for multiple calls.
879
+ # client = Google::Cloud::Dialogflow::V2::Participants::Client.new
880
+ #
881
+ # # Create a request. To set request fields, pass in keyword arguments.
882
+ # request = Google::Cloud::Dialogflow::V2::SuggestSmartRepliesRequest.new
883
+ #
884
+ # # Call the suggest_smart_replies method.
885
+ # result = client.suggest_smart_replies request
886
+ #
887
+ # # The returned object is of type Google::Cloud::Dialogflow::V2::SuggestSmartRepliesResponse.
888
+ # p result
889
+ #
890
+ def suggest_smart_replies request, options = nil
891
+ raise ::ArgumentError, "request must be provided" if request.nil?
892
+
893
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dialogflow::V2::SuggestSmartRepliesRequest
894
+
895
+ # Converts hash and nil to an options object
896
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
897
+
898
+ # Customize the options with defaults
899
+ metadata = @config.rpcs.suggest_smart_replies.metadata.to_h
900
+
901
+ # Set x-goog-api-client and x-goog-user-project headers
902
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
903
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
904
+ gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
905
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
906
+
907
+ header_params = {}
908
+ if request.parent
909
+ header_params["parent"] = request.parent
910
+ end
911
+
912
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
913
+ metadata[:"x-goog-request-params"] ||= request_params_header
914
+
915
+ options.apply_defaults timeout: @config.rpcs.suggest_smart_replies.timeout,
916
+ metadata: metadata,
917
+ retry_policy: @config.rpcs.suggest_smart_replies.retry_policy
918
+
919
+ options.apply_defaults timeout: @config.timeout,
920
+ metadata: @config.metadata,
921
+ retry_policy: @config.retry_policy
922
+
923
+ @participants_stub.call_rpc :suggest_smart_replies, request, options: options do |response, operation|
924
+ yield response, operation if block_given?
925
+ return response
926
+ end
927
+ rescue ::GRPC::BadStatus => e
928
+ raise ::Google::Cloud::Error.from_error(e)
929
+ end
930
+
830
931
  ##
831
932
  # Configuration class for the Participants API.
832
933
  #
@@ -997,6 +1098,11 @@ module Google
997
1098
  # @return [::Gapic::Config::Method]
998
1099
  #
999
1100
  attr_reader :suggest_faq_answers
1101
+ ##
1102
+ # RPC-specific configuration for `suggest_smart_replies`
1103
+ # @return [::Gapic::Config::Method]
1104
+ #
1105
+ attr_reader :suggest_smart_replies
1000
1106
 
1001
1107
  # @private
1002
1108
  def initialize parent_rpcs = nil
@@ -1014,6 +1120,8 @@ module Google
1014
1120
  @suggest_articles = ::Gapic::Config::Method.new suggest_articles_config
1015
1121
  suggest_faq_answers_config = parent_rpcs.suggest_faq_answers if parent_rpcs.respond_to? :suggest_faq_answers
1016
1122
  @suggest_faq_answers = ::Gapic::Config::Method.new suggest_faq_answers_config
1123
+ suggest_smart_replies_config = parent_rpcs.suggest_smart_replies if parent_rpcs.respond_to? :suggest_smart_replies
1124
+ @suggest_smart_replies = ::Gapic::Config::Method.new suggest_smart_replies_config
1017
1125
 
1018
1126
  yield self if block_given?
1019
1127
  end
@@ -1,7 +1,6 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/dialogflow/v2/validation_result.proto
3
3
 
4
- require 'google/api/annotations_pb'
5
4
  require 'google/protobuf'
6
5
 
7
6
  Google::Protobuf::DescriptorPool.generated_pool.build do
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Dialogflow
23
23
  module V2
24
- VERSION = "0.12.0"
24
+ VERSION = "0.15.0"
25
25
  end
26
26
  end
27
27
  end
@@ -6,7 +6,6 @@ require 'google/cloud/dialogflow/v2/intent_pb'
6
6
  require 'google/cloud/dialogflow/v2/session_pb'
7
7
  require 'google/cloud/dialogflow/v2/session_entity_type_pb'
8
8
  require 'google/protobuf/struct_pb'
9
- require 'google/api/annotations_pb'
10
9
  require 'google/protobuf'
11
10
 
12
11
  Google::Protobuf::DescriptorPool.generated_pool.build do
@@ -25,6 +25,8 @@ require "google/cloud/dialogflow/v2/sessions"
25
25
  require "google/cloud/dialogflow/v2/participants"
26
26
  require "google/cloud/dialogflow/v2/answer_records"
27
27
  require "google/cloud/dialogflow/v2/conversations"
28
+ require "google/cloud/dialogflow/v2/conversation_datasets"
29
+ require "google/cloud/dialogflow/v2/conversation_models"
28
30
  require "google/cloud/dialogflow/v2/conversation_profiles"
29
31
  require "google/cloud/dialogflow/v2/documents"
30
32
  require "google/cloud/dialogflow/v2/fulfillments"
@@ -39,6 +41,8 @@ module Google
39
41
  ##
40
42
  # To load this package, including all its services, and instantiate a client:
41
43
  #
44
+ # @example
45
+ #
42
46
  # require "google/cloud/dialogflow/v2"
43
47
  # client = ::Google::Cloud::Dialogflow::V2::Agents::Client.new
44
48
  #
@@ -33,11 +33,7 @@ module Google
33
33
  # // For Kubernetes resources, the format is {api group}/{kind}.
34
34
  # option (google.api.resource) = {
35
35
  # type: "pubsub.googleapis.com/Topic"
36
- # name_descriptor: {
37
- # pattern: "projects/{project}/topics/{topic}"
38
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
39
- # parent_name_extractor: "projects/{project}"
40
- # }
36
+ # pattern: "projects/{project}/topics/{topic}"
41
37
  # };
42
38
  # }
43
39
  #
@@ -45,10 +41,7 @@ module Google
45
41
  #
46
42
  # resources:
47
43
  # - type: "pubsub.googleapis.com/Topic"
48
- # name_descriptor:
49
- # - pattern: "projects/{project}/topics/{topic}"
50
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
51
- # parent_name_extractor: "projects/{project}"
44
+ # pattern: "projects/{project}/topics/{topic}"
52
45
  #
53
46
  # Sometimes, resources have multiple patterns, typically because they can
54
47
  # live under multiple parents.
@@ -58,26 +51,10 @@ module Google
58
51
  # message LogEntry {
59
52
  # option (google.api.resource) = {
60
53
  # type: "logging.googleapis.com/LogEntry"
61
- # name_descriptor: {
62
- # pattern: "projects/{project}/logs/{log}"
63
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
64
- # parent_name_extractor: "projects/{project}"
65
- # }
66
- # name_descriptor: {
67
- # pattern: "folders/{folder}/logs/{log}"
68
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
69
- # parent_name_extractor: "folders/{folder}"
70
- # }
71
- # name_descriptor: {
72
- # pattern: "organizations/{organization}/logs/{log}"
73
- # parent_type: "cloudresourcemanager.googleapis.com/Organization"
74
- # parent_name_extractor: "organizations/{organization}"
75
- # }
76
- # name_descriptor: {
77
- # pattern: "billingAccounts/{billing_account}/logs/{log}"
78
- # parent_type: "billing.googleapis.com/BillingAccount"
79
- # parent_name_extractor: "billingAccounts/{billing_account}"
80
- # }
54
+ # pattern: "projects/{project}/logs/{log}"
55
+ # pattern: "folders/{folder}/logs/{log}"
56
+ # pattern: "organizations/{organization}/logs/{log}"
57
+ # pattern: "billingAccounts/{billing_account}/logs/{log}"
81
58
  # };
82
59
  # }
83
60
  #
@@ -85,48 +62,10 @@ module Google
85
62
  #
86
63
  # resources:
87
64
  # - type: 'logging.googleapis.com/LogEntry'
88
- # name_descriptor:
89
- # - pattern: "projects/{project}/logs/{log}"
90
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
91
- # parent_name_extractor: "projects/{project}"
92
- # - pattern: "folders/{folder}/logs/{log}"
93
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
94
- # parent_name_extractor: "folders/{folder}"
95
- # - pattern: "organizations/{organization}/logs/{log}"
96
- # parent_type: "cloudresourcemanager.googleapis.com/Organization"
97
- # parent_name_extractor: "organizations/{organization}"
98
- # - pattern: "billingAccounts/{billing_account}/logs/{log}"
99
- # parent_type: "billing.googleapis.com/BillingAccount"
100
- # parent_name_extractor: "billingAccounts/{billing_account}"
101
- #
102
- # For flexible resources, the resource name doesn't contain parent names, but
103
- # the resource itself has parents for policy evaluation.
104
- #
105
- # Example:
106
- #
107
- # message Shelf {
108
- # option (google.api.resource) = {
109
- # type: "library.googleapis.com/Shelf"
110
- # name_descriptor: {
111
- # pattern: "shelves/{shelf}"
112
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
113
- # }
114
- # name_descriptor: {
115
- # pattern: "shelves/{shelf}"
116
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
117
- # }
118
- # };
119
- # }
120
- #
121
- # The ResourceDescriptor Yaml config will look like:
122
- #
123
- # resources:
124
- # - type: 'library.googleapis.com/Shelf'
125
- # name_descriptor:
126
- # - pattern: "shelves/{shelf}"
127
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
128
- # - pattern: "shelves/{shelf}"
129
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
65
+ # pattern: "projects/{project}/logs/{log}"
66
+ # pattern: "folders/{folder}/logs/{log}"
67
+ # pattern: "organizations/{organization}/logs/{log}"
68
+ # pattern: "billingAccounts/{billing_account}/logs/{log}"
130
69
  # @!attribute [rw] type
131
70
  # @return [::String]
132
71
  # The resource type. It must be in the format of
@@ -241,10 +241,13 @@ module Google
241
241
  # Configures speech transcription for {::Google::Cloud::Dialogflow::V2::ConversationProfile ConversationProfile}.
242
242
  # @!attribute [rw] speech_model_variant
243
243
  # @return [::Google::Cloud::Dialogflow::V2::SpeechModelVariant]
244
- # Optional. The speech model used in speech to text.
244
+ # The speech model used in speech to text.
245
245
  # `SPEECH_MODEL_VARIANT_UNSPECIFIED`, `USE_BEST_AVAILABLE` will be treated as
246
246
  # `USE_ENHANCED`. It can be overridden in {::Google::Cloud::Dialogflow::V2::AnalyzeContentRequest AnalyzeContentRequest} and
247
247
  # [StreamingAnalyzeContentRequest][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest] request.
248
+ # If enhanced model variant is specified and an enhanced
249
+ # version of the specified model for the language does not exist, then it
250
+ # would emit an error.
248
251
  class SpeechToTextConfig
249
252
  include ::Google::Protobuf::MessageExts
250
253
  extend ::Google::Protobuf::MessageExts::ClassMethods