google-apis-dialogflow_v2beta1 0.85.0 → 0.86.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 62df67def340eb10347193e6712cbfc97f2009b10c7a634ca2537f18e0485dbd
4
- data.tar.gz: cb5f3d25cf9867d7bc5d48cb18f1e4e22934b94849225355532cb29517641c8a
3
+ metadata.gz: 97644e07a921e48f5dc41dcb6a6680edd2dd33a5c6d8bd6010a5efd74b05488a
4
+ data.tar.gz: 6b564a630b4de27af6c714c0afbf53929811894c7ac170292f3addc79afc1cf1
5
5
  SHA512:
6
- metadata.gz: b179dddc46636ed0484a3f8f467299ec0bc1106e61d84f6646c52488b8568b117a48acbc871a3d0eb4c542cb00d6f6cd4c0f3916e44ac4f5bd9db33cf6166443
7
- data.tar.gz: 35afac537e4aa954165dfbed44469d6979ee81807984eedfd3c17f9a3c5e00eb39bdcc107d9cffe1657f40cf79b9c1ac33658dbf62ddfd224a971a288ec5a34a
6
+ metadata.gz: 9489fd3491c1406d4dd2295eca61e859315ca1abfdb05884755f4e928ca5a14f7bb87929cd0d437ce57a5358806fa5d14640b66b2d27409fe1f3818ceaf11707
7
+ data.tar.gz: a776a1d734e579e53a841b5af1c1bf6227c0c9ea643aa049d713ca455fe506fd0d124183ebf2d7904e5e2b0561208012beb6a67fa90aea1a6e59218753b70275
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-dialogflow_v2beta1
2
2
 
3
+ ### v0.86.0 (2024-06-02)
4
+
5
+ * Regenerated from discovery document revision 20240523
6
+
3
7
  ### v0.85.0 (2024-05-19)
4
8
 
5
9
  * Regenerated from discovery document revision 20240507
@@ -12110,6 +12110,25 @@ module Google
12110
12110
  end
12111
12111
  end
12112
12112
 
12113
+ # Context of the conversation, including transcripts.
12114
+ class GoogleCloudDialogflowV2beta1ConversationContext
12115
+ include Google::Apis::Core::Hashable
12116
+
12117
+ # Optional. List of message transcripts in the conversation.
12118
+ # Corresponds to the JSON property `messageEntries`
12119
+ # @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1MessageEntry>]
12120
+ attr_accessor :message_entries
12121
+
12122
+ def initialize(**args)
12123
+ update!(**args)
12124
+ end
12125
+
12126
+ # Update properties of this object
12127
+ def update!(**args)
12128
+ @message_entries = args[:message_entries] if args.key?(:message_entries)
12129
+ end
12130
+ end
12131
+
12113
12132
  # Represents a notification sent to Pub/Sub subscribers for conversation
12114
12133
  # lifecycle events.
12115
12134
  class GoogleCloudDialogflowV2beta1ConversationEvent
@@ -13054,6 +13073,46 @@ module Google
13054
13073
  end
13055
13074
  end
13056
13075
 
13076
+ # Providing examples in the generator (i.e. building a few-shot generator) helps
13077
+ # convey the desired format of the LLM response. NEXT_ID: 10
13078
+ class GoogleCloudDialogflowV2beta1FewShotExample
13079
+ include Google::Apis::Core::Hashable
13080
+
13081
+ # Context of the conversation, including transcripts.
13082
+ # Corresponds to the JSON property `conversationContext`
13083
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationContext]
13084
+ attr_accessor :conversation_context
13085
+
13086
+ # Optional. Key is the placeholder field name in input, value is the value of
13087
+ # the placeholder. E.g. instruction contains "@price", and ingested data has <"
13088
+ # price", "10">
13089
+ # Corresponds to the JSON property `extraInfo`
13090
+ # @return [Hash<String,String>]
13091
+ attr_accessor :extra_info
13092
+
13093
+ # Suggestion generated using a Generator.
13094
+ # Corresponds to the JSON property `output`
13095
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GeneratorSuggestion]
13096
+ attr_accessor :output
13097
+
13098
+ # List of summarization sections.
13099
+ # Corresponds to the JSON property `summarizationSectionList`
13100
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SummarizationSectionList]
13101
+ attr_accessor :summarization_section_list
13102
+
13103
+ def initialize(**args)
13104
+ update!(**args)
13105
+ end
13106
+
13107
+ # Update properties of this object
13108
+ def update!(**args)
13109
+ @conversation_context = args[:conversation_context] if args.key?(:conversation_context)
13110
+ @extra_info = args[:extra_info] if args.key?(:extra_info)
13111
+ @output = args[:output] if args.key?(:output)
13112
+ @summarization_section_list = args[:summarization_section_list] if args.key?(:summarization_section_list)
13113
+ end
13114
+ end
13115
+
13057
13116
  # By default, your agent responds to a matched intent with a static response. As
13058
13117
  # an alternative, you can provide a more dynamic response by using fulfillment.
13059
13118
  # When you enable fulfillment for an intent, Dialogflow responds to that intent
@@ -13245,6 +13304,64 @@ module Google
13245
13304
  end
13246
13305
  end
13247
13306
 
13307
+ # The request message for Conversations.GenerateStatelessSuggestion.
13308
+ class GoogleCloudDialogflowV2beta1GenerateStatelessSuggestionRequest
13309
+ include Google::Apis::Core::Hashable
13310
+
13311
+ # Context of the conversation, including transcripts.
13312
+ # Corresponds to the JSON property `conversationContext`
13313
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationContext]
13314
+ attr_accessor :conversation_context
13315
+
13316
+ # LLM generator.
13317
+ # Corresponds to the JSON property `generator`
13318
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Generator]
13319
+ attr_accessor :generator
13320
+
13321
+ # The resource name of the existing created generator. Format: `projects//
13322
+ # locations//generators/`
13323
+ # Corresponds to the JSON property `generatorName`
13324
+ # @return [String]
13325
+ attr_accessor :generator_name
13326
+
13327
+ # Optional. A list of trigger events. Generator will be triggered only if it's
13328
+ # trigger event is included here.
13329
+ # Corresponds to the JSON property `triggerEvents`
13330
+ # @return [Array<String>]
13331
+ attr_accessor :trigger_events
13332
+
13333
+ def initialize(**args)
13334
+ update!(**args)
13335
+ end
13336
+
13337
+ # Update properties of this object
13338
+ def update!(**args)
13339
+ @conversation_context = args[:conversation_context] if args.key?(:conversation_context)
13340
+ @generator = args[:generator] if args.key?(:generator)
13341
+ @generator_name = args[:generator_name] if args.key?(:generator_name)
13342
+ @trigger_events = args[:trigger_events] if args.key?(:trigger_events)
13343
+ end
13344
+ end
13345
+
13346
+ # The response message for Conversations.GenerateStatelessSuggestion.
13347
+ class GoogleCloudDialogflowV2beta1GenerateStatelessSuggestionResponse
13348
+ include Google::Apis::Core::Hashable
13349
+
13350
+ # Suggestion generated using a Generator.
13351
+ # Corresponds to the JSON property `generatorSuggestion`
13352
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GeneratorSuggestion]
13353
+ attr_accessor :generator_suggestion
13354
+
13355
+ def initialize(**args)
13356
+ update!(**args)
13357
+ end
13358
+
13359
+ # Update properties of this object
13360
+ def update!(**args)
13361
+ @generator_suggestion = args[:generator_suggestion] if args.key?(:generator_suggestion)
13362
+ end
13363
+ end
13364
+
13248
13365
  # The request message for Conversations.GenerateStatelessSummary.
