google-cloud-dialogflow-v2 0.5.1 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 879998d05704abb133e17f2547d835b3fbba81ce1f8f0ea6bda560869d7b2ce2
4
- data.tar.gz: 7cb63dc055648fdd47915120a22787e0e7cfaf2fccb064aa173cc7c699c1d788
3
+ metadata.gz: 8778c9769288dff529799ae3228da049e5d628f4cbec257fb80c1e82ef929056
4
+ data.tar.gz: 35271b70f7ba13a85d49719097f82c64f0c99cddb84bc2567ce048ecbf229563
5
5
  SHA512:
6
- metadata.gz: 195e8765cc54dd7d4d90558e7f0a8aafff5cdd5f6cbdc022aba66f26cf51c28531be15f6e3d9f7434323eb01f8c4d4be5b3683e4b88ae652e51b0e548b863e5e
7
- data.tar.gz: d6c37dc240a09d8167342c961cca5f0145de13ece15ec033b7f24bf920b1888cbca617f720829c5aed5035f5c1af6fc953f4f914ab28f8d958176bb63714764e
6
+ metadata.gz: fabb43bf1ff0bd0ed2451474bc901371a6fb2e219688a199d97ac4b632cc4170f7c97207640d100ffad4e653860cb83bb8da21496ded74ab7512401d8afb128f
7
+ data.tar.gz: 7518de9a6e44889b05be15ea0df2e687e13921f52b4969da4c0e23370eadec1b79587371500256fc30e04cc935e34ca9bc7125ab2ab4e24cf62eb1f8ef9b2e94
@@ -215,7 +215,8 @@ module Google
215
215
  if credentials.is_a?(String) || credentials.is_a?(Hash)
216
216
  credentials = Credentials.new credentials, scope: @config.scope
217
217
  end
218
- @quota_project_id = credentials.respond_to?(:quota_project_id) ? credentials.quota_project_id : nil
218
+ @quota_project_id = @config.quota_project
219
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
219
220
 
220
221
  @operations_client = Operations.new do |config|
221
222
  config.credentials = credentials
@@ -973,24 +974,28 @@ module Google
973
974
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
974
975
  # trigger a retry.
975
976
  # @return [::Hash]
977
+ # @!attribute [rw] quota_project
978
+ # A separate project against which to charge quota.
979
+ # @return [::String]
976
980
  #
977
981
  class Configuration
978
982
  extend ::Gapic::Config
979
983
 
980
- config_attr :endpoint, "dialogflow.googleapis.com", String
981
- config_attr :credentials, nil do |value|
984
+ config_attr :endpoint, "dialogflow.googleapis.com", ::String
985
+ config_attr :credentials, nil do |value|
982
986
  allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
983
987
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
984
988
  allowed.any? { |klass| klass === value }
985
989
  end
986
- config_attr :scope, nil, ::String, ::Array, nil
987
- config_attr :lib_name, nil, ::String, nil
988
- config_attr :lib_version, nil, ::String, nil
989
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
990
- config_attr :interceptors, nil, ::Array, nil
991
- config_attr :timeout, nil, ::Numeric, nil
992
- config_attr :metadata, nil, ::Hash, nil
993
- config_attr :retry_policy, nil, ::Hash, Proc, nil
990
+ config_attr :scope, nil, ::String, ::Array, nil
991
+ config_attr :lib_name, nil, ::String, nil
992
+ config_attr :lib_version, nil, ::String, nil
993
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
994
+ config_attr :interceptors, nil, ::Array, nil
995
+ config_attr :timeout, nil, ::Numeric, nil
996
+ config_attr :metadata, nil, ::Hash, nil
997
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
998
+ config_attr :quota_project, nil, ::String, nil
994
999
 
995
1000
  # @private
996
1001
  def initialize parent_config = nil
@@ -464,24 +464,28 @@ module Google
464
464
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
465
465
  # trigger a retry.
466
466
  # @return [::Hash]
467
+ # @!attribute [rw] quota_project
468
+ # A separate project against which to charge quota.
469
+ # @return [::String]
467
470
  #
468
471
  class Configuration
469
472
  extend ::Gapic::Config
470
473
 
