google-apis-dialogflow_v2 0.18.0 → 0.22.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.
@@ -150,7 +150,12 @@ module Google
150
150
  execute_or_queue_command(command, &block)
151
151
  end
152
152
 
153
- # Exports the specified agent to a ZIP file.
153
+ # Exports the specified agent to a ZIP file. This method is a [long-running
154
+ # operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-
155
+ # operations). The returned `Operation` type has the following method-specific
156
+ # fields: - `metadata`: An empty [Struct message](https://developers.google.com/
157
+ # protocol-buffers/docs/reference/google.protobuf#struct) - `response`:
158
+ # ExportAgentResponse
154
159
  # @param [String] parent
155
160
  # Required. The project that the agent to export is associated with. Format: `
156
161
  # projects/`.
@@ -257,8 +262,13 @@ module Google
257
262
  # the import, the imported draft agent will be trained automatically (unless
258
263
  # disabled in agent settings). However, once the import is done, training may
259
264
  # not be completed yet. Please call TrainAgent and wait for the operation it
260
- # returns in order to train explicitly. An operation which tracks when importing
261
- # is complete. It only tracks when the draft agent is updated not when it is
265
+ # returns in order to train explicitly. This method is a [long-running operation]
266
+ # (https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The
267
+ # returned `Operation` type has the following method-specific fields: - `
268
+ # metadata`: An empty [Struct message](https://developers.google.com/protocol-
269
+ # buffers/docs/reference/google.protobuf#struct) - `response`: An [Empty message]
270
+ # (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#
271
+ # empty) The operation only tracks when importing is complete, not when it is
262
272
  # done training. Note: You should always train an agent prior to sending it
263
273
  # queries. See the [training documentation](https://cloud.google.com/dialogflow/
264
274
  # es/docs/training).
@@ -300,9 +310,14 @@ module Google
300
310
  # are deleted. After the restore, the restored draft agent will be trained
301
311
  # automatically (unless disabled in agent settings). However, once the restore
302
312
  # is done, training may not be completed yet. Please call TrainAgent and wait
303
- # for the operation it returns in order to train explicitly. An operation which
304
- # tracks when restoring is complete. It only tracks when the draft agent is
305
- # updated not when it is done training. Note: You should always train an agent
313
+ # for the operation it returns in order to train explicitly. This method is a [
314
+ # long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-
315
+ # running-operations). The returned `Operation` type has the following method-
316
+ # specific fields: - `metadata`: An empty [Struct message](https://developers.
317
+ # google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`
318
+ # : An [Empty message](https://developers.google.com/protocol-buffers/docs/
319
+ # reference/google.protobuf#empty) The operation only tracks when restoring is
320
+ # complete, not when it is done training. Note: You should always train an agent
306
321
  # prior to sending it queries. See the [training documentation](https://cloud.
307
322
  # google.com/dialogflow/es/docs/training).
308
323
  # @param [String] parent
@@ -379,9 +394,14 @@ module Google
379
394
  execute_or_queue_command(command, &block)
380
395
  end
381
396
 
382
- # Trains the specified agent. Note: You should always train an agent prior to
383
- # sending it queries. See the [training documentation](https://cloud.google.com/
384
- # dialogflow/es/docs/training).
397
+ # Trains the specified agent. This method is a [long-running operation](https://
398
+ # cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned
399
+ # `Operation` type has the following method-specific fields: - `metadata`: An
400
+ # empty [Struct message](https://developers.google.com/protocol-buffers/docs/
401
+ # reference/google.protobuf#struct) - `response`: An [Empty message](https://
402
+ # developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
403
+ # Note: You should always train an agent prior to sending it queries. See the [
404
+ # training documentation](https://cloud.google.com/dialogflow/es/docs/training).
385
405
  # @param [String] parent
386
406
  # Required. The project that the agent to train is associated with. Format: `
387
407
  # projects/`.
@@ -454,9 +474,15 @@ module Google
454
474
  execute_or_queue_command(command, &block)
455
475
  end
456
476
 
457
- # Deletes entity types in the specified agent. Note: You should always train an
458
- # agent prior to sending it queries. See the [training documentation](https://
459
- # cloud.google.com/dialogflow/es/docs/training).
477
+ # Deletes entity types in the specified agent. This method is a [long-running
478
+ # operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-
479
+ # operations). The returned `Operation` type has the following method-specific
480
+ # fields: - `metadata`: An empty [Struct message](https://developers.google.com/
481
+ # protocol-buffers/docs/reference/google.protobuf#struct) - `response`: An [
482
+ # Empty message](https://developers.google.com/protocol-buffers/docs/reference/
483
+ # google.protobuf#empty) Note: You should always train an agent prior to sending
484
+ # it queries. See the [training documentation](https://cloud.google.com/
485
+ # dialogflow/es/docs/training).
460
486
  # @param [String] parent