13249
13366
  class GoogleCloudDialogflowV2beta1GenerateStatelessSummaryRequest
13250
13367
  include Google::Apis::Core::Hashable
@@ -13380,6 +13497,82 @@ module Google
13380
13497
  end
13381
13498
  end
13382
13499
 
13500
+ # LLM generator.
13501
+ class GoogleCloudDialogflowV2beta1Generator
13502
+ include Google::Apis::Core::Hashable
13503
+
13504
+ # Output only. Creation time of this generator.
13505
+ # Corresponds to the JSON property `createTime`
13506
+ # @return [String]
13507
+ attr_accessor :create_time
13508
+
13509
+ # Optional. Human readable description of the generator.
13510
+ # Corresponds to the JSON property `description`
13511
+ # @return [String]
13512
+ attr_accessor :description
13513
+
13514
+ # The parameters of inference.
13515
+ # Corresponds to the JSON property `inferenceParameter`
13516
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1InferenceParameter]
13517
+ attr_accessor :inference_parameter
13518
+
13519
+ # Output only. Identifier. The resource name of the generator. Format: `projects/
13520
+ # /locations//generators/`
13521
+ # Corresponds to the JSON property `name`
13522
+ # @return [String]
13523
+ attr_accessor :name
13524
+
13525
+ # Summarization context that customer can configure.
13526
+ # Corresponds to the JSON property `summarizationContext`
13527
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SummarizationContext]
13528
+ attr_accessor :summarization_context
13529
+
13530
+ # Optional. The trigger event of the generator. It defines when the generator is
13531
+ # triggered in a conversation.
13532
+ # Corresponds to the JSON property `triggerEvent`
13533
+ # @return [String]
13534
+ attr_accessor :trigger_event
13535
+
13536
+ # Output only. Update time of this generator.
13537
+ # Corresponds to the JSON property `updateTime`
13538
+ # @return [String]
13539
+ attr_accessor :update_time
13540
+
13541
+ def initialize(**args)
13542
+ update!(**args)
13543
+ end
13544
+
13545
+ # Update properties of this object
13546
+ def update!(**args)
13547
+ @create_time = args[:create_time] if args.key?(:create_time)
13548
+ @description = args[:description] if args.key?(:description)
13549
+ @inference_parameter = args[:inference_parameter] if args.key?(:inference_parameter)
13550
+ @name = args[:name] if args.key?(:name)
13551
+ @summarization_context = args[:summarization_context] if args.key?(:summarization_context)
13552
+ @trigger_event = args[:trigger_event] if args.key?(:trigger_event)
13553
+ @update_time = args[:update_time] if args.key?(:update_time)
13554
+ end
13555
+ end
13556
+
13557
+ # Suggestion generated using a Generator.
13558
+ class GoogleCloudDialogflowV2beta1GeneratorSuggestion
13559
+ include Google::Apis::Core::Hashable
13560
+
13561
+ # Suggested summary of the conversation.
13562
+ # Corresponds to the JSON property `summarySuggestion`
13563
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SummarySuggestion]
13564
+ attr_accessor :summary_suggestion
13565
+
13566
+ def initialize(**args)
13567
+ update!(**args)
13568
+ end
13569
+
13570
+ # Update properties of this object
13571
+ def update!(**args)
13572
+ @summary_suggestion = args[:summary_suggestion] if args.key?(:summary_suggestion)
13573
+ end
13574
+ end
13575
+
13383
13576
  # Defines the Human Agent Assistant to connect to a conversation.
13384
13577
  class GoogleCloudDialogflowV2beta1HumanAgentAssistantConfig
13385
13578
  include Google::Apis::Core::Hashable
@@ -13517,6 +13710,12 @@ module Google
13517
13710
  # @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionFeatureConfig>]
13518
13711
  attr_accessor :feature_configs
13519
13712
 
13713
+ # Optional. List of various generator resource names used in the conversation
13714
+ # profile.
13715
+ # Corresponds to the JSON property `generators`
13716
+ # @return [Array<String>]
13717
+ attr_accessor :generators
13718
+
13520
13719
  # If `group_suggestion_responses` is false, and there are multiple `
13521
13720
  # feature_configs` in `event based suggestion` or StreamingAnalyzeContent, we
13522
13721
  # will try to deliver suggestions to customers as soon as we get new suggestion.
@@ -13537,6 +13736,7 @@ module Google
13537
13736
  # Update properties of this object
13538
13737
  def update!(**args)
13539
13738
  @feature_configs = args[:feature_configs] if args.key?(:feature_configs)
13739
+ @generators = args[:generators] if args.key?(:generators)
13540
13740
  @group_suggestion_responses = args[:group_suggestion_responses] if args.key?(:group_suggestion_responses)
13541
13741
  end
13542
13742
  end
@@ -13902,7 +14102,7 @@ module Google
13902
14102
  class GoogleCloudDialogflowV2beta1HumanAgentHandoffConfig
13903
14103
  include Google::Apis::Core::Hashable
13904
14104
 
13905
- # Configuration specific to LivePerson (https://www.liveperson.com).
14105
+ # Configuration specific to [LivePerson](https://www.liveperson.com).
13906
14106
  # Corresponds to the JSON property `livePersonConfig`
13907
14107
  # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1HumanAgentHandoffConfigLivePersonConfig]
13908
14108
  attr_accessor :live_person_config
@@ -13923,7 +14123,7 @@ module Google
13923
14123
  end
13924
14124
  end
13925
14125
 
13926
- # Configuration specific to LivePerson (https://www.liveperson.com).
14126
+ # Configuration specific to [LivePerson](https://www.liveperson.com).
13927
14127
  class GoogleCloudDialogflowV2beta1HumanAgentHandoffConfigLivePersonConfig
13928
14128
  include Google::Apis::Core::Hashable
13929
14129
 
@@ -14100,6 +14300,60 @@ module Google
14100
14300
  end
14101
14301
  end
14102
14302
 
