google-cloud-discovery_engine-v1beta 0.5.0 → 0.7.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.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +72 -99
  3. data/lib/google/cloud/discovery_engine/v1beta/completion_service/client.rb +42 -9
  4. data/lib/google/cloud/discovery_engine/v1beta/completion_service/rest/client.rb +50 -7
  5. data/lib/google/cloud/discovery_engine/v1beta/completion_service/rest/service_stub.rb +14 -2
  6. data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/client.rb +42 -9
  7. data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/rest/client.rb +134 -7
  8. data/lib/google/cloud/discovery_engine/v1beta/conversational_search_service/rest/service_stub.rb +14 -2
  9. data/lib/google/cloud/discovery_engine/v1beta/document_service/client.rb +43 -9
  10. data/lib/google/cloud/discovery_engine/v1beta/document_service/operations.rb +38 -7
  11. data/lib/google/cloud/discovery_engine/v1beta/document_service/rest/client.rb +165 -7
  12. data/lib/google/cloud/discovery_engine/v1beta/document_service/rest/operations.rb +108 -8
  13. data/lib/google/cloud/discovery_engine/v1beta/document_service/rest/service_stub.rb +14 -2
  14. data/lib/google/cloud/discovery_engine/v1beta/recommendation_service/client.rb +42 -9
  15. data/lib/google/cloud/discovery_engine/v1beta/recommendation_service/rest/client.rb +50 -7
  16. data/lib/google/cloud/discovery_engine/v1beta/recommendation_service/rest/service_stub.rb +14 -2
  17. data/lib/google/cloud/discovery_engine/v1beta/schema_service/client.rb +43 -9
  18. data/lib/google/cloud/discovery_engine/v1beta/schema_service/operations.rb +38 -7
  19. data/lib/google/cloud/discovery_engine/v1beta/schema_service/rest/client.rb +140 -7
  20. data/lib/google/cloud/discovery_engine/v1beta/schema_service/rest/operations.rb +108 -8
  21. data/lib/google/cloud/discovery_engine/v1beta/schema_service/rest/service_stub.rb +14 -2
  22. data/lib/google/cloud/discovery_engine/v1beta/search_service/client.rb +42 -9
  23. data/lib/google/cloud/discovery_engine/v1beta/search_service/rest/client.rb +54 -7
  24. data/lib/google/cloud/discovery_engine/v1beta/search_service/rest/service_stub.rb +14 -2
  25. data/lib/google/cloud/discovery_engine/v1beta/user_event_service/client.rb +43 -9
  26. data/lib/google/cloud/discovery_engine/v1beta/user_event_service/operations.rb +38 -7
  27. data/lib/google/cloud/discovery_engine/v1beta/user_event_service/rest/client.rb +90 -7
  28. data/lib/google/cloud/discovery_engine/v1beta/user_event_service/rest/operations.rb +108 -8
  29. data/lib/google/cloud/discovery_engine/v1beta/user_event_service/rest/service_stub.rb +14 -2
  30. data/lib/google/cloud/discovery_engine/v1beta/version.rb +1 -1
  31. data/proto_docs/google/api/client.rb +14 -0
  32. data/proto_docs/google/cloud/discoveryengine/v1beta/conversation.rb +3 -0
  33. data/proto_docs/google/cloud/discoveryengine/v1beta/search_service.rb +2 -0
  34. metadata +7 -7
@@ -33,6 +33,9 @@ module Google
33
33
  # Service for conversational search.
34
34
  #
35
35
  class Client
36
+ # @private
37
+ DEFAULT_ENDPOINT_TEMPLATE = "discoveryengine.$UNIVERSE_DOMAIN$"
38
+
36
39
  include Paths
37
40
 
38
41
  # @private
@@ -98,6 +101,15 @@ module Google
98
101
  @config
99
102
  end
100
103
 
104
+ ##
105
+ # The effective universe domain
106
+ #
107
+ # @return [String]
108
+ #
109
+ def universe_domain
110
+ @conversational_search_service_stub.universe_domain
111
+ end
112
+
101
113
  ##
102
114
  # Create a new ConversationalSearchService REST client object.