461
487
  # Required. The name of the agent to delete all entities types for. Format: `
462
488
  # projects//agent`.
@@ -490,9 +516,14 @@ module Google
490
516
  execute_or_queue_command(command, &block)
491
517
  end
492
518
 
493
- # Updates/Creates multiple entity types in the specified agent. Note: You should
494
- # always train an agent prior to sending it queries. See the [training
495
- # documentation](https://cloud.google.com/dialogflow/es/docs/training).
519
+ # Updates/Creates multiple entity types in the specified agent. This method is a
520
+ # [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-
521
+ # running-operations). The returned `Operation` type has the following method-
522
+ # specific fields: - `metadata`: An empty [Struct message](https://developers.
523
+ # google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`
524
+ # : BatchUpdateEntityTypesResponse Note: You should always train an agent prior
525
+ # to sending it queries. See the [training documentation](https://cloud.google.
526
+ # com/dialogflow/es/docs/training).
496
527
  # @param [String] parent
497
528
  # Required. The name of the agent to update or create entity types in. Format: `
498
529
  # projects//agent`.
@@ -725,9 +756,15 @@ module Google
725
756
  execute_or_queue_command(command, &block)
726
757
  end
727
758
 
728
- # Creates multiple new entities in the specified entity type. Note: You should
729
- # always train an agent prior to sending it queries. See the [training
730
- # documentation](https://cloud.google.com/dialogflow/es/docs/training).
759
+ # Creates multiple new entities in the specified entity type. This method is a [
760
+ # long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-
761
+ # running-operations). The returned `Operation` type has the following method-
762
+ # specific fields: - `metadata`: An empty [Struct message](https://developers.
763
+ # google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`
764
+ # : An [Empty message](https://developers.google.com/protocol-buffers/docs/
765
+ # reference/google.protobuf#empty) Note: You should always train an agent prior
766
+ # to sending it queries. See the [training documentation](https://cloud.google.
767
+ # com/dialogflow/es/docs/training).
731
768
  # @param [String] parent
732
769
  # Required. The name of the entity type to create entities in. Format: `projects/
733
770
  # /agent/entityTypes/`.
@@ -761,9 +798,15 @@ module Google
761
798
  execute_or_queue_command(command, &block)
762
799
  end
763
800
 
764
- # Deletes entities in the specified entity type. Note: You should always train
765
- # an agent prior to sending it queries. See the [training documentation](https://
766
- # cloud.google.com/dialogflow/es/docs/training).
801
+ # Deletes entities in the specified entity type. This method is a [long-running
802
+ # operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-
803
+ # operations). The returned `Operation` type has the following method-specific
804
+ # fields: - `metadata`: An empty [Struct message](https://developers.google.com/
805
+ # protocol-buffers/docs/reference/google.protobuf#struct) - `response`: An [
806
+ # Empty message](https://developers.google.com/protocol-buffers/docs/reference/
807
+ # google.protobuf#empty) Note: You should always train an agent prior to sending
808
+ # it queries. See the [training documentation](https://cloud.google.com/
809
+ # dialogflow/es/docs/training).
767
810
  # @param [String] parent
768
811
  # Required. The name of the entity type to delete entries for. Format: `projects/
769
812
  # /agent/entityTypes/`.
@@ -799,9 +842,14 @@ module Google
799
842
 
800
843
  # Updates or creates multiple entities in the specified entity type. This method
801
844
  # does not affect entities in the entity type that aren't explicitly specified
802
- # in the request. Note: You should always train an agent prior to sending it
803
- # queries. See the [training documentation](https://cloud.google.com/dialogflow/
804
- # es/docs/training).
845
+ # in the request. This method is a [long-running operation](https://cloud.google.
846
+ # com/dialogflow/es/docs/how/long-running-operations). The returned `Operation`
847
+ # type has the following method-specific fields: - `metadata`: An empty [Struct
848
+ # message](https://developers.google.com/protocol-buffers/docs/reference/google.
849
+ # protobuf#struct) - `response`: An [Empty message](https://developers.google.
850
+ # com/protocol-buffers/docs/reference/google.protobuf#empty) Note: You should
851
+ # always train an agent prior to sending it queries. See the [training
852
+ # documentation](https://cloud.google.com/dialogflow/es/docs/training).
805
853
  # @param [String] parent
