google-cloud-dialogflow-cx-v3 0.22.0 → 0.24.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (89) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +72 -101
  3. data/lib/google/cloud/dialogflow/cx/v3/agent_pb.rb +2 -1
  4. data/lib/google/cloud/dialogflow/cx/v3/agents/client.rb +33 -8
  5. data/lib/google/cloud/dialogflow/cx/v3/agents/operations.rb +28 -6
  6. data/lib/google/cloud/dialogflow/cx/v3/agents/rest/client.rb +35 -7
  7. data/lib/google/cloud/dialogflow/cx/v3/agents/rest/operations.rb +33 -8
  8. data/lib/google/cloud/dialogflow/cx/v3/agents/rest/service_stub.rb +14 -2
  9. data/lib/google/cloud/dialogflow/cx/v3/audio_config_pb.rb +2 -1
  10. data/lib/google/cloud/dialogflow/cx/v3/changelogs/client.rb +32 -8
  11. data/lib/google/cloud/dialogflow/cx/v3/changelogs/rest/client.rb +34 -7
  12. data/lib/google/cloud/dialogflow/cx/v3/changelogs/rest/service_stub.rb +14 -2
  13. data/lib/google/cloud/dialogflow/cx/v3/deployments/client.rb +32 -8
  14. data/lib/google/cloud/dialogflow/cx/v3/deployments/rest/client.rb +34 -7
  15. data/lib/google/cloud/dialogflow/cx/v3/deployments/rest/service_stub.rb +14 -2
  16. data/lib/google/cloud/dialogflow/cx/v3/entity_type_pb.rb +1 -1
  17. data/lib/google/cloud/dialogflow/cx/v3/entity_type_services_pb.rb +2 -2
  18. data/lib/google/cloud/dialogflow/cx/v3/entity_types/client.rb +151 -127
  19. data/lib/google/cloud/dialogflow/cx/v3/entity_types/rest/client.rb +146 -119
  20. data/lib/google/cloud/dialogflow/cx/v3/entity_types/rest/service_stub.rb +62 -50
  21. data/lib/google/cloud/dialogflow/cx/v3/environments/client.rb +33 -8
  22. data/lib/google/cloud/dialogflow/cx/v3/environments/operations.rb +28 -6
  23. data/lib/google/cloud/dialogflow/cx/v3/environments/rest/client.rb +35 -7
  24. data/lib/google/cloud/dialogflow/cx/v3/environments/rest/operations.rb +33 -8
  25. data/lib/google/cloud/dialogflow/cx/v3/environments/rest/service_stub.rb +14 -2
  26. data/lib/google/cloud/dialogflow/cx/v3/experiments/client.rb +32 -8
  27. data/lib/google/cloud/dialogflow/cx/v3/experiments/rest/client.rb +34 -7
  28. data/lib/google/cloud/dialogflow/cx/v3/experiments/rest/service_stub.rb +14 -2
  29. data/lib/google/cloud/dialogflow/cx/v3/flows/client.rb +33 -8
  30. data/lib/google/cloud/dialogflow/cx/v3/flows/operations.rb +28 -6
  31. data/lib/google/cloud/dialogflow/cx/v3/flows/rest/client.rb +35 -7
  32. data/lib/google/cloud/dialogflow/cx/v3/flows/rest/operations.rb +33 -8
  33. data/lib/google/cloud/dialogflow/cx/v3/flows/rest/service_stub.rb +14 -2
  34. data/lib/google/cloud/dialogflow/cx/v3/generator_pb.rb +60 -0
  35. data/lib/google/cloud/dialogflow/cx/v3/generator_services_pb.rb +55 -0
  36. data/lib/google/cloud/dialogflow/cx/v3/generators/client.rb +851 -0
  37. data/lib/google/cloud/dialogflow/cx/v3/generators/credentials.rb +54 -0
  38. data/lib/google/cloud/dialogflow/cx/v3/generators/paths.rb +75 -0
  39. data/lib/google/cloud/dialogflow/cx/v3/generators/rest/client.rb +798 -0
  40. data/lib/google/cloud/dialogflow/cx/v3/generators/rest/service_stub.rb +359 -0
  41. data/lib/google/cloud/dialogflow/cx/v3/generators/rest.rb +55 -0
  42. data/lib/google/cloud/dialogflow/cx/v3/generators.rb +57 -0
  43. data/lib/google/cloud/dialogflow/cx/v3/intents/client.rb +33 -8
  44. data/lib/google/cloud/dialogflow/cx/v3/intents/operations.rb +28 -6
  45. data/lib/google/cloud/dialogflow/cx/v3/intents/rest/client.rb +35 -7
  46. data/lib/google/cloud/dialogflow/cx/v3/intents/rest/operations.rb +33 -8
  47. data/lib/google/cloud/dialogflow/cx/v3/intents/rest/service_stub.rb +14 -2
  48. data/lib/google/cloud/dialogflow/cx/v3/pages/client.rb +32 -8
  49. data/lib/google/cloud/dialogflow/cx/v3/pages/rest/client.rb +34 -7
  50. data/lib/google/cloud/dialogflow/cx/v3/pages/rest/service_stub.rb +14 -2
  51. data/lib/google/cloud/dialogflow/cx/v3/rest.rb +1 -0
  52. data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/client.rb +32 -8
  53. data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/rest/client.rb +34 -7
  54. data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/rest/service_stub.rb +14 -2
  55. data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/client.rb +32 -8
  56. data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/rest/client.rb +34 -7
  57. data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/rest/service_stub.rb +14 -2
  58. data/lib/google/cloud/dialogflow/cx/v3/session_pb.rb +12 -1
  59. data/lib/google/cloud/dialogflow/cx/v3/session_services_pb.rb +3 -0
  60. data/lib/google/cloud/dialogflow/cx/v3/sessions/client.rb +133 -8
  61. data/lib/google/cloud/dialogflow/cx/v3/sessions/paths.rb +45 -0
  62. data/lib/google/cloud/dialogflow/cx/v3/sessions/rest/client.rb +128 -7
  63. data/lib/google/cloud/dialogflow/cx/v3/sessions/rest/service_stub.rb +74 -2
  64. data/lib/google/cloud/dialogflow/cx/v3/test_cases/client.rb +33 -8
  65. data/lib/google/cloud/dialogflow/cx/v3/test_cases/operations.rb +28 -6
  66. data/lib/google/cloud/dialogflow/cx/v3/test_cases/rest/client.rb +35 -7
  67. data/lib/google/cloud/dialogflow/cx/v3/test_cases/rest/operations.rb +33 -8
  68. data/lib/google/cloud/dialogflow/cx/v3/test_cases/rest/service_stub.rb +14 -2
  69. data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/client.rb +32 -8
  70. data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/rest/client.rb +34 -7
  71. data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/rest/service_stub.rb +14 -2
  72. data/lib/google/cloud/dialogflow/cx/v3/version.rb +1 -1
  73. data/lib/google/cloud/dialogflow/cx/v3/versions/client.rb +33 -8
  74. data/lib/google/cloud/dialogflow/cx/v3/versions/operations.rb +28 -6
  75. data/lib/google/cloud/dialogflow/cx/v3/versions/rest/client.rb +35 -7
  76. data/lib/google/cloud/dialogflow/cx/v3/versions/rest/operations.rb +33 -8
  77. data/lib/google/cloud/dialogflow/cx/v3/versions/rest/service_stub.rb +14 -2
  78. data/lib/google/cloud/dialogflow/cx/v3/webhooks/client.rb +32 -8
  79. data/lib/google/cloud/dialogflow/cx/v3/webhooks/rest/client.rb +34 -7
  80. data/lib/google/cloud/dialogflow/cx/v3/webhooks/rest/service_stub.rb +14 -2
  81. data/lib/google/cloud/dialogflow/cx/v3.rb +1 -0
  82. data/proto_docs/google/api/client.rb +14 -0
  83. data/proto_docs/google/cloud/dialogflow/cx/v3/agent.rb +16 -0
  84. data/proto_docs/google/cloud/dialogflow/cx/v3/audio_config.rb +47 -3
  85. data/proto_docs/google/cloud/dialogflow/cx/v3/generator.rb +187 -0
  86. data/proto_docs/google/cloud/dialogflow/cx/v3/session.rb +187 -0
  87. data/proto_docs/google/cloud/dialogflow/cx/v3/validation_message.rb +1 -0
  88. data/proto_docs/google/cloud/dialogflow/cx/v3/webhook.rb +2 -0
  89. metadata +17 -7
