google-apis-dialogflow_v2 0.17.0 → 0.21.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f334a5da3bb97834a0c79ec5db60b86c5c20fd4b630838a085e00453c2155bfb
4
- data.tar.gz: d3ad67857782d9cb58f860cb7e35e8e864f3cb1587a350818061773a76e696a5
3
+ metadata.gz: 27d5dcdd8f130ce07b05588c3995dc853b0ae23071cc733cbaf34b08e9a4bfab
4
+ data.tar.gz: 6646de66b802e12b445febde19519904dfa649576a2ea241680b38478d717bcb
5
5
  SHA512:
6
- metadata.gz: 50d9fdf336cd33661755e08c430b6ea7377b37d6a0d9d71860108aae03541141c264fc475f9c99132db061df0ba03d60e5256e87995aa71c75c1e90109e527ac
7
- data.tar.gz: 11201beb478cf49490672fbabc56398c2fd28ce456038d736ecfd5a6e9111a75d24889db4e9eb25617718725e5faab526c34e272e8197265de62fcd951475a7b
6
+ metadata.gz: 2fac95729cd6fa5a686b1ae6b4d150f9332a07dbfcbb768cae1a7f40ad4ff7b8c7455da783292587e4dcaac1e70fb422b618fc0c7fce64072a8a71078fed7bf8
7
+ data.tar.gz: 6a8a53a6ea5174d24346a54ebc0fe3649a2b529de360842772c8e6b5cae0647dbc5215b338b14e5893a1ff65fa7137eb05dfd135524cffe8648de129d93e5ab1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Release history for google-apis-dialogflow_v2
2
2
 
3
+ ### v0.21.0 (2021-09-11)
4
+
5
+ * Regenerated from discovery document revision 20210909
6
+
7
+ ### v0.20.0 (2021-09-01)
8
+
9
+ * Regenerated from discovery document revision 20210830
10
+
11
+ ### v0.19.0 (2021-07-30)
12
+
13
+ * Regenerated from discovery document revision 20210727
14
+
15
+ ### v0.18.0 (2021-07-09)
16
+
17
+ * Regenerated from discovery document revision 20210706
18
+
3
19
  ### v0.17.0 (2021-06-30)
4
20
 
5
21
  * Regenerated from discovery document revision 20210625
@@ -221,7 +221,8 @@ module Google
221
221
  # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3Page]
222
222
  attr_accessor :current_page
223
223
 
224
- # Required. Input only. The diagnostic info output for the turn.
224
+ # Required. Input only. The diagnostic info output for the turn. Required to
225
+ # calculate the testing coverage.
225
226
  # Corresponds to the JSON property `diagnosticInfo`
226
227
  # @return [Hash<String,Object>]
227
228
  attr_accessor :diagnostic_info
@@ -489,6 +490,7 @@ module Google
489
490
  end
490
491
 
491
492
  # Metadata returned for the TestCases.ExportTestCases long running operation.
493
+ # This message currently has no fields.
492
494
  class GoogleCloudDialogflowCxV3ExportTestCasesMetadata
493
495
  include Google::Apis::Core::Hashable
494
496
 
@@ -1868,7 +1870,8 @@ module Google
1868
1870
  end
1869
1871
  end
1870
1872
 
1871
- # Metadata returned for the TestCases.RunTestCase long running operation.
1873
+ # Metadata returned for the TestCases.RunTestCase long running operation. This
1874
+ # message currently has no fields.
1872
1875
  class GoogleCloudDialogflowCxV3RunTestCaseMetadata
1873
1876
  include Google::Apis::Core::Hashable
1874
1877
 
@@ -2759,7 +2762,8 @@ module Google
2759
2762
  # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1Page]
2760
2763
  attr_accessor :current_page
2761
2764
 
2762
- # Required. Input only. The diagnostic info output for the turn.
2765
+ # Required. Input only. The diagnostic info output for the turn. Required to
2766
+ # calculate the testing coverage.
2763
2767
  # Corresponds to the JSON property `diagnosticInfo`
2764
2768
  # @return [Hash<String,Object>]
2765
2769
  attr_accessor :diagnostic_info
@@ -3027,6 +3031,7 @@ module Google
3027
3031
  end
3028
3032
 
3029
3033
  # Metadata returned for the TestCases.ExportTestCases long running operation.
