google-apis-dialogflow_v3 0.72.0 → 0.73.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 36637fc481bad953ebcddee809a807db4ee5dd11138eb5f9e273e8b08b0d1675
4
- data.tar.gz: 961a869e577e4eb678a71dd9f13adac0453c94b888c7081c46f77ef64d4bb981
3
+ metadata.gz: 9a9cae40eef6820943d9f7cbb88ad3a2a29382b8791e6921b93168894715ea3e
4
+ data.tar.gz: be62f7d9cd0cec801a15dece2602ac356d7df3158e981de0581851d6eec74ece
5
5
  SHA512:
6
- metadata.gz: 25d4ad1bf79b381132551554d79c228ba5cd99ca0e3e57029f78a73e272bac7125f5a66d694e22bc5e994606d8989a41d646caa5b7cc77b2a0b417e96b7fb59c
7
- data.tar.gz: 4a9db293fd6e98a39319cdbb538374ce91eba02bd0722214fb005e94ed99a7333a092a444a38cfb7420621e35c925de5a4c4bb3df4f16362d24774a71a13b0cf
6
+ metadata.gz: 1aac4f4e928310c973cfdfc5b10fc3ab9b00e65d3872c715a18ff7c8b7b34f8bc006e2c0b930fd6ac4af314d6c6fdc96829a59041d2a3aeeeda76ca671e1a216
7
+ data.tar.gz: 23afa680835e2c98642c0779b534492a219f1d9b8c3c129e4860cc76aa1ee729b7cb31aec2967d9fc561a430b7e8e020112e2c1476c7165cbcbaeb2472fd5ffe
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-dialogflow_v3
2
2
 
3
+ ### v0.73.0 (2023-12-10)
4
+
5
+ * Regenerated from discovery document revision 20231204
6
+
3
7
  ### v0.72.0 (2023-12-03)
4
8
 
5
9
  * Regenerated from discovery document revision 20231129
@@ -510,13 +510,9 @@ module Google
510
510
  # which the API starts speech detection and may inform the client that an
511
511
  # utterance has been detected. Note that no-speech event is not expected in this
512
512
  # phase. The client provides this configuration in terms of the durations of
513
- # those two phases. The durations are measured in terms of the audio length
514
- # fromt the the start of the input audio. The flow goes like below: --> Time
515
- # without speech detection | utterance only | utterance or no-speech event | | +-
516
- # ------------+ | +------------+ | +---------------+ ----------+ no barge-in +-|-
517
- # + barge-in +-|-+ normal period +----------- +-------------+ | +------------+ |
518
- # +---------------+ No-speech event is a response with END_OF_UTTERANCE without
519
- # any transcript following up.
513
+ # those two phases. The durations are measured in terms of the audio length from
514
+ # the the start of the input audio. No-speech event is a response with
515
+ # END_OF_UTTERANCE without any transcript following up.
520
516
  class GoogleCloudDialogflowCxV3BargeInConfig
521
517
  include Google::Apis::Core::Hashable
522
518
 
@@ -3213,6 +3209,76 @@ module Google
3213
3209
  end
3214
3210
  end
3215
3211
 
