google-apis-dialogflow_v3beta1 0.26.0 → 0.29.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.
@@ -476,7 +476,7 @@ module Google
476
476
  include Google::Apis::Core::Hashable
477
477
 
478
478
  # Whether to run test cases in TestCasesConfig.test_cases periodically. Default
479
- # false. If set to ture, run once a day.
479
+ # false. If set to true, run once a day.
480
480
  # Corresponds to the JSON property `enableContinuousRun`
481
481
  # @return [Boolean]
482
482
  attr_accessor :enable_continuous_run
@@ -1526,6 +1526,12 @@ module Google
1526
1526
  # @return [String]
1527
1527
  attr_accessor :current_page
1528
1528
 
1529
+ # Always present for WebhookRequest. Ignored for WebhookResponse. The display
1530
+ # name of the current page.
1531
+ # Corresponds to the JSON property `displayName`
1532
+ # @return [String]
1533
+ attr_accessor :display_name
1534
+
1529
1535
  # Represents form information.
1530
1536
  # Corresponds to the JSON property `formInfo`
1531
1537
  # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3PageInfoFormInfo]
@@ -1538,6 +1544,7 @@ module Google
1538
1544
  # Update properties of this object
1539
1545
  def update!(**args)
1540
1546
  @current_page = args[:current_page] if args.key?(:current_page)
1547
+ @display_name = args[:display_name] if args.key?(:display_name)
1541
1548
  @form_info = args[:form_info] if args.key?(:form_info)
1542
1549
  end
1543
1550
  end
@@ -6091,7 +6098,8 @@ module Google
6091
6098
  # @return [Float]
6092
6099
  attr_accessor :confidence
6093
6100
 
6094
- # The event that matched the query. Only filled for `EVENT` match type.
6101
+ # The event that matched the query. Filled for `EVENT`, `NO_MATCH` and `NO_INPUT`
6102
+ # match types.
6095
6103
  # Corresponds to the JSON property `event`
6096
6104
  # @return [String]
6097
6105
  attr_accessor :event
@@ -6413,6 +6421,12 @@ module Google
6413
6421
  # @return [String]
6414
6422
  attr_accessor :current_page
6415
6423
 
6424
+ # Always present for WebhookRequest. Ignored for WebhookResponse. The display
6425
+ # name of the current page.
6426
+ # Corresponds to the JSON property `displayName`
6427
+ # @return [String]
6428
+ attr_accessor :display_name
6429
+
6416
6430
  # Represents form information.
6417
6431
  # Corresponds to the JSON property `formInfo`
6418
6432
  # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1PageInfoFormInfo]
@@ -6425,6 +6439,7 @@ module Google
6425
6439
  # Update properties of this object
6426
6440
  def update!(**args)
6427
6441
  @current_page = args[:current_page] if args.key?(:current_page)
6442
+ @display_name = args[:display_name] if args.key?(:display_name)
6428
6443
  @form_info = args[:form_info] if args.key?(:form_info)
6429
6444
  end
6430
6445
  end
@@ -7467,7 +7482,7 @@ module Google
7467
7482
  attr_accessor :display_name
7468
7483
 
7469
7484
  # Settings for exporting conversations to [Insights](https://cloud.google.com/
7470
- # dialogflow/priv/docs/insights).
7485
+ # contact-center/insights/docs).
7471
7486
  # Corresponds to the JSON property `insightsExportSettings`
7472
7487
  # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1SecuritySettingsInsightsExportSettings]
7473
7488
  attr_accessor :insights_export_settings
@@ -7538,7 +7553,7 @@ module Google
7538
7553
  end
7539
7554
 
7540
7555
  # Settings for exporting conversations to [Insights](https://cloud.google.com/
7541
- # dialogflow/priv/docs/insights).
7556
+ # contact-center/insights/docs).
7542
7557
  class GoogleCloudDialogflowCxV3beta1SecuritySettingsInsightsExportSettings
7543
7558
  include Google::Apis::Core::Hashable
7544
7559
 
@@ -9142,6 +9157,26 @@ module Google
9142
9157
  end
9143
9158
  end
9144
9159
 
9160
+ # Metadata for article suggestion models.
9161
+ class GoogleCloudDialogflowV2ArticleSuggestionModelMetadata
9162
+ include Google::Apis::Core::Hashable
9163
+
9164
+ # Optional. Type of the article suggestion model. If not provided, model_type is
9165
+ # used.
9166
+ # Corresponds to the JSON property `trainingModelType`
9167
+ # @return [String]
9168
+ attr_accessor :training_model_type
9169
+
9170
+ def initialize(**args)
9171
+ update!(**args)
9172
+ end
9173
+
9174
+ # Update properties of this object
9175
+ def update!(**args)
9176
+ @training_model_type = args[:training_model_type] if args.key?(:training_model_type)
9177
+ end
9178
+ end
9179
+
9145
9180
  # The response message for EntityTypes.BatchUpdateEntityTypes.
9146
9181
  class GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse
9147
9182
  include Google::Apis::Core::Hashable
@@ -9180,6 +9215,45 @@ module Google
9180
9215
  end
9181
9216
  end
9182
9217
 
