google-apis-dialogflow_v3 0.103.0 → 0.105.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.
@@ -8516,6 +8516,22 @@ module Google
8516
8516
  # @return [Hash<String,String>]
8517
8517
  attr_accessor :request_headers
8518
8518
 
8519
+ # Optional. The SecretManager secret version resource storing the username:
8520
+ # password pair for HTTP Basic authentication. Format: `projects/`project`/
8521
+ # secrets/`secret`/versions/`version``
8522
+ # Corresponds to the JSON property `secretVersionForUsernamePassword`
8523
+ # @return [String]
8524
+ attr_accessor :secret_version_for_username_password
8525
+
8526
+ # Optional. The HTTP request headers to send together with webhook requests.
8527
+ # Header values are stored in SecretManager secret versions. When the same
8528
+ # header name is specified in both `request_headers` and `
8529
+ # secret_versions_for_request_headers`, the value in `
8530
+ # secret_versions_for_request_headers` will be used.
8531
+ # Corresponds to the JSON property `secretVersionsForRequestHeaders`
8532
+ # @return [Hash<String,Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3WebhookGenericWebServiceSecretVersionHeaderValue>]
8533
+ attr_accessor :secret_versions_for_request_headers
8534
+
8519
8535
  # Optional. Indicate the auth token type generated from the [Diglogflow service
8520
8536
  # agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-
8521
8537
  # agent). The generated token is sent in the Authorization header.
@@ -8552,6 +8568,8 @@ module Google
8552
8568
  @password = args[:password] if args.key?(:password)
8553
8569
  @request_body = args[:request_body] if args.key?(:request_body)
8554
8570
  @request_headers = args[:request_headers] if args.key?(:request_headers)
8571
+ @secret_version_for_username_password = args[:secret_version_for_username_password] if args.key?(:secret_version_for_username_password)
8572
+ @secret_versions_for_request_headers = args[:secret_versions_for_request_headers] if args.key?(:secret_versions_for_request_headers)
8555
8573
  @service_agent_auth = args[:service_agent_auth] if args.key?(:service_agent_auth)
8556
8574
  @uri = args[:uri] if args.key?(:uri)
8557
8575
  @username = args[:username] if args.key?(:username)
@@ -8579,6 +8597,13 @@ module Google
8579
8597
  # @return [Array<String>]
8580
8598
  attr_accessor :scopes
8581
8599
 
8600
+ # Optional. The name of the SecretManager secret version resource storing the
8601
+ # client secret. If this field is set, the `client_secret` field will be ignored.
8602
+ # Format: `projects/`project`/secrets/`secret`/versions/`version``
8603
+ # Corresponds to the JSON property `secretVersionForClientSecret`
8604
+ # @return [String]
8605
+ attr_accessor :secret_version_for_client_secret
8606
+
8582
8607
  # Required. The token endpoint provided by the 3rd party platform to exchange an
8583
8608
  # access token.
8584
8609
  # Corresponds to the JSON property `tokenEndpoint`
@@ -8594,10 +8619,32 @@ module Google
8594
8619
  @client_id = args[:client_id] if args.key?(:client_id)
8595
8620
  @client_secret = args[:client_secret] if args.key?(:client_secret)
8596
8621
  @scopes = args[:scopes] if args.key?(:scopes)
8622
+ @secret_version_for_client_secret = args[:secret_version_for_client_secret] if args.key?(:secret_version_for_client_secret)
8597
8623
  @token_endpoint = args[:token_endpoint] if args.key?(:token_endpoint)
8598
8624
  end
8599
8625
  end
8600
8626
 
8627
+ # Represents the value of an HTTP header stored in a SecretManager secret
8628
+ # version.
8629
+ class GoogleCloudDialogflowCxV3WebhookGenericWebServiceSecretVersionHeaderValue
8630
+ include Google::Apis::Core::Hashable
8631
+
8632
+ # Required. The SecretManager secret version resource storing the header value.
8633
+ # Format: `projects/`project`/secrets/`secret`/versions/`version``
8634
+ # Corresponds to the JSON property `secretVersion`
8635
+ # @return [String]
8636
+ attr_accessor :secret_version
8637
+
8638
+ def initialize(**args)
8639
+ update!(**args)
8640
+ end
8641
+
8642
+ # Update properties of this object
8643
+ def update!(**args)
8644
+ @secret_version = args[:secret_version] if args.key?(:secret_version)
8645
+ end
8646
+ end
8647
+
8601
8648
  # The request message for a webhook call. The request is sent as a JSON object
8602
8649
  # and the field names will be presented in camel cases. You may see undocumented
8603
8650
  # fields in an actual request. These fields are used internally by Dialogflow
@@ -12349,6 +12396,22 @@ module Google
12349
12396
  # @return [Hash<String,String>]