14303
+ # The parameters of inference.
14304
+ class GoogleCloudDialogflowV2beta1InferenceParameter
14305
+ include Google::Apis::Core::Hashable
14306
+
14307
+ # Optional. Maximum number of the output tokens for the generator.
14308
+ # Corresponds to the JSON property `maxOutputTokens`
14309
+ # @return [Fixnum]
14310
+ attr_accessor :max_output_tokens
14311
+
14312
+ # Optional. Controls the randomness of LLM predictions. Low temperature = less
14313
+ # random. High temperature = more random. If unset (or 0), uses a default value
14314
+ # of 0.
14315
+ # Corresponds to the JSON property `temperature`
14316
+ # @return [Float]
14317
+ attr_accessor :temperature
14318
+
14319
+ # Optional. Top-k changes how the model selects tokens for output. A top-k of 1
14320
+ # means the selected token is the most probable among all tokens in the model's
14321
+ # vocabulary (also called greedy decoding), while a top-k of 3 means that the
14322
+ # next token is selected from among the 3 most probable tokens (using
14323
+ # temperature). For each token selection step, the top K tokens with the highest
14324
+ # probabilities are sampled. Then tokens are further filtered based on topP with
14325
+ # the final token selected using temperature sampling. Specify a lower value for
14326
+ # less random responses and a higher value for more random responses. Acceptable
14327
+ # value is [1, 40], default to 40.
14328
+ # Corresponds to the JSON property `topK`
14329
+ # @return [Fixnum]
14330
+ attr_accessor :top_k
14331
+
14332
+ # Optional. Top-p changes how the model selects tokens for output. Tokens are
14333
+ # selected from most K (see topK parameter) probable to least until the sum of
14334
+ # their probabilities equals the top-p value. For example, if tokens A, B, and C
14335
+ # have a probability of 0.3, 0.2, and 0.1 and the top-p value is 0.5, then the
14336
+ # model will select either A or B as the next token (using temperature) and
14337
+ # doesn't consider C. The default top-p value is 0.95. Specify a lower value for
14338
+ # less random responses and a higher value for more random responses. Acceptable
14339
+ # value is [0.0, 1.0], default to 0.95.
14340
+ # Corresponds to the JSON property `topP`
14341
+ # @return [Float]
14342
+ attr_accessor :top_p
14343
+
14344
+ def initialize(**args)
14345
+ update!(**args)
14346
+ end
14347
+
14348
+ # Update properties of this object
14349
+ def update!(**args)
14350
+ @max_output_tokens = args[:max_output_tokens] if args.key?(:max_output_tokens)
14351
+ @temperature = args[:temperature] if args.key?(:temperature)
14352
+ @top_k = args[:top_k] if args.key?(:top_k)
14353
+ @top_p = args[:top_p] if args.key?(:top_p)
14354
+ end
14355
+ end
14356
+
14103
14357
  # Instructs the speech recognizer on how to process the audio content.
14104
14358
  class GoogleCloudDialogflowV2beta1InputAudioConfig
14105
14359
  include Google::Apis::Core::Hashable
@@ -14132,6 +14386,12 @@ module Google
14132
14386
  # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1BargeInConfig]
14133
14387
  attr_accessor :barge_in_config
14134
14388
 
14389
+ # If set, use this no-speech timeout when the agent does not provide a no-speech
14390
+ # timeout itself.
14391
+ # Corresponds to the JSON property `defaultNoSpeechTimeout`
14392
+ # @return [String]
14393
+ attr_accessor :default_no_speech_timeout
14394
+
14135
14395
  # Only used in Participants.AnalyzeContent and Participants.
14136
14396
  # StreamingAnalyzeContent. If `false` and recognition doesn't return any result,
14137
14397
  # trigger `NO_SPEECH_RECOGNIZED` event to Dialogflow agent.
@@ -14230,6 +14490,7 @@ module Google
14230
14490
  def update!(**args)
14231
14491
  @audio_encoding = args[:audio_encoding] if args.key?(:audio_encoding)
14232
14492
  @barge_in_config = args[:barge_in_config] if args.key?(:barge_in_config)
14493
+ @default_no_speech_timeout = args[:default_no_speech_timeout] if args.key?(:default_no_speech_timeout)
14233
14494
  @disable_no_speech_recognized_event = args[:disable_no_speech_recognized_event] if args.key?(:disable_no_speech_recognized_event)
14234
14495
  @enable_automatic_punctuation = args[:enable_automatic_punctuation] if args.key?(:enable_automatic_punctuation)
14235
14496
  @enable_word_info = args[:enable_word_info] if args.key?(:enable_word_info)
@@ -16384,6 +16645,32 @@ module Google
16384
16645
  end
16385
16646
  end
16386
16647
 
16648
+ # Response of ListGenerators.
16649
+ class GoogleCloudDialogflowV2beta1ListGeneratorsResponse
16650
+ include Google::Apis::Core::Hashable
16651
+
16652
+ # List of generators retrieved.
16653
+ # Corresponds to the JSON property `generators`
16654
+ # @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Generator>]
16655
+ attr_accessor :generators
16656
+
16657
+ # Token to retrieve the next page of results, or empty if there are no more
16658
+ # results in the list.
16659
+ # Corresponds to the JSON property `nextPageToken`
16660
+ # @return [String]
16661
+ attr_accessor :next_page_token
16662
+
16663
+ def initialize(**args)
16664
+ update!(**args)
16665
+ end
16666
+
16667
+ # Update properties of this object
16668
+ def update!(**args)
16669
+ @generators = args[:generators] if args.key?(:generators)
16670
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
16671
+ end
16672
+ end
16673
+
16387
16674
  # The response message for Intents.ListIntents.
16388
16675
  class GoogleCloudDialogflowV2beta1ListIntentsResponse
16389
16676
  include Google::Apis::Core::Hashable
@@ -16699,6 +16986,45 @@ module Google
16699
16986
  end
16700
16987
  end
16701
16988
 
16989
+ # Represents a message entry of a conversation.
16990
+ class GoogleCloudDialogflowV2beta1MessageEntry
16991
+ include Google::Apis::Core::Hashable
16992
+
16993
+ # Optional. Create time of the message entry.
16994
+ # Corresponds to the JSON property `createTime`
16995
+ # @return [String]
16996
+ attr_accessor :create_time
16997
+
16998
+ # Optional. The language of the text. See [Language Support](https://cloud.
16999
+ # google.com/dialogflow/docs/reference/language) for a list of the currently
17000
+ # supported language codes.
17001
+ # Corresponds to the JSON property `languageCode`
17002
+ # @return [String]
17003
+ attr_accessor :language_code
17004
+
17005
+ # Optional. Participant role of the message.
17006
+ # Corresponds to the JSON property `role`
17007
+ # @return [String]
17008
+ attr_accessor :role
17009
+
17010
+ # Optional. Transcript content of the message.
17011
+ # Corresponds to the JSON property `text`
17012
+ # @return [String]
17013
+ attr_accessor :text
17014
+
17015
+ def initialize(**args)
17016
+ update!(**args)
17017
+ end
17018
+
17019
+ # Update properties of this object
17020
+ def update!(**args)
17021
+ @create_time = args[:create_time] if args.key?(:create_time)
17022
+ @language_code = args[:language_code] if args.key?(:language_code)
17023
+ @role = args[:role] if args.key?(:role)
17024
+ @text = args[:text] if args.key?(:text)
17025
+ end
17026
+ end
17027
+
16702
17028
  # Defines notification behavior.
16703
17029
  class GoogleCloudDialogflowV2beta1NotificationConfig
16704
17030
  include Google::Apis::Core::Hashable
@@ -18608,6 +18934,142 @@ module Google
18608
18934
  end
18609
18935
  end
18610
18936
 