9218
+ # Metadata for a ConversationProfile.ClearSuggestionFeatureConfig operation.
9219
+ class GoogleCloudDialogflowV2ClearSuggestionFeatureConfigOperationMetadata
9220
+ include Google::Apis::Core::Hashable
9221
+
9222
+ # The resource name of the conversation profile. Format: `projects//locations//
9223
+ # conversationProfiles/`
9224
+ # Corresponds to the JSON property `conversationProfile`
9225
+ # @return [String]
9226
+ attr_accessor :conversation_profile
9227
+
9228
+ # Timestamp whe the request was created. The time is measured on server side.
9229
+ # Corresponds to the JSON property `createTime`
9230
+ # @return [String]
9231
+ attr_accessor :create_time
9232
+
9233
+ # Required. The participant role to remove the suggestion feature config. Only
9234
+ # HUMAN_AGENT or END_USER can be used.
9235
+ # Corresponds to the JSON property `participantRole`
9236
+ # @return [String]
9237
+ attr_accessor :participant_role
9238
+
9239
+ # Required. The type of the suggestion feature to remove.
9240
+ # Corresponds to the JSON property `suggestionFeatureType`
9241
+ # @return [String]
9242
+ attr_accessor :suggestion_feature_type
9243
+
9244
+ def initialize(**args)
9245
+ update!(**args)
9246
+ end
9247
+
9248
+ # Update properties of this object
9249
+ def update!(**args)
9250
+ @conversation_profile = args[:conversation_profile] if args.key?(:conversation_profile)
9251
+ @create_time = args[:create_time] if args.key?(:create_time)
9252
+ @participant_role = args[:participant_role] if args.key?(:participant_role)
9253
+ @suggestion_feature_type = args[:suggestion_feature_type] if args.key?(:suggestion_feature_type)
9254
+ end
9255
+ end
9256
+
9183
9257
  # Dialogflow contexts are similar to natural language context. If a person says
9184
9258
  # to you "they are orange", you need context in order to understand what "they"
9185
9259
  # is referring to. Similarly, for Dialogflow to handle an end-user expression
@@ -9285,6 +9359,224 @@ module Google
9285
9359
  end
9286
9360
  end
9287
9361
 