471
- config_attr :endpoint, "dialogflow.googleapis.com", String
472
- config_attr :credentials, nil do |value|
474
+ config_attr :endpoint, "dialogflow.googleapis.com", ::String
475
+ config_attr :credentials, nil do |value|
473
476
  allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
474
477
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
475
478
  allowed.any? { |klass| klass === value }
476
479
  end
477
- config_attr :scope, nil, ::String, ::Array, nil
478
- config_attr :lib_name, nil, ::String, nil
479
- config_attr :lib_version, nil, ::String, nil
480
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
481
- config_attr :interceptors, nil, ::Array, nil
482
- config_attr :timeout, nil, ::Numeric, nil
483
- config_attr :metadata, nil, ::Hash, nil
484
- config_attr :retry_policy, nil, ::Hash, Proc, nil
480
+ config_attr :scope, nil, ::String, ::Array, nil
481
+ config_attr :lib_name, nil, ::String, nil
482
+ config_attr :lib_version, nil, ::String, nil
483
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
484
+ config_attr :interceptors, nil, ::Array, nil
485
+ config_attr :timeout, nil, ::Numeric, nil
486
+ config_attr :metadata, nil, ::Hash, nil
487
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
488
+ config_attr :quota_project, nil, ::String, nil
485
489
 
486
490
  # @private
487
491
  def initialize parent_config = nil
@@ -183,7 +183,8 @@ module Google
183
183
  if credentials.is_a?(String) || credentials.is_a?(Hash)
184
184
  credentials = Credentials.new credentials, scope: @config.scope
185
185
  end
186
- @quota_project_id = credentials.respond_to?(:quota_project_id) ? credentials.quota_project_id : nil
186
+ @quota_project_id = @config.quota_project
187
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
187
188
 