@@ -34,8 +34,6 @@ module Google
34
34
  self.unmarshal_class_method = :decode
35
35
  self.service_name = 'google.cloud.dialogflow.cx.v3.EntityTypes'
36
36
 
37
- # Returns the list of all entity types in the specified agent.
38
- rpc :ListEntityTypes, ::Google::Cloud::Dialogflow::CX::V3::ListEntityTypesRequest, ::Google::Cloud::Dialogflow::CX::V3::ListEntityTypesResponse
39
37
  # Retrieves the specified entity type.
40
38
  rpc :GetEntityType, ::Google::Cloud::Dialogflow::CX::V3::GetEntityTypeRequest, ::Google::Cloud::Dialogflow::CX::V3::EntityType
41
39
  # Creates an entity type in the specified agent.
@@ -56,6 +54,8 @@ module Google
56
54
  # [training
57
55
  # documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).
58
56
  rpc :DeleteEntityType, ::Google::Cloud::Dialogflow::CX::V3::DeleteEntityTypeRequest, ::Google::Protobuf::Empty
57
+ # Returns the list of all entity types in the specified agent.
58
+ rpc :ListEntityTypes, ::Google::Cloud::Dialogflow::CX::V3::ListEntityTypesRequest, ::Google::Cloud::Dialogflow::CX::V3::ListEntityTypesResponse
59
59
  end