9362
+ # Represents a conversation model.
9363
+ class GoogleCloudDialogflowV2ConversationModel
9364
+ include Google::Apis::Core::Hashable
9365
+
9366
+ # Metadata for article suggestion models.
9367
+ # Corresponds to the JSON property `articleSuggestionModelMetadata`
9368
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2ArticleSuggestionModelMetadata]
9369
+ attr_accessor :article_suggestion_model_metadata
9370
+
9371
+ # Output only. Creation time of this model.
9372
+ # Corresponds to the JSON property `createTime`
9373
+ # @return [String]
9374
+ attr_accessor :create_time
9375
+
9376
+ # Required. Datasets used to create model.
9377
+ # Corresponds to the JSON property `datasets`
9378
+ # @return [Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2InputDataset>]
9379
+ attr_accessor :datasets
9380
+
9381
+ # Required. The display name of the model. At most 64 bytes long.
9382
+ # Corresponds to the JSON property `displayName`
9383
+ # @return [String]
9384
+ attr_accessor :display_name
9385
+
9386
+ # Language code for the conversation model. If not specified, the language is en-
9387
+ # US. Language at ConversationModel should be set for all non en-us languages.
9388
+ # This should be a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt)
9389
+ # language tag. Example: "en-US".
9390
+ # Corresponds to the JSON property `languageCode`
9391
+ # @return [String]
9392
+ attr_accessor :language_code
9393
+
9394
+ # ConversationModel resource name. Format: `projects//conversationModels/`
9395
+ # Corresponds to the JSON property `name`
9396
+ # @return [String]
9397
+ attr_accessor :name
9398
+
9399
+ # Metadata for smart reply models.
9400
+ # Corresponds to the JSON property `smartReplyModelMetadata`
9401
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2SmartReplyModelMetadata]
9402
+ attr_accessor :smart_reply_model_metadata
9403
+
9404
+ # Output only. State of the model. A model can only serve prediction requests
9405
+ # after it gets deployed.
9406
+ # Corresponds to the JSON property `state`
9407
+ # @return [String]
9408
+ attr_accessor :state
9409
+
9410
+ def initialize(**args)
9411
+ update!(**args)
9412
+ end
9413
+
9414
+ # Update properties of this object
9415
+ def update!(**args)
9416
+ @article_suggestion_model_metadata = args[:article_suggestion_model_metadata] if args.key?(:article_suggestion_model_metadata)
9417
+ @create_time = args[:create_time] if args.key?(:create_time)
9418
+ @datasets = args[:datasets] if args.key?(:datasets)
9419
+ @display_name = args[:display_name] if args.key?(:display_name)
9420
+ @language_code = args[:language_code] if args.key?(:language_code)
9421
+ @name = args[:name] if args.key?(:name)
9422
+ @smart_reply_model_metadata = args[:smart_reply_model_metadata] if args.key?(:smart_reply_model_metadata)
9423
+ @state = args[:state] if args.key?(:state)
9424
+ end
9425
+ end
9426
+
9427
+ # Metadata for ConversationDatasets.
9428
+ class GoogleCloudDialogflowV2CreateConversationDatasetOperationMetadata
9429
+ include Google::Apis::Core::Hashable
9430
+
9431
+ def initialize(**args)
9432
+ update!(**args)
9433
+ end
9434
+
9435
+ # Update properties of this object
9436
+ def update!(**args)
9437
+ end
9438
+ end
9439
+
9440
+ # Metadata for a ConversationModels.CreateConversationModelEvaluation operation.
9441
+ class GoogleCloudDialogflowV2CreateConversationModelEvaluationOperationMetadata
9442
+ include Google::Apis::Core::Hashable
9443
+
9444
+ # The resource name of the conversation model. Format: `projects//locations//
9445
+ # conversationModels/`
9446
+ # Corresponds to the JSON property `conversationModel`
9447
+ # @return [String]
9448
+ attr_accessor :conversation_model
9449
+
9450
+ # The resource name of the conversation model. Format: `projects//locations//
9451
+ # conversationModels//evaluations/`
9452
+ # Corresponds to the JSON property `conversationModelEvaluation`
9453
+ # @return [String]
9454
+ attr_accessor :conversation_model_evaluation
9455
+
9456
+ # Timestamp when the request to create conversation model was submitted. The
9457
+ # time is measured on server side.
9458
+ # Corresponds to the JSON property `createTime`
9459
+ # @return [String]
9460
+ attr_accessor :create_time
9461
+
9462
+ # State of CreateConversationModel operation.
9463
+ # Corresponds to the JSON property `state`
9464
+ # @return [String]
9465
+ attr_accessor :state
9466
+
9467
+ def initialize(**args)
9468
+ update!(**args)
9469
+ end
9470
+
9471
+ # Update properties of this object
9472
+ def update!(**args)
9473
+ @conversation_model = args[:conversation_model] if args.key?(:conversation_model)
9474
+ @conversation_model_evaluation = args[:conversation_model_evaluation] if args.key?(:conversation_model_evaluation)
9475
+ @create_time = args[:create_time] if args.key?(:create_time)
9476
+ @state = args[:state] if args.key?(:state)
9477
+ end
9478
+ end
9479
+
9480
+ # Metadata for a ConversationModels.CreateConversationModel operation.
9481
+ class GoogleCloudDialogflowV2CreateConversationModelOperationMetadata
9482
+ include Google::Apis::Core::Hashable
9483
+
9484
+ # The resource name of the conversation model. Format: `projects//
9485
+ # conversationModels/`
9486
+ # Corresponds to the JSON property `conversationModel`
9487
+ # @return [String]
9488
+ attr_accessor :conversation_model
9489
+
9490
+ # Timestamp when the request to create conversation model is submitted. The time
9491
+ # is measured on server side.
9492
+ # Corresponds to the JSON property `createTime`
9493
+ # @return [String]
9494
+ attr_accessor :create_time
9495
+
9496
+ # State of CreateConversationModel operation.
9497
+ # Corresponds to the JSON property `state`
9498
+ # @return [String]
9499
+ attr_accessor :state
9500
+
9501
+ def initialize(**args)
9502
+ update!(**args)
9503
+ end
9504
+
9505
+ # Update properties of this object
9506
+ def update!(**args)
9507
+ @conversation_model = args[:conversation_model] if args.key?(:conversation_model)
9508
+ @create_time = args[:create_time] if args.key?(:create_time)
9509
+ @state = args[:state] if args.key?(:state)
9510
+ end
9511
+ end
9512
+
9513
+ # Metadata for ConversationDatasets.
9514
+ class GoogleCloudDialogflowV2DeleteConversationDatasetOperationMetadata
9515
+ include Google::Apis::Core::Hashable
9516
+
9517
+ def initialize(**args)
9518
+ update!(**args)
9519
+ end
9520
+
9521
+ # Update properties of this object
9522
+ def update!(**args)
9523
+ end
9524
+ end
9525
+
9526
+ # Metadata for a ConversationModels.DeleteConversationModel operation.
9527
+ class GoogleCloudDialogflowV2DeleteConversationModelOperationMetadata
9528
+ include Google::Apis::Core::Hashable
9529
+
9530
+ # The resource name of the conversation model. Format: `projects//
9531
+ # conversationModels/`
9532
+ # Corresponds to the JSON property `conversationModel`
9533
+ # @return [String]
9534
+ attr_accessor :conversation_model
9535
+
9536
+ # Timestamp when delete conversation model request was created. The time is
9537
+ # measured on server side.
9538
+ # Corresponds to the JSON property `createTime`
9539
+ # @return [String]
9540
+ attr_accessor :create_time
9541
+
9542
+ def initialize(**args)
9543
+ update!(**args)
9544
+ end
9545
+
9546
+ # Update properties of this object
9547
+ def update!(**args)
9548
+ @conversation_model = args[:conversation_model] if args.key?(:conversation_model)
9549
+ @create_time = args[:create_time] if args.key?(:create_time)
9550
+ end
9551
+ end
9552
+
9553
+ # Metadata for a ConversationModels.DeployConversationModel operation.
9554
+ class GoogleCloudDialogflowV2DeployConversationModelOperationMetadata
9555
+ include Google::Apis::Core::Hashable
9556
+
9557
+ # The resource name of the conversation model. Format: `projects//
9558
+ # conversationModels/`
9559
+ # Corresponds to the JSON property `conversationModel`
9560
+ # @return [String]
9561
+ attr_accessor :conversation_model
9562
+
9563
+ # Timestamp when request to deploy conversation model was submitted. The time is
9564
+ # measured on server side.
9565
+ # Corresponds to the JSON property `createTime`
9566
+ # @return [String]
9567
+ attr_accessor :create_time
9568
+
9569
+ def initialize(**args)
9570
+ update!(**args)
9571
+ end
9572
+
9573
+ # Update properties of this object
9574
+ def update!(**args)
9575
+ @conversation_model = args[:conversation_model] if args.key?(:conversation_model)
9576
+ @create_time = args[:create_time] if args.key?(:create_time)
9577
+ end
9578
+ end
9579
+
9288
9580
  # Each intent parameter has a type, called the entity type, which dictates
9289
9581
  # exactly how data from an end-user expression is extracted. Dialogflow provides
9290
9582
  # predefined system entities that can match many common types of data. For
@@ -9449,6 +9741,25 @@ module Google
9449
9741
  end
9450
9742
  end
9451
9743
 
9744
+ # Metadata related to the Export Data Operations (e.g. ExportDocument).
9745
+ class GoogleCloudDialogflowV2ExportOperationMetadata
9746
+ include Google::Apis::Core::Hashable
9747
+
9748
+ # Google Cloud Storage location for the output.
9749
+ # Corresponds to the JSON property `exportedGcsDestination`
9750
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2GcsDestination]
9751
+ attr_accessor :exported_gcs_destination
9752
+
9753
+ def initialize(**args)
9754
+ update!(**args)
9755
+ end
9756
+
9757
+ # Update properties of this object
9758
+ def update!(**args)
9759
+ @exported_gcs_destination = args[:exported_gcs_destination] if args.key?(:exported_gcs_destination)
9760
+ end
9761
+ end
9762
+
9452
9763
  # Represents answer from "frequently asked questions".
9453
9764
  class GoogleCloudDialogflowV2FaqAnswer
9454
9765
  include Google::Apis::Core::Hashable
@@ -9503,6 +9814,27 @@ module Google
9503
9814
  end
9504
9815
  end