12350
12397
  attr_accessor :request_headers
12351
12398
 
12399
+ # Optional. The SecretManager secret version resource storing the username:
12400
+ # password pair for HTTP Basic authentication. Format: `projects/`project`/
12401
+ # secrets/`secret`/versions/`version``
12402
+ # Corresponds to the JSON property `secretVersionForUsernamePassword`
12403
+ # @return [String]
12404
+ attr_accessor :secret_version_for_username_password
12405
+
12406
+ # Optional. The HTTP request headers to send together with webhook requests.
12407
+ # Header values are stored in SecretManager secret versions. When the same
12408
+ # header name is specified in both `request_headers` and `
12409
+ # secret_versions_for_request_headers`, the value in `
12410
+ # secret_versions_for_request_headers` will be used.
12411
+ # Corresponds to the JSON property `secretVersionsForRequestHeaders`
12412
+ # @return [Hash<String,Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceSecretVersionHeaderValue>]
12413
+ attr_accessor :secret_versions_for_request_headers
12414
+
12352
12415
  # Optional. Indicate the auth token type generated from the [Diglogflow service
12353
12416
  # agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-
12354
12417
  # agent). The generated token is sent in the Authorization header.
@@ -12385,6 +12448,8 @@ module Google
12385
12448
  @password = args[:password] if args.key?(:password)
12386
12449
  @request_body = args[:request_body] if args.key?(:request_body)
12387
12450
  @request_headers = args[:request_headers] if args.key?(:request_headers)
12451
+ @secret_version_for_username_password = args[:secret_version_for_username_password] if args.key?(:secret_version_for_username_password)
12452
+ @secret_versions_for_request_headers = args[:secret_versions_for_request_headers] if args.key?(:secret_versions_for_request_headers)
12388
12453
  @service_agent_auth = args[:service_agent_auth] if args.key?(:service_agent_auth)
12389
12454
  @uri = args[:uri] if args.key?(:uri)
12390
12455
  @username = args[:username] if args.key?(:username)
@@ -12412,6 +12477,13 @@ module Google
12412
12477
  # @return [Array<String>]
12413
12478
  attr_accessor :scopes
12414
12479
 
12480
+ # Optional. The name of the SecretManager secret version resource storing the
12481
+ # client secret. If this field is set, the `client_secret` field will be ignored.
12482
+ # Format: `projects/`project`/secrets/`secret`/versions/`version``
12483
+ # Corresponds to the JSON property `secretVersionForClientSecret`
12484
+ # @return [String]
12485
+ attr_accessor :secret_version_for_client_secret
12486
+
12415
12487
  # Required. The token endpoint provided by the 3rd party platform to exchange an
12416
12488
  # access token.
12417
12489
  # Corresponds to the JSON property `tokenEndpoint`
@@ -12427,10 +12499,32 @@ module Google
12427
12499
  @client_id = args[:client_id] if args.key?(:client_id)
12428
12500
  @client_secret = args[:client_secret] if args.key?(:client_secret)
12429
12501
  @scopes = args[:scopes] if args.key?(:scopes)
12502
+ @secret_version_for_client_secret = args[:secret_version_for_client_secret] if args.key?(:secret_version_for_client_secret)
12430
12503
  @token_endpoint = args[:token_endpoint] if args.key?(:token_endpoint)
12431
12504
  end
12432
12505
  end
12433
12506
 
12507
+ # Represents the value of an HTTP header stored in a SecretManager secret
12508
+ # version.
12509
+ class GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceSecretVersionHeaderValue
12510
+ include Google::Apis::Core::Hashable
12511
+
12512
+ # Required. The SecretManager secret version resource storing the header value.
12513
+ # Format: `projects/`project`/secrets/`secret`/versions/`version``
12514
+ # Corresponds to the JSON property `secretVersion`
12515
+ # @return [String]
12516
+ attr_accessor :secret_version
12517
+
12518
+ def initialize(**args)
12519
+ update!(**args)
12520
+ end
12521
+
12522
+ # Update properties of this object
12523
+ def update!(**args)
12524
+ @secret_version = args[:secret_version] if args.key?(:secret_version)
12525
+ end
12526
+ end
12527
+
12434
12528
  # The request message for a webhook call. The request is sent as a JSON object
12435
12529
  # and the field names will be presented in camel cases. You may see undocumented
12436
12530
  # fields in an actual request. These fields are used internally by Dialogflow
@@ -13596,6 +13690,25 @@ module Google
13596
13690
  end
13597
13691
  end
13598
13692
 