806
854
  # Required. The name of the entity type to update or create entities in. Format:
807
855
  # `projects//agent/entityTypes/`.
@@ -1579,9 +1627,15 @@ module Google
1579
1627
  execute_or_queue_command(command, &block)
1580
1628
  end
1581
1629
 
1582
- # Deletes intents in the specified agent. Note: You should always train an agent
1583
- # prior to sending it queries. See the [training documentation](https://cloud.
1584
- # google.com/dialogflow/es/docs/training).
1630
+ # Deletes intents in the specified agent. This method is a [long-running
1631
+ # operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-
1632
+ # operations). The returned `Operation` type has the following method-specific
1633
+ # fields: - `metadata`: An empty [Struct message](https://developers.google.com/
1634
+ # protocol-buffers/docs/reference/google.protobuf#struct) - `response`: An [
1635
+ # Empty message](https://developers.google.com/protocol-buffers/docs/reference/
1636
+ # google.protobuf#empty) Note: You should always train an agent prior to sending
1637
+ # it queries. See the [training documentation](https://cloud.google.com/
1638
+ # dialogflow/es/docs/training).
1585
1639
  # @param [String] parent
1586
1640
  # Required. The name of the agent to delete all entities types for. Format: `
1587
1641
  # projects//agent`.
@@ -1615,9 +1669,14 @@ module Google
1615
1669
  execute_or_queue_command(command, &block)
1616
1670
  end
1617
1671
 
1618
- # Updates/Creates multiple intents in the specified agent. Note: You should
1619
- # always train an agent prior to sending it queries. See the [training
1620
- # documentation](https://cloud.google.com/dialogflow/es/docs/training).
1672
+ # Updates/Creates multiple intents in the specified agent. This method is a [
1673
+ # long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-
1674
+ # running-operations). The returned `Operation` type has the following method-
1675
+ # specific fields: - `metadata`: An empty [Struct message](https://developers.
1676
+ # google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`
1677
+ # : BatchUpdateIntentsResponse Note: You should always train an agent prior to
1678
+ # sending it queries. See the [training documentation](https://cloud.google.com/
1679
+ # dialogflow/es/docs/training).
1621
1680
  # @param [String] parent
1622
1681
  # Required. The name of the agent to update or create intents in. Format: `
1623
1682
  # projects//agent`.
@@ -2044,7 +2103,10 @@ module Google
2044
2103
  execute_or_queue_command(command, &block)
2045
2104
  end
2046
2105
 
2047
- # Creates a new document. Operation
2106
+ # Creates a new document. This method is a [long-running operation](https://
2107
+ # cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `
2108
+ # Operation` type has the following method-specific fields: - `metadata`:
2109
+ # KnowledgeOperationMetadata - `response`: Document
2048
2110
  # @param [String] parent
2049
2111
  # Required. The knowledge base to create a document for. Format: `projects//
2050
2112
  # locations//knowledgeBases/`.
@@ -2078,7 +2140,11 @@ module Google
2078
2140
  execute_or_queue_command(command, &block)
2079
2141
  end
2080
2142
 
2081
- # Deletes the specified document. Operation
2143
+ # Deletes the specified document. This method is a [long-running operation](
2144
+ # https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The
2145
+ # returned `Operation` type has the following method-specific fields: - `
2146
+ # metadata`: KnowledgeOperationMetadata - `response`: An [Empty message](https://
2147
+ # developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
2082
2148
  # @param [String] name
2083
2149
  # Required. The name of the document to delete. Format: `projects//locations//
2084
2150
  # knowledgeBases//documents/`.
@@ -2178,7 +2244,10 @@ module Google
2178
2244
  execute_or_queue_command(command, &block)
2179
2245
  end
2180
2246
 
2181
- # Updates the specified document. Operation
2247
+ # Updates the specified document. This method is a [long-running operation](
2248
+ # https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The
2249
+ # returned `Operation` type has the following method-specific fields: - `
2250
+ # metadata`: KnowledgeOperationMetadata - `response`: Document
2182
2251
  # @param [String] name
2183
2252
  # Optional. The document resource name. The name must be empty when creating a
2184
2253
  # document. Format: `projects//locations//knowledgeBases//documents/`.
@@ -2220,9 +2289,12 @@ module Google
2220
2289
  # Reloads the specified document from its specified source, content_uri or
2221
2290
  # content. The previously loaded content of the document will be deleted. Note:
2222
2291
  # Even when the content of the document has not changed, there still may be side