3034
+ # This message currently has no fields.
3030
3035
  class GoogleCloudDialogflowCxV3beta1ExportTestCasesMetadata
3031
3036
  include Google::Apis::Core::Hashable
3032
3037
 
@@ -4406,7 +4411,8 @@ module Google
4406
4411
  end
4407
4412
  end
4408
4413
 
4409
- # Metadata returned for the TestCases.RunTestCase long running operation.
4414
+ # Metadata returned for the TestCases.RunTestCase long running operation. This
4415
+ # message currently has no fields.
4410
4416
  class GoogleCloudDialogflowCxV3beta1RunTestCaseMetadata
4411
4417
  include Google::Apis::Core::Hashable
4412
4418
 
@@ -6592,7 +6598,7 @@ module Google
6592
6598
 
6593
6599
  # Output only. The unique identifier of this agent environment. Supported
6594
6600
  # formats: - `projects//agent/environments/` - `projects//locations//agent/
6595
- # environments/`
6601
+ # environments/` The environment ID for the default environment is `-`.
6596
6602
  # Corresponds to the JSON property `name`
6597
6603
  # @return [String]
6598
6604
  attr_accessor :name
@@ -6648,7 +6654,7 @@ module Google
6648
6654
 
6649
6655
  # Output only. The name of the environment this history is for. Supported
6650
6656
  # formats: - `projects//agent/environments/` - `projects//locations//agent/
6651
- # environments/`
6657
+ # environments/` The environment ID for the default environment is `-`.
6652
6658
  # Corresponds to the JSON property `parent`
6653
6659
  # @return [String]
6654
6660
  attr_accessor :parent
@@ -7636,8 +7642,9 @@ module Google
7636
7642
  # @return [Array<String>]
7637
7643
  attr_accessor :events
7638
7644
 
7639
- # Read-only. Information about all followup intents that have this intent as a
7640
- # direct or indirect parent. We populate this field only in the output.
7645
+ # Output only. Read-only. Information about all followup intents that have this
7646
+ # intent as a direct or indirect parent. We populate this field only in the
7647
+ # output.
7641
7648
  # Corresponds to the JSON property `followupIntentInfo`
7642
7649
  # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentFollowupIntentInfo>]
7643
7650
  attr_accessor :followup_intent_info
@@ -7722,9 +7729,10 @@ module Google
7722
7729
  attr_accessor :reset_contexts
7723
7730
  alias_method :reset_contexts?, :reset_contexts
7724
7731
 
7725
- # Read-only. The unique identifier of the root intent in the chain of followup
7726
- # intents. It identifies the correct followup intents chain for this intent. We
7727
- # populate this field only in the output. Format: `projects//agent/intents/`.
7732
+ # Output only. Read-only. The unique identifier of the root intent in the chain
7733
+ # of followup intents. It identifies the correct followup intents chain for this
7734
+ # intent. We populate this field only in the output. Format: `projects//agent/
7735
+ # intents/`.
7728
7736
  # Corresponds to the JSON property `rootFollowupIntentName`
7729
7737
  # @return [String]
7730
7738
  attr_accessor :root_followup_intent_name
@@ -10420,7 +10428,7 @@ module Google
10420
10428
  # @return [Array<String>]
10421
10429
  attr_accessor :entries
10422
10430
 
10423
- # The detailed error messsage.
10431
+ # The detailed error message.
10424
10432
  # Corresponds to the JSON property `errorMessage`
10425
10433
  # @return [String]
10426
10434
  attr_accessor :error_message
@@ -13871,6 +13879,78 @@ module Google
13871
13879
  end
13872
13880
  end
13873
13881
 