13693
+ # Suggestion generated using free form generator.
13694
+ class GoogleCloudDialogflowV2FreeFormSuggestion
13695
+ include Google::Apis::Core::Hashable
13696
+
13697
+ # Required. Free form suggestion.
13698
+ # Corresponds to the JSON property `response`
13699
+ # @return [String]
13700
+ attr_accessor :response
13701
+
13702
+ def initialize(**args)
13703
+ update!(**args)
13704
+ end
13705
+
13706
+ # Update properties of this object
13707
+ def update!(**args)
13708
+ @response = args[:response] if args.key?(:response)
13709
+ end
13710
+ end
13711
+
13599
13712
  # Google Cloud Storage location for the output.
13600
13713
  class GoogleCloudDialogflowV2GcsDestination
13601
13714
  include Google::Apis::Core::Hashable
@@ -13617,6 +13730,121 @@ module Google
13617
13730
  end
13618
13731
  end
13619
13732
 
13733
+ # The response message for Conversations.GenerateSuggestions.
13734
+ class GoogleCloudDialogflowV2GenerateSuggestionsResponse
13735
+ include Google::Apis::Core::Hashable
13736
+
13737
+ # The answers generated for the conversation based on context.
13738
+ # Corresponds to the JSON property `generatorSuggestionAnswers`
13739
+ # @return [Array<Google::Apis::DialogflowV3::GoogleCloudDialogflowV2GenerateSuggestionsResponseGeneratorSuggestionAnswer>]
13740
+ attr_accessor :generator_suggestion_answers
13741
+
13742
+ # The name of the latest conversation message used as context for compiling
13743
+ # suggestion. Format: `projects//locations//conversations//messages/`.
13744
+ # Corresponds to the JSON property `latestMessage`
13745
+ # @return [String]
13746
+ attr_accessor :latest_message
13747
+
13748
+ def initialize(**args)
13749
+ update!(**args)
13750
+ end
13751
+
13752
+ # Update properties of this object
13753
+ def update!(**args)
13754
+ @generator_suggestion_answers = args[:generator_suggestion_answers] if args.key?(:generator_suggestion_answers)
13755
+ @latest_message = args[:latest_message] if args.key?(:latest_message)
13756
+ end
13757
+ end
13758
+
13759
+ # A GeneratorSuggestion answer.
13760
+ class GoogleCloudDialogflowV2GenerateSuggestionsResponseGeneratorSuggestionAnswer
13761
+ include Google::Apis::Core::Hashable
13762
+
13763
+ # Answer record that uniquely identifies the suggestion. This can be used to
13764
+ # provide suggestion feedback.
13765
+ # Corresponds to the JSON property `answerRecord`
13766
+ # @return [String]
13767
+ attr_accessor :answer_record
13768
+
13769
+ # Suggestion generated using a Generator.
13770
+ # Corresponds to the JSON property `generatorSuggestion`
13771
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowV2GeneratorSuggestion]
13772
+ attr_accessor :generator_suggestion
13773
+
13774
+ # The name of the generator used to generate this suggestion. Format: `projects//
13775
+ # locations//generators/`.
13776
+ # Corresponds to the JSON property `sourceGenerator`
13777
+ # @return [String]
13778
+ attr_accessor :source_generator
13779
+
13780
+ def initialize(**args)
13781
+ update!(**args)
13782
+ end
13783
+
13784
+ # Update properties of this object
13785
+ def update!(**args)
13786
+ @answer_record = args[:answer_record] if args.key?(:answer_record)
13787
+ @generator_suggestion = args[:generator_suggestion] if args.key?(:generator_suggestion)
13788
+ @source_generator = args[:source_generator] if args.key?(:source_generator)
13789
+ end
13790
+ end
13791
+
13792
+ # Suggestion generated using a Generator.
13793
+ class GoogleCloudDialogflowV2GeneratorSuggestion
13794
+ include Google::Apis::Core::Hashable
13795
+
13796
+ # Suggestion generated using free form generator.
13797
+ # Corresponds to the JSON property `freeFormSuggestion`
13798
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowV2FreeFormSuggestion]
13799
+ attr_accessor :free_form_suggestion
13800
+
13801
+ # Suggested summary of the conversation.
13802
+ # Corresponds to the JSON property `summarySuggestion`
13803
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowV2SummarySuggestion]
13804
+ attr_accessor :summary_suggestion
13805
+
13806
+ # Optional. List of request and response for tool calls executed.
13807
+ # Corresponds to the JSON property `toolCallInfo`
13808
+ # @return [Array<Google::Apis::DialogflowV3::GoogleCloudDialogflowV2GeneratorSuggestionToolCallInfo>]
13809
+ attr_accessor :tool_call_info
13810
+
13811
+ def initialize(**args)
13812
+ update!(**args)
13813
+ end
13814
+
13815
+ # Update properties of this object
13816
+ def update!(**args)
13817
+ @free_form_suggestion = args[:free_form_suggestion] if args.key?(:free_form_suggestion)
13818
+ @summary_suggestion = args[:summary_suggestion] if args.key?(:summary_suggestion)
13819
+ @tool_call_info = args[:tool_call_info] if args.key?(:tool_call_info)
13820
+ end
13821
+ end
13822
+
13823
+ # Request and response for a tool call.
13824
+ class GoogleCloudDialogflowV2GeneratorSuggestionToolCallInfo
13825
+ include Google::Apis::Core::Hashable
13826
+
13827
+ # Represents a call of a specific tool's action with the specified inputs.
13828
+ # Corresponds to the JSON property `toolCall`
13829
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowV2ToolCall]
13830
+ attr_accessor :tool_call
13831
+
13832
+ # The result of calling a tool's action.
13833
+ # Corresponds to the JSON property `toolCallResult`
13834
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowV2ToolCallResult]
13835
+ attr_accessor :tool_call_result
13836
+
13837
+ def initialize(**args)
13838
+ update!(**args)
13839
+ end
13840
+
13841
+ # Update properties of this object
13842
+ def update!(**args)
13843
+ @tool_call = args[:tool_call] if args.key?(:tool_call)
13844
+ @tool_call_result = args[:tool_call_result] if args.key?(:tool_call_result)
13845
+ end
13846
+ end
13847
+
13620
13848
  # Represents a notification sent to Cloud Pub/Sub subscribers for human agent