188
189
  @contexts_stub = ::Gapic::ServiceStub.new(
189
190
  ::Google::Cloud::Dialogflow::V2::Contexts::Stub,
@@ -705,24 +706,28 @@ module Google
705
706
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
706
707
  # trigger a retry.
707
708
  # @return [::Hash]
709
+ # @!attribute [rw] quota_project
710
+ # A separate project against which to charge quota.
711
+ # @return [::String]
708
712
  #
709
713
  class Configuration
710
714
  extend ::Gapic::Config
711
715
 
712
- config_attr :endpoint, "dialogflow.googleapis.com", String
713
- config_attr :credentials, nil do |value|
716
+ config_attr :endpoint, "dialogflow.googleapis.com", ::String
717
+ config_attr :credentials, nil do |value|
714
718
  allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
715
719
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
716
720
  allowed.any? { |klass| klass === value }
717
721
  end
718
- config_attr :scope, nil, ::String, ::Array, nil
719
- config_attr :lib_name, nil, ::String, nil
720
- config_attr :lib_version, nil, ::String, nil
721
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
722
- config_attr :interceptors, nil, ::Array, nil
723
- config_attr :timeout, nil, ::Numeric, nil
724
- config_attr :metadata, nil, ::Hash, nil
725
- config_attr :retry_policy, nil, ::Hash, Proc, nil
722
+ config_attr :scope, nil, ::String, ::Array, nil
723
+ config_attr :lib_name, nil, ::String, nil
724
+ config_attr :lib_version, nil, ::String, nil
725
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
726
+ config_attr :interceptors, nil, ::Array, nil
727
+ config_attr :timeout, nil, ::Numeric, nil
728
+ config_attr :metadata, nil, ::Hash, nil
729
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
730
+ config_attr :quota_project, nil, ::String, nil
726
731
 
727
732
  # @private
728
733
  def initialize parent_config = nil
@@ -207,7 +207,8 @@ module Google
207
207
  if credentials.is_a?(String) || credentials.is_a?(Hash)
208
208
  credentials = Credentials.new credentials, scope: @config.scope
209
209
  end
210
- @quota_project_id = credentials.respond_to?(:quota_project_id) ? credentials.quota_project_id : nil
210
+ @quota_project_id = @config.quota_project
211
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
211
212
 
212
213
  @operations_client = Operations.new do |config|
213
214
  config.credentials = credentials
@@ -1076,24 +1077,28 @@ module Google
1076
1077
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
1077
1078
  # trigger a retry.
1078
1079
  # @return [::Hash]
1080
+ # @!attribute [rw] quota_project
1081
+ # A separate project against which to charge quota.
1082
+ # @return [::String]
1079
1083
  #
1080
1084
  class Configuration
1081
1085
  extend ::Gapic::Config
1082
1086
 
1083
- config_attr :endpoint, "dialogflow.googleapis.com", String
1084
- config_attr :credentials, nil do |value|
1087
+ config_attr :endpoint, "dialogflow.googleapis.com", ::String
1088
+ config_attr :credentials, nil do |value|
1085
1089
  allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1086
1090
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
1087
1091
  allowed.any? { |klass| klass === value }
1088
1092
  end
1089
- config_attr :scope, nil, ::String, ::Array, nil
1090
- config_attr :lib_name, nil, ::String, nil
1091
- config_attr :lib_version, nil, ::String, nil
1092
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
1093
- config_attr :interceptors, nil, ::Array, nil
1094
- config_attr :timeout, nil, ::Numeric, nil
1095
- config_attr :metadata, nil, ::Hash, nil
1096
- config_attr :retry_policy, nil, ::Hash, Proc, nil
1093
+ config_attr :scope, nil, ::String, ::Array, nil
1094
+ config_attr :lib_name, nil, ::String, nil
1095
+ config_attr :lib_version, nil, ::String, nil
1096
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
1097
+ config_attr :interceptors, nil, ::Array, nil
1098
+ config_attr :timeout, nil, ::Numeric, nil
1099
+ config_attr :metadata, nil, ::Hash, nil
1100
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
1101
+ config_attr :quota_project, nil, ::String, nil
1097
1102
 
1098
1103
  # @private
1099
1104
  def initialize parent_config = nil
@@ -464,24 +464,28 @@ module Google
464
464
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
465
465
  # trigger a retry.
466
466
  # @return [::Hash]
467
+ # @!attribute [rw] quota_project
468
+ # A separate project against which to charge quota.
469
+ # @return [::String]
467
470
  #
468
471
  class Configuration
469
472
  extend ::Gapic::Config
470
473
 
471
- config_attr :endpoint, "dialogflow.googleapis.com", String
472
- config_attr :credentials, nil do |value|
474
+ config_attr :endpoint, "dialogflow.googleapis.com", ::String
475
+ config_attr :credentials, nil do |value|
473
476
  allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
474
477
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
475
478
  allowed.any? { |klass| klass === value }
476
479
  end
477
- config_attr :scope, nil, ::String, ::Array, nil
478
- config_attr :lib_name, nil, ::String, nil
479
- config_attr :lib_version, nil, ::String, nil
480
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
481
- config_attr :interceptors, nil, ::Array, nil
482
- config_attr :timeout, nil, ::Numeric, nil
483
- config_attr :metadata, nil, ::Hash, nil
484
- config_attr :retry_policy, nil, ::Hash, Proc, nil
480
+ config_attr :scope, nil, ::String, ::Array, nil
481
+ config_attr :lib_name, nil, ::String, nil
482
+ config_attr :lib_version, nil, ::String, nil
483
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
484
+ config_attr :interceptors, nil, ::Array, nil
485
+ config_attr :timeout, nil, ::Numeric, nil
486
+ config_attr :metadata, nil, ::Hash, nil
487
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
488
+ config_attr :quota_project, nil, ::String, nil
485
489
 
486
490
  # @private
487
491
  def initialize parent_config = nil
@@ -138,7 +138,8 @@ module Google
138
138
  if credentials.is_a?(String) || credentials.is_a?(Hash)
139
139
  credentials = Credentials.new credentials, scope: @config.scope
140
140
  end
141
- @quota_project_id = credentials.respond_to?(:quota_project_id) ? credentials.quota_project_id : nil
141
+ @quota_project_id = @config.quota_project
142
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
142
143
 
143
144
  @environments_stub = ::Gapic::ServiceStub.new(
144
145
  ::Google::Cloud::Dialogflow::V2::Environments::Stub,
@@ -300,24 +301,28 @@ module Google
300
301
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
301
302
  # trigger a retry.
302
303
  # @return [::Hash]
304
+ # @!attribute [rw] quota_project
305
+ # A separate project against which to charge quota.
306
+ # @return [::String]
303
307
  #
304
308
  class Configuration
305
309
  extend ::Gapic::Config
306
310
 
307
- config_attr :endpoint, "dialogflow.googleapis.com", String
308
- config_attr :credentials, nil do |value|
311
+ config_attr :endpoint, "dialogflow.googleapis.com", ::String
312
+ config_attr :credentials, nil do |value|
309
313
  allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
310
314
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
311
315
  allowed.any? { |klass| klass === value }
312
316
  end
313
- config_attr :scope, nil, ::String, ::Array, nil
314
- config_attr :lib_name, nil, ::String, nil
315
- config_attr :lib_version, nil, ::String, nil
316
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
317
- config_attr :interceptors, nil, ::Array, nil
318
- config_attr :timeout, nil, ::Numeric, nil
319
- config_attr :metadata, nil, ::Hash, nil
320
- config_attr :retry_policy, nil, ::Hash, Proc, nil
317
+ config_attr :scope, nil, ::String, ::Array, nil
318
+ config_attr :lib_name, nil, ::String, nil
319
+ config_attr :lib_version, nil, ::String, nil
320
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
321
+ config_attr :interceptors, nil, ::Array, nil
322
+ config_attr :timeout, nil, ::Numeric, nil
323
+ config_attr :metadata, nil, ::Hash, nil
324
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
325
+ config_attr :quota_project, nil, ::String, nil
321
326
 
322
327
  # @private
323
328
  def initialize parent_config = nil
@@ -199,7 +199,8 @@ module Google
199
199
  if credentials.is_a?(String) || credentials.is_a?(Hash)
200
200
  credentials = Credentials.new credentials, scope: @config.scope
201
201
  end
202
- @quota_project_id = credentials.respond_to?(:quota_project_id) ? credentials.quota_project_id : nil
202
+ @quota_project_id = @config.quota_project
203
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
203
204
 
204
205
  @operations_client = Operations.new do |config|
205
206
  config.credentials = credentials
@@ -836,24 +837,28 @@ module Google
836
837
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
837
838
  # trigger a retry.
838
839
  # @return [::Hash]
840
+ # @!attribute [rw] quota_project
841
+ # A separate project against which to charge quota.
842
+ # @return [::String]
839
843
  #
840
844
  class Configuration
841
845
  extend ::Gapic::Config
842
846
 
843
- config_attr :endpoint, "dialogflow.googleapis.com", String
844
- config_attr :credentials, nil do |value|
847
+ config_attr :endpoint, "dialogflow.googleapis.com", ::String
848
+ config_attr :credentials, nil do |value|
845
849
  allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
846
850
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
847
851
  allowed.any? { |klass| klass === value }
848
852
  end
849
- config_attr :scope, nil, ::String, ::Array, nil
850
- config_attr :lib_name, nil, ::String, nil
851
- config_attr :lib_version, nil, ::String, nil
852
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
853
- config_attr :interceptors, nil, ::Array, nil
854
- config_attr :timeout, nil, ::Numeric, nil
855
- config_attr :metadata, nil, ::Hash, nil
856
- config_attr :retry_policy, nil, ::Hash, Proc, nil
853
+ config_attr :scope, nil, ::String, ::Array, nil
854
+ config_attr :lib_name, nil, ::String, nil
855
+ config_attr :lib_version, nil, ::String, nil
856
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
857
+ config_attr :interceptors, nil, ::Array, nil
858
+ config_attr :timeout, nil, ::Numeric, nil
859
+ config_attr :metadata, nil, ::Hash, nil
860
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
861
+ config_attr :quota_project, nil, ::String, nil
857
862
 
858
863
  # @private
859
864
  def initialize parent_config = nil
@@ -464,24 +464,28 @@ module Google
464
464
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
465
465
  # trigger a retry.
466
466
  # @return [::Hash]
467
+ # @!attribute [rw] quota_project
468
+ # A separate project against which to charge quota.
469
+ # @return [::String]
467
470
  #
468
471
  class Configuration
469
472
  extend ::Gapic::Config
470
473
 
471
- config_attr :endpoint, "dialogflow.googleapis.com", String
472
- config_attr :credentials, nil do |value|
474
+ config_attr :endpoint, "dialogflow.googleapis.com", ::String
475
+ config_attr :credentials, nil do |value|
473
476
  allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
474
477
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
475
478
  allowed.any? { |klass| klass === value }
476
479
  end
477
- config_attr :scope, nil, ::String, ::Array, nil
478
- config_attr :lib_name, nil, ::String, nil
479
- config_attr :lib_version, nil, ::String, nil
480
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
481
- config_attr :interceptors, nil, ::Array, nil
482
- config_attr :timeout, nil, ::Numeric, nil
483
- config_attr :metadata, nil, ::Hash, nil
484
- config_attr :retry_policy, nil, ::Hash, Proc, nil
480
+ config_attr :scope, nil, ::String, ::Array, nil
481
+ config_attr :lib_name, nil, ::String, nil
482
+ config_attr :lib_version, nil, ::String, nil
483
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
484
+ config_attr :interceptors, nil, ::Array, nil
485
+ config_attr :timeout, nil, ::Numeric, nil
486
+ config_attr :metadata, nil, ::Hash, nil
487
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
488
+ config_attr :quota_project, nil, ::String, nil
485
489
 
486
490
  # @private
487
491
  def initialize parent_config = nil
@@ -174,7 +174,8 @@ module Google
174
174
  if credentials.is_a?(String) || credentials.is_a?(Hash)
175
175
  credentials = Credentials.new credentials, scope: @config.scope
176
176
  end
177
- @quota_project_id = credentials.respond_to?(:quota_project_id) ? credentials.quota_project_id : nil
177
+ @quota_project_id = @config.quota_project
178
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
178
179
 
179
180
  @session_entity_types_stub = ::Gapic::ServiceStub.new(
180
181
  ::Google::Cloud::Dialogflow::V2::SessionEntityTypes::Stub,
@@ -648,24 +649,28 @@ module Google
648
649
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
649
650
  # trigger a retry.
650
651
  # @return [::Hash]
652
+ # @!attribute [rw] quota_project
653
+ # A separate project against which to charge quota.
654
+ # @return [::String]
651
655
  #
652
656
  class Configuration
653
657
  extend ::Gapic::Config
654
658
 
655
- config_attr :endpoint, "dialogflow.googleapis.com", String
656
- config_attr :credentials, nil do |value|
659
+ config_attr :endpoint, "dialogflow.googleapis.com", ::String
660
+ config_attr :credentials, nil do |value|
657
661
  allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
658
662
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
659
663
  allowed.any? { |klass| klass === value }
660
664
  end
661
- config_attr :scope, nil, ::String, ::Array, nil
662
- config_attr :lib_name, nil, ::String, nil
663
- config_attr :lib_version, nil, ::String, nil
664
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
665
- config_attr :interceptors, nil, ::Array, nil
666
- config_attr :timeout, nil, ::Numeric, nil
667
- config_attr :metadata, nil, ::Hash, nil
668
- config_attr :retry_policy, nil, ::Hash, Proc, nil
665
+ config_attr :scope, nil, ::String, ::Array, nil
666
+ config_attr :lib_name, nil, ::String, nil
667
+ config_attr :lib_version, nil, ::String, nil
668
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
669
+ config_attr :interceptors, nil, ::Array, nil
670
+ config_attr :timeout, nil, ::Numeric, nil
671
+ config_attr :metadata, nil, ::Hash, nil
672
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
673
+ config_attr :quota_project, nil, ::String, nil
669
674
 
670
675
  # @private
671
676
  def initialize parent_config = nil
@@ -137,7 +137,8 @@ module Google
137
137
  if credentials.is_a?(String) || credentials.is_a?(Hash)
138
138
  credentials = Credentials.new credentials, scope: @config.scope
139
139
  end
140
- @quota_project_id = credentials.respond_to?(:quota_project_id) ? credentials.quota_project_id : nil
140
+ @quota_project_id = @config.quota_project
141
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
141
142
 
142
143
  @sessions_stub = ::Gapic::ServiceStub.new(
143
144
  ::Google::Cloud::Dialogflow::V2::Sessions::Stub,
@@ -383,24 +384,28 @@ module Google
383
384
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
384
385
  # trigger a retry.
385
386
  # @return [::Hash]
387
+ # @!attribute [rw] quota_project
388
+ # A separate project against which to charge quota.
389
+ # @return [::String]
386
390
  #
387
391
  class Configuration
388
392
  extend ::Gapic::Config
389
393
 
390
- config_attr :endpoint, "dialogflow.googleapis.com", String
391
- config_attr :credentials, nil do |value|
394
+ config_attr :endpoint, "dialogflow.googleapis.com", ::String
395
+ config_attr :credentials, nil do |value|
392
396
  allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
393
397
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
394
398
  allowed.any? { |klass| klass === value }
395
399
  end
396
- config_attr :scope, nil, ::String, ::Array, nil
397
- config_attr :lib_name, nil, ::String, nil
398
- config_attr :lib_version, nil, ::String, nil
399
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
400
- config_attr :interceptors, nil, ::Array, nil
401
- config_attr :timeout, nil, ::Numeric, nil
402
- config_attr :metadata, nil, ::Hash, nil
403
- config_attr :retry_policy, nil, ::Hash, Proc, nil
400
+ config_attr :scope, nil, ::String, ::Array, nil
401
+ config_attr :lib_name, nil, ::String, nil
402
+ config_attr :lib_version, nil, ::String, nil
403
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
404
+ config_attr :interceptors, nil, ::Array, nil
405
+ config_attr :timeout, nil, ::Numeric, nil
406
+ config_attr :metadata, nil, ::Hash, nil
407
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
408
+ config_attr :quota_project, nil, ::String, nil
404
409
 
405
410
  # @private
406
411
  def initialize parent_config = nil
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Dialogflow
23
23
  module V2
24
- VERSION = "0.5.1"
24
+ VERSION = "0.6.0"
25
25
  end
26
26
  end
27
27
  end
@@ -47,7 +47,7 @@ module Google
47
47
  include ::Google::Protobuf::MessageExts
48
48
  extend ::Google::Protobuf::MessageExts::ClassMethods
49
49
 
50
- # Represents an environment state. When a environment is pointed to a new
50
+ # Represents an environment state. When an environment is pointed to a new
51
51
  # agent version, the environment is temporarily set to the `LOADING` state.
52
52
  # During that time, the environment keeps on serving the previous version of
53
53
  # the agent. After the new agent version is done loading, the environment is
@@ -211,6 +211,7 @@ module Google
211
211
  # @!attribute [rw] value
212
212
  # @return [::String]
213
213
  # Optional. The definition of the parameter value. It can be:
214
+ #
214
215
  # - a constant string,
215
216
  # - a parameter value defined as `$parameter_name`,
216
217
  # - an original parameter value defined as `$parameter_name.original`,
@@ -89,6 +89,10 @@ module Google
89
89
  # multiple default text responses exist, they will be concatenated when
90
90
  # generating audio. If no default platform text responses exist, the
91
91
  # generated audio content will be empty.
92
+ #
93
+ # In some scenarios, multiple output audio fields may be present in the
94
+ # response structure. In these cases, only the top-most-level audio output
95
+ # has content.
92
96
  # @!attribute [rw] output_audio_config
93
97
  # @return [::Google::Cloud::Dialogflow::V2::OutputAudioConfig]
94
98
  # The config used by the speech synthesizer to generate the output audio.
@@ -390,6 +394,10 @@ module Google
390
394
  # multiple default text responses exist, they will be concatenated when
391
395
  # generating audio. If no default platform text responses exist, the
392
396
  # generated audio content will be empty.
397
+ #
398
+ # In some scenarios, multiple output audio fields may be present in the
399
+ # response structure. In these cases, only the top-most-level audio output
400
+ # has content.
393
401
  # @!attribute [rw] output_audio_config
394
402
  # @return [::Google::Cloud::Dialogflow::V2::OutputAudioConfig]
395
403
  # The config used by the speech synthesizer to generate the output audio.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-dialogflow-v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.6.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: 2020-05-05 00:00:00.000000000 Z
11
+ date: 2020-05-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -58,14 +58,42 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '5.10'
61
+ version: '5.14'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '5.10'
68
+ version: '5.14'
69
+ - !ruby/object:Gem::Dependency
70
+ name: minitest-focus
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '1.1'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '1.1'
83
+ - !ruby/object:Gem::Dependency
84
+ name: minitest-rg
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '5.2'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '5.2'
69
97
  - !ruby/object:Gem::Dependency
70
98
  name: rake
71
99
  requirement: !ruby/object:Gem::Requirement