9505
9816
 
9817
+ # Google Cloud Storage location for the output.
9818
+ class GoogleCloudDialogflowV2GcsDestination
9819
+ include Google::Apis::Core::Hashable
9820
+
9821
+ # The Google Cloud Storage URIs for the output. A URI is of the form: gs://
9822
+ # bucket/object-prefix-or-name Whether a prefix or name is used depends on the
9823
+ # use case. The requesting user must have "write-permission" to the bucket.
9824
+ # Corresponds to the JSON property `uri`
9825
+ # @return [String]
9826
+ attr_accessor :uri
9827
+
9828
+ def initialize(**args)
9829
+ update!(**args)
9830
+ end
9831
+
9832
+ # Update properties of this object
9833
+ def update!(**args)
9834
+ @uri = args[:uri] if args.key?(:uri)
9835
+ end
9836
+ end
9837
+
9506
9838
  # Represents a notification sent to Cloud Pub/Sub subscribers for human agent
9507
9839
  # assistant events in a specific conversation.
9508
9840
  class GoogleCloudDialogflowV2HumanAgentAssistantEvent
@@ -9537,44 +9869,144 @@ module Google
9537
9869
  end
9538
9870
  end
9539
9871
 
9540
- # An intent categorizes an end-user's intention for one conversation turn. For
9541
- # each agent, you define many intents, where your combined intents can handle a
9542
- # complete conversation. When an end-user writes or says something, referred to
9543
- # as an end-user expression or end-user input, Dialogflow matches the end-user
9544
- # input to the best intent in your agent. Matching an intent is also known as
9545
- # intent classification. For more information, see the [intent guide](https://
9546
- # cloud.google.com/dialogflow/docs/intents-overview).
9547
- class GoogleCloudDialogflowV2Intent
9872
+ # Metadata for a ConversationDatasets.ImportConversationData operation.
9873
+ class GoogleCloudDialogflowV2ImportConversationDataOperationMetadata
9548
9874
  include Google::Apis::Core::Hashable
9549
9875
 
9550
- # Optional. The name of the action associated with the intent. Note: The action
9551
- # name must not contain whitespaces.
9552
- # Corresponds to the JSON property `action`
9876
+ # The resource name of the imported conversation dataset. Format: `projects//
9877
+ # locations//conversationDatasets/`
9878
+ # Corresponds to the JSON property `conversationDataset`
9553
9879
  # @return [String]
9554
- attr_accessor :action
9555
-
9556
- # Optional. The list of platforms for which the first responses will be copied
9557
- # from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
9558
- # Corresponds to the JSON property `defaultResponsePlatforms`
9559
- # @return [Array<String>]
9560
- attr_accessor :default_response_platforms
9880
+ attr_accessor :conversation_dataset
9561
9881
 
9562
- # Required. The name of this intent.
9563
- # Corresponds to the JSON property `displayName`
9882
+ # Timestamp when import conversation data request was created. The time is
9883
+ # measured on server side.
9884
+ # Corresponds to the JSON property `createTime`
9564
9885
  # @return [String]
9565
- attr_accessor :display_name
9886
+ attr_accessor :create_time
9566
9887
 
9567
- # Optional. Indicates that this intent ends an interaction. Some integrations (e.
9568
- # g., Actions on Google or Dialogflow phone gateway) use this information to
9569
- # close interaction with an end user. Default is false.
9570
- # Corresponds to the JSON property `endInteraction`
9571
- # @return [Boolean]
9572
- attr_accessor :end_interaction
9573
- alias_method :end_interaction?, :end_interaction
9888
+ # Partial failures are failures that don't fail the whole long running operation,
9889
+ # e.g. single files that couldn't be read.
9890
+ # Corresponds to the JSON property `partialFailures`
9891
+ # @return [Array<Google::Apis::DialogflowV3beta1::GoogleRpcStatus>]
9892
+ attr_accessor :partial_failures
9574
9893
 