18937
+ # Summarization context that customer can configure.
18938
+ class GoogleCloudDialogflowV2beta1SummarizationContext
18939
+ include Google::Apis::Core::Hashable
18940
+
18941
+ # Optional. List of few shot examples.
18942
+ # Corresponds to the JSON property `fewShotExamples`
18943
+ # @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1FewShotExample>]
18944
+ attr_accessor :few_shot_examples
18945
+
18946
+ # Optional. The target language of the generated summary. The language code for
18947
+ # conversation will be used if this field is empty. Supported 2.0 and later
18948
+ # versions.
18949
+ # Corresponds to the JSON property `outputLanguageCode`
18950
+ # @return [String]
18951
+ attr_accessor :output_language_code
18952
+
18953
+ # Optional. List of sections. Note it contains both predefined section sand
18954
+ # customer defined sections.
18955
+ # Corresponds to the JSON property `summarizationSections`
18956
+ # @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SummarizationSection>]
18957
+ attr_accessor :summarization_sections
18958
+
18959
+ # Optional. Version of the feature. If not set, default to latest version.
18960
+ # Current candidates are ["1.0"].
18961
+ # Corresponds to the JSON property `version`
18962
+ # @return [String]
18963
+ attr_accessor :version
18964
+
18965
+ def initialize(**args)
18966
+ update!(**args)
18967
+ end
18968
+
18969
+ # Update properties of this object
18970
+ def update!(**args)
18971
+ @few_shot_examples = args[:few_shot_examples] if args.key?(:few_shot_examples)
18972
+ @output_language_code = args[:output_language_code] if args.key?(:output_language_code)
18973
+ @summarization_sections = args[:summarization_sections] if args.key?(:summarization_sections)
18974
+ @version = args[:version] if args.key?(:version)
18975
+ end
18976
+ end
18977
+
18978
+ # Represents the section of summarization.
18979
+ class GoogleCloudDialogflowV2beta1SummarizationSection
18980
+ include Google::Apis::Core::Hashable
18981
+
18982
+ # Optional. Definition of the section, for example, "what the customer needs
18983
+ # help with or has question about."
18984
+ # Corresponds to the JSON property `definition`
18985
+ # @return [String]
18986
+ attr_accessor :definition
18987
+
18988
+ # Optional. Name of the section, for example, "situation".
18989
+ # Corresponds to the JSON property `key`
18990
+ # @return [String]
18991
+ attr_accessor :key
18992
+
18993
+ # Optional. Type of the summarization section.
18994
+ # Corresponds to the JSON property `type`
18995
+ # @return [String]
18996
+ attr_accessor :type
18997
+
18998
+ def initialize(**args)
18999
+ update!(**args)
19000
+ end
19001
+
19002
+ # Update properties of this object
19003
+ def update!(**args)
19004
+ @definition = args[:definition] if args.key?(:definition)
19005
+ @key = args[:key] if args.key?(:key)
19006
+ @type = args[:type] if args.key?(:type)
19007
+ end
19008
+ end
19009
+
19010
+ # List of summarization sections.
19011
+ class GoogleCloudDialogflowV2beta1SummarizationSectionList
19012
+ include Google::Apis::Core::Hashable
19013
+
19014
+ # Optional. Summarization sections.
19015
+ # Corresponds to the JSON property `summarizationSections`
19016
+ # @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SummarizationSection>]
19017
+ attr_accessor :summarization_sections
19018
+
19019
+ def initialize(**args)
19020
+ update!(**args)
19021
+ end
19022
+
19023
+ # Update properties of this object
19024
+ def update!(**args)
19025
+ @summarization_sections = args[:summarization_sections] if args.key?(:summarization_sections)
19026
+ end
19027
+ end
19028
+
19029
+ # Suggested summary of the conversation.
19030
+ class GoogleCloudDialogflowV2beta1SummarySuggestion
19031
+ include Google::Apis::Core::Hashable
19032
+
19033
+ # Required. All the parts of generated summary.
19034
+ # Corresponds to the JSON property `summarySections`
19035
+ # @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SummarySuggestionSummarySection>]
19036
+ attr_accessor :summary_sections
19037
+
19038
+ def initialize(**args)
19039
+ update!(**args)
19040
+ end
19041
+
19042
+ # Update properties of this object
19043
+ def update!(**args)
19044
+ @summary_sections = args[:summary_sections] if args.key?(:summary_sections)
19045
+ end
19046
+ end
19047
+
19048
+ # A component of the generated summary.
19049
+ class GoogleCloudDialogflowV2beta1SummarySuggestionSummarySection
19050
+ include Google::Apis::Core::Hashable
19051
+
19052
+ # Required. Name of the section.
19053
+ # Corresponds to the JSON property `section`
19054
+ # @return [String]
19055
+ attr_accessor :section
19056
+
19057
+ # Required. Summary text for the section.
19058
+ # Corresponds to the JSON property `summary`
19059
+ # @return [String]
19060
+ attr_accessor :summary
19061
+
19062
+ def initialize(**args)
19063
+ update!(**args)
19064
+ end
19065
+
19066
+ # Update properties of this object
19067
+ def update!(**args)
19068
+ @section = args[:section] if args.key?(:section)
19069
+ @summary = args[:summary] if args.key?(:summary)
19070
+ end
19071
+ end
19072
+
18611
19073
  # Configuration of how speech should be synthesized.
18612
19074
  class GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig
18613
19075
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module DialogflowV2beta1
18
18
  # Version of the google-apis-dialogflow_v2beta1 gem
19
- GEM_VERSION = "0.85.0"
19
+ GEM_VERSION = "0.86.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.15.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240507"
25
+ REVISION = "20240523"
26
26
  end
27
27
  end
28
28
  end
@@ -1978,6 +1978,12 @@ module Google
1978
1978
  include Google::Apis::Core::JsonObjectSupport
1979
1979
  end
1980
1980
 
1981
+ class GoogleCloudDialogflowV2beta1ConversationContext
1982
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1983
+
1984
+ include Google::Apis::Core::JsonObjectSupport
1985
+ end
1986
+
1981
1987
  class GoogleCloudDialogflowV2beta1ConversationEvent
1982
1988
  class Representation < Google::Apis::Core::JsonRepresentation; end
1983
1989
 
@@ -2104,6 +2110,12 @@ module Google
2104
2110
  include Google::Apis::Core::JsonObjectSupport
2105
2111
  end
2106
2112
 
2113
+ class GoogleCloudDialogflowV2beta1FewShotExample
2114
+ class Representation < Google::Apis::Core::JsonRepresentation; end
2115
+
2116
+ include Google::Apis::Core::JsonObjectSupport
2117
+ end
2118
+
2107
2119
  class GoogleCloudDialogflowV2beta1Fulfillment
2108
2120
  class Representation < Google::Apis::Core::JsonRepresentation; end
2109
2121
 
@@ -2140,6 +2152,18 @@ module Google
2140
2152
  include Google::Apis::Core::JsonObjectSupport
2141
2153
  end
2142
2154
 
2155
+ class GoogleCloudDialogflowV2beta1GenerateStatelessSuggestionRequest
2156
+ class Representation < Google::Apis::Core::JsonRepresentation; end
2157
+
2158
+ include Google::Apis::Core::JsonObjectSupport
2159
+ end
2160
+
2161
+ class GoogleCloudDialogflowV2beta1GenerateStatelessSuggestionResponse
2162
+ class Representation < Google::Apis::Core::JsonRepresentation; end
2163
+
2164
+ include Google::Apis::Core::JsonObjectSupport
2165
+ end
2166
+
2143
2167
  class GoogleCloudDialogflowV2beta1GenerateStatelessSummaryRequest