13621
13849
  # assistant events in a specific conversation.
13622
13850
  class GoogleCloudDialogflowV2HumanAgentAssistantEvent
@@ -16019,6 +16247,11 @@ module Google
16019
16247
  # @return [Google::Apis::DialogflowV3::GoogleRpcStatus]
16020
16248
  attr_accessor :error
16021
16249
 
16250
+ # The response message for Conversations.GenerateSuggestions.
16251
+ # Corresponds to the JSON property `generateSuggestionsResponse`
16252
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowV2GenerateSuggestionsResponse]
16253
+ attr_accessor :generate_suggestions_response
16254
+
16022
16255
  # The response message for Participants.SuggestArticles.
16023
16256
  # Corresponds to the JSON property `suggestArticlesResponse`
16024
16257
  # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowV2SuggestArticlesResponse]
@@ -16046,6 +16279,7 @@ module Google
16046
16279
  # Update properties of this object
16047
16280
  def update!(**args)
16048
16281
  @error = args[:error] if args.key?(:error)
16282
+ @generate_suggestions_response = args[:generate_suggestions_response] if args.key?(:generate_suggestions_response)
16049
16283
  @suggest_articles_response = args[:suggest_articles_response] if args.key?(:suggest_articles_response)
16050
16284
  @suggest_faq_answers_response = args[:suggest_faq_answers_response] if args.key?(:suggest_faq_answers_response)
16051
16285
  @suggest_knowledge_assist_response = args[:suggest_knowledge_assist_response] if args.key?(:suggest_knowledge_assist_response)
@@ -16053,6 +16287,159 @@ module Google
16053
16287
  end
16054
16288
  end
16055
16289
 
