google-apis-dialogflow_v2 0.86.0 → 0.88.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 144c169278908a1d71b0e7219ab37c4aa725616db626b8b29c4136b3ba73c451
4
- data.tar.gz: d06c56fc1f71c4aa0f9dfad541c83e89609ecf39ca6464d7214aee4f473a9deb
3
+ metadata.gz: e8c8a173abc21384040e36f4ccfad7ea727d32fea01ce85c66c4166934a3903f
4
+ data.tar.gz: d2aeac770a9e67f451f16f31e20a6eacac0a33e7591882e4f1519af7987a4694
5
5
  SHA512:
6
- metadata.gz: a07ea4983aa41f08d7756f4671b27b76d0221fa4965d4ba66ac15ec4929df0a075af13f891d603637a3fbc2e07ad6fac2f1029e83ab0695ec83cdfe1a8bc3d44
7
- data.tar.gz: 42234abeb9f206cc75e8583bb0170d76dfe09f0fde419887b66e4b807ab8856bf8de6fa974fbdee7e9b2695a83c69c8045b74a88f9f2c4f55c6e0ae25a72f3df
6
+ metadata.gz: 26c356f07ce823408250624641b47e627a60e8e100421ad7f9a0ad2d971b26266e270aca2fce4419595099810f9ec896ddbece3818e8cd830cbd5d487b817fa6
7
+ data.tar.gz: 91b04635c2eae033dd32ea1f1ad50cf80f040a4d8a3303e5a66f5f22bdc4d9dc22247a9b927d257fbc531e55f4fe83c91ccb3e3763700aa13752d5a238df1e7b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-dialogflow_v2
2
2
 
3
+ ### v0.88.0 (2024-06-02)
4
+
5
+ * Regenerated from discovery document revision 20240523
6
+
7
+ ### v0.87.0 (2024-05-19)
8
+
9
+ * Regenerated using generator version 0.15.0
10
+
3
11
  ### v0.86.0 (2024-05-12)
4
12
 
5
13
  * Regenerated from discovery document revision 20240507
@@ -8884,6 +8884,25 @@ module Google
8884
8884
  end
8885
8885
  end
8886
8886
 
8887
+ # Context of the conversation, including transcripts.
8888
+ class GoogleCloudDialogflowV2ConversationContext
8889
+ include Google::Apis::Core::Hashable
8890
+
8891
+ # Optional. List of message transcripts in the conversation.
8892
+ # Corresponds to the JSON property `messageEntries`
8893
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2MessageEntry>]
8894
+ attr_accessor :message_entries
8895
+
8896
+ def initialize(**args)
8897
+ update!(**args)
8898
+ end
8899
+
8900
+ # Update properties of this object
8901
+ def update!(**args)
8902
+ @message_entries = args[:message_entries] if args.key?(:message_entries)
8903
+ end
8904
+ end
8905
+
8887
8906
  # Represents a conversation dataset that a user imports raw data into. The data
8888
8907
  # inside ConversationDataset can not be changed after ImportConversationData
8889
8908
  # finishes (and calling ImportConversationData on a dataset that already has
@@ -10302,6 +10321,46 @@ module Google
10302
10321
  end
10303
10322
  end
10304
10323
 
10324
+ # Providing examples in the generator (i.e. building a few-shot generator) helps
10325
+ # convey the desired format of the LLM response. NEXT_ID: 10
10326
+ class GoogleCloudDialogflowV2FewShotExample
10327
+ include Google::Apis::Core::Hashable
10328
+
10329
+ # Context of the conversation, including transcripts.
10330
+ # Corresponds to the JSON property `conversationContext`
10331
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationContext]
10332
+ attr_accessor :conversation_context
10333
+
10334
+ # Optional. Key is the placeholder field name in input, value is the value of
10335
+ # the placeholder. E.g. instruction contains "@price", and ingested data has <"
10336
+ # price", "10">
10337
+ # Corresponds to the JSON property `extraInfo`
10338
+ # @return [Hash<String,String>]
10339
+ attr_accessor :extra_info
10340
+
10341
+ # Suggestion generated using a Generator.
10342
+ # Corresponds to the JSON property `output`
10343
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GeneratorSuggestion]
10344
+ attr_accessor :output
10345
+
10346
+ # List of summarization sections.
10347
+ # Corresponds to the JSON property `summarizationSectionList`
10348
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SummarizationSectionList]
10349
+ attr_accessor :summarization_section_list
10350
+
10351
+ def initialize(**args)
10352
+ update!(**args)
10353
+ end
10354
+
10355
+ # Update properties of this object
10356
+ def update!(**args)
10357
+ @conversation_context = args[:conversation_context] if args.key?(:conversation_context)
10358
+ @extra_info = args[:extra_info] if args.key?(:extra_info)
10359
+ @output = args[:output] if args.key?(:output)
10360
+ @summarization_section_list = args[:summarization_section_list] if args.key?(:summarization_section_list)
10361
+ end
10362
+ end
10363
+
10305
10364
  # By default, your agent responds to a matched intent with a static response. As
10306
10365
  # an alternative, you can provide a more dynamic response by using fulfillment.
10307
10366
  # When you enable fulfillment for an intent, Dialogflow responds to that intent
@@ -10473,6 +10532,64 @@ module Google
10473
10532
  end
10474
10533
  end
10475
10534
 
10535
+ # The request message for Conversations.GenerateStatelessSuggestion.
10536
+ class GoogleCloudDialogflowV2GenerateStatelessSuggestionRequest
10537
+ include Google::Apis::Core::Hashable
10538
+
10539
+ # Context of the conversation, including transcripts.
10540
+ # Corresponds to the JSON property `conversationContext`
10541
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationContext]
10542
+ attr_accessor :conversation_context
10543
+
10544
+ # LLM generator.
10545
+ # Corresponds to the JSON property `generator`
10546
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Generator]
10547
+ attr_accessor :generator
10548
+
10549
+ # The resource name of the existing created generator. Format: `projects//
10550
+ # locations//generators/`
10551
+ # Corresponds to the JSON property `generatorName`
10552
+ # @return [String]
10553
+ attr_accessor :generator_name
10554
+
10555
+ # Optional. A list of trigger events. Generator will be triggered only if it's
10556
+ # trigger event is included here.
10557
+ # Corresponds to the JSON property `triggerEvents`
10558
+ # @return [Array<String>]
10559
+ attr_accessor :trigger_events
10560
+
10561
+ def initialize(**args)
10562
+ update!(**args)
10563
+ end
10564
+
10565
+ # Update properties of this object
10566
+ def update!(**args)
10567
+ @conversation_context = args[:conversation_context] if args.key?(:conversation_context)
10568
+ @generator = args[:generator] if args.key?(:generator)
10569
+ @generator_name = args[:generator_name] if args.key?(:generator_name)
10570
+ @trigger_events = args[:trigger_events] if args.key?(:trigger_events)
10571
+ end
10572
+ end
10573
+
10574
+ # The response message for Conversations.GenerateStatelessSuggestion.
10575
+ class GoogleCloudDialogflowV2GenerateStatelessSuggestionResponse
10576
+ include Google::Apis::Core::Hashable
10577
+
10578
+ # Suggestion generated using a Generator.
10579
+ # Corresponds to the JSON property `generatorSuggestion`
10580
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GeneratorSuggestion]
10581
+ attr_accessor :generator_suggestion
10582
+
10583
+ def initialize(**args)
10584
+ update!(**args)
10585
+ end
10586
+
10587
+ # Update properties of this object
10588
+ def update!(**args)
10589
+ @generator_suggestion = args[:generator_suggestion] if args.key?(:generator_suggestion)
10590
+ end
10591
+ end
10592
+
10476
10593
  # The request message for Conversations.GenerateStatelessSummary.