13882
+ # The response message for Locations.ListLocations.
13883
+ class GoogleCloudLocationListLocationsResponse
13884
+ include Google::Apis::Core::Hashable
13885
+
13886
+ # A list of locations that matches the specified filter in the request.
13887
+ # Corresponds to the JSON property `locations`
13888
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudLocationLocation>]
13889
+ attr_accessor :locations
13890
+
13891
+ # The standard List next-page token.
13892
+ # Corresponds to the JSON property `nextPageToken`
13893
+ # @return [String]
13894
+ attr_accessor :next_page_token
13895
+
13896
+ def initialize(**args)
13897
+ update!(**args)
13898
+ end
13899
+
13900
+ # Update properties of this object
13901
+ def update!(**args)
13902
+ @locations = args[:locations] if args.key?(:locations)
13903
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
13904
+ end
13905
+ end
13906
+
13907
+ # A resource that represents Google Cloud Platform location.
13908
+ class GoogleCloudLocationLocation
13909
+ include Google::Apis::Core::Hashable
13910
+
13911
+ # The friendly name for this location, typically a nearby city name. For example,
13912
+ # "Tokyo".
13913
+ # Corresponds to the JSON property `displayName`
13914
+ # @return [String]
13915
+ attr_accessor :display_name
13916
+
13917
+ # Cross-service attributes for the location. For example `"cloud.googleapis.com/
13918
+ # region": "us-east1"`
13919
+ # Corresponds to the JSON property `labels`
13920
+ # @return [Hash<String,String>]
13921
+ attr_accessor :labels
13922
+
13923
+ # The canonical id for this location. For example: `"us-east1"`.
13924
+ # Corresponds to the JSON property `locationId`
13925
+ # @return [String]
13926
+ attr_accessor :location_id
13927
+
13928
+ # Service-specific metadata. For example the available capacity at the given
13929
+ # location.
13930
+ # Corresponds to the JSON property `metadata`
13931
+ # @return [Hash<String,Object>]
13932
+ attr_accessor :metadata
13933
+
13934
+ # Resource name for the location, which may vary between implementations. For
13935
+ # example: `"projects/example-project/locations/us-east1"`
13936
+ # Corresponds to the JSON property `name`
13937
+ # @return [String]
13938
+ attr_accessor :name
13939
+
13940
+ def initialize(**args)
13941
+ update!(**args)
13942
+ end
13943
+
13944
+ # Update properties of this object
13945
+ def update!(**args)
13946
+ @display_name = args[:display_name] if args.key?(:display_name)
13947
+ @labels = args[:labels] if args.key?(:labels)
13948
+ @location_id = args[:location_id] if args.key?(:location_id)
13949
+ @metadata = args[:metadata] if args.key?(:metadata)
13950
+ @name = args[:name] if args.key?(:name)
13951
+ end
13952
+ end
13953
+
13874
13954
  # The response message for Operations.ListOperations.
13875
13955
  class GoogleLongrunningListOperationsResponse
13876
13956
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module DialogflowV2
18
18
  # Version of the google-apis-dialogflow_v2 gem
19
- GEM_VERSION = "0.17.0"
19
+ GEM_VERSION = "0.21.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210625"
25
+ REVISION = "20210909"
26
26
  end
27
27
  end
28
28
  end
@@ -2278,6 +2278,18 @@ module Google
2278
2278
  include Google::Apis::Core::JsonObjectSupport
2279
2279
  end
2280
2280
 
2281
+ class GoogleCloudLocationListLocationsResponse
2282
+ class Representation < Google::Apis::Core::JsonRepresentation; end
2283
+
2284
+ include Google::Apis::Core::JsonObjectSupport
2285
+ end
2286
+
2287
+ class GoogleCloudLocationLocation
2288
+ class Representation < Google::Apis::Core::JsonRepresentation; end
2289
+
2290
+ include Google::Apis::Core::JsonObjectSupport
2291
+ end
2292
+
2281
2293
  class GoogleLongrunningListOperationsResponse
2282
2294
  class Representation < Google::Apis::Core::JsonRepresentation; end
2283
2295
 
@@ -6118,6 +6130,26 @@ module Google
6118
6130
  end
6119
6131
  end
6120
6132
 
6133
+ class GoogleCloudLocationListLocationsResponse
6134
+ # @private
6135
+ class Representation < Google::Apis::Core::JsonRepresentation
6136
+ collection :locations, as: 'locations', class: Google::Apis::DialogflowV2::GoogleCloudLocationLocation, decorator: Google::Apis::DialogflowV2::GoogleCloudLocationLocation::Representation
6137
+
6138
+ property :next_page_token, as: 'nextPageToken'
6139
+ end
6140
+ end
6141
+
6142
+ class GoogleCloudLocationLocation
6143
+ # @private
6144
+ class Representation < Google::Apis::Core::JsonRepresentation
6145
+ property :display_name, as: 'displayName'
6146
+ hash :labels, as: 'labels'
6147
+ property :location_id, as: 'locationId'
6148
+ hash :metadata, as: 'metadata'
6149
+ property :name, as: 'name'
6150
+ end
6151
+ end
6152
+
6121
6153
  class GoogleLongrunningListOperationsResponse