2223
- # effects because of internal implementation changes. Note: The `projects.agent.
2224
- # knowledgeBases.documents` resource is deprecated; only use `projects.
2225
- # knowledgeBases.documents`. Operation
2292
+ # effects because of internal implementation changes. This method is a [long-
2293
+ # running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-
2294
+ # running-operation). The returned `Operation` type has the following method-
2295
+ # specific fields: - `metadata`: KnowledgeOperationMetadata - `response`:
2296
+ # Document Note: The `projects.agent.knowledgeBases.documents` resource is
2297
+ # deprecated; only use `projects.knowledgeBases.documents`.
2226
2298
  # @param [String] name
2227
2299
  # Required. The name of the document to reload. Format: `projects//locations//
2228
2300
  # knowledgeBases//documents/`
@@ -3792,7 +3864,10 @@ module Google
3792
3864
  execute_or_queue_command(command, &block)
3793
3865
  end
3794
3866
 
3795
- # Creates a new document. Operation
3867
+ # Creates a new document. This method is a [long-running operation](https://
3868
+ # cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `
3869
+ # Operation` type has the following method-specific fields: - `metadata`:
3870
+ # KnowledgeOperationMetadata - `response`: Document
3796
3871
  # @param [String] parent
3797
3872
  # Required. The knowledge base to create a document for. Format: `projects//
3798
3873
  # locations//knowledgeBases/`.
@@ -3826,7 +3901,11 @@ module Google
3826
3901
  execute_or_queue_command(command, &block)
3827
3902
  end
3828
3903
 
3829
- # Deletes the specified document. Operation
3904
+ # Deletes the specified document. This method is a [long-running operation](
3905
+ # https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The
3906
+ # returned `Operation` type has the following method-specific fields: - `
3907
+ # metadata`: KnowledgeOperationMetadata - `response`: An [Empty message](https://
3908
+ # developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
3830
3909
  # @param [String] name
3831
3910
  # Required. The name of the document to delete. Format: `projects//locations//
3832
3911
  # knowledgeBases//documents/`.
@@ -3926,7 +4005,10 @@ module Google
3926
4005
  execute_or_queue_command(command, &block)
3927
4006
  end
3928
4007
 
3929
- # Updates the specified document. Operation
4008
+ # Updates the specified document. This method is a [long-running operation](
4009
+ # https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The
4010
+ # returned `Operation` type has the following method-specific fields: - `
4011
+ # metadata`: KnowledgeOperationMetadata - `response`: Document
3930
4012
  # @param [String] name
3931
4013
  # Optional. The document resource name. The name must be empty when creating a
3932
4014
  # document. Format: `projects//locations//knowledgeBases//documents/`.
@@ -3968,9 +4050,12 @@ module Google
3968
4050
  # Reloads the specified document from its specified source, content_uri or
3969
4051
  # content. The previously loaded content of the document will be deleted. Note:
3970
4052
  # Even when the content of the document has not changed, there still may be side
3971
- # effects because of internal implementation changes. Note: The `projects.agent.
3972
- # knowledgeBases.documents` resource is deprecated; only use `projects.
3973
- # knowledgeBases.documents`. Operation
4053
+ # effects because of internal implementation changes. This method is a [long-
4054
+ # running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-
4055
+ # running-operation). The returned `Operation` type has the following method-
4056
+ # specific fields: - `metadata`: KnowledgeOperationMetadata - `response`:
4057
+ # Document Note: The `projects.agent.knowledgeBases.documents` resource is
4058
+ # deprecated; only use `projects.knowledgeBases.documents`.
3974
4059
  # @param [String] name
3975
4060
  # Required. The name of the document to reload. Format: `projects//locations//
3976
4061
  # knowledgeBases//documents/`
@@ -4035,6 +4120,36 @@ module Google
4035
4120
  execute_or_queue_command(command, &block)
4036
4121
  end
4037
4122
 
4123
+ # Gets information about a location.
4124
+ # @param [String] name
4125
+ # Resource name for the location.
4126
+ # @param [String] fields
4127
+ # Selector specifying which fields to include in a partial response.
4128
+ # @param [String] quota_user
4129
+ # Available to use for quota purposes for server-side applications. Can be any
4130
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4131
+ # @param [Google::Apis::RequestOptions] options
4132
+ # Request-specific options
4133
+ #
4134
+ # @yield [result, err] Result & error if block supplied
4135
+ # @yieldparam result [Google::Apis::DialogflowV2::GoogleCloudLocationLocation] parsed result object
4136
+ # @yieldparam err [StandardError] error object if request failed
4137
+ #
4138
+ # @return [Google::Apis::DialogflowV2::GoogleCloudLocationLocation]
4139
+ #
4140
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4141
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4142
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4143
+ def get_project_location(name, fields: nil, quota_user: nil, options: nil, &block)
4144
+ command = make_simple_command(:get, 'v2/{+name}', options)
4145
+ command.response_representation = Google::Apis::DialogflowV2::GoogleCloudLocationLocation::Representation
4146
+ command.response_class = Google::Apis::DialogflowV2::GoogleCloudLocationLocation
4147
+ command.params['name'] = name unless name.nil?
4148
+ command.query['fields'] = fields unless fields.nil?
4149
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4150
+ execute_or_queue_command(command, &block)
4151
+ end
4152
+
4038
4153
  # Retrieves the specified agent.