10477
10594
  class GoogleCloudDialogflowV2GenerateStatelessSummaryRequest
10478
10595
  include Google::Apis::Core::Hashable
@@ -10608,6 +10725,82 @@ module Google
10608
10725
  end
10609
10726
  end
10610
10727
 
10728
+ # LLM generator.
10729
+ class GoogleCloudDialogflowV2Generator
10730
+ include Google::Apis::Core::Hashable
10731
+
10732
+ # Output only. Creation time of this generator.
10733
+ # Corresponds to the JSON property `createTime`
10734
+ # @return [String]
10735
+ attr_accessor :create_time
10736
+
10737
+ # Optional. Human readable description of the generator.
10738
+ # Corresponds to the JSON property `description`
10739
+ # @return [String]
10740
+ attr_accessor :description
10741
+
10742
+ # The parameters of inference.
10743
+ # Corresponds to the JSON property `inferenceParameter`
10744
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2InferenceParameter]
10745
+ attr_accessor :inference_parameter
10746
+
10747
+ # Output only. Identifier. The resource name of the generator. Format: `projects/
10748
+ # /locations//generators/`
10749
+ # Corresponds to the JSON property `name`
10750
+ # @return [String]
10751
+ attr_accessor :name
10752
+
10753
+ # Summarization context that customer can configure.
10754
+ # Corresponds to the JSON property `summarizationContext`
10755
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SummarizationContext]
10756
+ attr_accessor :summarization_context
10757
+
10758
+ # Optional. The trigger event of the generator. It defines when the generator is
10759
+ # triggered in a conversation.
10760
+ # Corresponds to the JSON property `triggerEvent`
10761
+ # @return [String]
10762
+ attr_accessor :trigger_event
10763
+
10764
+ # Output only. Update time of this generator.
10765
+ # Corresponds to the JSON property `updateTime`
10766
+ # @return [String]
10767
+ attr_accessor :update_time
10768
+
10769
+ def initialize(**args)
10770
+ update!(**args)
10771
+ end
10772
+
10773
+ # Update properties of this object
10774
+ def update!(**args)
10775
+ @create_time = args[:create_time] if args.key?(:create_time)
10776
+ @description = args[:description] if args.key?(:description)
10777
+ @inference_parameter = args[:inference_parameter] if args.key?(:inference_parameter)
10778
+ @name = args[:name] if args.key?(:name)
10779
+ @summarization_context = args[:summarization_context] if args.key?(:summarization_context)
10780
+ @trigger_event = args[:trigger_event] if args.key?(:trigger_event)
10781
+ @update_time = args[:update_time] if args.key?(:update_time)
10782
+ end
10783
+ end
10784
+
10785
+ # Suggestion generated using a Generator.
10786
+ class GoogleCloudDialogflowV2GeneratorSuggestion
10787
+ include Google::Apis::Core::Hashable
10788
+
10789
+ # Suggested summary of the conversation.
10790
+ # Corresponds to the JSON property `summarySuggestion`
10791
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SummarySuggestion]
10792
+ attr_accessor :summary_suggestion
10793
+
10794
+ def initialize(**args)
10795
+ update!(**args)
10796
+ end
10797
+
10798
+ # Update properties of this object
10799
+ def update!(**args)
10800
+ @summary_suggestion = args[:summary_suggestion] if args.key?(:summary_suggestion)
10801
+ end
10802
+ end
10803
+
10611
10804
  # Defines the Human Agent Assist to connect to a conversation.
10612
10805
  class GoogleCloudDialogflowV2HumanAgentAssistantConfig
10613
10806
  include Google::Apis::Core::Hashable
@@ -10745,6 +10938,12 @@ module Google
10745
10938
  # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionFeatureConfig>]
10746
10939
  attr_accessor :feature_configs
10747
10940
 
10941
+ # Optional. List of various generator resource names used in the conversation
10942
+ # profile.
10943
+ # Corresponds to the JSON property `generators`
10944
+ # @return [Array<String>]
10945
+ attr_accessor :generators
10946
+
10748
10947
  # If `group_suggestion_responses` is false, and there are multiple `
10749
10948
  # feature_configs` in `event based suggestion` or StreamingAnalyzeContent, we
10750
10949
  # will try to deliver suggestions to customers as soon as we get new suggestion.
@@ -10765,6 +10964,7 @@ module Google
10765
10964
  # Update properties of this object
10766
10965
  def update!(**args)
10767
10966
  @feature_configs = args[:feature_configs] if args.key?(:feature_configs)
10967
+ @generators = args[:generators] if args.key?(:generators)
10768
10968
  @group_suggestion_responses = args[:group_suggestion_responses] if args.key?(:group_suggestion_responses)
10769
10969
  end
10770
10970
  end
@@ -11124,7 +11324,7 @@ module Google
11124
11324
  class GoogleCloudDialogflowV2HumanAgentHandoffConfig
11125
11325
  include Google::Apis::Core::Hashable
11126
11326
 
11127
- # Configuration specific to LivePerson (https://www.liveperson.com).
11327
+ # Configuration specific to [LivePerson](https://www.liveperson.com).
11128
11328
  # Corresponds to the JSON property `livePersonConfig`
11129
11329
  # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2HumanAgentHandoffConfigLivePersonConfig]
11130
11330
  attr_accessor :live_person_config
@@ -11145,7 +11345,7 @@ module Google
11145
11345
  end
11146
11346
  end
11147
11347
 
11148
- # Configuration specific to LivePerson (https://www.liveperson.com).
11348
+ # Configuration specific to [LivePerson](https://www.liveperson.com).
11149
11349
  class GoogleCloudDialogflowV2HumanAgentHandoffConfigLivePersonConfig
11150
11350
  include Google::Apis::Core::Hashable
11151
11351
 
@@ -11403,6 +11603,60 @@ module Google
11403
11603
  end
11404
11604
  end
11405
11605
 