6122
6154
  # @private
6123
6155
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -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/`.
@@ -875,7 +923,8 @@ module Google
875
923
  # Deletes the specified agent environment.
876
924
  # @param [String] name
877
925
  # Required. The name of the environment to delete. / Format: - `projects//agent/
878
- # environments/` - `projects//locations//agent/environments/`
926
+ # environments/` - `projects//locations//agent/environments/` The environment ID
927
+ # for the default environment is `-`.
879
928
  # @param [String] fields
880
929
  # Selector specifying which fields to include in a partial response.
881
930
  # @param [String] quota_user
@@ -906,7 +955,8 @@ module Google
906
955
  # Retrieves the specified agent environment.
907
956
  # @param [String] name
908
957
  # Required. The name of the environment. Supported formats: - `projects//agent/
909
- # environments/` - `projects//locations//agent/environments/`
958
+ # environments/` - `projects//locations//agent/environments/` The environment ID
959
+ # for the default environment is `-`.
910
960
  # @param [String] fields
911
961
  # Selector specifying which fields to include in a partial response.
912
962
  # @param [String] quota_user
@@ -938,7 +988,7 @@ module Google
938
988
  # @param [String] parent
939
989
  # Required. The name of the environment to retrieve history for. Supported
940
990
  # formats: - `projects//agent/environments/` - `projects//locations//agent/
941
- # environments/`
991
+ # environments/` The environment ID for the default environment is `-`.
942
992
  # @param [Fixnum] page_size
943
993
  # Optional. The maximum number of items to return in a single page. By default
944
994
  # 100 and at most 1000.
@@ -973,7 +1023,7 @@ module Google
973
1023
  execute_or_queue_command(command, &block)
974
1024
  end
975
1025
 
976
- # Returns the list of all non-draft environments of the specified agent.
1026
+ # Returns the list of all non-default environments of the specified agent.
977
1027
  # @param [String] parent
978
1028
  # Required. The agent to list all environments from. Format: - `projects//agent`
979
1029
  # - `projects//locations//agent`
@@ -1015,22 +1065,22 @@ module Google
1015
1065
  # agent versions into the environment. When an environment is pointed to a new
1016
1066
  # agent version by setting `environment.agent_version`, the environment is
1017
1067
  # temporarily set to the `LOADING` state. During that time, the environment
1018
- # keeps on serving the previous version of the agent. After the new agent
1068
+ # continues serving the previous version of the agent. After the new agent
1019
1069
  # version is done loading, the environment is set back to the `RUNNING` state.
1020
- # You can use "-" as Environment ID in environment name to update version in "
1021
- # draft" environment. WARNING: this will negate all recent changes to draft and
1022
- # can't be undone. You may want to save the draft to a version before calling
1023
- # this function.
1070
+ # You can use "-" as Environment ID in environment name to update an agent
1071
+ # version in the default environment. WARNING: this will negate all recent
1072
+ # changes to the draft agent and can't be undone. You may want to save the draft
1073
+ # agent to a version before calling this method.
1024
1074
  # @param [String] name
1025
1075
  # Output only. The unique identifier of this agent environment. Supported
1026
1076
  # formats: - `projects//agent/environments/` - `projects//locations//agent/
1027
- # environments/`
1077
+ # environments/` The environment ID for the default environment is `-`.
1028
1078
  # @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Environment] google_cloud_dialogflow_v2_environment_object
1029
1079
  # @param [Boolean] allow_load_to_draft_and_discard_changes
1030
- # Optional. This field is used to prevent accidental overwrite of the draft
1080
+ # Optional. This field is used to prevent accidental overwrite of the default
1031
1081
  # environment, which is an operation that cannot be undone. To confirm that the
1032
1082
  # caller desires this overwrite, this field must be explicitly set to true when
1033
- # updating the draft environment (environment ID = `-`).
1083
+ # updating the default environment (environment ID = `-`).
1034
1084
  # @param [String] update_mask