9575
- # Optional. The collection of event names that trigger the intent. If the
9576
- # collection of input contexts is not empty, all of the contexts must be present
9577
- # in the active user session for an event to trigger this intent. Event names
9894
+ def initialize(**args)
9895
+ update!(**args)
9896
+ end
9897
+
9898
+ # Update properties of this object
9899
+ def update!(**args)
9900
+ @conversation_dataset = args[:conversation_dataset] if args.key?(:conversation_dataset)
9901
+ @create_time = args[:create_time] if args.key?(:create_time)
9902
+ @partial_failures = args[:partial_failures] if args.key?(:partial_failures)
9903
+ end
9904
+ end
9905
+
9906
+ # Response used for ConversationDatasets.ImportConversationData long running
9907
+ # operation.
9908
+ class GoogleCloudDialogflowV2ImportConversationDataOperationResponse
9909
+ include Google::Apis::Core::Hashable
9910
+
9911
+ # The resource name of the imported conversation dataset. Format: `projects//
9912
+ # locations//conversationDatasets/`
9913
+ # Corresponds to the JSON property `conversationDataset`
9914
+ # @return [String]
9915
+ attr_accessor :conversation_dataset
9916
+
9917
+ # Number of conversations imported successfully.
9918
+ # Corresponds to the JSON property `importCount`
9919
+ # @return [Fixnum]
9920
+ attr_accessor :import_count
9921
+
9922
+ def initialize(**args)
9923
+ update!(**args)
9924
+ end
9925
+
9926
+ # Update properties of this object
9927
+ def update!(**args)
9928
+ @conversation_dataset = args[:conversation_dataset] if args.key?(:conversation_dataset)
9929
+ @import_count = args[:import_count] if args.key?(:import_count)
9930
+ end
9931
+ end
9932
+
9933
+ # Response message for Documents.ImportDocuments.
9934
+ class GoogleCloudDialogflowV2ImportDocumentsResponse
9935
+ include Google::Apis::Core::Hashable
9936
+
9937
+ # Includes details about skipped documents or any other warnings.
9938
+ # Corresponds to the JSON property `warnings`
9939
+ # @return [Array<Google::Apis::DialogflowV3beta1::GoogleRpcStatus>]
9940
+ attr_accessor :warnings
9941
+
9942
+ def initialize(**args)
9943
+ update!(**args)
9944
+ end
9945
+
9946
+ # Update properties of this object
9947
+ def update!(**args)
9948
+ @warnings = args[:warnings] if args.key?(:warnings)
9949
+ end
9950
+ end
9951
+
9952
+ # InputDataset used to create model or do evaluation. NextID:5
9953
+ class GoogleCloudDialogflowV2InputDataset
9954
+ include Google::Apis::Core::Hashable
9955
+
9956
+ # Required. ConversationDataset resource name. Format: `projects//locations//
9957
+ # conversationDatasets/`
9958
+ # Corresponds to the JSON property `dataset`
9959
+ # @return [String]
9960
+ attr_accessor :dataset
9961
+
9962
+ def initialize(**args)
9963
+ update!(**args)
9964
+ end
9965
+
9966
+ # Update properties of this object
9967
+ def update!(**args)
9968
+ @dataset = args[:dataset] if args.key?(:dataset)
9969
+ end
9970
+ end
9971
+
9972
+ # An intent categorizes an end-user's intention for one conversation turn. For
9973
+ # each agent, you define many intents, where your combined intents can handle a
9974
+ # complete conversation. When an end-user writes or says something, referred to
9975
+ # as an end-user expression or end-user input, Dialogflow matches the end-user
9976
+ # input to the best intent in your agent. Matching an intent is also known as
9977
+ # intent classification. For more information, see the [intent guide](https://
9978
+ # cloud.google.com/dialogflow/docs/intents-overview).
9979
+ class GoogleCloudDialogflowV2Intent
9980
+ include Google::Apis::Core::Hashable
9981
+
9982
+ # Optional. The name of the action associated with the intent. Note: The action
9983
+ # name must not contain whitespaces.
9984
+ # Corresponds to the JSON property `action`
9985
+ # @return [String]
9986
+ attr_accessor :action
9987
+
9988
+ # Optional. The list of platforms for which the first responses will be copied
9989
+ # from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
9990
+ # Corresponds to the JSON property `defaultResponsePlatforms`
9991
+ # @return [Array<String>]
9992
+ attr_accessor :default_response_platforms
9993
+
9994
+ # Required. The name of this intent.
9995
+ # Corresponds to the JSON property `displayName`
9996
+ # @return [String]
9997
+ attr_accessor :display_name
9998
+
9999
+ # Optional. Indicates that this intent ends an interaction. Some integrations (e.
10000
+ # g., Actions on Google or Dialogflow phone gateway) use this information to
10001
+ # close interaction with an end user. Default is false.
10002
+ # Corresponds to the JSON property `endInteraction`
10003
+ # @return [Boolean]
10004
+ attr_accessor :end_interaction
10005
+ alias_method :end_interaction?, :end_interaction
10006
+
10007
+ # Optional. The collection of event names that trigger the intent. If the
10008
+ # collection of input contexts is not empty, all of the contexts must be present
10009
+ # in the active user session for an event to trigger this intent. Event names
9578
10010
  # are limited to 150 characters.
9579
10011
  # Corresponds to the JSON property `events`
9580
10012
  # @return [Array<String>]
@@ -10792,6 +11224,16 @@ module Google
10792
11224
  class GoogleCloudDialogflowV2KnowledgeOperationMetadata
10793
11225
  include Google::Apis::Core::Hashable
10794
11226
 
11227
+ # Metadata related to the Export Data Operations (e.g. ExportDocument).
11228
+ # Corresponds to the JSON property `exportOperationMetadata`
11229
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2ExportOperationMetadata]
11230
+ attr_accessor :export_operation_metadata
11231
+
11232
+ # The name of the knowledge base interacted with during the operation.
11233
+ # Corresponds to the JSON property `knowledgeBase`
11234
+ # @return [String]
11235
+ attr_accessor :knowledge_base
11236
+
10795
11237
  # Output only. The current state of this operation.
10796
11238
  # Corresponds to the JSON property `state`
10797
11239
  # @return [String]
@@ -10803,6 +11245,8 @@ module Google
10803
11245
 
10804
11246
  # Update properties of this object
10805
11247
  def update!(**args)
11248
+ @export_operation_metadata = args[:export_operation_metadata] if args.key?(:export_operation_metadata)
11249
+ @knowledge_base = args[:knowledge_base] if args.key?(:knowledge_base)
10806
11250
  @state = args[:state] if args.key?(:state)
10807
11251
  end
10808
11252
  end
@@ -10816,7 +11260,7 @@ module Google
10816
11260
  # @return [String]
10817
11261
  attr_accessor :content
10818
11262
 
10819
- # Output only. The time when the message was created.
11263
+ # Output only. The time when the message was created in Contact Center AI.
10820
11264
  # Corresponds to the JSON property `createTime`
10821
11265
  # @return [String]
10822
11266
  attr_accessor :create_time
@@ -10832,7 +11276,7 @@ module Google
10832
11276
  # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2MessageAnnotation]
10833
11277
  attr_accessor :message_annotation
10834
11278
 
10835
- # The unique identifier of the message. Format: `projects//locations//
11279
+ # Optional. The unique identifier of the message. Format: `projects//locations//
10836
11280
  # conversations//messages/`.
10837
11281
  # Corresponds to the JSON property `name`
10838
11282
  # @return [String]
@@ -10848,6 +11292,23 @@ module Google
10848
11292
  # @return [String]
10849
11293
  attr_accessor :participant_role
10850
11294
 