103
115
  #
@@ -125,8 +137,9 @@ module Google
125
137
  credentials = @config.credentials
126
138
  # Use self-signed JWT if the endpoint is unchanged from default,
127
139
  # but only if the default endpoint does not have a region prefix.
128
- enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
129
- !@config.endpoint.split(".").first.include?("-")
140
+ enable_self_signed_jwt = @config.endpoint.nil? ||
141
+ (@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
142
+ !@config.endpoint.split(".").first.include?("-"))
130
143
  credentials ||= Credentials.default scope: @config.scope,
131
144
  enable_self_signed_jwt: enable_self_signed_jwt
132
145
  if credentials.is_a?(::String) || credentials.is_a?(::Hash)
@@ -140,9 +153,15 @@ module Google
140
153
  config.credentials = credentials
141
154
  config.quota_project = @quota_project_id
142
155
  config.endpoint = @config.endpoint
156
+ config.universe_domain = @config.universe_domain
143
157
  end
144
158
 
145
- @conversational_search_service_stub = ::Google::Cloud::DiscoveryEngine::V1beta::ConversationalSearchService::Rest::ServiceStub.new endpoint: @config.endpoint, credentials: credentials
159
+ @conversational_search_service_stub = ::Google::Cloud::DiscoveryEngine::V1beta::ConversationalSearchService::Rest::ServiceStub.new(
160
+ endpoint: @config.endpoint,
161
+ endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
162
+ universe_domain: @config.universe_domain,
163
+ credentials: credentials
164
+ )
146
165
  end
147
166
 
148
167
  ##
@@ -218,6 +237,22 @@ module Google
218
237
  # @return [::Google::Cloud::DiscoveryEngine::V1beta::ConverseConversationResponse]
219
238
  #
220
239
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
240
+ #
241
+ # @example Basic example
242
+ # require "google/cloud/discovery_engine/v1beta"
243
+ #
244
+ # # Create a client object. The client can be reused for multiple calls.
245
+ # client = Google::Cloud::DiscoveryEngine::V1beta::ConversationalSearchService::Rest::Client.new
246
+ #
247
+ # # Create a request. To set request fields, pass in keyword arguments.
248
+ # request = Google::Cloud::DiscoveryEngine::V1beta::ConverseConversationRequest.new
249
+ #
250
+ # # Call the converse_conversation method.
251
+ # result = client.converse_conversation request
252
+ #
253
+ # # The returned object is of type Google::Cloud::DiscoveryEngine::V1beta::ConverseConversationResponse.
254
+ # p result
255
+ #
221
256
  def converse_conversation request, options = nil
222
257
  raise ::ArgumentError, "request must be provided" if request.nil?
223
258
 
@@ -286,6 +321,22 @@ module Google
286
321
  # @return [::Google::Cloud::DiscoveryEngine::V1beta::Conversation]
287
322
  #
288
323
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
324
+ #
325
+ # @example Basic example
326
+ # require "google/cloud/discovery_engine/v1beta"
327
+ #
328
+ # # Create a client object. The client can be reused for multiple calls.
329
+ # client = Google::Cloud::DiscoveryEngine::V1beta::ConversationalSearchService::Rest::Client.new
330
+ #
331
+ # # Create a request. To set request fields, pass in keyword arguments.
332
+ # request = Google::Cloud::DiscoveryEngine::V1beta::CreateConversationRequest.new
333
+ #
334
+ # # Call the create_conversation method.
335
+ # result = client.create_conversation request
336
+ #
337
+ # # The returned object is of type Google::Cloud::DiscoveryEngine::V1beta::Conversation.
338
+ # p result
339
+ #
289
340
  def create_conversation request, options = nil
290
341
  raise ::ArgumentError, "request must be provided" if request.nil?
291
342
 
@@ -352,6 +403,22 @@ module Google
352
403
  # @return [::Google::Protobuf::Empty]
353
404
  #