4039
4154
  # @param [String] parent
4040
4155
  # Required. The project that the agent to fetch is associated with. Format: `
@@ -4066,6 +4181,49 @@ module Google
4066
4181
  execute_or_queue_command(command, &block)
4067
4182
  end
4068
4183
 
4184
+ # Lists information about the supported locations for this service.
4185
+ # @param [String] name
4186
+ # The resource that owns the locations collection, if applicable.
4187
+ # @param [String] filter
4188
+ # A filter to narrow down results to a preferred subset. The filtering language
4189
+ # accepts strings like "displayName=tokyo", and is documented in more detail in [
4190
+ # AIP-160](https://google.aip.dev/160).
4191
+ # @param [Fixnum] page_size
4192
+ # The maximum number of results to return. If not set, the service selects a
4193
+ # default.
4194
+ # @param [String] page_token
4195
+ # A page token received from the `next_page_token` field in the response. Send
4196
+ # that page token to receive the subsequent page.
4197
+ # @param [String] fields
4198
+ # Selector specifying which fields to include in a partial response.
4199
+ # @param [String] quota_user
4200
+ # Available to use for quota purposes for server-side applications. Can be any
4201
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4202
+ # @param [Google::Apis::RequestOptions] options
4203
+ # Request-specific options
4204
+ #
4205
+ # @yield [result, err] Result & error if block supplied
4206
+ # @yieldparam result [Google::Apis::DialogflowV2::GoogleCloudLocationListLocationsResponse] parsed result object
4207
+ # @yieldparam err [StandardError] error object if request failed
4208
+ #
4209
+ # @return [Google::Apis::DialogflowV2::GoogleCloudLocationListLocationsResponse]
4210
+ #
4211
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4212
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4213
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4214
+ def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
4215
+ command = make_simple_command(:get, 'v2/{+name}/locations', options)
4216
+ command.response_representation = Google::Apis::DialogflowV2::GoogleCloudLocationListLocationsResponse::Representation
4217
+ command.response_class = Google::Apis::DialogflowV2::GoogleCloudLocationListLocationsResponse
4218
+ command.params['name'] = name unless name.nil?
4219
+ command.query['filter'] = filter unless filter.nil?
4220
+ command.query['pageSize'] = page_size unless page_size.nil?
4221
+ command.query['pageToken'] = page_token unless page_token.nil?
4222
+ command.query['fields'] = fields unless fields.nil?
4223
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4224
+ execute_or_queue_command(command, &block)
4225
+ end
4226
+
4069
4227
  # Creates/updates the specified agent. Note: You should always train an agent
4070
4228
  # prior to sending it queries. See the [training documentation](https://cloud.
4071
4229
  # google.com/dialogflow/es/docs/training).
@@ -4104,7 +4262,12 @@ module Google
4104
4262
  execute_or_queue_command(command, &block)
4105
4263
  end
4106
4264
 
4107
- # Exports the specified agent to a ZIP file.
4265
+ # Exports the specified agent to a ZIP file. This method is a [long-running
4266
+ # operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-
4267
+ # operations). The returned `Operation` type has the following method-specific
4268
+ # fields: - `metadata`: An empty [Struct message](https://developers.google.com/
4269
+ # protocol-buffers/docs/reference/google.protobuf#struct) - `response`:
4270
+ # ExportAgentResponse
4108
4271
  # @param [String] parent
4109
4272
  # Required. The project that the agent to export is associated with. Format: `
4110
4273
  # projects/`.
@@ -4211,8 +4374,13 @@ module Google
4211
4374
  # the import, the imported draft agent will be trained automatically (unless
4212
4375
  # disabled in agent settings). However, once the import is done, training may
4213
4376
  # not be completed yet. Please call TrainAgent and wait for the operation it