11606
+ # The parameters of inference.
11607
+ class GoogleCloudDialogflowV2InferenceParameter
11608
+ include Google::Apis::Core::Hashable
11609
+
11610
+ # Optional. Maximum number of the output tokens for the generator.
11611
+ # Corresponds to the JSON property `maxOutputTokens`
11612
+ # @return [Fixnum]
11613
+ attr_accessor :max_output_tokens
11614
+
11615
+ # Optional. Controls the randomness of LLM predictions. Low temperature = less
11616
+ # random. High temperature = more random. If unset (or 0), uses a default value
11617
+ # of 0.
11618
+ # Corresponds to the JSON property `temperature`
11619
+ # @return [Float]
11620
+ attr_accessor :temperature
11621
+
11622
+ # Optional. Top-k changes how the model selects tokens for output. A top-k of 1
11623
+ # means the selected token is the most probable among all tokens in the model's
11624
+ # vocabulary (also called greedy decoding), while a top-k of 3 means that the
11625
+ # next token is selected from among the 3 most probable tokens (using
11626
+ # temperature). For each token selection step, the top K tokens with the highest
11627
+ # probabilities are sampled. Then tokens are further filtered based on topP with
11628
+ # the final token selected using temperature sampling. Specify a lower value for
11629
+ # less random responses and a higher value for more random responses. Acceptable
11630
+ # value is [1, 40], default to 40.
11631
+ # Corresponds to the JSON property `topK`
11632
+ # @return [Fixnum]
11633
+ attr_accessor :top_k
11634
+
11635
+ # Optional. Top-p changes how the model selects tokens for output. Tokens are
11636
+ # selected from most K (see topK parameter) probable to least until the sum of
11637
+ # their probabilities equals the top-p value. For example, if tokens A, B, and C
11638
+ # have a probability of 0.3, 0.2, and 0.1 and the top-p value is 0.5, then the
11639
+ # model will select either A or B as the next token (using temperature) and
11640
+ # doesn't consider C. The default top-p value is 0.95. Specify a lower value for
11641
+ # less random responses and a higher value for more random responses. Acceptable
11642
+ # value is [0.0, 1.0], default to 0.95.
11643
+ # Corresponds to the JSON property `topP`
11644
+ # @return [Float]
11645
+ attr_accessor :top_p
11646
+
11647
+ def initialize(**args)
11648
+ update!(**args)
11649
+ end
11650
+
11651
+ # Update properties of this object
11652
+ def update!(**args)
11653
+ @max_output_tokens = args[:max_output_tokens] if args.key?(:max_output_tokens)
11654
+ @temperature = args[:temperature] if args.key?(:temperature)
11655
+ @top_k = args[:top_k] if args.key?(:top_k)
11656
+ @top_p = args[:top_p] if args.key?(:top_p)
11657
+ end
11658
+ end
11659
+
11406
11660
  # Instructs the speech recognizer how to process the audio content.
11407
11661
  class GoogleCloudDialogflowV2InputAudioConfig
11408
11662
  include Google::Apis::Core::Hashable
@@ -13205,6 +13459,32 @@ module Google
13205
13459
  end
13206
13460
  end
13207
13461
 
13462
+ # Response of ListGenerators.
13463
+ class GoogleCloudDialogflowV2ListGeneratorsResponse
13464
+ include Google::Apis::Core::Hashable
13465
+
13466
+ # List of generators retrieved.
13467
+ # Corresponds to the JSON property `generators`
13468
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Generator>]
13469
+ attr_accessor :generators
13470
+
13471
+ # Token to retrieve the next page of results, or empty if there are no more
13472
+ # results in the list.
13473
+ # Corresponds to the JSON property `nextPageToken`
13474
+ # @return [String]
13475
+ attr_accessor :next_page_token
13476
+
13477
+ def initialize(**args)
13478
+ update!(**args)
13479
+ end
13480
+
13481
+ # Update properties of this object
13482
+ def update!(**args)
13483
+ @generators = args[:generators] if args.key?(:generators)
13484
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
13485
+ end
13486
+ end
13487
+
13208
13488
  # The response message for Intents.ListIntents.
13209
13489
  class GoogleCloudDialogflowV2ListIntentsResponse
13210
13490
  include Google::Apis::Core::Hashable
@@ -13492,6 +13772,45 @@ module Google
13492
13772
  end
13493
13773
  end
13494
13774
 
13775
+ # Represents a message entry of a conversation.
13776
+ class GoogleCloudDialogflowV2MessageEntry
13777
+ include Google::Apis::Core::Hashable
13778
+
13779
+ # Optional. Create time of the message entry.
13780
+ # Corresponds to the JSON property `createTime`
13781
+ # @return [String]
13782
+ attr_accessor :create_time
13783
+
13784
+ # Optional. The language of the text. See [Language Support](https://cloud.
13785
+ # google.com/dialogflow/docs/reference/language) for a list of the currently
13786
+ # supported language codes.
13787
+ # Corresponds to the JSON property `languageCode`
13788
+ # @return [String]
13789
+ attr_accessor :language_code
13790
+
13791
+ # Optional. Participant role of the message.
13792
+ # Corresponds to the JSON property `role`
13793
+ # @return [String]
13794
+ attr_accessor :role
13795
+
13796
+ # Optional. Transcript content of the message.
13797
+ # Corresponds to the JSON property `text`
13798
+ # @return [String]
13799
+ attr_accessor :text
13800
+
13801
+ def initialize(**args)
13802
+ update!(**args)
13803
+ end
13804
+
13805
+ # Update properties of this object
13806
+ def update!(**args)
13807
+ @create_time = args[:create_time] if args.key?(:create_time)
13808
+ @language_code = args[:language_code] if args.key?(:language_code)
13809
+ @role = args[:role] if args.key?(:role)
13810
+ @text = args[:text] if args.key?(:text)
13811
+ end
13812
+ end
13813
+
13495
13814
  # Defines notification behavior.
13496
13815
  class GoogleCloudDialogflowV2NotificationConfig
13497
13816
  include Google::Apis::Core::Hashable
@@ -15019,6 +15338,142 @@ module Google
15019
15338
  end
15020
15339
  end
15021
15340
 