2144
2168
  class Representation < Google::Apis::Core::JsonRepresentation; end
2145
2169
 
@@ -2164,6 +2188,18 @@ module Google
2164
2188
  include Google::Apis::Core::JsonObjectSupport
2165
2189
  end
2166
2190
 
2191
+ class GoogleCloudDialogflowV2beta1Generator
2192
+ class Representation < Google::Apis::Core::JsonRepresentation; end
2193
+
2194
+ include Google::Apis::Core::JsonObjectSupport
2195
+ end
2196
+
2197
+ class GoogleCloudDialogflowV2beta1GeneratorSuggestion
2198
+ class Representation < Google::Apis::Core::JsonRepresentation; end
2199
+
2200
+ include Google::Apis::Core::JsonObjectSupport
2201
+ end
2202
+
2167
2203
  class GoogleCloudDialogflowV2beta1HumanAgentAssistantConfig
2168
2204
  class Representation < Google::Apis::Core::JsonRepresentation; end
2169
2205
 
@@ -2296,6 +2332,12 @@ module Google
2296
2332
  include Google::Apis::Core::JsonObjectSupport
2297
2333
  end
2298
2334
 
2335
+ class GoogleCloudDialogflowV2beta1InferenceParameter
2336
+ class Representation < Google::Apis::Core::JsonRepresentation; end
2337
+
2338
+ include Google::Apis::Core::JsonObjectSupport
2339
+ end
2340
+
2299
2341
  class GoogleCloudDialogflowV2beta1InputAudioConfig
2300
2342
  class Representation < Google::Apis::Core::JsonRepresentation; end
2301
2343
 
@@ -2668,6 +2710,12 @@ module Google
2668
2710
  include Google::Apis::Core::JsonObjectSupport
2669
2711
  end
2670
2712
 
2713
+ class GoogleCloudDialogflowV2beta1ListGeneratorsResponse
2714
+ class Representation < Google::Apis::Core::JsonRepresentation; end
2715
+
2716
+ include Google::Apis::Core::JsonObjectSupport
2717
+ end
2718
+
2671
2719
  class GoogleCloudDialogflowV2beta1ListIntentsResponse
2672
2720
  class Representation < Google::Apis::Core::JsonRepresentation; end
2673
2721
 
@@ -2728,6 +2776,12 @@ module Google
2728
2776
  include Google::Apis::Core::JsonObjectSupport
2729
2777
  end
2730
2778
 
2779
+ class GoogleCloudDialogflowV2beta1MessageEntry
2780
+ class Representation < Google::Apis::Core::JsonRepresentation; end
2781
+
2782
+ include Google::Apis::Core::JsonObjectSupport
2783
+ end
2784
+
2731
2785
  class GoogleCloudDialogflowV2beta1NotificationConfig
2732
2786
  class Representation < Google::Apis::Core::JsonRepresentation; end
2733
2787
 
@@ -3016,6 +3070,36 @@ module Google
3016
3070
  include Google::Apis::Core::JsonObjectSupport
3017
3071
  end
3018
3072
 
3073
+ class GoogleCloudDialogflowV2beta1SummarizationContext
3074
+ class Representation < Google::Apis::Core::JsonRepresentation; end
3075
+
3076
+ include Google::Apis::Core::JsonObjectSupport
3077
+ end
3078
+
3079
+ class GoogleCloudDialogflowV2beta1SummarizationSection
3080
+ class Representation < Google::Apis::Core::JsonRepresentation; end
3081
+
3082
+ include Google::Apis::Core::JsonObjectSupport
3083
+ end
3084
+
3085
+ class GoogleCloudDialogflowV2beta1SummarizationSectionList
3086
+ class Representation < Google::Apis::Core::JsonRepresentation; end
3087
+
3088
+ include Google::Apis::Core::JsonObjectSupport
3089
+ end
3090
+
3091
+ class GoogleCloudDialogflowV2beta1SummarySuggestion
3092
+ class Representation < Google::Apis::Core::JsonRepresentation; end
3093
+
3094
+ include Google::Apis::Core::JsonObjectSupport
3095
+ end
3096
+
3097
+ class GoogleCloudDialogflowV2beta1SummarySuggestionSummarySection
3098
+ class Representation < Google::Apis::Core::JsonRepresentation; end
3099
+
3100
+ include Google::Apis::Core::JsonObjectSupport
3101
+ end
3102
+
3019
3103
  class GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig
3020
3104
  class Representation < Google::Apis::Core::JsonRepresentation; end
3021
3105
 
@@ -6460,6 +6544,14 @@ module Google
6460
6544
  end
6461
6545
  end
6462
6546
 
6547
+ class GoogleCloudDialogflowV2beta1ConversationContext
6548
+ # @private
6549
+ class Representation < Google::Apis::Core::JsonRepresentation
6550
+ collection :message_entries, as: 'messageEntries', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1MessageEntry, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1MessageEntry::Representation
6551
+
6552
+ end
6553
+ end
6554
+
6463
6555
  class GoogleCloudDialogflowV2beta1ConversationEvent
6464
6556
  # @private
6465
6557
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -6699,6 +6791,19 @@ module Google
6699
6791
  end
6700
6792
  end
6701
6793
 
6794
+ class GoogleCloudDialogflowV2beta1FewShotExample
6795
+ # @private
6796
+ class Representation < Google::Apis::Core::JsonRepresentation
6797
+ property :conversation_context, as: 'conversationContext', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationContext, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationContext::Representation
6798
+
6799
+ hash :extra_info, as: 'extraInfo'
6800
+ property :output, as: 'output', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GeneratorSuggestion, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GeneratorSuggestion::Representation
6801
+
6802
+ property :summarization_section_list, as: 'summarizationSectionList', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SummarizationSectionList, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SummarizationSectionList::Representation
6803
+
6804
+ end
6805
+ end
6806
+
6702
6807
  class GoogleCloudDialogflowV2beta1Fulfillment
6703
6808
  # @private
6704
6809
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -6751,6 +6856,26 @@ module Google
6751
6856
  end
6752
6857
  end
6753
6858
 
6859
+ class GoogleCloudDialogflowV2beta1GenerateStatelessSuggestionRequest
6860
+ # @private
6861
+ class Representation < Google::Apis::Core::JsonRepresentation
6862
+ property :conversation_context, as: 'conversationContext', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationContext, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationContext::Representation
6863
+
6864
+ property :generator, as: 'generator', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Generator, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Generator::Representation
6865
+
6866
+ property :generator_name, as: 'generatorName'
6867
+ collection :trigger_events, as: 'triggerEvents'
6868
+ end
6869
+ end
6870
+
6871
+ class GoogleCloudDialogflowV2beta1GenerateStatelessSuggestionResponse
6872
+ # @private
6873
+ class Representation < Google::Apis::Core::JsonRepresentation
6874
+ property :generator_suggestion, as: 'generatorSuggestion', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GeneratorSuggestion, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GeneratorSuggestion::Representation
6875
+
6876
+ end
6877
+ end
6878
+
6754
6879
  class GoogleCloudDialogflowV2beta1GenerateStatelessSummaryRequest