354
405
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
406
+ #
407
+ # @example Basic example
408
+ # require "google/cloud/discovery_engine/v1beta"
409
+ #
410
+ # # Create a client object. The client can be reused for multiple calls.
411
+ # client = Google::Cloud::DiscoveryEngine::V1beta::ConversationalSearchService::Rest::Client.new
412
+ #
413
+ # # Create a request. To set request fields, pass in keyword arguments.
414
+ # request = Google::Cloud::DiscoveryEngine::V1beta::DeleteConversationRequest.new
415
+ #
416
+ # # Call the delete_conversation method.
417
+ # result = client.delete_conversation request
418
+ #
419
+ # # The returned object is of type Google::Protobuf::Empty.
420
+ # p result
421
+ #
355
422
  def delete_conversation request, options = nil
356
423
  raise ::ArgumentError, "request must be provided" if request.nil?
357
424
 
@@ -427,6 +494,22 @@ module Google
427
494
  # @return [::Google::Cloud::DiscoveryEngine::V1beta::Conversation]
428
495
  #
429
496
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
497
+ #
498
+ # @example Basic example
499
+ # require "google/cloud/discovery_engine/v1beta"
500
+ #
501
+ # # Create a client object. The client can be reused for multiple calls.
502
+ # client = Google::Cloud::DiscoveryEngine::V1beta::ConversationalSearchService::Rest::Client.new
503
+ #
504
+ # # Create a request. To set request fields, pass in keyword arguments.
505
+ # request = Google::Cloud::DiscoveryEngine::V1beta::UpdateConversationRequest.new
506
+ #
507
+ # # Call the update_conversation method.
508
+ # result = client.update_conversation request
509
+ #
510
+ # # The returned object is of type Google::Cloud::DiscoveryEngine::V1beta::Conversation.
511
+ # p result
512
+ #
430
513
  def update_conversation request, options = nil
431
514
  raise ::ArgumentError, "request must be provided" if request.nil?
432
515
 
@@ -490,6 +573,22 @@ module Google
490
573
  # @return [::Google::Cloud::DiscoveryEngine::V1beta::Conversation]
491
574
  #
492
575
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
576
+ #
577
+ # @example Basic example
578
+ # require "google/cloud/discovery_engine/v1beta"
579
+ #
580
+ # # Create a client object. The client can be reused for multiple calls.
581
+ # client = Google::Cloud::DiscoveryEngine::V1beta::ConversationalSearchService::Rest::Client.new
582
+ #
583
+ # # Create a request. To set request fields, pass in keyword arguments.
584
+ # request = Google::Cloud::DiscoveryEngine::V1beta::GetConversationRequest.new
585
+ #
586
+ # # Call the get_conversation method.
587
+ # result = client.get_conversation request
588
+ #
589
+ # # The returned object is of type Google::Cloud::DiscoveryEngine::V1beta::Conversation.
590
+ # p result
591
+ #
493
592
  def get_conversation request, options = nil
494
593
  raise ::ArgumentError, "request must be provided" if request.nil?
495
594
 
@@ -577,6 +676,26 @@ module Google
577
676
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::DiscoveryEngine::V1beta::Conversation>]
578
677
  #
579
678
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
679
+ #
680
+ # @example Basic example
681
+ # require "google/cloud/discovery_engine/v1beta"
682
+ #
683
+ # # Create a client object. The client can be reused for multiple calls.
684
+ # client = Google::Cloud::DiscoveryEngine::V1beta::ConversationalSearchService::Rest::Client.new
685
+ #
686
+ # # Create a request. To set request fields, pass in keyword arguments.
687
+ # request = Google::Cloud::DiscoveryEngine::V1beta::ListConversationsRequest.new
688
+ #
689
+ # # Call the list_conversations method.
690
+ # result = client.list_conversations request
691
+ #
692
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
693
+ # # over elements, and API calls will be issued to fetch pages as needed.
694
+ # result.each do |item|
695
+ # # Each element is of type ::Google::Cloud::DiscoveryEngine::V1beta::Conversation.
696
+ # p item
697
+ # end
698
+ #
580
699
  def list_conversations request, options = nil
581
700
  raise ::ArgumentError, "request must be provided" if request.nil?
582
701
 