15341
+ # Summarization context that customer can configure.
15342
+ class GoogleCloudDialogflowV2SummarizationContext
15343
+ include Google::Apis::Core::Hashable
15344
+
15345
+ # Optional. List of few shot examples.
15346
+ # Corresponds to the JSON property `fewShotExamples`
15347
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2FewShotExample>]
15348
+ attr_accessor :few_shot_examples
15349
+
15350
+ # Optional. The target language of the generated summary. The language code for
15351
+ # conversation will be used if this field is empty. Supported 2.0 and later
15352
+ # versions.
15353
+ # Corresponds to the JSON property `outputLanguageCode`
15354
+ # @return [String]
15355
+ attr_accessor :output_language_code
15356
+
15357
+ # Optional. List of sections. Note it contains both predefined section sand
15358
+ # customer defined sections.
15359
+ # Corresponds to the JSON property `summarizationSections`
15360
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SummarizationSection>]
15361
+ attr_accessor :summarization_sections
15362
+
15363
+ # Optional. Version of the feature. If not set, default to latest version.
15364
+ # Current candidates are ["1.0"].
15365
+ # Corresponds to the JSON property `version`
15366
+ # @return [String]
15367
+ attr_accessor :version
15368
+
15369
+ def initialize(**args)
15370
+ update!(**args)
15371
+ end
15372
+
15373
+ # Update properties of this object
15374
+ def update!(**args)
15375
+ @few_shot_examples = args[:few_shot_examples] if args.key?(:few_shot_examples)
15376
+ @output_language_code = args[:output_language_code] if args.key?(:output_language_code)
15377
+ @summarization_sections = args[:summarization_sections] if args.key?(:summarization_sections)
15378
+ @version = args[:version] if args.key?(:version)
15379
+ end
15380
+ end
15381
+
15382
+ # Represents the section of summarization.
15383
+ class GoogleCloudDialogflowV2SummarizationSection
15384
+ include Google::Apis::Core::Hashable
15385
+
15386
+ # Optional. Definition of the section, for example, "what the customer needs
15387
+ # help with or has question about."
15388
+ # Corresponds to the JSON property `definition`
15389
+ # @return [String]
15390
+ attr_accessor :definition
15391
+
15392
+ # Optional. Name of the section, for example, "situation".
15393
+ # Corresponds to the JSON property `key`
15394
+ # @return [String]
15395
+ attr_accessor :key
15396
+
15397
+ # Optional. Type of the summarization section.
15398
+ # Corresponds to the JSON property `type`
15399
+ # @return [String]
15400
+ attr_accessor :type
15401
+
15402
+ def initialize(**args)
15403
+ update!(**args)
15404
+ end
15405
+
15406
+ # Update properties of this object
15407
+ def update!(**args)
15408
+ @definition = args[:definition] if args.key?(:definition)
15409
+ @key = args[:key] if args.key?(:key)
15410
+ @type = args[:type] if args.key?(:type)
15411
+ end
15412
+ end
15413
+
15414
+ # List of summarization sections.
15415
+ class GoogleCloudDialogflowV2SummarizationSectionList
15416
+ include Google::Apis::Core::Hashable
15417
+
15418
+ # Optional. Summarization sections.
15419
+ # Corresponds to the JSON property `summarizationSections`
15420
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SummarizationSection>]
15421
+ attr_accessor :summarization_sections
15422
+
15423
+ def initialize(**args)
15424
+ update!(**args)
15425
+ end
15426
+
15427
+ # Update properties of this object
15428
+ def update!(**args)
15429
+ @summarization_sections = args[:summarization_sections] if args.key?(:summarization_sections)
15430
+ end
15431
+ end
15432
+
15433
+ # Suggested summary of the conversation.
15434
+ class GoogleCloudDialogflowV2SummarySuggestion
15435
+ include Google::Apis::Core::Hashable
15436
+
15437
+ # Required. All the parts of generated summary.
15438
+ # Corresponds to the JSON property `summarySections`
15439
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SummarySuggestionSummarySection>]
15440
+ attr_accessor :summary_sections
15441
+
15442
+ def initialize(**args)
15443
+ update!(**args)
15444
+ end
15445
+
15446
+ # Update properties of this object
15447
+ def update!(**args)
15448
+ @summary_sections = args[:summary_sections] if args.key?(:summary_sections)
15449
+ end
15450
+ end
15451
+
15452
+ # A component of the generated summary.
15453
+ class GoogleCloudDialogflowV2SummarySuggestionSummarySection
15454
+ include Google::Apis::Core::Hashable
15455
+
15456
+ # Required. Name of the section.
15457
+ # Corresponds to the JSON property `section`
15458
+ # @return [String]
15459
+ attr_accessor :section
15460
+
15461
+ # Required. Summary text for the section.
15462
+ # Corresponds to the JSON property `summary`
15463
+ # @return [String]
15464
+ attr_accessor :summary
15465
+
15466
+ def initialize(**args)
15467
+ update!(**args)
15468
+ end
15469
+
15470
+ # Update properties of this object
15471
+ def update!(**args)
15472
+ @section = args[:section] if args.key?(:section)
15473
+ @summary = args[:summary] if args.key?(:summary)
15474
+ end
15475
+ end
15476
+
15022
15477
  # Configuration of how speech should be synthesized.
15023
15478
  class GoogleCloudDialogflowV2SynthesizeSpeechConfig
15024
15479
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module DialogflowV2
18
18
  # Version of the google-apis-dialogflow_v2 gem
19
- GEM_VERSION = "0.86.0"
19
+ GEM_VERSION = "0.88.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.14.0"
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
@@ -1480,6 +1480,12 @@ module Google
1480
1480
  include Google::Apis::Core::JsonObjectSupport
1481
1481
  end
1482
1482
 
1483
+ class GoogleCloudDialogflowV2ConversationContext
1484
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1485
+
1486
+ include Google::Apis::Core::JsonObjectSupport
1487
+ end
1488
+
1483
1489
  class GoogleCloudDialogflowV2ConversationDataset
1484
1490
  class Representation < Google::Apis::Core::JsonRepresentation; end
1485
1491
 
@@ -1696,6 +1702,12 @@ module Google
1696
1702
  include Google::Apis::Core::JsonObjectSupport
1697
1703
  end
1698
1704
 
1705
+ class GoogleCloudDialogflowV2FewShotExample
1706
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1707
+
1708
+ include Google::Apis::Core::JsonObjectSupport
1709
+ end
1710
+
1699
1711
  class GoogleCloudDialogflowV2Fulfillment
1700
1712
  class Representation < Google::Apis::Core::JsonRepresentation; end
1701
1713
 
@@ -1726,6 +1738,18 @@ module Google
1726
1738
  include Google::Apis::Core::JsonObjectSupport
1727
1739
  end
1728
1740
 
1741
+ class GoogleCloudDialogflowV2GenerateStatelessSuggestionRequest
1742
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1743
+
1744
+ include Google::Apis::Core::JsonObjectSupport
1745
+ end
1746
+
1747
+ class GoogleCloudDialogflowV2GenerateStatelessSuggestionResponse
1748
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1749
+
1750
+ include Google::Apis::Core::JsonObjectSupport
1751
+ end
1752
+
1729
1753
  class GoogleCloudDialogflowV2GenerateStatelessSummaryRequest
1730
1754
  class Representation < Google::Apis::Core::JsonRepresentation; end
1731
1755
 
@@ -1750,6 +1774,18 @@ module Google
1750
1774
  include Google::Apis::Core::JsonObjectSupport
1751
1775
  end
1752
1776
 