4214
- # returns in order to train explicitly. An operation which tracks when importing
4215
- # is complete. It only tracks when the draft agent is updated not when it is
4377
+ # returns in order to train explicitly. This method is a [long-running operation]
4378
+ # (https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The
4379
+ # returned `Operation` type has the following method-specific fields: - `
4380
+ # metadata`: An empty [Struct message](https://developers.google.com/protocol-
4381
+ # buffers/docs/reference/google.protobuf#struct) - `response`: An [Empty message]
4382
+ # (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#
4383
+ # empty) The operation only tracks when importing is complete, not when it is
4216
4384
  # done training. Note: You should always train an agent prior to sending it
4217
4385
  # queries. See the [training documentation](https://cloud.google.com/dialogflow/
4218
4386
  # es/docs/training).
@@ -4254,9 +4422,14 @@ module Google
4254
4422
  # are deleted. After the restore, the restored draft agent will be trained
4255
4423
  # automatically (unless disabled in agent settings). However, once the restore
4256
4424
  # is done, training may not be completed yet. Please call TrainAgent and wait
4257
- # for the operation it returns in order to train explicitly. An operation which
4258
- # tracks when restoring is complete. It only tracks when the draft agent is
4259
- # updated not when it is done training. Note: You should always train an agent
4425
+ # for the operation it returns in order to train explicitly. This method is a [
4426
+ # long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-
4427
+ # running-operations). The returned `Operation` type has the following method-
4428
+ # specific fields: - `metadata`: An empty [Struct message](https://developers.
4429
+ # google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`
4430
+ # : An [Empty message](https://developers.google.com/protocol-buffers/docs/
4431
+ # reference/google.protobuf#empty) The operation only tracks when restoring is
4432
+ # complete, not when it is done training. Note: You should always train an agent
4260
4433
  # prior to sending it queries. See the [training documentation](https://cloud.
4261
4434
  # google.com/dialogflow/es/docs/training).
4262
4435
  # @param [String] parent
@@ -4333,9 +4506,14 @@ module Google
4333
4506
  execute_or_queue_command(command, &block)
4334
4507
  end
4335
4508
 
4336
- # Trains the specified agent. Note: You should always train an agent prior to
4337
- # sending it queries. See the [training documentation](https://cloud.google.com/
4338
- # dialogflow/es/docs/training).
4509
+ # Trains the specified agent. This method is a [long-running operation](https://
4510
+ # cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned
4511
+ # `Operation` type has the following method-specific fields: - `metadata`: An
4512
+ # empty [Struct message](https://developers.google.com/protocol-buffers/docs/
4513
+ # reference/google.protobuf#struct) - `response`: An [Empty message](https://
4514
+ # developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
4515
+ # Note: You should always train an agent prior to sending it queries. See the [
4516
+ # training documentation](https://cloud.google.com/dialogflow/es/docs/training).
4339
4517
  # @param [String] parent
4340
4518
  # Required. The project that the agent to train is associated with. Format: `
4341
4519
  # projects/`.
@@ -4408,9 +4586,15 @@ module Google
4408
4586
  execute_or_queue_command(command, &block)
4409
4587
  end
4410
4588
 
4411
- # Deletes entity types in the specified agent. Note: You should always train an
4412
- # agent prior to sending it queries. See the [training documentation](https://
4413
- # cloud.google.com/dialogflow/es/docs/training).
4589
+ # Deletes entity types in the specified agent. This method is a [long-running
4590
+ # operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-
4591
+ # operations). The returned `Operation` type has the following method-specific
4592
+ # fields: - `metadata`: An empty [Struct message](https://developers.google.com/
4593
+ # protocol-buffers/docs/reference/google.protobuf#struct) - `response`: An [
4594
+ # Empty message](https://developers.google.com/protocol-buffers/docs/reference/
4595
+ # google.protobuf#empty) Note: You should always train an agent prior to sending
4596
+ # it queries. See the [training documentation](https://cloud.google.com/
4597
+ # dialogflow/es/docs/training).
4414
4598
  # @param [String] parent
4415
4599
  # Required. The name of the agent to delete all entities types for. Format: `
4416
4600
  # projects//agent`.
@@ -4444,9 +4628,14 @@ module Google
4444
4628
  execute_or_queue_command(command, &block)
4445
4629
  end
4446
4630
 
4447
- # Updates/Creates multiple entity types in the specified agent. Note: You should
4448
- # always train an agent prior to sending it queries. See the [training
4449
- # documentation](https://cloud.google.com/dialogflow/es/docs/training).
4631
+ # Updates/Creates multiple entity types in the specified agent. This method is a
4632
+ # [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-
4633
+ # running-operations). The returned `Operation` type has the following method-
4634
+ # specific fields: - `metadata`: An empty [Struct message](https://developers.
4635
+ # google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`
4636
+ # : BatchUpdateEntityTypesResponse Note: You should always train an agent prior
4637
+ # to sending it queries. See the [training documentation](https://cloud.google.
4638
+ # com/dialogflow/es/docs/training).
4450
4639
  # @param [String] parent