1035
1085
  # Required. The mask to control which fields get updated.
1036
1086
  # @param [String] fields
@@ -1577,9 +1627,15 @@ module Google
1577
1627
  execute_or_queue_command(command, &block)
1578
1628
  end
1579
1629
 
1580
- # Deletes intents in the specified agent. Note: You should always train an agent
1581
- # prior to sending it queries. See the [training documentation](https://cloud.
1582
- # 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).
1583
1639
  # @param [String] parent
1584
1640
  # Required. The name of the agent to delete all entities types for. Format: `
1585
1641
  # projects//agent`.
@@ -1613,9 +1669,14 @@ module Google
1613
1669
  execute_or_queue_command(command, &block)
1614
1670
  end
1615
1671
 
1616
- # Updates/Creates multiple intents in the specified agent. Note: You should
1617
- # always train an agent prior to sending it queries. See the [training
1618
- # 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).
1619
1680
  # @param [String] parent
1620
1681
  # Required. The name of the agent to update or create intents in. Format: `
1621
1682
  # projects//agent`.
@@ -2042,7 +2103,10 @@ module Google
2042
2103
  execute_or_queue_command(command, &block)
2043
2104
  end
2044
2105
 
2045
- # 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
2046
2110
  # @param [String] parent
2047
2111
  # Required. The knowledge base to create a document for. Format: `projects//
2048
2112
  # locations//knowledgeBases/`.
@@ -2076,7 +2140,11 @@ module Google
2076
2140
  execute_or_queue_command(command, &block)
2077
2141
  end
2078
2142
 
2079
- # 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)
2080
2148
  # @param [String] name
2081
2149
  # Required. The name of the document to delete. Format: `projects//locations//
2082
2150
  # knowledgeBases//documents/`.
@@ -2176,7 +2244,10 @@ module Google
2176
2244
  execute_or_queue_command(command, &block)
2177
2245
  end
2178
2246
 
2179
- # 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
2180
2251
  # @param [String] name
2181
2252
  # Optional. The document resource name. The name must be empty when creating a
2182
2253
  # document. Format: `projects//locations//knowledgeBases//documents/`.
@@ -2218,9 +2289,12 @@ module Google
2218
2289
  # Reloads the specified document from its specified source, content_uri or
2219
2290
  # content. The previously loaded content of the document will be deleted. Note:
2220
2291
  # Even when the content of the document has not changed, there still may be side
2221
- # effects because of internal implementation changes. Note: The `projects.agent.
2222
- # knowledgeBases.documents` resource is deprecated; only use `projects.
2223
- # 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`.
2224
2298
  # @param [String] name
2225
2299
  # Required. The name of the document to reload. Format: `projects//locations//
2226
2300
  # knowledgeBases//documents/`
@@ -3790,7 +3864,10 @@ module Google
3790
3864
  execute_or_queue_command(command, &block)
3791
3865
  end
3792
3866
 
3793
- # 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
3794
3871
  # @param [String] parent
3795
3872
  # Required. The knowledge base to create a document for. Format: `projects//
3796
3873
  # locations//knowledgeBases/`.
@@ -3824,7 +3901,11 @@ module Google
3824
3901
  execute_or_queue_command(command, &block)
3825
3902
  end
3826
3903
 
3827
- # 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)
3828
3909
  # @param [String] name
3829
3910
  # Required. The name of the document to delete. Format: `projects//locations//
3830
3911
  # knowledgeBases//documents/`.
@@ -3924,7 +4005,10 @@ module Google
3924
4005
  execute_or_queue_command(command, &block)
3925
4006
  end
3926
4007
 
3927
- # 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
3928
4012
  # @param [String] name
3929
4013
  # Optional. The document resource name. The name must be empty when creating a
3930
4014
  # document. Format: `projects//locations//knowledgeBases//documents/`.
@@ -3966,9 +4050,12 @@ module Google
3966
4050
  # Reloads the specified document from its specified source, content_uri or
3967
4051
  # content. The previously loaded content of the document will be deleted. Note:
3968
4052
  # Even when the content of the document has not changed, there still may be side
3969
- # effects because of internal implementation changes. Note: The `projects.agent.
3970
- # knowledgeBases.documents` resource is deprecated; only use `projects.
3971
- # 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`.
3972
4059
  # @param [String] name