11295
+ # Optional. The time when the message was sent.
11296
+ # Corresponds to the JSON property `sendTime`
11297
+ # @return [String]
11298
+ attr_accessor :send_time
11299
+
11300
+ # The result of sentiment analysis. Sentiment analysis inspects user input and
11301
+ # identifies the prevailing subjective opinion, especially to determine a user's
11302
+ # attitude as positive, negative, or neutral. For Participants.DetectIntent, it
11303
+ # needs to be configured in DetectIntentRequest.query_params. For Participants.
11304
+ # StreamingDetectIntent, it needs to be configured in
11305
+ # StreamingDetectIntentRequest.query_params. And for Participants.AnalyzeContent
11306
+ # and Participants.StreamingAnalyzeContent, it needs to be configured in
11307
+ # ConversationProfile.human_agent_assistant_config
11308
+ # Corresponds to the JSON property `sentimentAnalysis`
11309
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2SentimentAnalysisResult]
11310
+ attr_accessor :sentiment_analysis
11311
+
10851
11312
  def initialize(**args)
10852
11313
  update!(**args)
10853
11314
  end
@@ -10861,6 +11322,8 @@ module Google
10861
11322
  @name = args[:name] if args.key?(:name)
10862
11323
  @participant = args[:participant] if args.key?(:participant)
10863
11324
  @participant_role = args[:participant_role] if args.key?(:participant_role)
11325
+ @send_time = args[:send_time] if args.key?(:send_time)
11326
+ @sentiment_analysis = args[:sentiment_analysis] if args.key?(:sentiment_analysis)
10864
11327
  end
10865
11328
  end
10866
11329
 
@@ -11191,6 +11654,98 @@ module Google
11191
11654
  end
11192
11655
  end
11193
11656
 
11657
+ # Metadata for a ConversationProfile.SetSuggestionFeatureConfig operation.
11658
+ class GoogleCloudDialogflowV2SetSuggestionFeatureConfigOperationMetadata
11659
+ include Google::Apis::Core::Hashable
11660
+
11661
+ # The resource name of the conversation profile. Format: `projects//locations//
11662
+ # conversationProfiles/`
11663
+ # Corresponds to the JSON property `conversationProfile`
11664
+ # @return [String]
11665
+ attr_accessor :conversation_profile
11666
+
11667
+ # Timestamp whe the request was created. The time is measured on server side.
11668
+ # Corresponds to the JSON property `createTime`
11669
+ # @return [String]
11670
+ attr_accessor :create_time
11671
+
11672
+ # Required. The participant role to add or update the suggestion feature config.
11673
+ # Only HUMAN_AGENT or END_USER can be used.
11674
+ # Corresponds to the JSON property `participantRole`
11675
+ # @return [String]
11676
+ attr_accessor :participant_role
11677
+
11678
+ # Required. The type of the suggestion feature to add or update.
11679
+ # Corresponds to the JSON property `suggestionFeatureType`
11680
+ # @return [String]
11681
+ attr_accessor :suggestion_feature_type
11682
+
11683
+ def initialize(**args)
11684
+ update!(**args)
11685
+ end
11686
+
11687
+ # Update properties of this object
11688
+ def update!(**args)
11689
+ @conversation_profile = args[:conversation_profile] if args.key?(:conversation_profile)
11690
+ @create_time = args[:create_time] if args.key?(:create_time)
11691
+ @participant_role = args[:participant_role] if args.key?(:participant_role)
11692
+ @suggestion_feature_type = args[:suggestion_feature_type] if args.key?(:suggestion_feature_type)
11693
+ end
11694
+ end
11695
+
11696
+ # Represents a smart reply answer.
11697
+ class GoogleCloudDialogflowV2SmartReplyAnswer
11698
+ include Google::Apis::Core::Hashable
11699
+
11700
+ # The name of answer record, in the format of "projects//locations//
11701
+ # answerRecords/"
11702
+ # Corresponds to the JSON property `answerRecord`
11703
+ # @return [String]
11704
+ attr_accessor :answer_record
11705
+
11706
+ # Smart reply confidence. The system's confidence score that this reply is a
11707
+ # good match for this conversation, as a value from 0.0 (completely uncertain)
11708
+ # to 1.0 (completely certain).
11709
+ # Corresponds to the JSON property `confidence`
11710
+ # @return [Float]
11711
+ attr_accessor :confidence
11712
+
11713
+ # The content of the reply.
11714
+ # Corresponds to the JSON property `reply`
11715
+ # @return [String]
11716
+ attr_accessor :reply
11717
+
11718
+ def initialize(**args)
11719
+ update!(**args)
11720
+ end
11721
+
11722
+ # Update properties of this object
11723
+ def update!(**args)
11724
+ @answer_record = args[:answer_record] if args.key?(:answer_record)
11725
+ @confidence = args[:confidence] if args.key?(:confidence)
11726
+ @reply = args[:reply] if args.key?(:reply)
11727
+ end
11728
+ end
11729
+
11730
+ # Metadata for smart reply models.
11731
+ class GoogleCloudDialogflowV2SmartReplyModelMetadata
11732
+ include Google::Apis::Core::Hashable
11733
+
11734
+ # Optional. Type of the smart reply model. If not provided, model_type is used.
11735
+ # Corresponds to the JSON property `trainingModelType`
11736
+ # @return [String]
11737
+ attr_accessor :training_model_type
11738
+
11739
+ def initialize(**args)
11740
+ update!(**args)
11741
+ end
11742
+
11743
+ # Update properties of this object
11744
+ def update!(**args)
11745
+ @training_model_type = args[:training_model_type] if args.key?(:training_model_type)
11746
+ end
11747
+ end
11748
+
11194
11749
  # The response message for Participants.SuggestArticles.
11195
11750
  class GoogleCloudDialogflowV2SuggestArticlesResponse
11196
11751
  include Google::Apis::Core::Hashable
@@ -11259,6 +11814,42 @@ module Google
11259
11814
  end
11260
11815
  end
11261
11816
 