@@ -643,9 +762,9 @@ module Google
643
762
  # end
644
763
  #
645
764
  # @!attribute [rw] endpoint
646
- # The hostname or hostname:port of the service endpoint.
647
- # Defaults to `"discoveryengine.googleapis.com"`.
648
- # @return [::String]
765
+ # A custom service endpoint, as a hostname or hostname:port. The default is
766
+ # nil, indicating to use the default endpoint in the current universe domain.
767
+ # @return [::String,nil]
649
768
  # @!attribute [rw] credentials
650
769
  # Credentials to send with calls. You may provide any of the following types:
651
770
  # * (`String`) The path to a service account key file in JSON format
@@ -682,13 +801,20 @@ module Google
682
801
  # @!attribute [rw] quota_project
683
802
  # A separate project against which to charge quota.
684
803
  # @return [::String]
804
+ # @!attribute [rw] universe_domain
805
+ # The universe domain within which to make requests. This determines the
806
+ # default endpoint URL. The default value of nil uses the environment
807
+ # universe (usually the default "googleapis.com" universe).
808
+ # @return [::String,nil]
685
809
  #
686
810
  class Configuration
687
811
  extend ::Gapic::Config
688
812
 
813
+ # @private
814
+ # The endpoint specific to the default "googleapis.com" universe. Deprecated.
689
815
  DEFAULT_ENDPOINT = "discoveryengine.googleapis.com"
690
816
 
691
- config_attr :endpoint, DEFAULT_ENDPOINT, ::String
817
+ config_attr :endpoint, nil, ::String, nil
692
818
  config_attr :credentials, nil do |value|
693
819
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
694
820
  allowed.any? { |klass| klass === value }
@@ -700,6 +826,7 @@ module Google
700
826
  config_attr :metadata, nil, ::Hash, nil
701
827
  config_attr :retry_policy, nil, ::Hash, ::Proc, nil
702
828
  config_attr :quota_project, nil, ::String, nil
829
+ config_attr :universe_domain, nil, ::String, nil
703
830
 
704
831
  # @private
705
832
  def initialize parent_config = nil
@@ -30,16 +30,28 @@ module Google
30
30
  # including transcoding, making the REST call, and deserialing the response.
31
31
  #
32
32
  class ServiceStub
33
- def initialize endpoint:, credentials:
33
+ def initialize endpoint:, endpoint_template:, universe_domain:, credentials:
34
34
  # These require statements are intentionally placed here to initialize
35
35
  # the REST modules only when it's required.
36
36
  require "gapic/rest"
37
37
 
38
- @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, credentials: credentials,
38
+ @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint,
39
+ endpoint_template: endpoint_template,
40
+ universe_domain: universe_domain,
41
+ credentials: credentials,
39
42
  numeric_enums: true,
40
43
  raise_faraday_errors: false
41
44
  end
42
45
 
46
+ ##
47
+ # The effective universe domain
48
+ #
49
+ # @return [String]
50
+ #
51
+ def universe_domain
52
+ @client_stub.universe_domain
53
+ end
54
+
43
55
  ##
44
56
  # Baseline implementation for the converse_conversation REST call
45
57
  #
@@ -33,6 +33,9 @@ module Google
33
33
  # customer's website.
34
34
  #
35
35
  class Client
36
+ # @private
37
+ DEFAULT_ENDPOINT_TEMPLATE = "discoveryengine.$UNIVERSE_DOMAIN$"
38
+
36
39
  include Paths
37
40
 
38
41
  # @private
@@ -103,6 +106,15 @@ module Google
103
106
  @config
104
107
  end
105
108
 
109
+ ##
110
+ # The effective universe domain
111
+ #
112
+ # @return [String]
113
+ #
114
+ def universe_domain
115
+ @document_service_stub.universe_domain
116
+ end
117
+
106
118
  ##
107
119
  # Create a new DocumentService client object.
108
120
  #
@@ -136,8 +148,9 @@ module Google
136
148
  credentials = @config.credentials
137
149
  # Use self-signed JWT if the endpoint is unchanged from default,
138
150
  # but only if the default endpoint does not have a region prefix.