3212
+ # Generators contain prompt to be sent to the LLM model to generate text. The
3213
+ # prompt can contain parameters which will be resolved before calling the model.
3214
+ # It can optionally contain banned phrases to ensure the model responses are
3215
+ # safe.
3216
+ class GoogleCloudDialogflowCxV3Generator
3217
+ include Google::Apis::Core::Hashable
3218
+
3219
+ # Required. The human-readable name of the generator, unique within the agent.
3220
+ # The prompt contains pre-defined parameters such as $conversation, $last-user-
3221
+ # utterance, etc. populated by Dialogflow. It can also contain custom
3222
+ # placeholders which will be resolved during fulfillment.
3223
+ # Corresponds to the JSON property `displayName`
3224
+ # @return [String]
3225
+ attr_accessor :display_name
3226
+
3227
+ # The unique identifier of the generator. Must be set for the Generators.
3228
+ # UpdateGenerator method. Generators.CreateGenerate populates the name
3229
+ # automatically. Format: `projects//locations//agents//generators/`.
3230
+ # Corresponds to the JSON property `name`
3231
+ # @return [String]
3232
+ attr_accessor :name
3233
+
3234
+ # Optional. List of custom placeholders in the prompt text.
3235
+ # Corresponds to the JSON property `placeholders`
3236
+ # @return [Array<Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3GeneratorPlaceholder>]
3237
+ attr_accessor :placeholders
3238
+
3239
+ # Text input which can be used for prompt or banned phrases.
3240
+ # Corresponds to the JSON property `promptText`
3241
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Phrase]
3242
+ attr_accessor :prompt_text
3243
+
3244
+ def initialize(**args)
3245
+ update!(**args)
3246
+ end
3247
+
3248
+ # Update properties of this object
3249
+ def update!(**args)
3250
+ @display_name = args[:display_name] if args.key?(:display_name)
3251
+ @name = args[:name] if args.key?(:name)
3252
+ @placeholders = args[:placeholders] if args.key?(:placeholders)
3253
+ @prompt_text = args[:prompt_text] if args.key?(:prompt_text)
3254
+ end
3255
+ end
3256
+
3257
+ # Represents a custom placeholder in the prompt text.
3258
+ class GoogleCloudDialogflowCxV3GeneratorPlaceholder
3259
+ include Google::Apis::Core::Hashable
3260
+
3261
+ # Unique ID used to map custom placeholder to parameters in fulfillment.
3262
+ # Corresponds to the JSON property `id`
3263
+ # @return [String]
3264
+ attr_accessor :id
3265
+
3266
+ # Custom placeholder value in the prompt text.
3267
+ # Corresponds to the JSON property `name`
3268
+ # @return [String]
3269
+ attr_accessor :name
3270
+
3271
+ def initialize(**args)
3272
+ update!(**args)
3273
+ end
3274
+
3275
+ # Update properties of this object
3276
+ def update!(**args)
3277
+ @id = args[:id] if args.key?(:id)
3278
+ @name = args[:name] if args.key?(:name)
3279
+ end
3280
+ end
3281
+
3216
3282
  # Metadata in google::longrunning::Operation for Knowledge operations.
3217
3283
  class GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata
3218
3284
  include Google::Apis::Core::Hashable
@@ -3573,13 +3639,9 @@ module Google
3573
3639
  # which the API starts speech detection and may inform the client that an
3574
3640
  # utterance has been detected. Note that no-speech event is not expected in this
3575
3641
  # phase. The client provides this configuration in terms of the durations of
3576
- # those two phases. The durations are measured in terms of the audio length
3577
- # fromt the the start of the input audio. The flow goes like below: --> Time
3578
- # without speech detection | utterance only | utterance or no-speech event | | +-
3579
- # ------------+ | +------------+ | +---------------+ ----------+ no barge-in +-|-
3580
- # + barge-in +-|-+ normal period +----------- +-------------+ | +------------+ |
3581
- # +---------------+ No-speech event is a response with END_OF_UTTERANCE without
3582
- # any transcript following up.
3642
+ # those two phases. The durations are measured in terms of the audio length from
3643
+ # the the start of the input audio. No-speech event is a response with
3644
+ # END_OF_UTTERANCE without any transcript following up.
3583
3645
  # Corresponds to the JSON property `bargeInConfig`
3584
3646
  # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3BargeInConfig]
3585
3647
  attr_accessor :barge_in_config
@@ -3593,17 +3655,9 @@ module Google
3593
3655
  attr_accessor :enable_word_info
3594
3656
  alias_method :enable_word_info?, :enable_word_info
3595
3657
 
