google-apis-dialogflow_v3beta1 0.72.0 → 0.73.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 +4 -0
- data/lib/google/apis/dialogflow_v3beta1/classes.rb +134 -50
- data/lib/google/apis/dialogflow_v3beta1/gem_version.rb +2 -2
- data/lib/google/apis/dialogflow_v3beta1/representations.rb +60 -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: 993e53372d45ee28764c0c9caff97cd1f1ad7769fe8dd474121eafcd5e00e614
|
4
|
+
data.tar.gz: a84971e9478fb819de23a3601da6821263c6c3dc4f9ac981b2e1ea7d5ec6d7ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f541bbb278f9fab7653b092b431c3520bf12834b14598e8c94ecb0454da595d967f3cd8269115f10905fb22ac1b247d0d91c01a2a925567dde3275c2c00bd0d
|
7
|
+
data.tar.gz: 4dd272f4d120b8a22fced362005ce05baee5b18b8c0ec212b45c25937a99c2f655532526cf9cb4e5c044da46aa1de1896ea1c8b811d6a0cc7cf357acd06a1764
|
data/CHANGELOG.md
CHANGED
@@ -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
|
|
@@ -6799,6 +6779,76 @@ module Google
|
|
6799
6779
|
end
|
6800
6780
|
end
|
6801
6781
|
|
6782
|
+
# Generators contain prompt to be sent to the LLM model to generate text. The
|
6783
|
+
# prompt can contain parameters which will be resolved before calling the model.
|
6784
|
+
# It can optionally contain banned phrases to ensure the model responses are
|
6785
|
+
# safe.
|
6786
|
+
class GoogleCloudDialogflowCxV3beta1Generator
|
6787
|
+
include Google::Apis::Core::Hashable
|
6788
|
+
|
6789
|
+
# Required. The human-readable name of the generator, unique within the agent.
|
6790
|
+
# The prompt contains pre-defined parameters such as $conversation, $last-user-
|
6791
|
+
# utterance, etc. populated by Dialogflow. It can also contain custom
|
6792
|
+
# placeholders which will be resolved during fulfillment.
|
6793
|
+
# Corresponds to the JSON property `displayName`
|
6794
|
+
# @return [String]
|
6795
|
+
attr_accessor :display_name
|
6796
|
+
|
6797
|
+
# The unique identifier of the generator. Must be set for the Generators.
|
6798
|
+
# UpdateGenerator method. Generators.CreateGenerate populates the name
|
6799
|
+
# automatically. Format: `projects//locations//agents//generators/`.
|
6800
|
+
# Corresponds to the JSON property `name`
|
6801
|
+
# @return [String]
|
6802
|
+
attr_accessor :name
|
6803
|
+
|
6804
|
+
# Optional. List of custom placeholders in the prompt text.
|
6805
|
+
# Corresponds to the JSON property `placeholders`
|
6806
|
+
# @return [Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1GeneratorPlaceholder>]
|
6807
|
+
attr_accessor :placeholders
|
6808
|
+
|
6809
|
+
# Text input which can be used for prompt or banned phrases.
|
6810
|
+
# Corresponds to the JSON property `promptText`
|
6811
|
+
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Phrase]
|
6812
|
+
attr_accessor :prompt_text
|
6813
|
+
|
6814
|
+
def initialize(**args)
|
6815
|
+
update!(**args)
|
6816
|
+
end
|
6817
|
+
|
6818
|
+
# Update properties of this object
|
6819
|
+
def update!(**args)
|
6820
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
6821
|
+
@name = args[:name] if args.key?(:name)
|
6822
|
+
@placeholders = args[:placeholders] if args.key?(:placeholders)
|
6823
|
+
@prompt_text = args[:prompt_text] if args.key?(:prompt_text)
|
6824
|
+
end
|
6825
|
+
end
|
6826
|
+
|
6827
|
+
# Represents a custom placeholder in the prompt text.
|
6828
|
+
class GoogleCloudDialogflowCxV3beta1GeneratorPlaceholder
|
6829
|
+
include Google::Apis::Core::Hashable
|
6830
|
+
|
6831
|
+
# Unique ID used to map custom placeholder to parameters in fulfillment.
|
6832
|
+
# Corresponds to the JSON property `id`
|
6833
|
+
# @return [String]
|
6834
|
+
attr_accessor :id
|
6835
|
+
|
6836
|
+
# Custom placeholder value in the prompt text.
|
6837
|
+
# Corresponds to the JSON property `name`
|
6838
|
+
# @return [String]
|
6839
|
+
attr_accessor :name
|
6840
|
+
|
6841
|
+
def initialize(**args)
|
6842
|
+
update!(**args)
|
6843
|
+
end
|
6844
|
+
|
6845
|
+
# Update properties of this object
|
6846
|
+
def update!(**args)
|
6847
|
+
@id = args[:id] if args.key?(:id)
|
6848
|
+
@name = args[:name] if args.key?(:name)
|
6849
|
+
end
|
6850
|
+
end
|
6851
|
+
|
6802
6852
|
# Metadata in google::longrunning::Operation for Knowledge operations.
|
6803
6853
|
class GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata
|
6804
6854
|
include Google::Apis::Core::Hashable
|
@@ -7159,13 +7209,9 @@ module Google
|
|
7159
7209
|
# which the API starts speech detection and may inform the client that an
|
7160
7210
|
# utterance has been detected. Note that no-speech event is not expected in this
|
7161
7211
|
# 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.
|
7212
|
+
# those two phases. The durations are measured in terms of the audio length from
|
7213
|
+
# the the start of the input audio. No-speech event is a response with
|
7214
|
+
# END_OF_UTTERANCE without any transcript following up.
|
7169
7215
|
# Corresponds to the JSON property `bargeInConfig`
|
7170
7216
|
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1BargeInConfig]
|
7171
7217
|
attr_accessor :barge_in_config
|
@@ -7179,17 +7225,9 @@ module Google
|
|
7179
7225
|
attr_accessor :enable_word_info
|
7180
7226
|
alias_method :enable_word_info?, :enable_word_info
|
7181
7227
|
|
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)
|
7228
|
+
# Optional. Which Speech model to select for the given request. For more
|
7229
|
+
# information, see [Speech models](https://cloud.google.com/dialogflow/cx/docs/
|
7230
|
+
# concept/speech-models).
|
7193
7231
|
# Corresponds to the JSON property `model`
|
7194
7232
|
# @return [String]
|
7195
7233
|
attr_accessor :model
|
@@ -7785,6 +7823,33 @@ module Google
|
|
7785
7823
|
end
|
7786
7824
|
end
|
7787
7825
|
|
7826
|
+
# The response message for Generators.ListGenerators.
|
7827
|
+
class GoogleCloudDialogflowCxV3beta1ListGeneratorsResponse
|
7828
|
+
include Google::Apis::Core::Hashable
|
7829
|
+
|
7830
|
+
# The list of generators. There will be a maximum number of items returned based
|
7831
|
+
# on the page_size field in the request.
|
7832
|
+
# Corresponds to the JSON property `generators`
|
7833
|
+
# @return [Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Generator>]
|
7834
|
+
attr_accessor :generators
|
7835
|
+
|
7836
|
+
# Token to retrieve the next page of results, or empty if there are no more
|
7837
|
+
# results in the list.
|
7838
|
+
# Corresponds to the JSON property `nextPageToken`
|
7839
|
+
# @return [String]
|
7840
|
+
attr_accessor :next_page_token
|
7841
|
+
|
7842
|
+
def initialize(**args)
|
7843
|
+
update!(**args)
|
7844
|
+
end
|
7845
|
+
|
7846
|
+
# Update properties of this object
|
7847
|
+
def update!(**args)
|
7848
|
+
@generators = args[:generators] if args.key?(:generators)
|
7849
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
7850
|
+
end
|
7851
|
+
end
|
7852
|
+
|
7788
7853
|
# The response message for Intents.ListIntents.
|
7789
7854
|
class GoogleCloudDialogflowCxV3beta1ListIntentsResponse
|
7790
7855
|
include Google::Apis::Core::Hashable
|
@@ -8544,6 +8609,25 @@ module Google
|
|
8544
8609
|
end
|
8545
8610
|
end
|
8546
8611
|
|
8612
|
+
# Text input which can be used for prompt or banned phrases.
|
8613
|
+
class GoogleCloudDialogflowCxV3beta1Phrase
|
8614
|
+
include Google::Apis::Core::Hashable
|
8615
|
+
|
8616
|
+
# Required. Text input which can be used for prompt or banned phrases.
|
8617
|
+
# Corresponds to the JSON property `text`
|
8618
|
+
# @return [String]
|
8619
|
+
attr_accessor :text
|
8620
|
+
|
8621
|
+
def initialize(**args)
|
8622
|
+
update!(**args)
|
8623
|
+
end
|
8624
|
+
|
8625
|
+
# Update properties of this object
|
8626
|
+
def update!(**args)
|
8627
|
+
@text = args[:text] if args.key?(:text)
|
8628
|
+
end
|
8629
|
+
end
|
8630
|
+
|
8547
8631
|
# Represents the query input. It can contain one of: 1. A conversational query
|
8548
8632
|
# in the form of text. 2. An intent query that specifies which intent to trigger.
|
8549
8633
|
# 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.73.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 = "20231204"
|
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
|
|
@@ -4817,6 +4841,26 @@ module Google
|
|
4817
4841
|
end
|
4818
4842
|
end
|
4819
4843
|
|
4844
|
+
class GoogleCloudDialogflowCxV3beta1Generator
|
4845
|
+
# @private
|
4846
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
4847
|
+
property :display_name, as: 'displayName'
|
4848
|
+
property :name, as: 'name'
|
4849
|
+
collection :placeholders, as: 'placeholders', class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1GeneratorPlaceholder, decorator: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1GeneratorPlaceholder::Representation
|
4850
|
+
|
4851
|
+
property :prompt_text, as: 'promptText', class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Phrase, decorator: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Phrase::Representation
|
4852
|
+
|
4853
|
+
end
|
4854
|
+
end
|
4855
|
+
|
4856
|
+
class GoogleCloudDialogflowCxV3beta1GeneratorPlaceholder
|
4857
|
+
# @private
|
4858
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
4859
|
+
property :id, as: 'id'
|
4860
|
+
property :name, as: 'name'
|
4861
|
+
end
|
4862
|
+
end
|
4863
|
+
|
4820
4864
|
class GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata
|
4821
4865
|
# @private
|
4822
4866
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -5096,6 +5140,15 @@ module Google
|
|
5096
5140
|
end
|
5097
5141
|
end
|
5098
5142
|
|
5143
|
+
class GoogleCloudDialogflowCxV3beta1ListGeneratorsResponse
|
5144
|
+
# @private
|
5145
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
5146
|
+
collection :generators, as: 'generators', class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Generator, decorator: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Generator::Representation
|
5147
|
+
|
5148
|
+
property :next_page_token, as: 'nextPageToken'
|
5149
|
+
end
|
5150
|
+
end
|
5151
|
+
|
5099
5152
|
class GoogleCloudDialogflowCxV3beta1ListIntentsResponse
|
5100
5153
|
# @private
|
5101
5154
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -5300,6 +5353,13 @@ module Google
|
|
5300
5353
|
end
|
5301
5354
|
end
|
5302
5355
|
|
5356
|
+
class GoogleCloudDialogflowCxV3beta1Phrase
|
5357
|
+
# @private
|
5358
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
5359
|
+
property :text, as: 'text'
|
5360
|
+
end
|
5361
|
+
end
|
5362
|
+
|
5303
5363
|
class GoogleCloudDialogflowCxV3beta1QueryInput
|
5304
5364
|
# @private
|
5305
5365
|
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.73.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-10 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.73.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: []
|