60
60
 
61
61
  Stub = Service.rpc_stub_class
@@ -32,6 +32,9 @@ module Google
32
32
  # Service for managing {::Google::Cloud::Dialogflow::CX::V3::EntityType EntityTypes}.
33
33
  #
34
34
  class Client
35
+ # @private
36
+ DEFAULT_ENDPOINT_TEMPLATE = "dialogflow.$UNIVERSE_DOMAIN$"
37
+
35
38
  include Paths
36
39
 
37
40
  # @private
@@ -97,6 +100,15 @@ module Google
97
100
  @config
98
101
  end
99
102
 
103
+ ##
104
+ # The effective universe domain
105
+ #
106
+ # @return [String]
107
+ #
108
+ def universe_domain
109
+ @entity_types_stub.universe_domain
110
+ end
111
+
100
112
  ##
101
113
  # Create a new EntityTypes client object.
102
114
  #
@@ -130,8 +142,9 @@ module Google
130
142
  credentials = @config.credentials
131
143
  # Use self-signed JWT if the endpoint is unchanged from default,
132
144
  # but only if the default endpoint does not have a region prefix.
133
- enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
134
- !@config.endpoint.split(".").first.include?("-")
145
+ enable_self_signed_jwt = @config.endpoint.nil? ||
146
+ (@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
147
+ !@config.endpoint.split(".").first.include?("-"))
135
148
  credentials ||= Credentials.default scope: @config.scope,
136
149
  enable_self_signed_jwt: enable_self_signed_jwt
137
150
  if credentials.is_a?(::String) || credentials.is_a?(::Hash)
@@ -144,12 +157,15 @@ module Google
144
157
  config.credentials = credentials