139
- enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
140
- !@config.endpoint.split(".").first.include?("-")
151
+ enable_self_signed_jwt = @config.endpoint.nil? ||
152
+ (@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
153
+ !@config.endpoint.split(".").first.include?("-"))
141
154
  credentials ||= Credentials.default scope: @config.scope,
142
155
  enable_self_signed_jwt: enable_self_signed_jwt
143
156
  if credentials.is_a?(::String) || credentials.is_a?(::Hash)
@@ -150,20 +163,25 @@ module Google
150
163
  config.credentials = credentials
151
164
  config.quota_project = @quota_project_id
152
165
  config.endpoint = @config.endpoint
166
+ config.universe_domain = @config.universe_domain
153
167
  end
154
168
 
155
169
  @location_client = Google::Cloud::Location::Locations::Client.new do |config|
156
170
  config.credentials = credentials
157
171
  config.quota_project = @quota_project_id
158
172
  config.endpoint = @config.endpoint
173
+ config.universe_domain = @config.universe_domain
159
174
  end
160
175
 
161
176
  @document_service_stub = ::Gapic::ServiceStub.new(
162
177
  ::Google::Cloud::DiscoveryEngine::V1beta::DocumentService::Stub,
163
- credentials: credentials,
164
- endpoint: @config.endpoint,
178
+ credentials: credentials,
179
+ endpoint: @config.endpoint,
180
+ endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
181
+ universe_domain: @config.universe_domain,
165
182
  channel_args: @config.channel_args,
166
- interceptors: @config.interceptors
183
+ interceptors: @config.interceptors,
184
+ channel_pool_config: @config.channel_pool
167
185
  )
168
186
  end
169
187
 
@@ -1004,9 +1022,9 @@ module Google
1004
1022
  # end
1005
1023
  #
1006
1024
  # @!attribute [rw] endpoint
1007
- # The hostname or hostname:port of the service endpoint.
1008
- # Defaults to `"discoveryengine.googleapis.com"`.
1009
- # @return [::String]
1025
+ # A custom service endpoint, as a hostname or hostname:port. The default is
1026
+ # nil, indicating to use the default endpoint in the current universe domain.
1027
+ # @return [::String,nil]
1010
1028
  # @!attribute [rw] credentials
1011
1029
  # Credentials to send with calls. You may provide any of the following types:
1012
1030
  # * (`String`) The path to a service account key file in JSON format
@@ -1052,13 +1070,20 @@ module Google
1052
1070
  # @!attribute [rw] quota_project
1053
1071
  # A separate project against which to charge quota.
1054
1072
  # @return [::String]
1073
+ # @!attribute [rw] universe_domain
1074
+ # The universe domain within which to make requests. This determines the
1075
+ # default endpoint URL. The default value of nil uses the environment
1076
+ # universe (usually the default "googleapis.com" universe).
1077
+ # @return [::String,nil]
1055
1078
  #
1056
1079
  class Configuration
1057
1080
  extend ::Gapic::Config
1058
1081
 
1082
+ # @private
1083
+ # The endpoint specific to the default "googleapis.com" universe. Deprecated.
1059
1084
  DEFAULT_ENDPOINT = "discoveryengine.googleapis.com"
1060
1085
 
1061
- config_attr :endpoint, DEFAULT_ENDPOINT, ::String
1086
+ config_attr :endpoint, nil, ::String, nil
1062
1087
  config_attr :credentials, nil do |value|
1063
1088
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1064
1089
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -1073,6 +1098,7 @@ module Google
1073
1098
  config_attr :metadata, nil, ::Hash, nil
1074
1099
  config_attr :retry_policy, nil, ::Hash, ::Proc, nil
1075
1100
  config_attr :quota_project, nil, ::String, nil
1101
+ config_attr :universe_domain, nil, ::String, nil
1076
1102
 
1077
1103
  # @private
1078
1104
  def initialize parent_config = nil
@@ -1093,6 +1119,14 @@ module Google
1093
1119
  end
1094
1120
  end
1095
1121
 
