google-apis-dialogflow_v3beta1 0.72.0 → 0.74.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/google/apis/dialogflow_v3beta1/classes.rb +142 -50
- data/lib/google/apis/dialogflow_v3beta1/gem_version.rb +2 -2
- data/lib/google/apis/dialogflow_v3beta1/representations.rb +61 -0
- data/lib/google/apis/dialogflow_v3beta1/service.rb +193 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b1f08704246d1c0c04a96da759d64582e6be109f9325d16df8c3c7c37a176404
|
4
|
+
data.tar.gz: cf30a443c2e07781dd2bb1bb200da7120b393f1d3fddf3cfb50a40b3b211b471
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d575c79a8797bb1245005c853859c49c6636f197edca822b60f1b7bb691f70a18a5590c1c40f51637684275b751381da3ae7210e080266d43989124218794d38
|
7
|
+
data.tar.gz: 1c6720bd1e61dee45cb6c69a8dd6bdaa2d8747ad970ef05f5047cd0dd6bcd59d52c640373cc97387b0ff1e1b0bb39a07e3a046db33aa5464e1c162d703655d8e
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-dialogflow_v3beta1
|
2
2
|
|
3
|
+
### v0.74.0 (2023-12-17)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20231208
|
6
|
+
|
7
|
+
### v0.73.0 (2023-12-10)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20231204
|
10
|
+
|
3
11
|
### v0.72.0 (2023-12-03)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20231129
|
@@ -167,13 +167,9 @@ module Google
|
|
167
167
|
# which the API starts speech detection and may inform the client that an
|
168
168
|
# utterance has been detected. Note that no-speech event is not expected in this
|
169
169
|
# phase. The client provides this configuration in terms of the durations of
|
170
|
-
# those two phases. The durations are measured in terms of the audio length
|
171
|
-
#
|
172
|
-
# without
|
173
|
-
# ------------+ | +------------+ | +---------------+ ----------+ no barge-in +-|-
|
174
|
-
# + barge-in +-|-+ normal period +----------- +-------------+ | +------------+ |
|
175
|
-
# +---------------+ No-speech event is a response with END_OF_UTTERANCE without
|
176
|
-
# any transcript following up.
|
170
|
+
# those two phases. The durations are measured in terms of the audio length from
|
171
|
+
# the the start of the input audio. No-speech event is a response with
|
172
|
+
# END_OF_UTTERANCE without any transcript following up.
|
177
173
|
class GoogleCloudDialogflowCxV3BargeInConfig
|
178
174
|
include Google::Apis::Core::Hashable
|
179
175
|
|
@@ -1567,13 +1563,9 @@ module Google
|
|
1567
1563
|
# which the API starts speech detection and may inform the client that an
|
1568
1564
|
# utterance has been detected. Note that no-speech event is not expected in this
|
1569
1565
|
# phase. The client provides this configuration in terms of the durations of
|
1570
|
-
# those two phases. The durations are measured in terms of the audio length
|
1571
|
-
#
|
1572
|
-
# without
|
1573
|
-
# ------------+ | +------------+ | +---------------+ ----------+ no barge-in +-|-
|
1574
|
-
# + barge-in +-|-+ normal period +----------- +-------------+ | +------------+ |
|
1575
|
-
# +---------------+ No-speech event is a response with END_OF_UTTERANCE without
|
1576
|
-
# any transcript following up.
|
1566
|
+
# those two phases. The durations are measured in terms of the audio length from
|
1567
|
+
# the the start of the input audio. No-speech event is a response with
|
1568
|
+
# END_OF_UTTERANCE without any transcript following up.
|
1577
1569
|
# Corresponds to the JSON property `bargeInConfig`
|
1578
1570
|
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3BargeInConfig]
|
1579
1571
|
attr_accessor :barge_in_config
|
@@ -1587,17 +1579,9 @@ module Google
|
|
1587
1579
|
attr_accessor :enable_word_info
|
1588
1580
|
alias_method :enable_word_info?, :enable_word_info
|
1589
1581
|
|
1590
|
-
# Optional. Which Speech model to select for the given request.
|
1591
|
-
#
|
1592
|
-
#
|
1593
|
-
# InputAudioConfig. If enhanced speech model is enabled for the agent and an
|
1594
|
-
# enhanced version of the specified model for the language does not exist, then
|
1595
|
-
# the speech is recognized using the standard version of the specified model.
|
1596
|
-
# Refer to [Cloud Speech API documentation](https://cloud.google.com/speech-to-
|
1597
|
-
# text/docs/basics#select-model) for more details. If you specify a model, the
|
1598
|
-
# following models typically have the best performance: - phone_call (best for
|
1599
|
-
# Agent Assist and telephony) - latest_short (best for Dialogflow non-telephony)
|
1600
|
-
# - command_and_search (best for very short utterances and commands)
|
1582
|
+
# Optional. Which Speech model to select for the given request. For more
|
1583
|
+
# information, see [Speech models](https://cloud.google.com/dialogflow/cx/docs/
|
1584
|
+
# concept/speech-models).
|
1601
1585
|
# Corresponds to the JSON property `model`
|
1602
1586
|
# @return [String]
|
1603
1587
|
attr_accessor :model
|
@@ -4095,13 +4079,9 @@ module Google
|
|
4095
4079
|
# which the API starts speech detection and may inform the client that an
|
4096
4080
|
# utterance has been detected. Note that no-speech event is not expected in this
|
4097
4081
|
# phase. The client provides this configuration in terms of the durations of
|
4098
|
-
# those two phases. The durations are measured in terms of the audio length
|
4099
|
-
#
|
4100
|
-
# without
|
4101
|
-
# ------------+ | +------------+ | +---------------+ ----------+ no barge-in +-|-
|
4102
|
-
# + barge-in +-|-+ normal period +----------- +-------------+ | +------------+ |
|
4103
|
-
# +---------------+ No-speech event is a response with END_OF_UTTERANCE without
|
4104
|
-
# any transcript following up.
|
4082
|
+
# those two phases. The durations are measured in terms of the audio length from
|
4083
|
+
# the the start of the input audio. No-speech event is a response with
|
4084
|
+
# END_OF_UTTERANCE without any transcript following up.
|
4105
4085
|
class GoogleCloudDialogflowCxV3beta1BargeInConfig
|
4106
4086
|
include Google::Apis::Core::Hashable
|
4107
4087
|
|
@@ -6785,6 +6765,13 @@ module Google
|
|
6785
6765
|
# @return [String]
|
6786
6766
|
attr_accessor :business_description
|
6787
6767
|
|
6768
|
+
# Whether to disable fallback to Data Store search results (in case the LLM
|
6769
|
+
# couldn't pick a proper answer). Per default the feature is enabled.
|
6770
|
+
# Corresponds to the JSON property `disableDataStoreFallback`
|
6771
|
+
# @return [Boolean]
|
6772
|
+
attr_accessor :disable_data_store_fallback
|
6773
|
+
alias_method :disable_data_store_fallback?, :disable_data_store_fallback
|
6774
|
+
|
6788
6775
|
def initialize(**args)
|
6789
6776
|
update!(**args)
|
6790
6777
|
end
|
@@ -6796,6 +6783,77 @@ module Google
|
|
6796
6783
|
@agent_scope = args[:agent_scope] if args.key?(:agent_scope)
|
6797
6784
|
@business = args[:business] if args.key?(:business)
|
6798
6785
|
@business_description = args[:business_description] if args.key?(:business_description)
|
6786
|
+
@disable_data_store_fallback = args[:disable_data_store_fallback] if args.key?(:disable_data_store_fallback)
|
6787
|
+
end
|
6788
|
+
end
|
6789
|
+
|
6790
|
+
# Generators contain prompt to be sent to the LLM model to generate text. The
|
6791
|
+
# prompt can contain parameters which will be resolved before calling the model.
|
6792
|
+
# It can optionally contain banned phrases to ensure the model responses are
|
6793
|
+
# safe.
|
6794
|
+
class GoogleCloudDialogflowCxV3beta1Generator
|
6795
|
+
include Google::Apis::Core::Hashable
|
6796
|
+
|
6797
|
+
# Required. The human-readable name of the generator, unique within the agent.
|
6798
|
+
# The prompt contains pre-defined parameters such as $conversation, $last-user-
|
6799
|
+
# utterance, etc. populated by Dialogflow. It can also contain custom
|
6800
|
+
# placeholders which will be resolved during fulfillment.
|
6801
|
+
# Corresponds to the JSON property `displayName`
|
6802
|
+
# @return [String]
|
6803
|
+
attr_accessor :display_name
|
6804
|
+
|
6805
|
+
# The unique identifier of the generator. Must be set for the Generators.
|
6806
|
+
# UpdateGenerator method. Generators.CreateGenerate populates the name
|
6807
|
+
# automatically. Format: `projects//locations//agents//generators/`.
|
6808
|
+
# Corresponds to the JSON property `name`
|
6809
|
+
# @return [String]
|
6810
|
+
attr_accessor :name
|
6811
|
+
|
6812
|
+
# Optional. List of custom placeholders in the prompt text.
|
6813
|
+
# Corresponds to the JSON property `placeholders`
|
6814
|
+
# @return [Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1GeneratorPlaceholder>]
|
6815
|
+
attr_accessor :placeholders
|
6816
|
+
|
6817
|
+
# Text input which can be used for prompt or banned phrases.
|
6818
|
+
# Corresponds to the JSON property `promptText`
|
6819
|
+
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Phrase]
|
6820
|
+
attr_accessor :prompt_text
|
6821
|
+
|
6822
|
+
def initialize(**args)
|
6823
|
+
update!(**args)
|
6824
|
+
end
|
6825
|
+
|
6826
|
+
# Update properties of this object
|
6827
|
+
def update!(**args)
|
6828
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
6829
|
+
@name = args[:name] if args.key?(:name)
|
6830
|
+
@placeholders = args[:placeholders] if args.key?(:placeholders)
|
6831
|
+
@prompt_text = args[:prompt_text] if args.key?(:prompt_text)
|
6832
|
+
end
|
6833
|
+
end
|
6834
|
+
|
6835
|
+
# Represents a custom placeholder in the prompt text.
|
6836
|
+
class GoogleCloudDialogflowCxV3beta1GeneratorPlaceholder
|
6837
|
+
include Google::Apis::Core::Hashable
|
6838
|
+
|
6839
|
+
# Unique ID used to map custom placeholder to parameters in fulfillment.
|
6840
|
+
# Corresponds to the JSON property `id`
|
6841
|
+
# @return [String]
|
6842
|
+
attr_accessor :id
|
6843
|
+
|
6844
|
+
# Custom placeholder value in the prompt text.
|
6845
|
+
# Corresponds to the JSON property `name`
|
6846
|
+
# @return [String]
|
6847
|
+
attr_accessor :name
|
6848
|
+
|
6849
|
+
def initialize(**args)
|
6850
|
+
update!(**args)
|
6851
|
+
end
|
6852
|
+
|
6853
|
+
# Update properties of this object
|
6854
|
+
def update!(**args)
|
6855
|
+
@id = args[:id] if args.key?(:id)
|
6856
|
+
@name = args[:name] if args.key?(:name)
|
6799
6857
|
end
|
6800
6858
|
end
|
6801
6859
|
|
@@ -7159,13 +7217,9 @@ module Google
|
|
7159
7217
|
# which the API starts speech detection and may inform the client that an
|
7160
7218
|
# utterance has been detected. Note that no-speech event is not expected in this
|
7161
7219
|
# phase. The client provides this configuration in terms of the durations of
|
7162
|
-
# those two phases. The durations are measured in terms of the audio length
|
7163
|
-
#
|
7164
|
-
# without
|
7165
|
-
# ------------+ | +------------+ | +---------------+ ----------+ no barge-in +-|-
|
7166
|
-
# + barge-in +-|-+ normal period +----------- +-------------+ | +------------+ |
|
7167
|
-
# +---------------+ No-speech event is a response with END_OF_UTTERANCE without
|
7168
|
-
# any transcript following up.
|
7220
|
+
# those two phases. The durations are measured in terms of the audio length from
|
7221
|
+
# the the start of the input audio. No-speech event is a response with
|
7222
|
+
# END_OF_UTTERANCE without any transcript following up.
|
7169
7223
|
# Corresponds to the JSON property `bargeInConfig`
|
7170
7224
|
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1BargeInConfig]
|
7171
7225
|
attr_accessor :barge_in_config
|
@@ -7179,17 +7233,9 @@ module Google
|
|
7179
7233
|
attr_accessor :enable_word_info
|
7180
7234
|
alias_method :enable_word_info?, :enable_word_info
|
7181
7235
|
|
7182
|
-
# Optional. Which Speech model to select for the given request.
|
7183
|
-
#
|
7184
|
-
#
|
7185
|
-
# InputAudioConfig. If enhanced speech model is enabled for the agent and an
|
7186
|
-
# enhanced version of the specified model for the language does not exist, then
|
7187
|
-
# the speech is recognized using the standard version of the specified model.
|
7188
|
-
# Refer to [Cloud Speech API documentation](https://cloud.google.com/speech-to-
|
7189
|
-
# text/docs/basics#select-model) for more details. If you specify a model, the
|
7190
|
-
# following models typically have the best performance: - phone_call (best for
|
7191
|
-
# Agent Assist and telephony) - latest_short (best for Dialogflow non-telephony)
|
7192
|
-
# - command_and_search (best for very short utterances and commands)
|
7236
|
+
# Optional. Which Speech model to select for the given request. For more
|
7237
|
+
# information, see [Speech models](https://cloud.google.com/dialogflow/cx/docs/
|
7238
|
+
# concept/speech-models).
|
7193
7239
|
# Corresponds to the JSON property `model`
|
7194
7240
|
# @return [String]
|
7195
7241
|
attr_accessor :model
|
@@ -7785,6 +7831,33 @@ module Google
|
|
7785
7831
|
end
|
7786
7832
|
end
|
7787
7833
|
|
7834
|
+
# The response message for Generators.ListGenerators.
|
7835
|
+
class GoogleCloudDialogflowCxV3beta1ListGeneratorsResponse
|
7836
|
+
include Google::Apis::Core::Hashable
|
7837
|
+
|
7838
|
+
# The list of generators. There will be a maximum number of items returned based
|
7839
|
+
# on the page_size field in the request.
|
7840
|
+
# Corresponds to the JSON property `generators`
|
7841
|
+
# @return [Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Generator>]
|
7842
|
+
attr_accessor :generators
|
7843
|
+
|
7844
|
+
# Token to retrieve the next page of results, or empty if there are no more
|
7845
|
+
# results in the list.
|
7846
|
+
# Corresponds to the JSON property `nextPageToken`
|
7847
|
+
# @return [String]
|
7848
|
+
attr_accessor :next_page_token
|
7849
|
+
|
7850
|
+
def initialize(**args)
|
7851
|
+
update!(**args)
|
7852
|
+
end
|
7853
|
+
|
7854
|
+
# Update properties of this object
|
7855
|
+
def update!(**args)
|
7856
|
+
@generators = args[:generators] if args.key?(:generators)
|
7857
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
7858
|
+
end
|
7859
|
+
end
|
7860
|
+
|
7788
7861
|
# The response message for Intents.ListIntents.
|
7789
7862
|
class GoogleCloudDialogflowCxV3beta1ListIntentsResponse
|
7790
7863
|
include Google::Apis::Core::Hashable
|
@@ -8544,6 +8617,25 @@ module Google
|
|
8544
8617
|
end
|
8545
8618
|
end
|
8546
8619
|
|
8620
|
+
# Text input which can be used for prompt or banned phrases.
|
8621
|
+
class GoogleCloudDialogflowCxV3beta1Phrase
|
8622
|
+
include Google::Apis::Core::Hashable
|
8623
|
+
|
8624
|
+
# Required. Text input which can be used for prompt or banned phrases.
|
8625
|
+
# Corresponds to the JSON property `text`
|
8626
|
+
# @return [String]
|
8627
|
+
attr_accessor :text
|
8628
|
+
|
8629
|
+
def initialize(**args)
|
8630
|
+
update!(**args)
|
8631
|
+
end
|
8632
|
+
|
8633
|
+
# Update properties of this object
|
8634
|
+
def update!(**args)
|
8635
|
+
@text = args[:text] if args.key?(:text)
|
8636
|
+
end
|
8637
|
+
end
|
8638
|
+
|
8547
8639
|
# Represents the query input. It can contain one of: 1. A conversational query
|
8548
8640
|
# in the form of text. 2. An intent query that specifies which intent to trigger.
|
8549
8641
|
# 3. Natural language speech audio to be processed. 4. An event to be triggered.
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module DialogflowV3beta1
|
18
18
|
# Version of the google-apis-dialogflow_v3beta1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.74.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.12.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20231208"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -1132,6 +1132,18 @@ module Google
|
|
1132
1132
|
include Google::Apis::Core::JsonObjectSupport
|
1133
1133
|
end
|
1134
1134
|
|
1135
|
+
class GoogleCloudDialogflowCxV3beta1Generator
|
1136
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1137
|
+
|
1138
|
+
include Google::Apis::Core::JsonObjectSupport
|
1139
|
+
end
|
1140
|
+
|
1141
|
+
class GoogleCloudDialogflowCxV3beta1GeneratorPlaceholder
|
1142
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1143
|
+
|
1144
|
+
include Google::Apis::Core::JsonObjectSupport
|
1145
|
+
end
|
1146
|
+
|
1135
1147
|
class GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata
|
1136
1148
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1137
1149
|
|
@@ -1318,6 +1330,12 @@ module Google
|
|
1318
1330
|
include Google::Apis::Core::JsonObjectSupport
|
1319
1331
|
end
|
1320
1332
|
|
1333
|
+
class GoogleCloudDialogflowCxV3beta1ListGeneratorsResponse
|
1334
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1335
|
+
|
1336
|
+
include Google::Apis::Core::JsonObjectSupport
|
1337
|
+
end
|
1338
|
+
|
1321
1339
|
class GoogleCloudDialogflowCxV3beta1ListIntentsResponse
|
1322
1340
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1323
1341
|
|
@@ -1438,6 +1456,12 @@ module Google
|
|
1438
1456
|
include Google::Apis::Core::JsonObjectSupport
|
1439
1457
|
end
|
1440
1458
|
|
1459
|
+
class GoogleCloudDialogflowCxV3beta1Phrase
|
1460
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1461
|
+
|
1462
|
+
include Google::Apis::Core::JsonObjectSupport
|
1463
|
+
end
|
1464
|
+
|
1441
1465
|
class GoogleCloudDialogflowCxV3beta1QueryInput
|
1442
1466
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1443
1467
|
|
@@ -4814,6 +4838,27 @@ module Google
|
|
4814
4838
|
property :agent_scope, as: 'agentScope'
|
4815
4839
|
property :business, as: 'business'
|
4816
4840
|
property :business_description, as: 'businessDescription'
|
4841
|
+
property :disable_data_store_fallback, as: 'disableDataStoreFallback'
|
4842
|
+
end
|
4843
|
+
end
|
4844
|
+
|
4845
|
+
class GoogleCloudDialogflowCxV3beta1Generator
|
4846
|
+
# @private
|
4847
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
4848
|
+
property :display_name, as: 'displayName'
|
4849
|
+
property :name, as: 'name'
|
4850
|
+
collection :placeholders, as: 'placeholders', class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1GeneratorPlaceholder, decorator: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1GeneratorPlaceholder::Representation
|
4851
|
+
|
4852
|
+
property :prompt_text, as: 'promptText', class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Phrase, decorator: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Phrase::Representation
|
4853
|
+
|
4854
|
+
end
|
4855
|
+
end
|
4856
|
+
|
4857
|
+
class GoogleCloudDialogflowCxV3beta1GeneratorPlaceholder
|
4858
|
+
# @private
|
4859
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
4860
|
+
property :id, as: 'id'
|
4861
|
+
property :name, as: 'name'
|
4817
4862
|
end
|
4818
4863
|
end
|
4819
4864
|
|
@@ -5096,6 +5141,15 @@ module Google
|
|
5096
5141
|
end
|
5097
5142
|
end
|
5098
5143
|
|
5144
|
+
class GoogleCloudDialogflowCxV3beta1ListGeneratorsResponse
|
5145
|
+
# @private
|
5146
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
5147
|
+
collection :generators, as: 'generators', class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Generator, decorator: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Generator::Representation
|
5148
|
+
|
5149
|
+
property :next_page_token, as: 'nextPageToken'
|
5150
|
+
end
|
5151
|
+
end
|
5152
|
+
|
5099
5153
|
class GoogleCloudDialogflowCxV3beta1ListIntentsResponse
|
5100
5154
|
# @private
|
5101
5155
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -5300,6 +5354,13 @@ module Google
|
|
5300
5354
|
end
|
5301
5355
|
end
|
5302
5356
|
|
5357
|
+
class GoogleCloudDialogflowCxV3beta1Phrase
|
5358
|
+
# @private
|
5359
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
5360
|
+
property :text, as: 'text'
|
5361
|
+
end
|
5362
|
+
end
|
5363
|
+
|
5303
5364
|
class GoogleCloudDialogflowCxV3beta1QueryInput
|
5304
5365
|
# @private
|
5305
5366
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2891,6 +2891,199 @@ module Google
|
|
2891
2891
|
execute_or_queue_command(command, &block)
|
2892
2892
|
end
|
2893
2893
|
|
2894
|
+
# Creates a generator in the specified agent.
|
2895
|
+
# @param [String] parent
|
2896
|
+
# Required. The agent to create a generator for. Format: `projects//locations//
|
2897
|
+
# agents/`.
|
2898
|
+
# @param [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Generator] google_cloud_dialogflow_cx_v3beta1_generator_object
|
2899
|
+
# @param [String] language_code
|
2900
|
+
# The language to create generators for the following fields: * `Generator.
|
2901
|
+
# prompt_text.text` If not specified, the agent's default language is used.
|
2902
|
+
# @param [String] fields
|
2903
|
+
# Selector specifying which fields to include in a partial response.
|
2904
|
+
# @param [String] quota_user
|
2905
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2906
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2907
|
+
# @param [Google::Apis::RequestOptions] options
|
2908
|
+
# Request-specific options
|
2909
|
+
#
|
2910
|
+
# @yield [result, err] Result & error if block supplied
|
2911
|
+
# @yieldparam result [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Generator] parsed result object
|
2912
|
+
# @yieldparam err [StandardError] error object if request failed
|
2913
|
+
#
|
2914
|
+
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Generator]
|
2915
|
+
#
|
2916
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2917
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2918
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2919
|
+
def create_project_location_agent_generator(parent, google_cloud_dialogflow_cx_v3beta1_generator_object = nil, language_code: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2920
|
+
command = make_simple_command(:post, 'v3beta1/{+parent}/generators', options)
|
2921
|
+
command.request_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Generator::Representation
|
2922
|
+
command.request_object = google_cloud_dialogflow_cx_v3beta1_generator_object
|
2923
|
+
command.response_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Generator::Representation
|
2924
|
+
command.response_class = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Generator
|
2925
|
+
command.params['parent'] = parent unless parent.nil?
|
2926
|
+
command.query['languageCode'] = language_code unless language_code.nil?
|
2927
|
+
command.query['fields'] = fields unless fields.nil?
|
2928
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2929
|
+
execute_or_queue_command(command, &block)
|
2930
|
+
end
|
2931
|
+
|
2932
|
+
# Deletes the specified generators.
|
2933
|
+
# @param [String] name
|
2934
|
+
# Required. The name of the generator to delete. Format: `projects//locations//
|
2935
|
+
# agents//generators/`.
|
2936
|
+
# @param [Boolean] force
|
2937
|
+
# This field has no effect for generators not being used. For generators that
|
2938
|
+
# are used by pages/flows/transition route groups: * If `force` is set to false,
|
2939
|
+
# an error will be returned with message indicating the referenced resources. *
|
2940
|
+
# If `force` is set to true, Dialogflow will remove the generator, as well as
|
2941
|
+
# any references to the generator (i.e. Generator) in fulfillments.
|
2942
|
+
# @param [String] fields
|
2943
|
+
# Selector specifying which fields to include in a partial response.
|
2944
|
+
# @param [String] quota_user
|
2945
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2946
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2947
|
+
# @param [Google::Apis::RequestOptions] options
|
2948
|
+
# Request-specific options
|
2949
|
+
#
|
2950
|
+
# @yield [result, err] Result & error if block supplied
|
2951
|
+
# @yieldparam result [Google::Apis::DialogflowV3beta1::GoogleProtobufEmpty] parsed result object
|
2952
|
+
# @yieldparam err [StandardError] error object if request failed
|
2953
|
+
#
|
2954
|
+
# @return [Google::Apis::DialogflowV3beta1::GoogleProtobufEmpty]
|
2955
|
+
#
|
2956
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2957
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2958
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2959
|
+
def delete_project_location_agent_generator(name, force: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2960
|
+
command = make_simple_command(:delete, 'v3beta1/{+name}', options)
|
2961
|
+
command.response_representation = Google::Apis::DialogflowV3beta1::GoogleProtobufEmpty::Representation
|
2962
|
+
command.response_class = Google::Apis::DialogflowV3beta1::GoogleProtobufEmpty
|
2963
|
+
command.params['name'] = name unless name.nil?
|
2964
|
+
command.query['force'] = force unless force.nil?
|
2965
|
+
command.query['fields'] = fields unless fields.nil?
|
2966
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2967
|
+
execute_or_queue_command(command, &block)
|
2968
|
+
end
|
2969
|
+
|
2970
|
+
# Retrieves the specified generator.
|
2971
|
+
# @param [String] name
|
2972
|
+
# Required. The name of the generator. Format: `projects//locations//agents//
|
2973
|
+
# generators/`.
|
2974
|
+
# @param [String] language_code
|
2975
|
+
# The language to list generators for.
|
2976
|
+
# @param [String] fields
|
2977
|
+
# Selector specifying which fields to include in a partial response.
|
2978
|
+
# @param [String] quota_user
|
2979
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2980
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2981
|
+
# @param [Google::Apis::RequestOptions] options
|
2982
|
+
# Request-specific options
|
2983
|
+
#
|
2984
|
+
# @yield [result, err] Result & error if block supplied
|
2985
|
+
# @yieldparam result [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Generator] parsed result object
|
2986
|
+
# @yieldparam err [StandardError] error object if request failed
|
2987
|
+
#
|
2988
|
+
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Generator]
|
2989
|
+
#
|
2990
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2991
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2992
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2993
|
+
def get_project_location_agent_generator(name, language_code: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2994
|
+
command = make_simple_command(:get, 'v3beta1/{+name}', options)
|
2995
|
+
command.response_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Generator::Representation
|
2996
|
+
command.response_class = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Generator
|
2997
|
+
command.params['name'] = name unless name.nil?
|
2998
|
+
command.query['languageCode'] = language_code unless language_code.nil?
|
2999
|
+
command.query['fields'] = fields unless fields.nil?
|
3000
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3001
|
+
execute_or_queue_command(command, &block)
|
3002
|
+
end
|
3003
|
+
|
3004
|
+
# Returns the list of all generators in the specified agent.
|
3005
|
+
# @param [String] parent
|
3006
|
+
# Required. The agent to list all generators for. Format: `projects//locations//
|
3007
|
+
# agents/`.
|
3008
|
+
# @param [String] language_code
|
3009
|
+
# The language to list generators for.
|
3010
|
+
# @param [Fixnum] page_size
|
3011
|
+
# The maximum number of items to return in a single page. By default 100 and at
|
3012
|
+
# most 1000.
|
3013
|
+
# @param [String] page_token
|
3014
|
+
# The next_page_token value returned from a previous list request.
|
3015
|
+
# @param [String] fields
|
3016
|
+
# Selector specifying which fields to include in a partial response.
|
3017
|
+
# @param [String] quota_user
|
3018
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3019
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3020
|
+
# @param [Google::Apis::RequestOptions] options
|
3021
|
+
# Request-specific options
|
3022
|
+
#
|
3023
|
+
# @yield [result, err] Result & error if block supplied
|
3024
|
+
# @yieldparam result [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ListGeneratorsResponse] parsed result object
|
3025
|
+
# @yieldparam err [StandardError] error object if request failed
|
3026
|
+
#
|
3027
|
+
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ListGeneratorsResponse]
|
3028
|
+
#
|
3029
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3030
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3031
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3032
|
+
def list_project_location_agent_generators(parent, language_code: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
3033
|
+
command = make_simple_command(:get, 'v3beta1/{+parent}/generators', options)
|
3034
|
+
command.response_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ListGeneratorsResponse::Representation
|
3035
|
+
command.response_class = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ListGeneratorsResponse
|
3036
|
+
command.params['parent'] = parent unless parent.nil?
|
3037
|
+
command.query['languageCode'] = language_code unless language_code.nil?
|
3038
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
3039
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
3040
|
+
command.query['fields'] = fields unless fields.nil?
|
3041
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3042
|
+
execute_or_queue_command(command, &block)
|
3043
|
+
end
|
3044
|
+
|
3045
|
+
# Update the specified generator.
|
3046
|
+
# @param [String] name
|
3047
|
+
# The unique identifier of the generator. Must be set for the Generators.
|
3048
|
+
# UpdateGenerator method. Generators.CreateGenerate populates the name
|
3049
|
+
# automatically. Format: `projects//locations//agents//generators/`.
|
3050
|
+
# @param [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Generator] google_cloud_dialogflow_cx_v3beta1_generator_object
|
3051
|
+
# @param [String] language_code
|
3052
|
+
# The language to list generators for.
|
3053
|
+
# @param [String] update_mask
|
3054
|
+
# The mask to control which fields get updated. If the mask is not present, all
|
3055
|
+
# fields will be updated.
|
3056
|
+
# @param [String] fields
|
3057
|
+
# Selector specifying which fields to include in a partial response.
|
3058
|
+
# @param [String] quota_user
|
3059
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3060
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3061
|
+
# @param [Google::Apis::RequestOptions] options
|
3062
|
+
# Request-specific options
|
3063
|
+
#
|
3064
|
+
# @yield [result, err] Result & error if block supplied
|
3065
|
+
# @yieldparam result [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Generator] parsed result object
|
3066
|
+
# @yieldparam err [StandardError] error object if request failed
|
3067
|
+
#
|
3068
|
+
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Generator]
|
3069
|
+
#
|
3070
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3071
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3072
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3073
|
+
def patch_project_location_agent_generator(name, google_cloud_dialogflow_cx_v3beta1_generator_object = nil, language_code: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
3074
|
+
command = make_simple_command(:patch, 'v3beta1/{+name}', options)
|
3075
|
+
command.request_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Generator::Representation
|
3076
|
+
command.request_object = google_cloud_dialogflow_cx_v3beta1_generator_object
|
3077
|
+
command.response_representation = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Generator::Representation
|
3078
|
+
command.response_class = Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Generator
|
3079
|
+
command.params['name'] = name unless name.nil?
|
3080
|
+
command.query['languageCode'] = language_code unless language_code.nil?
|
3081
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
3082
|
+
command.query['fields'] = fields unless fields.nil?
|
3083
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3084
|
+
execute_or_queue_command(command, &block)
|
3085
|
+
end
|
3086
|
+
|
2894
3087
|
# Creates an intent in the specified agent. Note: You should always train a flow
|
2895
3088
|
# prior to sending it queries. See the [training documentation](https://cloud.
|
2896
3089
|
# google.com/dialogflow/cx/docs/concept/training).
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-dialogflow_v3beta1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.74.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: 2023-12-
|
11
|
+
date: 2023-12-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-dialogflow_v3beta1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-dialogflow_v3beta1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-dialogflow_v3beta1/v0.74.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-dialogflow_v3beta1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|