145
158
  config.quota_project = @quota_project_id
146
159
  config.endpoint = @config.endpoint
160
+ config.universe_domain = @config.universe_domain
147
161
  end
148
162
 
149
163
  @entity_types_stub = ::Gapic::ServiceStub.new(
150
164
  ::Google::Cloud::Dialogflow::CX::V3::EntityTypes::Stub,
151
- credentials: credentials,
152
- endpoint: @config.endpoint,
165
+ credentials: credentials,
166
+ endpoint: @config.endpoint,
167
+ endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
168
+ universe_domain: @config.universe_domain,
153
169
  channel_args: @config.channel_args,
154
170
  interceptors: @config.interceptors,
155
171
  channel_pool_config: @config.channel_pool
@@ -165,115 +181,6 @@ module Google
165
181
 
166
182
  # Service calls
167
183
 
168
- ##
169
- # Returns the list of all entity types in the specified agent.
170
- #
171
- # @overload list_entity_types(request, options = nil)
172
- # Pass arguments to `list_entity_types` via a request object, either of type
173
- # {::Google::Cloud::Dialogflow::CX::V3::ListEntityTypesRequest} or an equivalent Hash.
174
- #
175
- # @param request [::Google::Cloud::Dialogflow::CX::V3::ListEntityTypesRequest, ::Hash]
176
- # A request object representing the call parameters. Required. To specify no
177
- # parameters, or to keep all the default parameter values, pass an empty Hash.
178
- # @param options [::Gapic::CallOptions, ::Hash]
179
- # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
180
- #
181
- # @overload list_entity_types(parent: nil, language_code: nil, page_size: nil, page_token: nil)
182
- # Pass arguments to `list_entity_types` via keyword arguments. Note that at
183
- # least one keyword argument is required. To specify no parameters, or to keep all
184
- # the default parameter values, pass an empty Hash as a request object (see above).
185
- #
186
- # @param parent [::String]
187
- # Required. The agent to list all entity types for.
188
- # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
189
- # @param language_code [::String]
190
- # The language to list entity types for. The following fields are language
191
- # dependent:
192
- #
193
- # * `EntityType.entities.value`
194
- # * `EntityType.entities.synonyms`
195
- # * `EntityType.excluded_phrases.value`
196
- #
197
- # If not specified, the agent's default language is used.
198
- # [Many
199
- # languages](https://cloud.google.com/dialogflow/cx/docs/reference/language)
200
- # are supported.
201
- # Note: languages must be enabled in the agent before they can be used.
202
- # @param page_size [::Integer]
203
- # The maximum number of items to return in a single page. By default 100 and
204
- # at most 1000.
205
- # @param page_token [::String]
206
- # The next_page_token value returned from a previous list request.
207
- #
208
- # @yield [response, operation] Access the result along with the RPC operation
209
- # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dialogflow::CX::V3::EntityType>]
210
- # @yieldparam operation [::GRPC::ActiveCall::Operation]
211
- #
212
- # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dialogflow::CX::V3::EntityType>]
213
- #
214
- # @raise [::Google::Cloud::Error] if the RPC is aborted.
215
- #
216
- # @example Basic example
217
- # require "google/cloud/dialogflow/cx/v3"
218
- #
219
- # # Create a client object. The client can be reused for multiple calls.
220
- # client = Google::Cloud::Dialogflow::CX::V3::EntityTypes::Client.new
221
- #
222
- # # Create a request. To set request fields, pass in keyword arguments.
223
- # request = Google::Cloud::Dialogflow::CX::V3::ListEntityTypesRequest.new
224
- #
225
- # # Call the list_entity_types method.
226
- # result = client.list_entity_types request
227
- #
228
- # # The returned object is of type Gapic::PagedEnumerable. You can iterate
229
- # # over elements, and API calls will be issued to fetch pages as needed.
230
- # result.each do |item|
231
- # # Each element is of type ::Google::Cloud::Dialogflow::CX::V3::EntityType.
232
- # p item
233
- # end
234
- #
235
- def list_entity_types request, options = nil
236
- raise ::ArgumentError, "request must be provided" if request.nil?
237
-
238
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dialogflow::CX::V3::ListEntityTypesRequest
239
-
240
- # Converts hash and nil to an options object
241
- options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
242
-
243
- # Customize the options with defaults
244
- metadata = @config.rpcs.list_entity_types.metadata.to_h
245
-
246
- # Set x-goog-api-client and x-goog-user-project headers
247
- metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
248
- lib_name: @config.lib_name, lib_version: @config.lib_version,
249
- gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
250
- metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
251
-
252
- header_params = {}
253
- if request.parent
254
- header_params["parent"] = request.parent
255
- end
256
-
257
- request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
258
- metadata[:"x-goog-request-params"] ||= request_params_header
259
-
260
- options.apply_defaults timeout: @config.rpcs.list_entity_types.timeout,
261
- metadata: metadata,
262
- retry_policy: @config.rpcs.list_entity_types.retry_policy
263
-
264
- options.apply_defaults timeout: @config.timeout,
265
- metadata: @config.metadata,
266
- retry_policy: @config.retry_policy
267
-
268
- @entity_types_stub.call_rpc :list_entity_types, request, options: options do |response, operation|
269
- response = ::Gapic::PagedEnumerable.new @entity_types_stub, :list_entity_types, request, response, operation, options
270
- yield response, operation if block_given?
271
- return response
272
- end
273
- rescue ::GRPC::BadStatus => e
274
- raise ::Google::Cloud::Error.from_error(e)
275
- end
276
-
277
184
  ##
278
185
  # Retrieves the specified entity type.
279
186
  #
@@ -685,6 +592,115 @@ module Google
685
592
  raise ::Google::Cloud::Error.from_error(e)
686
593
  end
687
594
 
595
+ ##
596
+ # Returns the list of all entity types in the specified agent.
597
+ #
598
+ # @overload list_entity_types(request, options = nil)
599
+ # Pass arguments to `list_entity_types` via a request object, either of type
600
+ # {::Google::Cloud::Dialogflow::CX::V3::ListEntityTypesRequest} or an equivalent Hash.
601
+ #
602
+ # @param request [::Google::Cloud::Dialogflow::CX::V3::ListEntityTypesRequest, ::Hash]
603
+ # A request object representing the call parameters. Required. To specify no
604
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
605
+ # @param options [::Gapic::CallOptions, ::Hash]
606
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
607
+ #
608
+ # @overload list_entity_types(parent: nil, language_code: nil, page_size: nil, page_token: nil)
609
+ # Pass arguments to `list_entity_types` via keyword arguments. Note that at
610
+ # least one keyword argument is required. To specify no parameters, or to keep all
611
+ # the default parameter values, pass an empty Hash as a request object (see above).
612
+ #
613
+ # @param parent [::String]
614
+ # Required. The agent to list all entity types for.
615
+ # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
616
+ # @param language_code [::String]
617
+ # The language to list entity types for. The following fields are language
618
+ # dependent:
619
+ #
620
+ # * `EntityType.entities.value`
621
+ # * `EntityType.entities.synonyms`
622
+ # * `EntityType.excluded_phrases.value`
623
+ #
624
+ # If not specified, the agent's default language is used.
625
+ # [Many
626
+ # languages](https://cloud.google.com/dialogflow/cx/docs/reference/language)
627
+ # are supported.
628
+ # Note: languages must be enabled in the agent before they can be used.
629
+ # @param page_size [::Integer]
630
+ # The maximum number of items to return in a single page. By default 100 and
631
+ # at most 1000.
632
+ # @param page_token [::String]
633
+ # The next_page_token value returned from a previous list request.
634
+ #
635
+ # @yield [response, operation] Access the result along with the RPC operation
636
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dialogflow::CX::V3::EntityType>]
637
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
638
+ #
639
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::Dialogflow::CX::V3::EntityType>]
640
+ #
641
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
642
+ #
643
+ # @example Basic example
644
+ # require "google/cloud/dialogflow/cx/v3"
645
+ #
646
+ # # Create a client object. The client can be reused for multiple calls.
647
+ # client = Google::Cloud::Dialogflow::CX::V3::EntityTypes::Client.new
648
+ #
649
+ # # Create a request. To set request fields, pass in keyword arguments.
650
+ # request = Google::Cloud::Dialogflow::CX::V3::ListEntityTypesRequest.new
651
+ #
652
+ # # Call the list_entity_types method.
653
+ # result = client.list_entity_types request
654
+ #
655
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
656
+ # # over elements, and API calls will be issued to fetch pages as needed.
657
+ # result.each do |item|
658
+ # # Each element is of type ::Google::Cloud::Dialogflow::CX::V3::EntityType.
659
+ # p item
660
+ # end
661
+ #
662
+ def list_entity_types request, options = nil
663
+ raise ::ArgumentError, "request must be provided" if request.nil?
664
+
665
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dialogflow::CX::V3::ListEntityTypesRequest
666
+
667
+ # Converts hash and nil to an options object
668
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
669
+
670
+ # Customize the options with defaults
671
+ metadata = @config.rpcs.list_entity_types.metadata.to_h
672
+
673
+ # Set x-goog-api-client and x-goog-user-project headers
674
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
675
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
676
+ gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
677
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
678
+
679
+ header_params = {}
680
+ if request.parent
681
+ header_params["parent"] = request.parent
682
+ end
683
+
684
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
685
+ metadata[:"x-goog-request-params"] ||= request_params_header
686
+
687
+ options.apply_defaults timeout: @config.rpcs.list_entity_types.timeout,
688
+ metadata: metadata,
689
+ retry_policy: @config.rpcs.list_entity_types.retry_policy
690
+
691
+ options.apply_defaults timeout: @config.timeout,
692
+ metadata: @config.metadata,
693
+ retry_policy: @config.retry_policy
694
+
695
+ @entity_types_stub.call_rpc :list_entity_types, request, options: options do |response, operation|
696
+ response = ::Gapic::PagedEnumerable.new @entity_types_stub, :list_entity_types, request, response, operation, options
697
+ yield response, operation if block_given?
698
+ return response
699
+ end
700
+ rescue ::GRPC::BadStatus => e
701
+ raise ::Google::Cloud::Error.from_error(e)
702
+ end
703
+
688
704
  ##