3973
4060
  # Required. The name of the document to reload. Format: `projects//locations//
3974
4061
  # knowledgeBases//documents/`
@@ -4033,6 +4120,36 @@ module Google
4033
4120
  execute_or_queue_command(command, &block)
4034
4121
  end
4035
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
+
4036
4153
  # Retrieves the specified agent.
4037
4154
  # @param [String] parent
4038
4155
  # Required. The project that the agent to fetch is associated with. Format: `
@@ -4064,6 +4181,49 @@ module Google
4064
4181
  execute_or_queue_command(command, &block)
4065
4182
  end
4066
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
+
4067
4227
  # Creates/updates the specified agent. Note: You should always train an agent
4068
4228
  # prior to sending it queries. See the [training documentation](https://cloud.
4069
4229
  # google.com/dialogflow/es/docs/training).
@@ -4102,7 +4262,12 @@ module Google
4102
4262
  execute_or_queue_command(command, &block)
4103
4263
  end
4104
4264
 
4105
- # 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
4106
4271
  # @param [String] parent
4107
4272
  # Required. The project that the agent to export is associated with. Format: `
4108
4273
  # projects/`.
@@ -4209,8 +4374,13 @@ module Google
4209
4374
  # the import, the imported draft agent will be trained automatically (unless
4210
4375
  # disabled in agent settings). However, once the import is done, training may
4211
4376
  # not be completed yet. Please call TrainAgent and wait for the operation it
4212
- # returns in order to train explicitly. An operation which tracks when importing
4213
- # 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
4214
4384
  # done training. Note: You should always train an agent prior to sending it
4215
4385
  # queries. See the [training documentation](https://cloud.google.com/dialogflow/
4216
4386
  # es/docs/training).
@@ -4252,9 +4422,14 @@ module Google
4252
4422
  # are deleted. After the restore, the restored draft agent will be trained
4253
4423
  # automatically (unless disabled in agent settings). However, once the restore
4254
4424
  # is done, training may not be completed yet. Please call TrainAgent and wait
4255
- # for the operation it returns in order to train explicitly. An operation which
4256
- # tracks when restoring is complete. It only tracks when the draft agent is
4257
- # 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
4258
4433
  # prior to sending it queries. See the [training documentation](https://cloud.
4259
4434
  # google.com/dialogflow/es/docs/training).
4260
4435
  # @param [String] parent
@@ -4331,9 +4506,14 @@ module Google
4331
4506
  execute_or_queue_command(command, &block)
4332
4507
  end
4333
4508
 
4334
- # Trains the specified agent. Note: You should always train an agent prior to
4335
- # sending it queries. See the [training documentation](https://cloud.google.com/
4336
- # 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).
4337
4517
  # @param [String] parent
4338
4518
  # Required. The project that the agent to train is associated with. Format: `
4339
4519
  # projects/`.
@@ -4406,9 +4586,15 @@ module Google
4406
4586
  execute_or_queue_command(command, &block)
4407
4587
  end
4408
4588
 
4409
- # Deletes entity types in the specified agent. Note: You should always train an
4410
- # agent prior to sending it queries. See the [training documentation](https://
4411
- # 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).
4412
4598
  # @param [String] parent
4413
4599
  # Required. The name of the agent to delete all entities types for. Format: `
4414
4600
  # projects//agent`.
@@ -4442,9 +4628,14 @@ module Google
4442
4628
  execute_or_queue_command(command, &block)
4443
4629
  end
4444
4630
 
4445
- # Updates/Creates multiple entity types in the specified agent. Note: You should
4446
- # always train an agent prior to sending it queries. See the [training
4447
- # 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).
4448
4639
  # @param [String] parent
4449
4640
  # Required. The name of the agent to update or create entity types in. Format: `
4450
4641
  # projects//agent`.
@@ -4677,9 +4868,15 @@ module Google
4677
4868
  execute_or_queue_command(command, &block)
4678
4869
  end
4679
4870
 
4680
- # Creates multiple new entities in the specified entity type. Note: You should
4681
- # always train an agent prior to sending it queries. See the [training
4682
- # 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).
4683
4880
  # @param [String] parent
4684
4881
  # Required. The name of the entity type to create entities in. Format: `projects/
4685
4882
  # /agent/entityTypes/`.