11817
+ # The response message for Participants.SuggestSmartReplies.
11818
+ class GoogleCloudDialogflowV2SuggestSmartRepliesResponse
11819
+ include Google::Apis::Core::Hashable
11820
+
11821
+ # Number of messages prior to and including latest_message to compile the
11822
+ # suggestion. It may be smaller than the SuggestSmartRepliesRequest.context_size
11823
+ # field in the request if there aren't that many messages in the conversation.
11824
+ # Corresponds to the JSON property `contextSize`
11825
+ # @return [Fixnum]
11826
+ attr_accessor :context_size
11827
+
11828
+ # The name of the latest conversation message used to compile suggestion for.
11829
+ # Format: `projects//locations//conversations//messages/`.
11830
+ # Corresponds to the JSON property `latestMessage`
11831
+ # @return [String]
11832
+ attr_accessor :latest_message
11833
+
11834
+ # Output only. Multiple reply options provided by smart reply service. The order
11835
+ # is based on the rank of the model prediction. The maximum number of the
11836
+ # returned replies is set in SmartReplyConfig.
11837
+ # Corresponds to the JSON property `smartReplyAnswers`
11838
+ # @return [Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2SmartReplyAnswer>]
11839
+ attr_accessor :smart_reply_answers
11840
+
11841
+ def initialize(**args)
11842
+ update!(**args)
11843
+ end
11844
+
11845
+ # Update properties of this object
11846
+ def update!(**args)
11847
+ @context_size = args[:context_size] if args.key?(:context_size)
11848
+ @latest_message = args[:latest_message] if args.key?(:latest_message)
11849
+ @smart_reply_answers = args[:smart_reply_answers] if args.key?(:smart_reply_answers)
11850
+ end
11851
+ end
11852
+
11262
11853
  # One response of different type of suggestion response which is used in the
11263
11854
  # response of Participants.AnalyzeContent and Participants.AnalyzeContent, as
11264
11855
  # well as HumanAgentAssistantEvent.
@@ -11285,6 +11876,11 @@ module Google
11285
11876
  # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2SuggestFaqAnswersResponse]
11286
11877
  attr_accessor :suggest_faq_answers_response
11287
11878
 
11879
+ # The response message for Participants.SuggestSmartReplies.
11880
+ # Corresponds to the JSON property `suggestSmartRepliesResponse`
11881
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2SuggestSmartRepliesResponse]
11882
+ attr_accessor :suggest_smart_replies_response
11883
+
11288
11884
  def initialize(**args)
11289
11885
  update!(**args)
11290
11886
  end
@@ -11294,6 +11890,34 @@ module Google
11294
11890
  @error = args[:error] if args.key?(:error)
11295
11891
  @suggest_articles_response = args[:suggest_articles_response] if args.key?(:suggest_articles_response)
11296
11892
  @suggest_faq_answers_response = args[:suggest_faq_answers_response] if args.key?(:suggest_faq_answers_response)
11893
+ @suggest_smart_replies_response = args[:suggest_smart_replies_response] if args.key?(:suggest_smart_replies_response)
11894
+ end
11895
+ end
11896
+
11897
+ # Metadata for a ConversationModels.UndeployConversationModel operation.
11898
+ class GoogleCloudDialogflowV2UndeployConversationModelOperationMetadata
11899
+ include Google::Apis::Core::Hashable
11900
+
11901
+ # The resource name of the conversation model. Format: `projects//
11902
+ # conversationModels/`
11903
+ # Corresponds to the JSON property `conversationModel`
11904
+ # @return [String]
11905
+ attr_accessor :conversation_model
11906
+
11907
+ # Timestamp when the request to undeploy conversation model was submitted. The
11908
+ # time is measured on server side.
11909
+ # Corresponds to the JSON property `createTime`
11910
+ # @return [String]
11911
+ attr_accessor :create_time
11912
+
11913
+ def initialize(**args)
11914
+ update!(**args)
11915
+ end
11916
+
11917
+ # Update properties of this object
11918
+ def update!(**args)
11919
+ @conversation_model = args[:conversation_model] if args.key?(:conversation_model)
11920
+ @create_time = args[:create_time] if args.key?(:create_time)
11297
11921
  end
11298
11922
  end
11299
11923
 
@@ -11544,6 +12168,45 @@ module Google
11544
12168
  end
11545
12169
  end
11546
12170
 
12171
+ # Metadata for a ConversationProfile.ClearSuggestionFeatureConfig operation.
12172
+ class GoogleCloudDialogflowV2beta1ClearSuggestionFeatureConfigOperationMetadata
12173
+ include Google::Apis::Core::Hashable
12174
+
12175
+ # The resource name of the conversation profile. Format: `projects//locations//
12176
+ # conversationProfiles/`
12177
+ # Corresponds to the JSON property `conversationProfile`
12178
+ # @return [String]
12179
+ attr_accessor :conversation_profile
12180
+
12181
+ # Timestamp whe the request was created. The time is measured on server side.
12182
+ # Corresponds to the JSON property `createTime`
12183
+ # @return [String]
12184
+ attr_accessor :create_time
12185
+
12186
+ # Required. The participant role to remove the suggestion feature config. Only
12187
+ # HUMAN_AGENT or END_USER can be used.
12188
+ # Corresponds to the JSON property `participantRole`
12189
+ # @return [String]
12190
+ attr_accessor :participant_role
12191
+
12192
+ # Required. The type of the suggestion feature to remove.
12193
+ # Corresponds to the JSON property `suggestionFeatureType`
12194
+ # @return [String]
12195
+ attr_accessor :suggestion_feature_type
12196
+
12197
+ def initialize(**args)
12198
+ update!(**args)
12199
+ end
12200
+
12201
+ # Update properties of this object
12202
+ def update!(**args)
12203
+ @conversation_profile = args[:conversation_profile] if args.key?(:conversation_profile)
12204
+ @create_time = args[:create_time] if args.key?(:create_time)
12205
+ @participant_role = args[:participant_role] if args.key?(:participant_role)
12206
+ @suggestion_feature_type = args[:suggestion_feature_type] if args.key?(:suggestion_feature_type)
12207
+ end
12208
+ end
12209
+
11547
12210
  # Dialogflow contexts are similar to natural language context. If a person says