689
705
  # Configuration class for the EntityTypes API.
690
706
  #
@@ -701,23 +717,23 @@ module Google
701
717
  # @example
702
718
  #
703
719
  # # Modify the global config, setting the timeout for
704
- # # list_entity_types to 20 seconds,
720
+ # # get_entity_type to 20 seconds,
705
721
  # # and all remaining timeouts to 10 seconds.
706
722
  # ::Google::Cloud::Dialogflow::CX::V3::EntityTypes::Client.configure do |config|
707
723
  # config.timeout = 10.0
708
- # config.rpcs.list_entity_types.timeout = 20.0
724
+ # config.rpcs.get_entity_type.timeout = 20.0
709
725
  # end
710
726
  #
711
727
  # # Apply the above configuration only to a new client.
712
728
  # client = ::Google::Cloud::Dialogflow::CX::V3::EntityTypes::Client.new do |config|
713
729
  # config.timeout = 10.0
714
- # config.rpcs.list_entity_types.timeout = 20.0
730
+ # config.rpcs.get_entity_type.timeout = 20.0
715
731
  # end
716
732
  #
717
733
  # @!attribute [rw] endpoint
718
- # The hostname or hostname:port of the service endpoint.
719
- # Defaults to `"dialogflow.googleapis.com"`.
720
- # @return [::String]
734
+ # A custom service endpoint, as a hostname or hostname:port. The default is
735
+ # nil, indicating to use the default endpoint in the current universe domain.
736
+ # @return [::String,nil]
721
737
  # @!attribute [rw] credentials