1777
+ class GoogleCloudDialogflowV2Generator
1778
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1779
+
1780
+ include Google::Apis::Core::JsonObjectSupport
1781
+ end
1782
+
1783
+ class GoogleCloudDialogflowV2GeneratorSuggestion
1784
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1785
+
1786
+ include Google::Apis::Core::JsonObjectSupport
1787
+ end
1788
+
1753
1789
  class GoogleCloudDialogflowV2HumanAgentAssistantConfig
1754
1790
  class Representation < Google::Apis::Core::JsonRepresentation; end
1755
1791
 
@@ -1900,6 +1936,12 @@ module Google
1900
1936
  include Google::Apis::Core::JsonObjectSupport
1901
1937
  end
1902
1938
 
1939
+ class GoogleCloudDialogflowV2InferenceParameter
1940
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1941
+
1942
+ include Google::Apis::Core::JsonObjectSupport
1943
+ end
1944
+
1903
1945
  class GoogleCloudDialogflowV2InputAudioConfig
1904
1946
  class Representation < Google::Apis::Core::JsonRepresentation; end
1905
1947
 
@@ -2200,6 +2242,12 @@ module Google
2200
2242
  include Google::Apis::Core::JsonObjectSupport
2201
2243
  end
2202
2244
 
2245
+ class GoogleCloudDialogflowV2ListGeneratorsResponse
2246
+ class Representation < Google::Apis::Core::JsonRepresentation; end
2247
+
2248
+ include Google::Apis::Core::JsonObjectSupport
2249
+ end
2250
+
2203
2251
  class GoogleCloudDialogflowV2ListIntentsResponse
2204
2252
  class Representation < Google::Apis::Core::JsonRepresentation; end
2205
2253
 
@@ -2254,6 +2302,12 @@ module Google
2254
2302
  include Google::Apis::Core::JsonObjectSupport
2255
2303
  end
2256
2304
 
2305
+ class GoogleCloudDialogflowV2MessageEntry
2306
+ class Representation < Google::Apis::Core::JsonRepresentation; end
2307
+
2308
+ include Google::Apis::Core::JsonObjectSupport
2309
+ end
2310
+
2257
2311
  class GoogleCloudDialogflowV2NotificationConfig
2258
2312
  class Representation < Google::Apis::Core::JsonRepresentation; end
2259
2313
 
@@ -2488,6 +2542,36 @@ module Google
2488
2542
  include Google::Apis::Core::JsonObjectSupport
2489
2543
  end
2490
2544
 
2545
+ class GoogleCloudDialogflowV2SummarizationContext
2546
+ class Representation < Google::Apis::Core::JsonRepresentation; end
2547
+
2548
+ include Google::Apis::Core::JsonObjectSupport
2549
+ end
2550
+
2551
+ class GoogleCloudDialogflowV2SummarizationSection
2552
+ class Representation < Google::Apis::Core::JsonRepresentation; end
2553
+
2554
+ include Google::Apis::Core::JsonObjectSupport
2555
+ end
2556
+
2557
+ class GoogleCloudDialogflowV2SummarizationSectionList
2558
+ class Representation < Google::Apis::Core::JsonRepresentation; end
2559
+
2560
+ include Google::Apis::Core::JsonObjectSupport
2561
+ end
2562
+
2563
+ class GoogleCloudDialogflowV2SummarySuggestion
2564
+ class Representation < Google::Apis::Core::JsonRepresentation; end
2565
+
2566
+ include Google::Apis::Core::JsonObjectSupport
2567
+ end
2568
+
2569
+ class GoogleCloudDialogflowV2SummarySuggestionSummarySection
2570
+ class Representation < Google::Apis::Core::JsonRepresentation; end
2571
+
2572
+ include Google::Apis::Core::JsonObjectSupport
2573
+ end
2574
+
2491
2575
  class GoogleCloudDialogflowV2SynthesizeSpeechConfig
2492
2576
  class Representation < Google::Apis::Core::JsonRepresentation; end
2493
2577
 
@@ -5573,6 +5657,14 @@ module Google
5573
5657
  end
5574
5658
  end
5575
5659
 
5660
+ class GoogleCloudDialogflowV2ConversationContext
5661
+ # @private
5662
+ class Representation < Google::Apis::Core::JsonRepresentation
5663
+ collection :message_entries, as: 'messageEntries', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2MessageEntry, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2MessageEntry::Representation
5664
+
5665
+ end
5666
+ end
5667
+
5576
5668
  class GoogleCloudDialogflowV2ConversationDataset
5577
5669
  # @private
5578
5670
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -5953,6 +6045,19 @@ module Google
5953
6045
  end
5954
6046
  end
5955
6047
 
6048
+ class GoogleCloudDialogflowV2FewShotExample
6049
+ # @private
6050
+ class Representation < Google::Apis::Core::JsonRepresentation
6051
+ property :conversation_context, as: 'conversationContext', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationContext, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationContext::Representation
6052
+
6053
+ hash :extra_info, as: 'extraInfo'
6054
+ property :output, as: 'output', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GeneratorSuggestion, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GeneratorSuggestion::Representation
6055
+
6056
+ property :summarization_section_list, as: 'summarizationSectionList', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SummarizationSectionList, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SummarizationSectionList::Representation
6057
+
6058
+ end
6059
+ end
6060
+
5956
6061
  class GoogleCloudDialogflowV2Fulfillment
5957
6062
  # @private
5958
6063
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -5998,6 +6103,26 @@ module Google
5998
6103
  end
5999
6104
  end
6000
6105
 
6106
+ class GoogleCloudDialogflowV2GenerateStatelessSuggestionRequest
6107
+ # @private
6108
+ class Representation < Google::Apis::Core::JsonRepresentation
6109
+ property :conversation_context, as: 'conversationContext', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationContext, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationContext::Representation
6110
+
6111
+ property :generator, as: 'generator', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Generator, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Generator::Representation
6112
+
6113
+ property :generator_name, as: 'generatorName'
6114
+ collection :trigger_events, as: 'triggerEvents'
6115
+ end
6116
+ end
6117
+
6118
+ class GoogleCloudDialogflowV2GenerateStatelessSuggestionResponse
6119
+ # @private
6120
+ class Representation < Google::Apis::Core::JsonRepresentation
6121
+ property :generator_suggestion, as: 'generatorSuggestion', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GeneratorSuggestion, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GeneratorSuggestion::Representation
6122
+
6123
+ end
6124
+ end
6125
+
6001
6126
  class GoogleCloudDialogflowV2GenerateStatelessSummaryRequest
6002
6127
  # @private
6003
6128
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -6037,6 +6162,29 @@ module Google
6037
6162
  end
6038
6163
  end
6039
6164
 