4451
4640
  # Required. The name of the agent to update or create entity types in. Format: `
4452
4641
  # projects//agent`.
@@ -4679,9 +4868,15 @@ module Google
4679
4868
  execute_or_queue_command(command, &block)
4680
4869
  end
4681
4870
 
4682
- # Creates multiple new entities in the specified entity type. Note: You should
4683
- # always train an agent prior to sending it queries. See the [training
4684
- # documentation](https://cloud.google.com/dialogflow/es/docs/training).
4871
+ # Creates multiple new entities in the specified entity type. This method is a [
4872
+ # long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-
4873
+ # running-operations). The returned `Operation` type has the following method-
4874
+ # specific fields: - `metadata`: An empty [Struct message](https://developers.
4875
+ # google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`
4876
+ # : An [Empty message](https://developers.google.com/protocol-buffers/docs/
4877
+ # reference/google.protobuf#empty) Note: You should always train an agent prior
4878
+ # to sending it queries. See the [training documentation](https://cloud.google.
4879
+ # com/dialogflow/es/docs/training).
4685
4880
  # @param [String] parent
4686
4881
  # Required. The name of the entity type to create entities in. Format: `projects/
4687
4882
  # /agent/entityTypes/`.
@@ -4715,9 +4910,15 @@ module Google
4715
4910
  execute_or_queue_command(command, &block)
4716
4911
  end
4717
4912
 
4718
- # Deletes entities in the specified entity type. Note: You should always train
4719
- # an agent prior to sending it queries. See the [training documentation](https://
4720
- # cloud.google.com/dialogflow/es/docs/training).
4913
+ # Deletes entities in the specified entity type. This method is a [long-running
4914
+ # operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-
4915
+ # operations). The returned `Operation` type has the following method-specific
4916
+ # fields: - `metadata`: An empty [Struct message](https://developers.google.com/
4917
+ # protocol-buffers/docs/reference/google.protobuf#struct) - `response`: An [
4918
+ # Empty message](https://developers.google.com/protocol-buffers/docs/reference/
4919
+ # google.protobuf#empty) Note: You should always train an agent prior to sending
4920
+ # it queries. See the [training documentation](https://cloud.google.com/
4921
+ # dialogflow/es/docs/training).
4721
4922
  # @param [String] parent
4722
4923
  # Required. The name of the entity type to delete entries for. Format: `projects/
4723
4924
  # /agent/entityTypes/`.
@@ -4753,9 +4954,14 @@ module Google
4753
4954
 
4754
4955
  # Updates or creates multiple entities in the specified entity type. This method
4755
4956
  # does not affect entities in the entity type that aren't explicitly specified
4756
- # in the request. Note: You should always train an agent prior to sending it
4757
- # queries. See the [training documentation](https://cloud.google.com/dialogflow/
4758
- # es/docs/training).
4957
+ # in the request. This method is a [long-running operation](https://cloud.google.
4958
+ # com/dialogflow/es/docs/how/long-running-operations). The returned `Operation`
4959
+ # type has the following method-specific fields: - `metadata`: An empty [Struct
4960
+ # message](https://developers.google.com/protocol-buffers/docs/reference/google.
4961
+ # protobuf#struct) - `response`: An [Empty message](https://developers.google.
4962
+ # com/protocol-buffers/docs/reference/google.protobuf#empty) Note: You should
4963
+ # always train an agent prior to sending it queries. See the [training
4964
+ # documentation](https://cloud.google.com/dialogflow/es/docs/training).
4759
4965
  # @param [String] parent
4760
4966
  # Required. The name of the entity type to update or create entities in. Format:
4761
4967
  # `projects//agent/entityTypes/`.
@@ -5533,9 +5739,15 @@ module Google
5533
5739
  execute_or_queue_command(command, &block)
5534
5740
  end
5535
5741
 