722
738
  # Credentials to send with calls. You may provide any of the following types:
723
739
  # * (`String`) The path to a service account key file in JSON format
@@ -763,13 +779,20 @@ module Google
763
779
  # @!attribute [rw] quota_project
764
780
  # A separate project against which to charge quota.
765
781
  # @return [::String]
782
+ # @!attribute [rw] universe_domain
783
+ # The universe domain within which to make requests. This determines the
784
+ # default endpoint URL. The default value of nil uses the environment
785
+ # universe (usually the default "googleapis.com" universe).
786
+ # @return [::String,nil]
766
787
  #
767
788
  class Configuration
768
789
  extend ::Gapic::Config
769
790
 
791
+ # @private
792
+ # The endpoint specific to the default "googleapis.com" universe. Deprecated.
770
793
  DEFAULT_ENDPOINT = "dialogflow.googleapis.com"
771
794
 
772
- config_attr :endpoint, DEFAULT_ENDPOINT, ::String
795
+ config_attr :endpoint, nil, ::String, nil
773
796
  config_attr :credentials, nil do |value|
774
797
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
775
798
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -784,6 +807,7 @@ module Google
784
807
  config_attr :metadata, nil, ::Hash, nil
785
808
  config_attr :retry_policy, nil, ::Hash, ::Proc, nil