6165
+ class GoogleCloudDialogflowV2Generator
6166
+ # @private
6167
+ class Representation < Google::Apis::Core::JsonRepresentation
6168
+ property :create_time, as: 'createTime'
6169
+ property :description, as: 'description'
6170
+ property :inference_parameter, as: 'inferenceParameter', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2InferenceParameter, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2InferenceParameter::Representation
6171
+
6172
+ property :name, as: 'name'
6173
+ property :summarization_context, as: 'summarizationContext', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SummarizationContext, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SummarizationContext::Representation
6174
+
6175
+ property :trigger_event, as: 'triggerEvent'
6176
+ property :update_time, as: 'updateTime'
6177
+ end
6178
+ end
6179
+
6180
+ class GoogleCloudDialogflowV2GeneratorSuggestion
6181
+ # @private
6182
+ class Representation < Google::Apis::Core::JsonRepresentation
6183
+ property :summary_suggestion, as: 'summarySuggestion', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SummarySuggestion, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SummarySuggestion::Representation
6184
+
6185
+ end
6186
+ end
6187
+
6040
6188
  class GoogleCloudDialogflowV2HumanAgentAssistantConfig
6041
6189
  # @private
6042
6190
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -6079,6 +6227,7 @@ module Google
6079
6227
  class Representation < Google::Apis::Core::JsonRepresentation
6080
6228
  collection :feature_configs, as: 'featureConfigs', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionFeatureConfig, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionFeatureConfig::Representation
6081
6229
 
6230
+ collection :generators, as: 'generators'
6082
6231
  property :group_suggestion_responses, as: 'groupSuggestionResponses'
6083
6232
  end
6084
6233
  end
@@ -6273,6 +6422,16 @@ module Google
6273
6422
  end
6274
6423
  end
6275
6424
 
6425
+ class GoogleCloudDialogflowV2InferenceParameter
6426
+ # @private
6427
+ class Representation < Google::Apis::Core::JsonRepresentation
6428
+ property :max_output_tokens, as: 'maxOutputTokens'
6429
+ property :temperature, as: 'temperature'
6430
+ property :top_k, as: 'topK'
6431
+ property :top_p, as: 'topP'
6432
+ end
6433
+ end
6434
+
6276
6435
  class GoogleCloudDialogflowV2InputAudioConfig
6277
6436
  # @private
6278
6437
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -6794,6 +6953,15 @@ module Google
6794
6953
  end
6795
6954
  end
6796
6955
 
6956
+ class GoogleCloudDialogflowV2ListGeneratorsResponse
6957
+ # @private
6958
+ class Representation < Google::Apis::Core::JsonRepresentation
6959
+ collection :generators, as: 'generators', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Generator, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Generator::Representation
6960
+
6961
+ property :next_page_token, as: 'nextPageToken'
6962
+ end
6963
+ end
6964
+
6797
6965
  class GoogleCloudDialogflowV2ListIntentsResponse
6798
6966
  # @private
6799
6967
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -6881,6 +7049,16 @@ module Google
6881
7049
  end
6882
7050
  end
6883
7051
 
7052
+ class GoogleCloudDialogflowV2MessageEntry
7053
+ # @private
7054
+ class Representation < Google::Apis::Core::JsonRepresentation
7055
+ property :create_time, as: 'createTime'
7056
+ property :language_code, as: 'languageCode'
7057
+ property :role, as: 'role'
7058
+ property :text, as: 'text'
7059
+ end
7060
+ end
7061
+
6884
7062
  class GoogleCloudDialogflowV2NotificationConfig
6885
7063
  # @private
6886
7064
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -7274,6 +7452,51 @@ module Google
7274
7452
  end
7275
7453
  end
7276
7454
 
7455
+ class GoogleCloudDialogflowV2SummarizationContext
7456
+ # @private
7457
+ class Representation < Google::Apis::Core::JsonRepresentation
7458
+ collection :few_shot_examples, as: 'fewShotExamples', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2FewShotExample, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2FewShotExample::Representation
7459
+
7460
+ property :output_language_code, as: 'outputLanguageCode'
7461
+ collection :summarization_sections, as: 'summarizationSections', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SummarizationSection, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SummarizationSection::Representation
7462
+
7463
+ property :version, as: 'version'
7464
+ end
7465
+ end
7466
+
7467
+ class GoogleCloudDialogflowV2SummarizationSection
7468
+ # @private
7469
+ class Representation < Google::Apis::Core::JsonRepresentation
7470
+ property :definition, as: 'definition'
7471
+ property :key, as: 'key'
7472
+ property :type, as: 'type'
7473
+ end
7474
+ end
7475
+
7476
+ class GoogleCloudDialogflowV2SummarizationSectionList
7477
+ # @private
7478
+ class Representation < Google::Apis::Core::JsonRepresentation
7479
+ collection :summarization_sections, as: 'summarizationSections', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SummarizationSection, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SummarizationSection::Representation
7480
+
7481
+ end
7482
+ end
7483
+
7484
+ class GoogleCloudDialogflowV2SummarySuggestion
7485
+ # @private
7486
+ class Representation < Google::Apis::Core::JsonRepresentation
7487
+ collection :summary_sections, as: 'summarySections', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SummarySuggestionSummarySection, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SummarySuggestionSummarySection::Representation
7488
+
7489
+ end
7490
+ end
7491
+
7492
+ class GoogleCloudDialogflowV2SummarySuggestionSummarySection
7493
+ # @private
7494
+ class Representation < Google::Apis::Core::JsonRepresentation
7495
+ property :section, as: 'section'
7496
+ property :summary, as: 'summary'
7497
+ end
7498
+ end
7499
+
7277
7500
  class GoogleCloudDialogflowV2SynthesizeSpeechConfig
7278
7501
  # @private
7279
7502
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -4307,6 +4307,87 @@ module Google
4307
4307
  execute_or_queue_command(command, &block)
4308
4308
  end
4309
4309
 