3596
- # Optional. Which Speech model to select for the given request. Select the model
3597
- # best suited to your domain to get best results. If a model is not explicitly
3598
- # specified, then we auto-select a model based on the parameters in the
3599
- # InputAudioConfig. If enhanced speech model is enabled for the agent and an
3600
- # enhanced version of the specified model for the language does not exist, then
3601
- # the speech is recognized using the standard version of the specified model.
3602
- # Refer to [Cloud Speech API documentation](https://cloud.google.com/speech-to-
3603
- # text/docs/basics#select-model) for more details. If you specify a model, the
3604
- # following models typically have the best performance: - phone_call (best for
3605
- # Agent Assist and telephony) - latest_short (best for Dialogflow non-telephony)
3606
- # - command_and_search (best for very short utterances and commands)
3658
+ # Optional. Which Speech model to select for the given request. For more
3659
+ # information, see [Speech models](https://cloud.google.com/dialogflow/cx/docs/
3660
+ # concept/speech-models).
3607
3661
  # Corresponds to the JSON property `model`
3608
3662
  # @return [String]
3609
3663
  attr_accessor :model
@@ -4199,6 +4253,33 @@ module Google
4199
4253
  end
4200
4254
  end
4201
4255
 
4256
+ # The response message for Generators.ListGenerators.
4257
+ class GoogleCloudDialogflowCxV3ListGeneratorsResponse
4258
+ include Google::Apis::Core::Hashable
4259
+
4260
+ # The list of generators. There will be a maximum number of items returned based
4261
+ # on the page_size field in the request.
4262
+ # Corresponds to the JSON property `generators`
4263
+ # @return [Array<Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Generator>]
4264
+ attr_accessor :generators
4265
+
4266
+ # Token to retrieve the next page of results, or empty if there are no more
4267
+ # results in the list.
4268
+ # Corresponds to the JSON property `nextPageToken`
4269
+ # @return [String]
4270
+ attr_accessor :next_page_token
4271
+
4272
+ def initialize(**args)
4273
+ update!(**args)
4274
+ end
4275
+
4276
+ # Update properties of this object
4277
+ def update!(**args)
4278
+ @generators = args[:generators] if args.key?(:generators)
4279
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
4280
+ end
4281
+ end
4282
+
4202
4283
  # The response message for Intents.ListIntents.
4203
4284
  class GoogleCloudDialogflowCxV3ListIntentsResponse
4204
4285
  include Google::Apis::Core::Hashable
@@ -4958,6 +5039,25 @@ module Google
4958
5039
  end
4959
5040
  end
4960
5041
 
5042
+ # Text input which can be used for prompt or banned phrases.
5043
+ class GoogleCloudDialogflowCxV3Phrase
5044
+ include Google::Apis::Core::Hashable
5045
+
5046
+ # Required. Text input which can be used for prompt or banned phrases.
5047
+ # Corresponds to the JSON property `text`
5048
+ # @return [String]
5049
+ attr_accessor :text
5050
+
5051
+ def initialize(**args)
5052
+ update!(**args)
5053
+ end
5054
+
5055
+ # Update properties of this object
5056
+ def update!(**args)
5057
+ @text = args[:text] if args.key?(:text)
5058
+ end
5059
+ end
5060
+
4961
5061
  # Represents the query input. It can contain one of: 1. A conversational query
4962
5062
  # in the form of text. 2. An intent query that specifies which intent to trigger.
4963
5063
  # 3. Natural language speech audio to be processed. 4. An event to be triggered.
@@ -8102,13 +8202,9 @@ module Google
8102
8202
  # which the API starts speech detection and may inform the client that an
8103
8203
  # utterance has been detected. Note that no-speech event is not expected in this
8104
8204
  # phase. The client provides this configuration in terms of the durations of
8105
- # those two phases. The durations are measured in terms of the audio length
8106
- # fromt the the start of the input audio. The flow goes like below: --> Time
8107
- # without speech detection | utterance only | utterance or no-speech event | | +-
8108
- # ------------+ | +------------+ | +---------------+ ----------+ no barge-in +-|-
8109
- # + barge-in +-|-+ normal period +----------- +-------------+ | +------------+ |
8110
- # +---------------+ No-speech event is a response with END_OF_UTTERANCE without
8111
- # any transcript following up.
8205
+ # those two phases. The durations are measured in terms of the audio length from
8206
+ # the the start of the input audio. No-speech event is a response with
8207
+ # END_OF_UTTERANCE without any transcript following up.
8112
8208
  class GoogleCloudDialogflowCxV3beta1BargeInConfig