6755
6880
  # @private
6756
6881
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -6790,6 +6915,29 @@ module Google
6790
6915
  end
6791
6916
  end
6792
6917
 
6918
+ class GoogleCloudDialogflowV2beta1Generator
6919
+ # @private
6920
+ class Representation < Google::Apis::Core::JsonRepresentation
6921
+ property :create_time, as: 'createTime'
6922
+ property :description, as: 'description'
6923
+ property :inference_parameter, as: 'inferenceParameter', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1InferenceParameter, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1InferenceParameter::Representation
6924
+
6925
+ property :name, as: 'name'
6926
+ property :summarization_context, as: 'summarizationContext', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SummarizationContext, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SummarizationContext::Representation
6927
+
6928
+ property :trigger_event, as: 'triggerEvent'
6929
+ property :update_time, as: 'updateTime'
6930
+ end
6931
+ end
6932
+
6933
+ class GoogleCloudDialogflowV2beta1GeneratorSuggestion
6934
+ # @private
6935
+ class Representation < Google::Apis::Core::JsonRepresentation
6936
+ property :summary_suggestion, as: 'summarySuggestion', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SummarySuggestion, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SummarySuggestion::Representation
6937
+
6938
+ end
6939
+ end
6940
+
6793
6941
  class GoogleCloudDialogflowV2beta1HumanAgentAssistantConfig
6794
6942
  # @private
6795
6943
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -6832,6 +6980,7 @@ module Google
6832
6980
  class Representation < Google::Apis::Core::JsonRepresentation
6833
6981
  collection :feature_configs, as: 'featureConfigs', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionFeatureConfig, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionFeatureConfig::Representation
6834
6982
 
6983
+ collection :generators, as: 'generators'
6835
6984
  property :group_suggestion_responses, as: 'groupSuggestionResponses'
6836
6985
  end
6837
6986
  end
@@ -7000,12 +7149,23 @@ module Google
7000
7149
  end
7001
7150
  end
7002
7151
 
7152
+ class GoogleCloudDialogflowV2beta1InferenceParameter
7153
+ # @private
7154
+ class Representation < Google::Apis::Core::JsonRepresentation
7155
+ property :max_output_tokens, as: 'maxOutputTokens'
7156
+ property :temperature, as: 'temperature'
7157
+ property :top_k, as: 'topK'
7158
+ property :top_p, as: 'topP'
7159
+ end
7160
+ end
7161
+
7003
7162
  class GoogleCloudDialogflowV2beta1InputAudioConfig
7004
7163
  # @private
7005
7164
  class Representation < Google::Apis::Core::JsonRepresentation
7006
7165
  property :audio_encoding, as: 'audioEncoding'
7007
7166
  property :barge_in_config, as: 'bargeInConfig', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1BargeInConfig, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1BargeInConfig::Representation
7008
7167
 
7168
+ property :default_no_speech_timeout, as: 'defaultNoSpeechTimeout'
7009
7169
  property :disable_no_speech_recognized_event, as: 'disableNoSpeechRecognizedEvent'
7010
7170
  property :enable_automatic_punctuation, as: 'enableAutomaticPunctuation'
7011
7171
  property :enable_word_info, as: 'enableWordInfo'
@@ -7644,6 +7804,15 @@ module Google
7644
7804
  end
7645
7805
  end
7646
7806
 
7807
+ class GoogleCloudDialogflowV2beta1ListGeneratorsResponse
7808
+ # @private
7809
+ class Representation < Google::Apis::Core::JsonRepresentation
7810
+ collection :generators, as: 'generators', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Generator, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Generator::Representation
7811
+
7812
+ property :next_page_token, as: 'nextPageToken'
7813
+ end
7814
+ end
7815
+
7647
7816
  class GoogleCloudDialogflowV2beta1ListIntentsResponse
7648
7817
  # @private
7649
7818
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -7740,6 +7909,16 @@ module Google
7740
7909
  end
7741
7910
  end
7742
7911
 
7912
+ class GoogleCloudDialogflowV2beta1MessageEntry
7913
+ # @private
7914
+ class Representation < Google::Apis::Core::JsonRepresentation
7915
+ property :create_time, as: 'createTime'
7916
+ property :language_code, as: 'languageCode'
7917
+ property :role, as: 'role'
7918
+ property :text, as: 'text'
7919
+ end
7920
+ end
7921
+
7743
7922
  class GoogleCloudDialogflowV2beta1NotificationConfig
7744
7923
  # @private
7745
7924
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -8239,6 +8418,51 @@ module Google
8239
8418
  end
8240
8419
  end
8241
8420
 
8421
+ class GoogleCloudDialogflowV2beta1SummarizationContext
8422
+ # @private
8423
+ class Representation < Google::Apis::Core::JsonRepresentation
8424
+ collection :few_shot_examples, as: 'fewShotExamples', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1FewShotExample, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1FewShotExample::Representation
8425
+
8426
+ property :output_language_code, as: 'outputLanguageCode'
8427
+ collection :summarization_sections, as: 'summarizationSections', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SummarizationSection, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SummarizationSection::Representation
8428
+
8429
+ property :version, as: 'version'
8430
+ end
8431
+ end
8432
+
8433
+ class GoogleCloudDialogflowV2beta1SummarizationSection
8434
+ # @private
8435
+ class Representation < Google::Apis::Core::JsonRepresentation
8436
+ property :definition, as: 'definition'
8437
+ property :key, as: 'key'
8438
+ property :type, as: 'type'
8439
+ end
8440
+ end
8441
+
8442
+ class GoogleCloudDialogflowV2beta1SummarizationSectionList
8443
+ # @private
8444
+ class Representation < Google::Apis::Core::JsonRepresentation
8445
+ collection :summarization_sections, as: 'summarizationSections', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SummarizationSection, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SummarizationSection::Representation
8446
+
8447
+ end
8448
+ end
8449
+
8450
+ class GoogleCloudDialogflowV2beta1SummarySuggestion
8451
+ # @private
8452
+ class Representation < Google::Apis::Core::JsonRepresentation
8453
+ collection :summary_sections, as: 'summarySections', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SummarySuggestionSummarySection, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SummarySuggestionSummarySection::Representation
8454
+
8455
+ end
8456
+ end
8457
+
8458
+ class GoogleCloudDialogflowV2beta1SummarySuggestionSummarySection
8459
+ # @private
8460
+ class Representation < Google::Apis::Core::JsonRepresentation
8461
+ property :section, as: 'section'
8462
+ property :summary, as: 'summary'
8463
+ end
8464
+ end
8465
+
8242
8466
  class GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig
8243
8467
  # @private
8244
8468
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -4156,6 +4156,87 @@ module Google
4156
4156
  execute_or_queue_command(command, &block)
4157
4157
  end
4158
4158
 