16290
+ # Suggested summary of the conversation.
16291
+ class GoogleCloudDialogflowV2SummarySuggestion
16292
+ include Google::Apis::Core::Hashable
16293
+
16294
+ # Required. All the parts of generated summary.
16295
+ # Corresponds to the JSON property `summarySections`
16296
+ # @return [Array<Google::Apis::DialogflowV3::GoogleCloudDialogflowV2SummarySuggestionSummarySection>]
16297
+ attr_accessor :summary_sections
16298
+
16299
+ def initialize(**args)
16300
+ update!(**args)
16301
+ end
16302
+
16303
+ # Update properties of this object
16304
+ def update!(**args)
16305
+ @summary_sections = args[:summary_sections] if args.key?(:summary_sections)
16306
+ end
16307
+ end
16308
+
16309
+ # A component of the generated summary.
16310
+ class GoogleCloudDialogflowV2SummarySuggestionSummarySection
16311
+ include Google::Apis::Core::Hashable
16312
+
16313
+ # Required. Name of the section.
16314
+ # Corresponds to the JSON property `section`
16315
+ # @return [String]
16316
+ attr_accessor :section
16317
+
16318
+ # Required. Summary text for the section.
16319
+ # Corresponds to the JSON property `summary`
16320
+ # @return [String]
16321
+ attr_accessor :summary
16322
+
16323
+ def initialize(**args)
16324
+ update!(**args)
16325
+ end
16326
+
16327
+ # Update properties of this object
16328
+ def update!(**args)
16329
+ @section = args[:section] if args.key?(:section)
16330
+ @summary = args[:summary] if args.key?(:summary)
16331
+ end
16332
+ end
16333
+
16334
+ # Represents a call of a specific tool's action with the specified inputs.
16335
+ class GoogleCloudDialogflowV2ToolCall
16336
+ include Google::Apis::Core::Hashable
16337
+
16338
+ # Required. The name of the tool's action associated with this call.
16339
+ # Corresponds to the JSON property `action`
16340
+ # @return [String]
16341
+ attr_accessor :action
16342
+
16343
+ # Output only. Create time of the tool call.
16344
+ # Corresponds to the JSON property `createTime`
16345
+ # @return [String]
16346
+ attr_accessor :create_time
16347
+
16348
+ # Optional. The action's input parameters.
16349
+ # Corresponds to the JSON property `inputParameters`
16350
+ # @return [Hash<String,Object>]
16351
+ attr_accessor :input_parameters
16352
+
16353
+ # Required. The tool associated with this call. Format: `projects//locations//
16354
+ # tools/`.
16355
+ # Corresponds to the JSON property `tool`
16356
+ # @return [String]
16357
+ attr_accessor :tool
16358
+
16359
+ def initialize(**args)
16360
+ update!(**args)
16361
+ end
16362
+
16363
+ # Update properties of this object
16364
+ def update!(**args)
16365
+ @action = args[:action] if args.key?(:action)
16366
+ @create_time = args[:create_time] if args.key?(:create_time)
16367
+ @input_parameters = args[:input_parameters] if args.key?(:input_parameters)
16368
+ @tool = args[:tool] if args.key?(:tool)
16369
+ end
16370
+ end
16371
+
16372
+ # The result of calling a tool's action.
16373
+ class GoogleCloudDialogflowV2ToolCallResult
16374
+ include Google::Apis::Core::Hashable
16375
+
16376
+ # Required. The name of the tool's action associated with this call.
16377
+ # Corresponds to the JSON property `action`
16378
+ # @return [String]
16379
+ attr_accessor :action
16380
+
16381
+ # Only populated if the response content is utf-8 encoded.
16382
+ # Corresponds to the JSON property `content`
16383
+ # @return [String]
16384
+ attr_accessor :content
16385
+
16386
+ # Output only. Create time of the tool call result.
16387
+ # Corresponds to the JSON property `createTime`
16388
+ # @return [String]
16389
+ attr_accessor :create_time
16390
+
16391
+ # An error produced by the tool call.
16392
+ # Corresponds to the JSON property `error`
16393
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowV2ToolCallResultError]
16394
+ attr_accessor :error
16395
+
16396
+ # Only populated if the response content is not utf-8 encoded. (by definition
16397
+ # byte fields are base64 encoded).
16398
+ # Corresponds to the JSON property `rawContent`
16399
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
16400
+ # @return [String]
16401
+ attr_accessor :raw_content
16402
+
16403
+ # Required. The tool associated with this call. Format: `projects//locations//
16404
+ # tools/`.
16405
+ # Corresponds to the JSON property `tool`
16406
+ # @return [String]
16407
+ attr_accessor :tool
16408
+
16409
+ def initialize(**args)
16410
+ update!(**args)
16411
+ end
16412
+
16413
+ # Update properties of this object
16414
+ def update!(**args)
16415
+ @action = args[:action] if args.key?(:action)
16416
+ @content = args[:content] if args.key?(:content)
16417
+ @create_time = args[:create_time] if args.key?(:create_time)
16418
+ @error = args[:error] if args.key?(:error)
16419
+ @raw_content = args[:raw_content] if args.key?(:raw_content)
16420
+ @tool = args[:tool] if args.key?(:tool)
16421
+ end
16422
+ end
16423
+
16424
+ # An error produced by the tool call.
16425
+ class GoogleCloudDialogflowV2ToolCallResultError
16426
+ include Google::Apis::Core::Hashable
16427
+
16428
+ # Optional. The error message of the function.
16429
+ # Corresponds to the JSON property `message`
16430
+ # @return [String]
16431
+ attr_accessor :message
16432
+
16433
+ def initialize(**args)
16434
+ update!(**args)
16435
+ end
16436
+
16437
+ # Update properties of this object
16438
+ def update!(**args)
16439
+ @message = args[:message] if args.key?(:message)
16440
+ end
16441
+ end
16442
+
16056
16443
  # Metadata for a ConversationModels.UndeployConversationModel operation.
16057
16444
  class GoogleCloudDialogflowV2UndeployConversationModelOperationMetadata
16058
16445
  include Google::Apis::Core::Hashable
@@ -16803,6 +17190,25 @@ module Google
16803
17190
  end
16804
17191
  end
16805
17192
 