8113
8209
  include Google::Apis::Core::Hashable
8114
8210
 
@@ -9502,13 +9598,9 @@ module Google
9502
9598
  # which the API starts speech detection and may inform the client that an
9503
9599
  # utterance has been detected. Note that no-speech event is not expected in this
9504
9600
  # phase. The client provides this configuration in terms of the durations of
9505
- # those two phases. The durations are measured in terms of the audio length
9506
- # fromt the the start of the input audio. The flow goes like below: --> Time
9507
- # without speech detection | utterance only | utterance or no-speech event | | +-
9508
- # ------------+ | +------------+ | +---------------+ ----------+ no barge-in +-|-
9509
- # + barge-in +-|-+ normal period +----------- +-------------+ | +------------+ |
9510
- # +---------------+ No-speech event is a response with END_OF_UTTERANCE without
9511
- # any transcript following up.
9601
+ # those two phases. The durations are measured in terms of the audio length from
9602
+ # the the start of the input audio. No-speech event is a response with
9603
+ # END_OF_UTTERANCE without any transcript following up.
9512
9604
  # Corresponds to the JSON property `bargeInConfig`
9513
9605
  # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3beta1BargeInConfig]
9514
9606
  attr_accessor :barge_in_config
@@ -9522,17 +9614,9 @@ module Google
9522
9614
  attr_accessor :enable_word_info
9523
9615
  alias_method :enable_word_info?, :enable_word_info
9524
9616
 
9525
- # Optional. Which Speech model to select for the given request. Select the model
9526
- # best suited to your domain to get best results. If a model is not explicitly
9527
- # specified, then we auto-select a model based on the parameters in the
9528
- # InputAudioConfig. If enhanced speech model is enabled for the agent and an
9529
- # enhanced version of the specified model for the language does not exist, then
9530
- # the speech is recognized using the standard version of the specified model.
9531
- # Refer to [Cloud Speech API documentation](https://cloud.google.com/speech-to-
9532
- # text/docs/basics#select-model) for more details. If you specify a model, the
9533
- # following models typically have the best performance: - phone_call (best for
9534
- # Agent Assist and telephony) - latest_short (best for Dialogflow non-telephony)
9535
- # - command_and_search (best for very short utterances and commands)
9617
+ # Optional. Which Speech model to select for the given request. For more
9618
+ # information, see [Speech models](https://cloud.google.com/dialogflow/cx/docs/
9619
+ # concept/speech-models).
9536
9620
  # Corresponds to the JSON property `model`
9537
9621
  # @return [String]
9538
9622
  attr_accessor :model
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module DialogflowV3
18
18
  # Version of the google-apis-dialogflow_v3 gem
19
- GEM_VERSION = "0.72.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 = "20231129"
25
+ REVISION = "20231204"
26
26
  end
27
27
  end
28
28
  end
@@ -538,6 +538,18 @@ module Google
538
538
  include Google::Apis::Core::JsonObjectSupport
539
539
  end
540
540
 
541
+ class GoogleCloudDialogflowCxV3Generator
542
+ class Representation < Google::Apis::Core::JsonRepresentation; end
543
+
544
+ include Google::Apis::Core::JsonObjectSupport
545
+ end
546
+
547
+ class GoogleCloudDialogflowCxV3GeneratorPlaceholder
548
+ class Representation < Google::Apis::Core::JsonRepresentation; end
549
+
550
+ include Google::Apis::Core::JsonObjectSupport
551
+ end
552
+
541
553
  class GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata
542
554
  class Representation < Google::Apis::Core::JsonRepresentation; end
543
555
 
@@ -724,6 +736,12 @@ module Google
724
736
  include Google::Apis::Core::JsonObjectSupport
725
737
  end
726
738
 
739
+ class GoogleCloudDialogflowCxV3ListGeneratorsResponse
740
+ class Representation < Google::Apis::Core::JsonRepresentation; end
741
+
742
+ include Google::Apis::Core::JsonObjectSupport
743
+ end
744
+
727
745
  class GoogleCloudDialogflowCxV3ListIntentsResponse