4159
+ # Creates a generator.
4160
+ # @param [String] parent
4161
+ # Required. The project/location to create generator for. Format: `projects//
4162
+ # locations/`
4163
+ # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Generator] google_cloud_dialogflow_v2beta1_generator_object
4164
+ # @param [String] generator_id
4165
+ # Optional. The ID to use for the generator, which will become the final
4166
+ # component of the generator's resource name. The generator ID must be compliant
4167
+ # with the regression fomula `a-zA-Z*` with the characters length in range of [3,
4168
+ # 64]. If the field is not provided, an Id will be auto-generated. If the field
4169
+ # is provided, the caller is resposible for 1. the uniqueness of the ID,
4170
+ # otherwise the request will be rejected. 2. the consistency for whether to use
4171
+ # custom ID or not under a project to better ensure uniqueness.
4172
+ # @param [String] fields
4173
+ # Selector specifying which fields to include in a partial response.
4174
+ # @param [String] quota_user
4175
+ # Available to use for quota purposes for server-side applications. Can be any
4176
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4177
+ # @param [Google::Apis::RequestOptions] options
4178
+ # Request-specific options
4179
+ #
4180
+ # @yield [result, err] Result & error if block supplied
4181
+ # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Generator] parsed result object
4182
+ # @yieldparam err [StandardError] error object if request failed
4183
+ #
4184
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Generator]
4185
+ #
4186
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4187
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4188
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4189
+ def create_project_generator(parent, google_cloud_dialogflow_v2beta1_generator_object = nil, generator_id: nil, fields: nil, quota_user: nil, options: nil, &block)
4190
+ command = make_simple_command(:post, 'v2beta1/{+parent}/generators', options)
4191
+ command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Generator::Representation
4192
+ command.request_object = google_cloud_dialogflow_v2beta1_generator_object
4193
+ command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Generator::Representation
4194
+ command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Generator
4195
+ command.params['parent'] = parent unless parent.nil?
4196
+ command.query['generatorId'] = generator_id unless generator_id.nil?
4197
+ command.query['fields'] = fields unless fields.nil?
4198
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4199
+ execute_or_queue_command(command, &block)
4200
+ end
4201
+
4202
+ # Lists generators.
4203
+ # @param [String] parent
4204
+ # Required. The project/location to list generators for. Format: `projects//
4205
+ # locations/`
4206
+ # @param [Fixnum] page_size
4207
+ # Optional. Maximum number of conversation models to return in a single page.
4208
+ # Default to 10.
4209
+ # @param [String] page_token
4210
+ # Optional. The next_page_token value returned from a previous list request.
4211
+ # @param [String] fields
4212
+ # Selector specifying which fields to include in a partial response.
4213
+ # @param [String] quota_user
4214
+ # Available to use for quota purposes for server-side applications. Can be any
4215
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4216
+ # @param [Google::Apis::RequestOptions] options
4217
+ # Request-specific options
4218
+ #
4219
+ # @yield [result, err] Result & error if block supplied
4220
+ # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListGeneratorsResponse] parsed result object
4221
+ # @yieldparam err [StandardError] error object if request failed
4222
+ #
4223
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListGeneratorsResponse]
4224
+ #
4225
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4226
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4227
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4228
+ def list_project_generators(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
4229
+ command = make_simple_command(:get, 'v2beta1/{+parent}/generators', options)
4230
+ command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListGeneratorsResponse::Representation
4231
+ command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListGeneratorsResponse
4232
+ command.params['parent'] = parent unless parent.nil?
4233
+ command.query['pageSize'] = page_size unless page_size.nil?
4234
+ command.query['pageToken'] = page_token unless page_token.nil?
4235
+ command.query['fields'] = fields unless fields.nil?
4236
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4237
+ execute_or_queue_command(command, &block)
4238
+ end
4239
+
4159
4240
  # Creates a knowledge base. Note: The `projects.agent.knowledgeBases` resource
4160
4241
  # is deprecated; only use `projects.knowledgeBases`.
4161
4242
  # @param [String] parent
@@ -8278,6 +8359,186 @@ module Google
8278
8359
  execute_or_queue_command(command, &block)
8279
8360
  end
8280
8361
 
8362
+ # Creates a generator.
8363
+ # @param [String] parent
8364
+ # Required. The project/location to create generator for. Format: `projects//
8365
+ # locations/`
8366
+ # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Generator] google_cloud_dialogflow_v2beta1_generator_object
8367
+ # @param [String] generator_id
8368
+ # Optional. The ID to use for the generator, which will become the final
8369
+ # component of the generator's resource name. The generator ID must be compliant
8370
+ # with the regression fomula `a-zA-Z*` with the characters length in range of [3,
8371
+ # 64]. If the field is not provided, an Id will be auto-generated. If the field
8372
+ # is provided, the caller is resposible for 1. the uniqueness of the ID,
8373
+ # otherwise the request will be rejected. 2. the consistency for whether to use
8374
+ # custom ID or not under a project to better ensure uniqueness.
8375
+ # @param [String] fields
8376
+ # Selector specifying which fields to include in a partial response.
8377
+ # @param [String] quota_user
8378
+ # Available to use for quota purposes for server-side applications. Can be any
8379
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
8380
+ # @param [Google::Apis::RequestOptions] options
8381
+ # Request-specific options
8382
+ #
8383
+ # @yield [result, err] Result & error if block supplied
8384
+ # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Generator] parsed result object
8385
+ # @yieldparam err [StandardError] error object if request failed
8386
+ #
8387
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Generator]
8388
+ #
8389
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8390
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8391
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
8392
+ def create_project_location_generator(parent, google_cloud_dialogflow_v2beta1_generator_object = nil, generator_id: nil, fields: nil, quota_user: nil, options: nil, &block)
8393
+ command = make_simple_command(:post, 'v2beta1/{+parent}/generators', options)
8394
+ command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Generator::Representation
8395
+ command.request_object = google_cloud_dialogflow_v2beta1_generator_object
8396
+ command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Generator::Representation
8397
+ command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Generator
8398
+ command.params['parent'] = parent unless parent.nil?
8399
+ command.query['generatorId'] = generator_id unless generator_id.nil?
8400
+ command.query['fields'] = fields unless fields.nil?
8401
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
8402
+ execute_or_queue_command(command, &block)
8403
+ end
8404
+
8405
+ # Deletes a generator.
8406
+ # @param [String] name
8407
+ # Required. The generator resource name to delete. Format: `projects//locations//
8408
+ # generators/`
8409
+ # @param [String] fields
8410
+ # Selector specifying which fields to include in a partial response.
8411
+ # @param [String] quota_user
8412
+ # Available to use for quota purposes for server-side applications. Can be any
8413
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
8414
+ # @param [Google::Apis::RequestOptions] options
8415
+ # Request-specific options
8416
+ #
8417
+ # @yield [result, err] Result & error if block supplied
8418
+ # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty] parsed result object
8419
+ # @yieldparam err [StandardError] error object if request failed
8420
+ #
8421
+ # @return [Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty]
8422
+ #
8423
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8424
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8425
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
8426
+ def delete_project_location_generator(name, fields: nil, quota_user: nil, options: nil, &block)
8427
+ command = make_simple_command(:delete, 'v2beta1/{+name}', options)
8428
+ command.response_representation = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty::Representation
8429
+ command.response_class = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty
8430
+ command.params['name'] = name unless name.nil?
8431
+ command.query['fields'] = fields unless fields.nil?
8432
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
8433
+ execute_or_queue_command(command, &block)
8434
+ end
8435
+
8436
+ # Retrieves a generator.
8437
+ # @param [String] name
8438
+ # Required. The generator resource name to retrieve. Format: `projects//
8439
+ # locations/`/generators/`
8440
+ # @param [String] fields
8441
+ # Selector specifying which fields to include in a partial response.
8442
+ # @param [String] quota_user
8443
+ # Available to use for quota purposes for server-side applications. Can be any
8444
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
8445
+ # @param [Google::Apis::RequestOptions] options
8446
+ # Request-specific options
8447
+ #
8448
+ # @yield [result, err] Result & error if block supplied
8449
+ # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Generator] parsed result object
8450
+ # @yieldparam err [StandardError] error object if request failed
8451
+ #
8452
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Generator]
8453
+ #
8454
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8455
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8456
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
8457
+ def get_project_location_generator(name, fields: nil, quota_user: nil, options: nil, &block)
8458
+ command = make_simple_command(:get, 'v2beta1/{+name}', options)
8459
+ command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Generator::Representation
8460
+ command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Generator
8461
+ command.params['name'] = name unless name.nil?
8462
+ command.query['fields'] = fields unless fields.nil?
8463
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
8464
+ execute_or_queue_command(command, &block)
8465
+ end
8466
+
8467
+ # Lists generators.
8468
+ # @param [String] parent
8469
+ # Required. The project/location to list generators for. Format: `projects//
8470
+ # locations/`
8471
+ # @param [Fixnum] page_size
8472
+ # Optional. Maximum number of conversation models to return in a single page.
8473
+ # Default to 10.
8474
+ # @param [String] page_token
8475
+ # Optional. The next_page_token value returned from a previous list request.
8476
+ # @param [String] fields
8477
+ # Selector specifying which fields to include in a partial response.
8478
+ # @param [String] quota_user
8479
+ # Available to use for quota purposes for server-side applications. Can be any
8480
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
8481
+ # @param [Google::Apis::RequestOptions] options
8482
+ # Request-specific options
8483
+ #
8484
+ # @yield [result, err] Result & error if block supplied
8485
+ # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListGeneratorsResponse] parsed result object
8486
+ # @yieldparam err [StandardError] error object if request failed
8487
+ #
8488
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListGeneratorsResponse]
8489
+ #
8490
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8491
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8492
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
8493
+ def list_project_location_generators(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
8494
+ command = make_simple_command(:get, 'v2beta1/{+parent}/generators', options)
8495
+ command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListGeneratorsResponse::Representation
8496
+ command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListGeneratorsResponse
8497
+ command.params['parent'] = parent unless parent.nil?
8498
+ command.query['pageSize'] = page_size unless page_size.nil?
8499
+ command.query['pageToken'] = page_token unless page_token.nil?
8500
+ command.query['fields'] = fields unless fields.nil?
8501
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
8502
+ execute_or_queue_command(command, &block)
8503
+ end
8504
+
8505
+ # Updates a generator.
8506
+ # @param [String] name
8507
+ # Output only. Identifier. The resource name of the generator. Format: `projects/
8508
+ # /locations//generators/`
8509
+ # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Generator] google_cloud_dialogflow_v2beta1_generator_object
8510
+ # @param [String] update_mask
8511
+ # Optional. The list of fields to update.
8512
+ # @param [String] fields
8513
+ # Selector specifying which fields to include in a partial response.
8514
+ # @param [String] quota_user
8515
+ # Available to use for quota purposes for server-side applications. Can be any
8516
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
8517
+ # @param [Google::Apis::RequestOptions] options
8518
+ # Request-specific options
8519
+ #
8520
+ # @yield [result, err] Result & error if block supplied
8521
+ # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Generator] parsed result object
8522
+ # @yieldparam err [StandardError] error object if request failed
8523
+ #
8524
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Generator]
8525
+ #
8526
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8527
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8528
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
8529
+ def patch_project_location_generator(name, google_cloud_dialogflow_v2beta1_generator_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
8530
+ command = make_simple_command(:patch, 'v2beta1/{+name}', options)
8531
+ command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Generator::Representation
8532
+ command.request_object = google_cloud_dialogflow_v2beta1_generator_object
8533
+ command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Generator::Representation
8534
+ command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Generator
8535
+ command.params['name'] = name unless name.nil?
8536
+ command.query['updateMask'] = update_mask unless update_mask.nil?
8537
+ command.query['fields'] = fields unless fields.nil?
8538
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
8539
+ execute_or_queue_command(command, &block)
8540
+ end
8541
+
8281
8542
  # Creates a knowledge base. Note: The `projects.agent.knowledgeBases` resource
8282
8543
  # is deprecated; only use `projects.knowledgeBases`.
8283
8544
  # @param [String] parent
@@ -8875,6 +9136,41 @@ module Google
8875
9136
  execute_or_queue_command(command, &block)
8876
9137
  end
8877
9138
 
9139
+ # Generates and returns a suggestion for a conversation that does not have a
9140
+ # resource created for it.
9141
+ # @param [String] parent
9142
+ # Required. The parent resource to charge for the Suggestion's generation.
9143
+ # Format: `projects//locations/`.
9144
+ # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GenerateStatelessSuggestionRequest] google_cloud_dialogflow_v2beta1_generate_stateless_suggestion_request_object
9145
+ # @param [String] fields
9146
+ # Selector specifying which fields to include in a partial response.
9147
+ # @param [String] quota_user
9148
+ # Available to use for quota purposes for server-side applications. Can be any
9149
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
9150
+ # @param [Google::Apis::RequestOptions] options
9151
+ # Request-specific options
9152
+ #
9153
+ # @yield [result, err] Result & error if block supplied
9154
+ # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GenerateStatelessSuggestionResponse] parsed result object
9155
+ # @yieldparam err [StandardError] error object if request failed
9156
+ #
9157
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GenerateStatelessSuggestionResponse]
9158
+ #
9159
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9160
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9161
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
9162
+ def generate_project_location_stateless_suggestion(parent, google_cloud_dialogflow_v2beta1_generate_stateless_suggestion_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
9163
+ command = make_simple_command(:post, 'v2beta1/{+parent}/statelessSuggestion:generate', options)
9164
+ command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GenerateStatelessSuggestionRequest::Representation
9165
+ command.request_object = google_cloud_dialogflow_v2beta1_generate_stateless_suggestion_request_object
9166
+ command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GenerateStatelessSuggestionResponse::Representation
9167
+ command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GenerateStatelessSuggestionResponse
9168
+ command.params['parent'] = parent unless parent.nil?
9169
+ command.query['fields'] = fields unless fields.nil?
9170
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
9171
+ execute_or_queue_command(command, &block)
9172
+ end
9173
+
8878
9174
  # Generates and returns a summary for a conversation that does not have a
8879
9175
  # resource created for it.
8880
9176
  # @param [String] parent
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-dialogflow_v2beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.85.0
4
+ version: 0.86.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-05-19 00:00:00.000000000 Z
11
+ date: 2024-06-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-dialogflow_v2beta1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-dialogflow_v2beta1/v0.85.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-dialogflow_v2beta1/v0.86.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-dialogflow_v2beta1
63
63
  post_install_message:
64
64
  rdoc_options: []