17193
+ # Suggestion generated using free form generator.
17194
+ class GoogleCloudDialogflowV2beta1FreeFormSuggestion
17195
+ include Google::Apis::Core::Hashable
17196
+
17197
+ # Required. Free form suggestion.
17198
+ # Corresponds to the JSON property `response`
17199
+ # @return [String]
17200
+ attr_accessor :response
17201
+
17202
+ def initialize(**args)
17203
+ update!(**args)
17204
+ end
17205
+
17206
+ # Update properties of this object
17207
+ def update!(**args)
17208
+ @response = args[:response] if args.key?(:response)
17209
+ end
17210
+ end
17211
+
16806
17212
  # Google Cloud Storage location for the output.
16807
17213
  class GoogleCloudDialogflowV2beta1GcsDestination
16808
17214
  include Google::Apis::Core::Hashable
@@ -16824,6 +17230,121 @@ module Google
16824
17230
  end
16825
17231
  end
16826
17232
 
17233
+ # The response message for Conversations.GenerateSuggestions.
17234
+ class GoogleCloudDialogflowV2beta1GenerateSuggestionsResponse
17235
+ include Google::Apis::Core::Hashable
17236
+
17237
+ # The answers generated for the conversation based on context.
17238
+ # Corresponds to the JSON property `generatorSuggestionAnswers`
17239
+ # @return [Array<Google::Apis::DialogflowV3::GoogleCloudDialogflowV2beta1GenerateSuggestionsResponseGeneratorSuggestionAnswer>]
17240
+ attr_accessor :generator_suggestion_answers
17241
+
17242
+ # The name of the latest conversation message used as context for compiling
17243
+ # suggestion. Format: `projects//locations//conversations//messages/`.
17244
+ # Corresponds to the JSON property `latestMessage`
17245
+ # @return [String]
17246
+ attr_accessor :latest_message
17247
+
17248
+ def initialize(**args)
17249
+ update!(**args)
17250
+ end
17251
+
17252
+ # Update properties of this object
17253
+ def update!(**args)
17254
+ @generator_suggestion_answers = args[:generator_suggestion_answers] if args.key?(:generator_suggestion_answers)
17255
+ @latest_message = args[:latest_message] if args.key?(:latest_message)
17256
+ end
17257
+ end
17258
+
17259
+ # A GeneratorSuggestion answer.
17260
+ class GoogleCloudDialogflowV2beta1GenerateSuggestionsResponseGeneratorSuggestionAnswer
17261
+ include Google::Apis::Core::Hashable
17262
+
17263
+ # Answer record that uniquely identifies the suggestion. This can be used to
17264
+ # provide suggestion feedback.
17265
+ # Corresponds to the JSON property `answerRecord`
17266
+ # @return [String]
17267
+ attr_accessor :answer_record
17268
+
17269
+ # Suggestion generated using a Generator.
17270
+ # Corresponds to the JSON property `generatorSuggestion`
17271
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowV2beta1GeneratorSuggestion]
17272
+ attr_accessor :generator_suggestion
17273
+
17274
+ # The name of the generator used to generate this suggestion. Format: `projects//
17275
+ # locations//generators/`.
17276
+ # Corresponds to the JSON property `sourceGenerator`
17277
+ # @return [String]
17278
+ attr_accessor :source_generator
17279
+
17280
+ def initialize(**args)
17281
+ update!(**args)
17282
+ end
17283
+
17284
+ # Update properties of this object
17285
+ def update!(**args)
17286
+ @answer_record = args[:answer_record] if args.key?(:answer_record)
17287
+ @generator_suggestion = args[:generator_suggestion] if args.key?(:generator_suggestion)
17288
+ @source_generator = args[:source_generator] if args.key?(:source_generator)
17289
+ end
17290
+ end
17291
+
17292
+ # Suggestion generated using a Generator.
17293
+ class GoogleCloudDialogflowV2beta1GeneratorSuggestion
17294
+ include Google::Apis::Core::Hashable
17295
+
17296
+ # Suggestion generated using free form generator.
17297
+ # Corresponds to the JSON property `freeFormSuggestion`
17298
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowV2beta1FreeFormSuggestion]
17299
+ attr_accessor :free_form_suggestion
17300
+
17301
+ # Suggested summary of the conversation.
17302
+ # Corresponds to the JSON property `summarySuggestion`
17303
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowV2beta1SummarySuggestion]
17304
+ attr_accessor :summary_suggestion
17305
+
17306
+ # Optional. List of request and response for tool calls executed.
17307
+ # Corresponds to the JSON property `toolCallInfo`
17308
+ # @return [Array<Google::Apis::DialogflowV3::GoogleCloudDialogflowV2beta1GeneratorSuggestionToolCallInfo>]
17309
+ attr_accessor :tool_call_info
17310
+
17311
+ def initialize(**args)
17312
+ update!(**args)
17313
+ end
17314
+
17315
+ # Update properties of this object
17316
+ def update!(**args)
17317
+ @free_form_suggestion = args[:free_form_suggestion] if args.key?(:free_form_suggestion)
17318
+ @summary_suggestion = args[:summary_suggestion] if args.key?(:summary_suggestion)
17319
+ @tool_call_info = args[:tool_call_info] if args.key?(:tool_call_info)
17320
+ end
17321
+ end
17322
+
17323
+ # Request and response for a tool call.
17324
+ class GoogleCloudDialogflowV2beta1GeneratorSuggestionToolCallInfo
17325
+ include Google::Apis::Core::Hashable
17326
+
17327
+ # Represents a call of a specific tool's action with the specified inputs.
17328
+ # Corresponds to the JSON property `toolCall`
17329
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowV2beta1ToolCall]
17330
+ attr_accessor :tool_call
17331
+
17332
+ # The result of calling a tool's action.
17333
+ # Corresponds to the JSON property `toolCallResult`
17334
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowV2beta1ToolCallResult]
17335
+ attr_accessor :tool_call_result
17336
+
17337
+ def initialize(**args)
17338
+ update!(**args)
17339
+ end
17340
+
17341
+ # Update properties of this object
17342
+ def update!(**args)
17343
+ @tool_call = args[:tool_call] if args.key?(:tool_call)
17344
+ @tool_call_result = args[:tool_call_result] if args.key?(:tool_call_result)
17345
+ end
17346
+ end
17347
+
16827
17348
  # Output only. Represents a notification sent to Pub/Sub subscribers for agent