728
746
  class Representation < Google::Apis::Core::JsonRepresentation; end
729
747
 
@@ -844,6 +862,12 @@ module Google
844
862
  include Google::Apis::Core::JsonObjectSupport
845
863
  end
846
864
 
865
+ class GoogleCloudDialogflowCxV3Phrase
866
+ class Representation < Google::Apis::Core::JsonRepresentation; end
867
+
868
+ include Google::Apis::Core::JsonObjectSupport
869
+ end
870
+
847
871
  class GoogleCloudDialogflowCxV3QueryInput
848
872
  class Representation < Google::Apis::Core::JsonRepresentation; end
849
873
 
@@ -3841,6 +3865,26 @@ module Google
3841
3865
  end
3842
3866
  end
3843
3867
 
3868
+ class GoogleCloudDialogflowCxV3Generator
3869
+ # @private
3870
+ class Representation < Google::Apis::Core::JsonRepresentation
3871
+ property :display_name, as: 'displayName'
3872
+ property :name, as: 'name'
3873
+ collection :placeholders, as: 'placeholders', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3GeneratorPlaceholder, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3GeneratorPlaceholder::Representation
3874
+
3875
+ property :prompt_text, as: 'promptText', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Phrase, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Phrase::Representation
3876
+
3877
+ end
3878
+ end
3879
+
3880
+ class GoogleCloudDialogflowCxV3GeneratorPlaceholder
3881
+ # @private
3882
+ class Representation < Google::Apis::Core::JsonRepresentation
3883
+ property :id, as: 'id'
3884
+ property :name, as: 'name'
3885
+ end
3886
+ end
3887
+
3844
3888
  class GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata
3845
3889
  # @private
3846
3890
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -4120,6 +4164,15 @@ module Google
4120
4164
  end
4121
4165
  end
4122
4166
 
4167
+ class GoogleCloudDialogflowCxV3ListGeneratorsResponse
4168
+ # @private
4169
+ class Representation < Google::Apis::Core::JsonRepresentation
4170
+ collection :generators, as: 'generators', class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Generator, decorator: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Generator::Representation
4171
+
4172
+ property :next_page_token, as: 'nextPageToken'
4173
+ end
4174
+ end
4175
+
4123
4176
  class GoogleCloudDialogflowCxV3ListIntentsResponse
4124
4177
  # @private
4125
4178
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -4324,6 +4377,13 @@ module Google
4324
4377
  end
4325
4378
  end
4326
4379
 
4380
+ class GoogleCloudDialogflowCxV3Phrase
4381
+ # @private
4382
+ class Representation < Google::Apis::Core::JsonRepresentation
4383
+ property :text, as: 'text'
4384
+ end
4385
+ end
4386
+
4327
4387
  class GoogleCloudDialogflowCxV3QueryInput
4328
4388
  # @private
4329
4389
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2898,6 +2898,199 @@ module Google
2898
2898
  execute_or_queue_command(command, &block)
2899
2899
  end
2900
2900
 