1122
+ ##
1123
+ # Configuration for the channel pool
1124
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
1125
+ #
1126
+ def channel_pool
1127
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
1128
+ end
1129
+
1096
1130
  ##
1097
1131
  # Configuration RPC class for the DocumentService API.
1098
1132
  #
@@ -26,6 +26,9 @@ module Google
26
26
  module DocumentService
27
27
  # Service that implements Longrunning Operations API.
28
28
  class Operations
29
+ # @private
30
+ DEFAULT_ENDPOINT_TEMPLATE = "discoveryengine.$UNIVERSE_DOMAIN$"
31
+
29
32
  # @private
30
33
  attr_reader :operations_stub
31
34
 
@@ -60,6 +63,15 @@ module Google
60
63
  @config
61
64
  end
62
65
 
66
+ ##
67
+ # The effective universe domain
68
+ #
69
+ # @return [String]
70
+ #
71
+ def universe_domain
72
+ @operations_stub.universe_domain
73
+ end
74
+
63
75
  ##
64
76
  # Create a new Operations client object.
65
77
  #
@@ -90,10 +102,13 @@ module Google
90
102
 
91
103
  @operations_stub = ::Gapic::ServiceStub.new(
92
104
  ::Google::Longrunning::Operations::Stub,
93
- credentials: credentials,
94
- endpoint: @config.endpoint,
105
+ credentials: credentials,
106
+ endpoint: @config.endpoint,
107
+ endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
108
+ universe_domain: @config.universe_domain,
95
109
  channel_args: @config.channel_args,
96
- interceptors: @config.interceptors
110
+ interceptors: @config.interceptors,
111
+ channel_pool_config: @config.channel_pool
97
112
  )
98
113
 
99
114
  # Used by an LRO wrapper for some methods of this service
@@ -612,9 +627,9 @@ module Google
612
627
  # end
613
628
  #
614
629
  # @!attribute [rw] endpoint
615
- # The hostname or hostname:port of the service endpoint.
616
- # Defaults to `"discoveryengine.googleapis.com"`.
617
- # @return [::String]
630
+ # A custom service endpoint, as a hostname or hostname:port. The default is
631
+ # nil, indicating to use the default endpoint in the current universe domain.
632
+ # @return [::String,nil]
618
633
  # @!attribute [rw] credentials
619
634
  # Credentials to send with calls. You may provide any of the following types:
620
635
  # * (`String`) The path to a service account key file in JSON format
@@ -660,13 +675,20 @@ module Google
660
675
  # @!attribute [rw] quota_project
661
676
  # A separate project against which to charge quota.
662
677
  # @return [::String]
678
+ # @!attribute [rw] universe_domain
679
+ # The universe domain within which to make requests. This determines the
680
+ # default endpoint URL. The default value of nil uses the environment
681
+ # universe (usually the default "googleapis.com" universe).
682
+ # @return [::String,nil]
663
683
  #
664
684
  class Configuration
665
685
  extend ::Gapic::Config
666
686
 
687
+ # @private
688
+ # The endpoint specific to the default "googleapis.com" universe. Deprecated.
667
689
  DEFAULT_ENDPOINT = "discoveryengine.googleapis.com"
668
690
 
669
- config_attr :endpoint, DEFAULT_ENDPOINT, ::String
691
+ config_attr :endpoint, nil, ::String, nil
670
692
  config_attr :credentials, nil do |value|
671
693
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
672
694
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -681,6 +703,7 @@ module Google
681
703
  config_attr :metadata, nil, ::Hash, nil
682
704
  config_attr :retry_policy, nil, ::Hash, ::Proc, nil
683
705
  config_attr :quota_project, nil, ::String, nil
706
+ config_attr :universe_domain, nil, ::String, nil
684
707
 
685
708
  # @private
686
709
  def initialize parent_config = nil
@@ -701,6 +724,14 @@ module Google
701
724
  end
702
725
  end
703
726
 
727
+ ##
728
+ # Configuration for the channel pool
729
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
730
+ #
731
+ def channel_pool
732
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
733
+ end
734
+
704
735
  ##
705
736
  # Configuration RPC class for the Operations API.
706
737
  #