11548
12211
  # to you "they are orange", you need context in order to understand what "they"
11549
12212
  # is referring to. Similarly, for Dialogflow to handle an end-user expression
@@ -11815,6 +12478,25 @@ module Google
11815
12478
  end
11816
12479
  end
11817
12480
 
12481
+ # Metadata related to the Export Data Operations (e.g. ExportDocument).
12482
+ class GoogleCloudDialogflowV2beta1ExportOperationMetadata
12483
+ include Google::Apis::Core::Hashable
12484
+
12485
+ # Google Cloud Storage location for the output.
12486
+ # Corresponds to the JSON property `exportedGcsDestination`
12487
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2beta1GcsDestination]
12488
+ attr_accessor :exported_gcs_destination
12489
+
12490
+ def initialize(**args)
12491
+ update!(**args)
12492
+ end
12493
+
12494
+ # Update properties of this object
12495
+ def update!(**args)
12496
+ @exported_gcs_destination = args[:exported_gcs_destination] if args.key?(:exported_gcs_destination)
12497
+ end
12498
+ end
12499
+
11818
12500
  # Represents answer from "frequently asked questions".
11819
12501
  class GoogleCloudDialogflowV2beta1FaqAnswer
11820
12502
  include Google::Apis::Core::Hashable
@@ -11869,6 +12551,27 @@ module Google
11869
12551
  end
11870
12552
  end
11871
12553
 
12554
+ # Google Cloud Storage location for the output.
12555
+ class GoogleCloudDialogflowV2beta1GcsDestination
12556
+ include Google::Apis::Core::Hashable
12557
+
12558
+ # Required. The Google Cloud Storage URIs for the output. A URI is of the form:
12559
+ # gs://bucket/object-prefix-or-name Whether a prefix or name is used depends on
12560
+ # the use case. The requesting user must have "write-permission" to the bucket.
12561
+ # Corresponds to the JSON property `uri`
12562
+ # @return [String]
12563
+ attr_accessor :uri
12564
+
12565
+ def initialize(**args)
12566
+ update!(**args)
12567
+ end
12568
+
12569
+ # Update properties of this object
12570
+ def update!(**args)
12571
+ @uri = args[:uri] if args.key?(:uri)
12572
+ end
12573
+ end
12574
+
11872
12575
  # Output only. Represents a notification sent to Pub/Sub subscribers for agent
11873
12576
  # assistant events in a specific conversation.
11874
12577
  class GoogleCloudDialogflowV2beta1HumanAgentAssistantEvent
@@ -13728,6 +14431,16 @@ module Google
13728
14431
  class GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata
13729
14432
  include Google::Apis::Core::Hashable
13730
14433
 
14434
+ # Metadata related to the Export Data Operations (e.g. ExportDocument).
14435
+ # Corresponds to the JSON property `exportOperationMetadata`
14436
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2beta1ExportOperationMetadata]
14437
+ attr_accessor :export_operation_metadata
14438
+
14439
+ # The name of the knowledge base interacted with during the operation.
14440
+ # Corresponds to the JSON property `knowledgeBase`
14441
+ # @return [String]
14442
+ attr_accessor :knowledge_base
14443
+
13731
14444
  # Required. Output only. The current state of this operation.
13732
14445
  # Corresponds to the JSON property `state`
13733
14446
  # @return [String]
@@ -13739,6 +14452,8 @@ module Google
13739
14452
 
13740
14453
  # Update properties of this object
13741
14454
  def update!(**args)
14455
+ @export_operation_metadata = args[:export_operation_metadata] if args.key?(:export_operation_metadata)
14456
+ @knowledge_base = args[:knowledge_base] if args.key?(:knowledge_base)
13742
14457
  @state = args[:state] if args.key?(:state)
13743
14458
  end
13744
14459
  end
@@ -14155,6 +14870,45 @@ module Google
14155
14870
  end
14156
14871
  end
14157
14872
 
14873
+ # Metadata for a ConversationProfile.SetSuggestionFeatureConfig operation.
14874
+ class GoogleCloudDialogflowV2beta1SetSuggestionFeatureConfigOperationMetadata
14875
+ include Google::Apis::Core::Hashable
14876
+
14877
+ # The resource name of the conversation profile. Format: `projects//locations//
14878
+ # conversationProfiles/`
14879
+ # Corresponds to the JSON property `conversationProfile`
14880
+ # @return [String]
14881
+ attr_accessor :conversation_profile
14882
+
14883
+ # Timestamp whe the request was created. The time is measured on server side.
14884
+ # Corresponds to the JSON property `createTime`
14885
+ # @return [String]
14886
+ attr_accessor :create_time
14887
+
14888
+ # Required. The participant role to add or update the suggestion feature config.
14889
+ # Only HUMAN_AGENT or END_USER can be used.
14890
+ # Corresponds to the JSON property `participantRole`
14891
+ # @return [String]
14892
+ attr_accessor :participant_role
14893
+
14894
+ # Required. The type of the suggestion feature to add or update.
14895
+ # Corresponds to the JSON property `suggestionFeatureType`
14896
+ # @return [String]
14897
+ attr_accessor :suggestion_feature_type
14898
+
14899
+ def initialize(**args)
14900
+ update!(**args)
14901
+ end
14902
+
14903
+ # Update properties of this object
14904
+ def update!(**args)
14905
+ @conversation_profile = args[:conversation_profile] if args.key?(:conversation_profile)
14906
+ @create_time = args[:create_time] if args.key?(:create_time)
14907
+ @participant_role = args[:participant_role] if args.key?(:participant_role)
14908
+ @suggestion_feature_type = args[:suggestion_feature_type] if args.key?(:suggestion_feature_type)
14909
+ end
14910
+ end
14911
+
14158
14912
  # Represents a smart reply answer.
14159
14913
  class GoogleCloudDialogflowV2beta1SmartReplyAnswer
14160
14914
  include Google::Apis::Core::Hashable