786
809
  config_attr :quota_project, nil, ::String, nil
810
+ config_attr :universe_domain, nil, ::String, nil
787
811
 
788
812
  # @private
789
813
  def initialize parent_config = nil
@@ -830,11 +854,6 @@ module Google
830
854
  # trigger a retry.
831
855
  #
832
856
  class Rpcs
833
- ##
834
- # RPC-specific configuration for `list_entity_types`
835
- # @return [::Gapic::Config::Method]
836
- #
837
- attr_reader :list_entity_types
838
857
  ##
839
858
  # RPC-specific configuration for `get_entity_type`
840
859
  # @return [::Gapic::Config::Method]
@@ -855,11 +874,14 @@ module Google
855
874
  # @return [::Gapic::Config::Method]
856
875
  #
857
876
  attr_reader :delete_entity_type
877
+ ##
878
+ # RPC-specific configuration for `list_entity_types`
879
+ # @return [::Gapic::Config::Method]
880
+ #
881
+ attr_reader :list_entity_types
858
882
 
859
883
  # @private
860
884
  def initialize parent_rpcs = nil
861
- list_entity_types_config = parent_rpcs.list_entity_types if parent_rpcs.respond_to? :list_entity_types
862
- @list_entity_types = ::Gapic::Config::Method.new list_entity_types_config
863
885
  get_entity_type_config = parent_rpcs.get_entity_type if parent_rpcs.respond_to? :get_entity_type
864
886
  @get_entity_type = ::Gapic::Config::Method.new get_entity_type_config
865
887
  create_entity_type_config = parent_rpcs.create_entity_type if parent_rpcs.respond_to? :create_entity_type
@@ -868,6 +890,8 @@ module Google
868
890
  @update_entity_type = ::Gapic::Config::Method.new update_entity_type_config
869
891
  delete_entity_type_config = parent_rpcs.delete_entity_type if parent_rpcs.respond_to? :delete_entity_type
870
892
  @delete_entity_type = ::Gapic::Config::Method.new delete_entity_type_config
893
+ list_entity_types_config = parent_rpcs.list_entity_types if parent_rpcs.respond_to? :list_entity_types
894
+ @list_entity_types = ::Gapic::Config::Method.new list_entity_types_config
871
895
 
872
896
  yield self if block_given?
873
897
  end