@@ -4713,9 +4910,15 @@ module Google
4713
4910
  execute_or_queue_command(command, &block)
4714
4911
  end
4715
4912
 
4716
- # Deletes entities in the specified entity type. Note: You should always train
4717
- # an agent prior to sending it queries. See the [training documentation](https://
4718
- # 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).
4719
4922
  # @param [String] parent
4720
4923
  # Required. The name of the entity type to delete entries for. Format: `projects/
4721
4924
  # /agent/entityTypes/`.
@@ -4751,9 +4954,14 @@ module Google
4751
4954
 
4752
4955
  # Updates or creates multiple entities in the specified entity type. This method
4753
4956
  # does not affect entities in the entity type that aren't explicitly specified
4754
- # in the request. Note: You should always train an agent prior to sending it
4755
- # queries. See the [training documentation](https://cloud.google.com/dialogflow/
4756
- # 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).
4757
4965
  # @param [String] parent
4758
4966
  # Required. The name of the entity type to update or create entities in. Format:
4759
4967
  # `projects//agent/entityTypes/`.
@@ -4827,7 +5035,8 @@ module Google
4827
5035
  # Deletes the specified agent environment.
4828
5036
  # @param [String] name
4829
5037
  # Required. The name of the environment to delete. / Format: - `projects//agent/
4830
- # environments/` - `projects//locations//agent/environments/`
5038
+ # environments/` - `projects//locations//agent/environments/` The environment ID
5039
+ # for the default environment is `-`.
4831
5040
  # @param [String] fields
4832
5041
  # Selector specifying which fields to include in a partial response.
4833
5042
  # @param [String] quota_user
@@ -4858,7 +5067,8 @@ module Google
4858
5067
  # Retrieves the specified agent environment.
4859
5068
  # @param [String] name
4860
5069
  # Required. The name of the environment. Supported formats: - `projects//agent/
4861
- # environments/` - `projects//locations//agent/environments/`
5070
+ # environments/` - `projects//locations//agent/environments/` The environment ID
5071
+ # for the default environment is `-`.
4862
5072
  # @param [String] fields
4863
5073
  # Selector specifying which fields to include in a partial response.
4864
5074
  # @param [String] quota_user
@@ -4890,7 +5100,7 @@ module Google
4890
5100
  # @param [String] parent
4891
5101
  # Required. The name of the environment to retrieve history for. Supported
4892
5102
  # formats: - `projects//agent/environments/` - `projects//locations//agent/
4893
- # environments/`
5103
+ # environments/` The environment ID for the default environment is `-`.
4894
5104
  # @param [Fixnum] page_size
4895
5105
  # Optional. The maximum number of items to return in a single page. By default
4896
5106
  # 100 and at most 1000.
@@ -4925,7 +5135,7 @@ module Google
4925
5135
  execute_or_queue_command(command, &block)
4926
5136
  end
4927
5137
 
4928
- # Returns the list of all non-draft environments of the specified agent.
5138
+ # Returns the list of all non-default environments of the specified agent.
4929
5139
  # @param [String] parent
4930
5140
  # Required. The agent to list all environments from. Format: - `projects//agent`
4931
5141
  # - `projects//locations//agent`
@@ -4967,22 +5177,22 @@ module Google
4967
5177
  # agent versions into the environment. When an environment is pointed to a new
4968
5178
  # agent version by setting `environment.agent_version`, the environment is
4969
5179
  # temporarily set to the `LOADING` state. During that time, the environment
4970
- # keeps on serving the previous version of the agent. After the new agent
5180
+ # continues serving the previous version of the agent. After the new agent
4971
5181
  # version is done loading, the environment is set back to the `RUNNING` state.
4972
- # You can use "-" as Environment ID in environment name to update version in "
4973
- # draft" environment. WARNING: this will negate all recent changes to draft and
4974
- # can't be undone. You may want to save the draft to a version before calling
4975
- # this function.
5182
+ # You can use "-" as Environment ID in environment name to update an agent
5183
+ # version in the default environment. WARNING: this will negate all recent
5184
+ # changes to the draft agent and can't be undone. You may want to save the draft
5185
+ # agent to a version before calling this method.
4976
5186
  # @param [String] name
4977
5187
  # Output only. The unique identifier of this agent environment. Supported