4310
+ # Creates a generator.
4311
+ # @param [String] parent
4312
+ # Required. The project/location to create generator for. Format: `projects//
4313
+ # locations/`
4314
+ # @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Generator] google_cloud_dialogflow_v2_generator_object
4315
+ # @param [String] generator_id
4316
+ # Optional. The ID to use for the generator, which will become the final
4317
+ # component of the generator's resource name. The generator ID must be compliant
4318
+ # with the regression fomula `a-zA-Z*` with the characters length in range of [3,
4319
+ # 64]. If the field is not provided, an Id will be auto-generated. If the field
4320
+ # is provided, the caller is resposible for 1. the uniqueness of the ID,
4321
+ # otherwise the request will be rejected. 2. the consistency for whether to use
4322
+ # custom ID or not under a project to better ensure uniqueness.
4323
+ # @param [String] fields
4324
+ # Selector specifying which fields to include in a partial response.
4325
+ # @param [String] quota_user
4326
+ # Available to use for quota purposes for server-side applications. Can be any
4327
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4328
+ # @param [Google::Apis::RequestOptions] options
4329
+ # Request-specific options
4330
+ #
4331
+ # @yield [result, err] Result & error if block supplied
4332
+ # @yieldparam result [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Generator] parsed result object
4333
+ # @yieldparam err [StandardError] error object if request failed
4334
+ #
4335
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Generator]
4336
+ #
4337
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4338
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4339
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4340
+ def create_project_generator(parent, google_cloud_dialogflow_v2_generator_object = nil, generator_id: nil, fields: nil, quota_user: nil, options: nil, &block)
4341
+ command = make_simple_command(:post, 'v2/{+parent}/generators', options)
4342
+ command.request_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Generator::Representation
4343
+ command.request_object = google_cloud_dialogflow_v2_generator_object
4344
+ command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Generator::Representation
4345
+ command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Generator
4346
+ command.params['parent'] = parent unless parent.nil?
4347
+ command.query['generatorId'] = generator_id unless generator_id.nil?
4348
+ command.query['fields'] = fields unless fields.nil?
4349
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4350
+ execute_or_queue_command(command, &block)
4351
+ end
4352
+
4353
+ # Lists generators.
4354
+ # @param [String] parent
4355
+ # Required. The project/location to list generators for. Format: `projects//
4356
+ # locations/`
4357
+ # @param [Fixnum] page_size
4358
+ # Optional. Maximum number of conversation models to return in a single page.
4359
+ # Default to 10.
4360
+ # @param [String] page_token
4361
+ # Optional. The next_page_token value returned from a previous list request.
4362
+ # @param [String] fields
4363
+ # Selector specifying which fields to include in a partial response.
4364
+ # @param [String] quota_user
4365
+ # Available to use for quota purposes for server-side applications. Can be any
4366
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4367
+ # @param [Google::Apis::RequestOptions] options
4368
+ # Request-specific options
4369
+ #
4370
+ # @yield [result, err] Result & error if block supplied
4371
+ # @yieldparam result [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListGeneratorsResponse] parsed result object
4372
+ # @yieldparam err [StandardError] error object if request failed
4373
+ #
4374
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListGeneratorsResponse]
4375
+ #
4376
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4377
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4378
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4379
+ def list_project_generators(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
4380
+ command = make_simple_command(:get, 'v2/{+parent}/generators', options)
4381
+ command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListGeneratorsResponse::Representation
4382
+ command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListGeneratorsResponse
4383
+ command.params['parent'] = parent unless parent.nil?
4384
+ command.query['pageSize'] = page_size unless page_size.nil?
4385
+ command.query['pageToken'] = page_token unless page_token.nil?
4386
+ command.query['fields'] = fields unless fields.nil?
4387
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4388
+ execute_or_queue_command(command, &block)
4389
+ end
4390
+
4310
4391
  # Creates a knowledge base.
4311
4392
  # @param [String] parent
4312
4393
  # Required. The project to create a knowledge base for. Format: `projects//
@@ -8820,6 +8901,186 @@ module Google
8820
8901
  execute_or_queue_command(command, &block)
8821
8902
  end
8822
8903
 
8904
+ # Creates a generator.
8905
+ # @param [String] parent
8906
+ # Required. The project/location to create generator for. Format: `projects//
8907
+ # locations/`
8908
+ # @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Generator] google_cloud_dialogflow_v2_generator_object
8909
+ # @param [String] generator_id
8910
+ # Optional. The ID to use for the generator, which will become the final
8911
+ # component of the generator's resource name. The generator ID must be compliant
8912
+ # with the regression fomula `a-zA-Z*` with the characters length in range of [3,
8913
+ # 64]. If the field is not provided, an Id will be auto-generated. If the field
8914
+ # is provided, the caller is resposible for 1. the uniqueness of the ID,
8915
+ # otherwise the request will be rejected. 2. the consistency for whether to use
8916
+ # custom ID or not under a project to better ensure uniqueness.
8917
+ # @param [String] fields
8918
+ # Selector specifying which fields to include in a partial response.
8919
+ # @param [String] quota_user
8920
+ # Available to use for quota purposes for server-side applications. Can be any
8921
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
8922
+ # @param [Google::Apis::RequestOptions] options
8923
+ # Request-specific options
8924
+ #
8925
+ # @yield [result, err] Result & error if block supplied
8926
+ # @yieldparam result [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Generator] parsed result object
8927
+ # @yieldparam err [StandardError] error object if request failed
8928
+ #
8929
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Generator]
8930
+ #
8931
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8932
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8933
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
8934
+ def create_project_location_generator(parent, google_cloud_dialogflow_v2_generator_object = nil, generator_id: nil, fields: nil, quota_user: nil, options: nil, &block)
8935
+ command = make_simple_command(:post, 'v2/{+parent}/generators', options)
8936
+ command.request_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Generator::Representation
8937
+ command.request_object = google_cloud_dialogflow_v2_generator_object
8938
+ command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Generator::Representation
8939
+ command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Generator
8940
+ command.params['parent'] = parent unless parent.nil?
8941
+ command.query['generatorId'] = generator_id unless generator_id.nil?
8942
+ command.query['fields'] = fields unless fields.nil?
8943
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
8944
+ execute_or_queue_command(command, &block)
8945
+ end
8946
+
8947
+ # Deletes a generator.
8948
+ # @param [String] name
8949
+ # Required. The generator resource name to delete. Format: `projects//locations//
8950
+ # generators/`
8951
+ # @param [String] fields
8952
+ # Selector specifying which fields to include in a partial response.
8953
+ # @param [String] quota_user
8954
+ # Available to use for quota purposes for server-side applications. Can be any
8955
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
8956
+ # @param [Google::Apis::RequestOptions] options
8957
+ # Request-specific options
8958
+ #
8959
+ # @yield [result, err] Result & error if block supplied
8960
+ # @yieldparam result [Google::Apis::DialogflowV2::GoogleProtobufEmpty] parsed result object
8961
+ # @yieldparam err [StandardError] error object if request failed
8962
+ #
8963
+ # @return [Google::Apis::DialogflowV2::GoogleProtobufEmpty]
8964
+ #
8965
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8966
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8967
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
8968
+ def delete_project_location_generator(name, fields: nil, quota_user: nil, options: nil, &block)
8969
+ command = make_simple_command(:delete, 'v2/{+name}', options)
8970
+ command.response_representation = Google::Apis::DialogflowV2::GoogleProtobufEmpty::Representation
8971
+ command.response_class = Google::Apis::DialogflowV2::GoogleProtobufEmpty
8972
+ command.params['name'] = name unless name.nil?
8973
+ command.query['fields'] = fields unless fields.nil?
8974
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
8975
+ execute_or_queue_command(command, &block)
8976
+ end
8977
+
8978
+ # Retrieves a generator.
8979
+ # @param [String] name
8980
+ # Required. The generator resource name to retrieve. Format: `projects//
8981
+ # locations/`/generators/`
8982
+ # @param [String] fields
8983
+ # Selector specifying which fields to include in a partial response.
8984
+ # @param [String] quota_user
8985
+ # Available to use for quota purposes for server-side applications. Can be any
8986
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
8987
+ # @param [Google::Apis::RequestOptions] options
8988
+ # Request-specific options
8989
+ #
8990
+ # @yield [result, err] Result & error if block supplied
8991
+ # @yieldparam result [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Generator] parsed result object
8992
+ # @yieldparam err [StandardError] error object if request failed
8993
+ #
8994
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Generator]
8995
+ #
8996
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8997
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8998
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
8999
+ def get_project_location_generator(name, fields: nil, quota_user: nil, options: nil, &block)
9000
+ command = make_simple_command(:get, 'v2/{+name}', options)
9001
+ command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Generator::Representation
9002
+ command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Generator
9003
+ command.params['name'] = name unless name.nil?
9004
+ command.query['fields'] = fields unless fields.nil?
9005
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
9006
+ execute_or_queue_command(command, &block)
9007
+ end
9008
+
9009
+ # Lists generators.
9010
+ # @param [String] parent
9011
+ # Required. The project/location to list generators for. Format: `projects//
9012
+ # locations/`
9013
+ # @param [Fixnum] page_size
9014
+ # Optional. Maximum number of conversation models to return in a single page.
9015
+ # Default to 10.
9016
+ # @param [String] page_token
9017
+ # Optional. The next_page_token value returned from a previous list request.
9018
+ # @param [String] fields
9019
+ # Selector specifying which fields to include in a partial response.
9020
+ # @param [String] quota_user
9021
+ # Available to use for quota purposes for server-side applications. Can be any
9022
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
9023
+ # @param [Google::Apis::RequestOptions] options
9024
+ # Request-specific options
9025
+ #
9026
+ # @yield [result, err] Result & error if block supplied
9027
+ # @yieldparam result [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListGeneratorsResponse] parsed result object
9028
+ # @yieldparam err [StandardError] error object if request failed
9029
+ #
9030
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListGeneratorsResponse]
9031
+ #
9032
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9033
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9034
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
9035
+ def list_project_location_generators(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
9036
+ command = make_simple_command(:get, 'v2/{+parent}/generators', options)
9037
+ command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListGeneratorsResponse::Representation
9038
+ command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListGeneratorsResponse
9039
+ command.params['parent'] = parent unless parent.nil?
9040
+ command.query['pageSize'] = page_size unless page_size.nil?
9041
+ command.query['pageToken'] = page_token unless page_token.nil?
9042
+ command.query['fields'] = fields unless fields.nil?
9043
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
9044
+ execute_or_queue_command(command, &block)
9045
+ end
9046
+
9047
+ # Updates a generator.
9048
+ # @param [String] name
9049
+ # Output only. Identifier. The resource name of the generator. Format: `projects/
9050
+ # /locations//generators/`
9051
+ # @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Generator] google_cloud_dialogflow_v2_generator_object
9052
+ # @param [String] update_mask
9053
+ # Optional. The list of fields to update.
9054
+ # @param [String] fields
9055
+ # Selector specifying which fields to include in a partial response.
9056
+ # @param [String] quota_user
9057
+ # Available to use for quota purposes for server-side applications. Can be any
9058
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
9059
+ # @param [Google::Apis::RequestOptions] options
9060
+ # Request-specific options
9061
+ #
9062
+ # @yield [result, err] Result & error if block supplied
9063
+ # @yieldparam result [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Generator] parsed result object
9064
+ # @yieldparam err [StandardError] error object if request failed
9065
+ #
9066
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Generator]
9067
+ #
9068
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9069
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9070
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
9071
+ def patch_project_location_generator(name, google_cloud_dialogflow_v2_generator_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
9072
+ command = make_simple_command(:patch, 'v2/{+name}', options)
9073
+ command.request_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Generator::Representation
9074
+ command.request_object = google_cloud_dialogflow_v2_generator_object
9075
+ command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Generator::Representation
9076
+ command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Generator
9077
+ command.params['name'] = name unless name.nil?
9078
+ command.query['updateMask'] = update_mask unless update_mask.nil?
9079
+ command.query['fields'] = fields unless fields.nil?
9080
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
9081
+ execute_or_queue_command(command, &block)
9082
+ end
9083
+
8823
9084
  # Creates a knowledge base.
8824
9085
  # @param [String] parent
8825
9086
  # Required. The project to create a knowledge base for. Format: `projects//
@@ -9432,6 +9693,41 @@ module Google
9432
9693
  execute_or_queue_command(command, &block)
9433
9694
  end
9434
9695
 
9696
+ # Generates and returns a suggestion for a conversation that does not have a
9697
+ # resource created for it.
9698
+ # @param [String] parent
9699
+ # Required. The parent resource to charge for the Suggestion's generation.
9700
+ # Format: `projects//locations/`.
9701
+ # @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GenerateStatelessSuggestionRequest] google_cloud_dialogflow_v2_generate_stateless_suggestion_request_object
9702
+ # @param [String] fields
9703
+ # Selector specifying which fields to include in a partial response.
9704
+ # @param [String] quota_user
9705
+ # Available to use for quota purposes for server-side applications. Can be any
9706
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
9707
+ # @param [Google::Apis::RequestOptions] options
9708
+ # Request-specific options
9709
+ #
9710
+ # @yield [result, err] Result & error if block supplied
9711
+ # @yieldparam result [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GenerateStatelessSuggestionResponse] parsed result object
9712
+ # @yieldparam err [StandardError] error object if request failed
9713
+ #
9714
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GenerateStatelessSuggestionResponse]
9715
+ #
9716
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9717
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9718
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
9719
+ def generate_project_location_stateless_suggestion(parent, google_cloud_dialogflow_v2_generate_stateless_suggestion_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
9720
+ command = make_simple_command(:post, 'v2/{+parent}/statelessSuggestion:generate', options)
9721
+ command.request_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GenerateStatelessSuggestionRequest::Representation
9722
+ command.request_object = google_cloud_dialogflow_v2_generate_stateless_suggestion_request_object
9723
+ command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GenerateStatelessSuggestionResponse::Representation
9724
+ command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GenerateStatelessSuggestionResponse
9725
+ command.params['parent'] = parent unless parent.nil?
9726
+ command.query['fields'] = fields unless fields.nil?
9727
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
9728
+ execute_or_queue_command(command, &block)
9729
+ end
9730
+
9435
9731
  # Generates and returns a summary for a conversation that does not have a
9436
9732
  # resource created for it.
9437
9733
  # @param [String] parent
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-dialogflow_v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.86.0
4
+ version: 0.88.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-12 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
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.14.0
19
+ version: 0.15.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.14.0
29
+ version: 0.15.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -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_v2/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-dialogflow_v2/v0.86.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-dialogflow_v2/v0.88.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-dialogflow_v2
63
63
  post_install_message:
64
64
  rdoc_options: []