2901
+ # Creates a generator in the specified agent.
2902
+ # @param [String] parent
2903
+ # Required. The agent to create a generator for. Format: `projects//locations//
2904
+ # agents/`.
2905
+ # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Generator] google_cloud_dialogflow_cx_v3_generator_object
2906
+ # @param [String] language_code
2907
+ # The language to create generators for the following fields: * `Generator.
2908
+ # prompt_text.text` If not specified, the agent's default language is used.
2909
+ # @param [String] fields
2910
+ # Selector specifying which fields to include in a partial response.
2911
+ # @param [String] quota_user
2912
+ # Available to use for quota purposes for server-side applications. Can be any
2913
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2914
+ # @param [Google::Apis::RequestOptions] options
2915
+ # Request-specific options
2916
+ #
2917
+ # @yield [result, err] Result & error if block supplied
2918
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Generator] parsed result object
2919
+ # @yieldparam err [StandardError] error object if request failed
2920
+ #
2921
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Generator]
2922
+ #
2923
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2924
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2925
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2926
+ def create_project_location_agent_generator(parent, google_cloud_dialogflow_cx_v3_generator_object = nil, language_code: nil, fields: nil, quota_user: nil, options: nil, &block)
2927
+ command = make_simple_command(:post, 'v3/{+parent}/generators', options)
2928
+ command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Generator::Representation
2929
+ command.request_object = google_cloud_dialogflow_cx_v3_generator_object
2930
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Generator::Representation
2931
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Generator
2932
+ command.params['parent'] = parent unless parent.nil?
2933
+ command.query['languageCode'] = language_code unless language_code.nil?
2934
+ command.query['fields'] = fields unless fields.nil?
2935
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2936
+ execute_or_queue_command(command, &block)
2937
+ end
2938
+
2939
+ # Deletes the specified generators.
2940
+ # @param [String] name
2941
+ # Required. The name of the generator to delete. Format: `projects//locations//
2942
+ # agents//generators/`.
2943
+ # @param [Boolean] force
2944
+ # This field has no effect for generators not being used. For generators that
2945
+ # are used by pages/flows/transition route groups: * If `force` is set to false,
2946
+ # an error will be returned with message indicating the referenced resources. *
2947
+ # If `force` is set to true, Dialogflow will remove the generator, as well as
2948
+ # any references to the generator (i.e. Generator) in fulfillments.
2949
+ # @param [String] fields
2950
+ # Selector specifying which fields to include in a partial response.
2951
+ # @param [String] quota_user
2952
+ # Available to use for quota purposes for server-side applications. Can be any
2953
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2954
+ # @param [Google::Apis::RequestOptions] options
2955
+ # Request-specific options
2956
+ #
2957
+ # @yield [result, err] Result & error if block supplied
2958
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleProtobufEmpty] parsed result object
2959
+ # @yieldparam err [StandardError] error object if request failed
2960
+ #
2961
+ # @return [Google::Apis::DialogflowV3::GoogleProtobufEmpty]
2962
+ #
2963
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2964
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2965
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2966
+ def delete_project_location_agent_generator(name, force: nil, fields: nil, quota_user: nil, options: nil, &block)
2967
+ command = make_simple_command(:delete, 'v3/{+name}', options)
2968
+ command.response_representation = Google::Apis::DialogflowV3::GoogleProtobufEmpty::Representation
2969
+ command.response_class = Google::Apis::DialogflowV3::GoogleProtobufEmpty
2970
+ command.params['name'] = name unless name.nil?
2971
+ command.query['force'] = force unless force.nil?
2972
+ command.query['fields'] = fields unless fields.nil?
2973
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2974
+ execute_or_queue_command(command, &block)
2975
+ end
2976
+
2977
+ # Retrieves the specified generator.
2978
+ # @param [String] name
2979
+ # Required. The name of the generator. Format: `projects//locations//agents//
2980
+ # generators/`.
2981
+ # @param [String] language_code
2982
+ # The language to list generators for.
2983
+ # @param [String] fields
2984
+ # Selector specifying which fields to include in a partial response.
2985
+ # @param [String] quota_user
2986
+ # Available to use for quota purposes for server-side applications. Can be any
2987
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2988
+ # @param [Google::Apis::RequestOptions] options
2989
+ # Request-specific options
2990
+ #
2991
+ # @yield [result, err] Result & error if block supplied
2992
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Generator] parsed result object
2993
+ # @yieldparam err [StandardError] error object if request failed
2994
+ #
2995
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Generator]
2996
+ #
2997
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2998
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2999
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3000
+ def get_project_location_agent_generator(name, language_code: nil, fields: nil, quota_user: nil, options: nil, &block)
3001
+ command = make_simple_command(:get, 'v3/{+name}', options)
3002
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Generator::Representation
3003
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Generator
3004
+ command.params['name'] = name unless name.nil?
3005
+ command.query['languageCode'] = language_code unless language_code.nil?
3006
+ command.query['fields'] = fields unless fields.nil?
3007
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3008
+ execute_or_queue_command(command, &block)
3009
+ end
3010
+
3011
+ # Returns the list of all generators in the specified agent.
3012
+ # @param [String] parent
3013
+ # Required. The agent to list all generators for. Format: `projects//locations//
3014
+ # agents/`.
3015
+ # @param [String] language_code
3016
+ # The language to list generators for.
3017
+ # @param [Fixnum] page_size
3018
+ # The maximum number of items to return in a single page. By default 100 and at
3019
+ # most 1000.
3020
+ # @param [String] page_token
3021
+ # The next_page_token value returned from a previous list request.
3022
+ # @param [String] fields
3023
+ # Selector specifying which fields to include in a partial response.
3024
+ # @param [String] quota_user
3025
+ # Available to use for quota purposes for server-side applications. Can be any
3026
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3027
+ # @param [Google::Apis::RequestOptions] options
3028
+ # Request-specific options
3029
+ #
3030
+ # @yield [result, err] Result & error if block supplied
3031
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListGeneratorsResponse] parsed result object
3032
+ # @yieldparam err [StandardError] error object if request failed
3033
+ #
3034
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListGeneratorsResponse]
3035
+ #
3036
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3037
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3038
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3039
+ def list_project_location_agent_generators(parent, language_code: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
3040
+ command = make_simple_command(:get, 'v3/{+parent}/generators', options)
3041
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListGeneratorsResponse::Representation
3042
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ListGeneratorsResponse
3043
+ command.params['parent'] = parent unless parent.nil?
3044
+ command.query['languageCode'] = language_code unless language_code.nil?
3045
+ command.query['pageSize'] = page_size unless page_size.nil?
3046
+ command.query['pageToken'] = page_token unless page_token.nil?
3047
+ command.query['fields'] = fields unless fields.nil?
3048
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3049
+ execute_or_queue_command(command, &block)
3050
+ end
3051
+
3052
+ # Update the specified generator.
3053
+ # @param [String] name
3054
+ # The unique identifier of the generator. Must be set for the Generators.
3055
+ # UpdateGenerator method. Generators.CreateGenerate populates the name
3056
+ # automatically. Format: `projects//locations//agents//generators/`.
3057
+ # @param [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Generator] google_cloud_dialogflow_cx_v3_generator_object
3058
+ # @param [String] language_code
3059
+ # The language to list generators for.
3060
+ # @param [String] update_mask
3061
+ # The mask to control which fields get updated. If the mask is not present, all
3062
+ # fields will be updated.
3063
+ # @param [String] fields
3064
+ # Selector specifying which fields to include in a partial response.
3065
+ # @param [String] quota_user
3066
+ # Available to use for quota purposes for server-side applications. Can be any
3067
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3068
+ # @param [Google::Apis::RequestOptions] options
3069
+ # Request-specific options
3070
+ #
3071
+ # @yield [result, err] Result & error if block supplied
3072
+ # @yieldparam result [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Generator] parsed result object
3073
+ # @yieldparam err [StandardError] error object if request failed
3074
+ #
3075
+ # @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Generator]
3076
+ #
3077
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3078
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3079
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3080
+ def patch_project_location_agent_generator(name, google_cloud_dialogflow_cx_v3_generator_object = nil, language_code: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
3081
+ command = make_simple_command(:patch, 'v3/{+name}', options)
3082
+ command.request_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Generator::Representation
3083
+ command.request_object = google_cloud_dialogflow_cx_v3_generator_object
3084
+ command.response_representation = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Generator::Representation
3085
+ command.response_class = Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Generator
3086
+ command.params['name'] = name unless name.nil?
3087
+ command.query['languageCode'] = language_code unless language_code.nil?
3088
+ command.query['updateMask'] = update_mask unless update_mask.nil?
3089
+ command.query['fields'] = fields unless fields.nil?
3090
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3091
+ execute_or_queue_command(command, &block)
3092
+ end
3093
+
2901
3094
  # Creates an intent in the specified agent. Note: You should always train a flow
2902
3095
  # prior to sending it queries. See the [training documentation](https://cloud.
2903
3096
  # 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_v3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.72.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-03 00:00:00.000000000 Z
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_v3/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-dialogflow_v3/v0.72.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-dialogflow_v3/v0.73.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-dialogflow_v3
63
63
  post_install_message:
64
64
  rdoc_options: []