16828
17349
  # assistant events in a specific conversation.
16829
17350
  class GoogleCloudDialogflowV2beta1HumanAgentAssistantEvent
@@ -19979,6 +20500,11 @@ module Google
19979
20500
  # @return [Google::Apis::DialogflowV3::GoogleRpcStatus]
19980
20501
  attr_accessor :error
19981
20502
 
20503
+ # The response message for Conversations.GenerateSuggestions.
20504
+ # Corresponds to the JSON property `generateSuggestionsResponse`
20505
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowV2beta1GenerateSuggestionsResponse]
20506
+ attr_accessor :generate_suggestions_response
20507
+
19982
20508
  # The response message for Participants.SuggestArticles.
19983
20509
  # Corresponds to the JSON property `suggestArticlesResponse`
19984
20510
  # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowV2beta1SuggestArticlesResponse]
@@ -20016,6 +20542,7 @@ module Google
20016
20542
  # Update properties of this object
20017
20543
  def update!(**args)
20018
20544
  @error = args[:error] if args.key?(:error)
20545
+ @generate_suggestions_response = args[:generate_suggestions_response] if args.key?(:generate_suggestions_response)
20019
20546
  @suggest_articles_response = args[:suggest_articles_response] if args.key?(:suggest_articles_response)
20020
20547
  @suggest_dialogflow_assists_response = args[:suggest_dialogflow_assists_response] if args.key?(:suggest_dialogflow_assists_response)
20021
20548
  @suggest_entity_extraction_response = args[:suggest_entity_extraction_response] if args.key?(:suggest_entity_extraction_response)
@@ -20025,6 +20552,50 @@ module Google
20025
20552
  end
20026
20553
  end
20027
20554
 
20555
+ # Suggested summary of the conversation.
20556
+ class GoogleCloudDialogflowV2beta1SummarySuggestion
20557
+ include Google::Apis::Core::Hashable
20558
+
20559
+ # Required. All the parts of generated summary.
20560
+ # Corresponds to the JSON property `summarySections`
20561
+ # @return [Array<Google::Apis::DialogflowV3::GoogleCloudDialogflowV2beta1SummarySuggestionSummarySection>]
20562
+ attr_accessor :summary_sections
20563
+
20564
+ def initialize(**args)
20565
+ update!(**args)
20566
+ end
20567
+
20568
+ # Update properties of this object
20569
+ def update!(**args)
20570
+ @summary_sections = args[:summary_sections] if args.key?(:summary_sections)
20571
+ end
20572
+ end
20573
+
20574
+ # A component of the generated summary.
20575
+ class GoogleCloudDialogflowV2beta1SummarySuggestionSummarySection
20576
+ include Google::Apis::Core::Hashable
20577
+
20578
+ # Required. Name of the section.
20579
+ # Corresponds to the JSON property `section`
20580
+ # @return [String]
20581
+ attr_accessor :section
20582
+
20583
+ # Required. Summary text for the section.
20584
+ # Corresponds to the JSON property `summary`
20585
+ # @return [String]
20586
+ attr_accessor :summary
20587
+
20588
+ def initialize(**args)
20589
+ update!(**args)
20590
+ end
20591
+
20592
+ # Update properties of this object
20593
+ def update!(**args)
20594
+ @section = args[:section] if args.key?(:section)
20595
+ @summary = args[:summary] if args.key?(:summary)
20596
+ end
20597
+ end
20598
+
20028
20599
  # A wrapper of repeated TelephonyDtmf digits.