4978
5188
  # formats: - `projects//agent/environments/` - `projects//locations//agent/
4979
- # environments/`
5189
+ # environments/` The environment ID for the default environment is `-`.
4980
5190
  # @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Environment] google_cloud_dialogflow_v2_environment_object
4981
5191
  # @param [Boolean] allow_load_to_draft_and_discard_changes
4982
- # Optional. This field is used to prevent accidental overwrite of the draft
5192
+ # Optional. This field is used to prevent accidental overwrite of the default
4983
5193
  # environment, which is an operation that cannot be undone. To confirm that the
4984
5194
  # caller desires this overwrite, this field must be explicitly set to true when
4985
- # updating the draft environment (environment ID = `-`).
5195
+ # updating the default environment (environment ID = `-`).
4986
5196
  # @param [String] update_mask
4987
5197
  # Required. The mask to control which fields get updated.
4988
5198
  # @param [String] fields
@@ -5529,9 +5739,15 @@ module Google
5529
5739
  execute_or_queue_command(command, &block)
5530
5740
  end
5531
5741
 
5532
- # Deletes intents in the specified agent. Note: You should always train an agent
5533
- # prior to sending it queries. See the [training documentation](https://cloud.
5534
- # 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).
5535
5751
  # @param [String] parent
5536
5752
  # Required. The name of the agent to delete all entities types for. Format: `
5537
5753
  # projects//agent`.
@@ -5565,9 +5781,14 @@ module Google
5565
5781
  execute_or_queue_command(command, &block)
5566
5782
  end
5567
5783
 
5568
- # Updates/Creates multiple intents in the specified agent. Note: You should
5569
- # always train an agent prior to sending it queries. See the [training
5570
- # 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).
5571
5792
  # @param [String] parent
5572
5793
  # Required. The name of the agent to update or create intents in. Format: `
5573
5794
  # projects//agent`.
@@ -7353,7 +7574,10 @@ module Google
7353
7574
  execute_or_queue_command(command, &block)
7354
7575
  end
7355
7576
 
7356
- # 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
7357
7581
  # @param [String] parent
7358
7582
  # Required. The knowledge base to create a document for. Format: `projects//
7359
7583
  # locations//knowledgeBases/`.
@@ -7387,7 +7611,11 @@ module Google
7387
7611
  execute_or_queue_command(command, &block)
7388
7612
  end
7389
7613
 
7390
- # 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)
7391
7619
  # @param [String] name
7392
7620
  # Required. The name of the document to delete. Format: `projects//locations//
7393
7621
  # knowledgeBases//documents/`.
@@ -7487,7 +7715,10 @@ module Google
7487
7715
  execute_or_queue_command(command, &block)
7488
7716
  end
7489
7717
 
7490
- # 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
7491
7722
  # @param [String] name
7492
7723
  # Optional. The document resource name. The name must be empty when creating a
7493
7724
  # document. Format: `projects//locations//knowledgeBases//documents/`.
@@ -7529,9 +7760,12 @@ module Google
7529
7760
  # Reloads the specified document from its specified source, content_uri or
7530
7761
  # content. The previously loaded content of the document will be deleted. Note:
7531
7762
  # Even when the content of the document has not changed, there still may be side
7532
- # effects because of internal implementation changes. Note: The `projects.agent.
7533
- # knowledgeBases.documents` resource is deprecated; only use `projects.
7534
- # 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`.
7535
7769
  # @param [String] name
7536
7770
  # Required. The name of the document to reload. Format: `projects//locations//
7537
7771
  # knowledgeBases//documents/`
@@ -30,7 +30,7 @@ module Google
30
30
  # This is NOT the gem version.
31
31
  VERSION = 'V2'
32
32
 
33
- # See, edit, configure, and delete your Google Cloud Platform data
33
+ # See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
34
34
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
35
35
 
36
36
  # View, manage and query your Dialogflow agents
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-dialogflow_v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.0
4
+ version: 0.21.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: 2021-07-05 00:00:00.000000000 Z
11
+ date: 2021-09-13 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/master/generated/google-apis-dialogflow_v2/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-dialogflow_v2/v0.17.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-dialogflow_v2/v0.21.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-dialogflow_v2
63
63
  post_install_message:
64
64
  rdoc_options: []