5536
- # Deletes intents in the specified agent. Note: You should always train an agent
5537
- # prior to sending it queries. See the [training documentation](https://cloud.
5538
- # google.com/dialogflow/es/docs/training).
5742
+ # Deletes intents in the specified agent. This method is a [long-running
5743
+ # operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-
5744
+ # operations). The returned `Operation` type has the following method-specific
5745
+ # fields: - `metadata`: An empty [Struct message](https://developers.google.com/
5746
+ # protocol-buffers/docs/reference/google.protobuf#struct) - `response`: An [
5747
+ # Empty message](https://developers.google.com/protocol-buffers/docs/reference/
5748
+ # google.protobuf#empty) Note: You should always train an agent prior to sending
5749
+ # it queries. See the [training documentation](https://cloud.google.com/
5750
+ # dialogflow/es/docs/training).
5539
5751
  # @param [String] parent
5540
5752
  # Required. The name of the agent to delete all entities types for. Format: `
5541
5753
  # projects//agent`.
@@ -5569,9 +5781,14 @@ module Google
5569
5781
  execute_or_queue_command(command, &block)
5570
5782
  end
5571
5783
 
5572
- # Updates/Creates multiple intents in the specified agent. Note: You should
5573
- # always train an agent prior to sending it queries. See the [training
5574
- # documentation](https://cloud.google.com/dialogflow/es/docs/training).
5784
+ # Updates/Creates multiple intents in the specified agent. This method is a [
5785
+ # long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-
5786
+ # running-operations). The returned `Operation` type has the following method-
5787
+ # specific fields: - `metadata`: An empty [Struct message](https://developers.
5788
+ # google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`
5789
+ # : BatchUpdateIntentsResponse Note: You should always train an agent prior to
5790
+ # sending it queries. See the [training documentation](https://cloud.google.com/
5791
+ # dialogflow/es/docs/training).
5575
5792
  # @param [String] parent
5576
5793
  # Required. The name of the agent to update or create intents in. Format: `
5577
5794
  # projects//agent`.
@@ -7357,7 +7574,10 @@ module Google
7357
7574
  execute_or_queue_command(command, &block)
7358
7575
  end
7359
7576
 
7360
- # Creates a new document. Operation
7577
+ # Creates a new document. This method is a [long-running operation](https://
7578
+ # cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `
7579
+ # Operation` type has the following method-specific fields: - `metadata`:
7580
+ # KnowledgeOperationMetadata - `response`: Document
7361
7581
  # @param [String] parent
7362
7582
  # Required. The knowledge base to create a document for. Format: `projects//
7363
7583
  # locations//knowledgeBases/`.
@@ -7391,7 +7611,11 @@ module Google
7391
7611
  execute_or_queue_command(command, &block)
7392
7612
  end
7393
7613
 
7394
- # Deletes the specified document. Operation
7614
+ # Deletes the specified document. This method is a [long-running operation](
7615
+ # https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The
7616
+ # returned `Operation` type has the following method-specific fields: - `
7617
+ # metadata`: KnowledgeOperationMetadata - `response`: An [Empty message](https://
7618
+ # developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
7395
7619
  # @param [String] name
7396
7620
  # Required. The name of the document to delete. Format: `projects//locations//
7397
7621
  # knowledgeBases//documents/`.
@@ -7491,7 +7715,10 @@ module Google
7491
7715
  execute_or_queue_command(command, &block)
7492
7716
  end
7493
7717
 
7494
- # Updates the specified document. Operation
7718
+ # Updates the specified document. This method is a [long-running operation](
7719
+ # https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The
7720
+ # returned `Operation` type has the following method-specific fields: - `
7721
+ # metadata`: KnowledgeOperationMetadata - `response`: Document
7495
7722
  # @param [String] name
7496
7723
  # Optional. The document resource name. The name must be empty when creating a
7497
7724
  # document. Format: `projects//locations//knowledgeBases//documents/`.
@@ -7533,9 +7760,12 @@ module Google
7533
7760
  # Reloads the specified document from its specified source, content_uri or
7534
7761
  # content. The previously loaded content of the document will be deleted. Note:
7535
7762
  # Even when the content of the document has not changed, there still may be side
7536
- # effects because of internal implementation changes. Note: The `projects.agent.
7537
- # knowledgeBases.documents` resource is deprecated; only use `projects.
7538
- # knowledgeBases.documents`. Operation
7763
+ # effects because of internal implementation changes. This method is a [long-
7764
+ # running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-
7765
+ # running-operation). The returned `Operation` type has the following method-
7766
+ # specific fields: - `metadata`: KnowledgeOperationMetadata - `response`:
7767
+ # Document Note: The `projects.agent.knowledgeBases.documents` resource is
7768
+ # deprecated; only use `projects.knowledgeBases.documents`.
7539
7769
  # @param [String] name
7540
7770
  # Required. The name of the document to reload. Format: `projects//locations//
7541
7771
  # knowledgeBases//documents/`