20029
20600
  class GoogleCloudDialogflowV2beta1TelephonyDtmfEvents
20030
20601
  include Google::Apis::Core::Hashable
@@ -20044,6 +20615,115 @@ module Google
20044
20615
  end
20045
20616
  end
20046
20617
 
20618
+ # Represents a call of a specific tool's action with the specified inputs.
20619
+ class GoogleCloudDialogflowV2beta1ToolCall
20620
+ include Google::Apis::Core::Hashable
20621
+
20622
+ # Required. The name of the tool's action associated with this call.
20623
+ # Corresponds to the JSON property `action`
20624
+ # @return [String]
20625
+ attr_accessor :action
20626
+
20627
+ # Output only. Create time of the tool call.
20628
+ # Corresponds to the JSON property `createTime`
20629
+ # @return [String]
20630
+ attr_accessor :create_time
20631
+
20632
+ # Optional. The action's input parameters.
20633
+ # Corresponds to the JSON property `inputParameters`
20634
+ # @return [Hash<String,Object>]
20635
+ attr_accessor :input_parameters
20636
+
20637
+ # Required. The tool associated with this call. Format: `projects//locations//
20638
+ # tools/`.
20639
+ # Corresponds to the JSON property `tool`
20640
+ # @return [String]
20641
+ attr_accessor :tool
20642
+
20643
+ def initialize(**args)
20644
+ update!(**args)
20645
+ end
20646
+
20647
+ # Update properties of this object
20648
+ def update!(**args)
20649
+ @action = args[:action] if args.key?(:action)
20650
+ @create_time = args[:create_time] if args.key?(:create_time)
20651
+ @input_parameters = args[:input_parameters] if args.key?(:input_parameters)
20652
+ @tool = args[:tool] if args.key?(:tool)
20653
+ end
20654
+ end
20655
+
20656
+ # The result of calling a tool's action.
20657
+ class GoogleCloudDialogflowV2beta1ToolCallResult
20658
+ include Google::Apis::Core::Hashable
20659
+
20660
+ # Required. The name of the tool's action associated with this call.
20661
+ # Corresponds to the JSON property `action`
20662
+ # @return [String]
20663
+ attr_accessor :action
20664
+
20665
+ # Only populated if the response content is utf-8 encoded.
20666
+ # Corresponds to the JSON property `content`
20667
+ # @return [String]
20668
+ attr_accessor :content
20669
+
20670
+ # Output only. Create time of the tool call result.
20671
+ # Corresponds to the JSON property `createTime`
20672
+ # @return [String]
20673
+ attr_accessor :create_time
20674
+
20675
+ # An error produced by the tool call.
20676
+ # Corresponds to the JSON property `error`
20677
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowV2beta1ToolCallResultError]
20678
+ attr_accessor :error
20679
+
20680
+ # Only populated if the response content is not utf-8 encoded. (by definition
20681
+ # byte fields are base64 encoded).
20682
+ # Corresponds to the JSON property `rawContent`
20683
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
20684
+ # @return [String]
20685
+ attr_accessor :raw_content
20686
+
20687
+ # Required. The tool associated with this call. Format: `projects//locations//
20688
+ # tools/`.
20689
+ # Corresponds to the JSON property `tool`
20690
+ # @return [String]
20691
+ attr_accessor :tool
20692
+
20693
+ def initialize(**args)
20694
+ update!(**args)
20695
+ end
20696
+
20697
+ # Update properties of this object
20698
+ def update!(**args)
20699
+ @action = args[:action] if args.key?(:action)
20700
+ @content = args[:content] if args.key?(:content)
20701
+ @create_time = args[:create_time] if args.key?(:create_time)
20702
+ @error = args[:error] if args.key?(:error)
20703
+ @raw_content = args[:raw_content] if args.key?(:raw_content)
20704
+ @tool = args[:tool] if args.key?(:tool)
20705
+ end
20706
+ end
20707
+
20708
+ # An error produced by the tool call.
20709
+ class GoogleCloudDialogflowV2beta1ToolCallResultError
20710
+ include Google::Apis::Core::Hashable
20711
+
20712
+ # Optional. The error message of the function.
20713
+ # Corresponds to the JSON property `message`
20714
+ # @return [String]
20715
+ attr_accessor :message
20716
+
20717
+ def initialize(**args)
20718
+ update!(**args)
20719
+ end
20720
+
20721
+ # Update properties of this object
20722
+ def update!(**args)
20723
+ @message = args[:message] if args.key?(:message)
20724
+ end
20725
+ end
20726
+
20047
20727
  # The request message for a webhook call.
20048
20728
  class GoogleCloudDialogflowV2beta1WebhookRequest
20049
20729
  include Google::Apis::Core::Hashable