google-cloud-discovery_engine-v1 1.5.0 → 2.0.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: b1b35361affe67de5505f5a7bb44a9d9c74e0c4199f6282ceccdd792165bcbd4
4
- data.tar.gz: 44fcc9bbd9c4129d161c2af12e85a4065d24dce26b6848f64e14b6021660dd7a
3
+ metadata.gz: 306438ed318930a8ee23b1dd270409ae339a7983ec20e91f80c2cda12c1e1d7b
4
+ data.tar.gz: 230071de9c9a8a67101e0966546cee0a744f87e2c2cbf4092107bb1c41c81a02
5
5
  SHA512:
6
- metadata.gz: 3a8014346edf6af5a0d3166d6376faaeb5348d94dcc60e77d0764fba20918ea6147dcd3544eb14ecf37b4de5829d1311f7e9800aec007e37ef55837bdffad7e6
7
- data.tar.gz: 0716d09c3ab76025aa91f79f56313e174dc3a098c5866a02db573ce6f540972f108f8cad023bc500e87958393dd07391f0aa8a57de14ec038fb1a1d7223e163b
6
+ metadata.gz: 7016c29e371de9b2544be90f8269679242fbf0190fe157931fee000c76049fd43251e9cb3329b5dd7a1a1e13270267178153990df0f9a1f1c3e71e32577042da
7
+ data.tar.gz: 6d82f54321e189c5d1f84f8d6a7f7f3a081f12ddb21421d03485d939d201fbcdc06699513d7d2dc39d129becd70859445c7cf70d1764e79232a726e7847f3b25
@@ -427,10 +427,10 @@ module Google
427
427
  #
428
428
  # Can be used only when `session` is set.
429
429
  # @yield [result, operation] Access the result along with the TransportOperation object
430
- # @yieldparam result [::Google::Cloud::DiscoveryEngine::V1::SearchResponse]
430
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::DiscoveryEngine::V1::SearchResponse::SearchResult>]
431
431
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
432
432
  #
433
- # @return [::Google::Cloud::DiscoveryEngine::V1::SearchResponse]
433
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::DiscoveryEngine::V1::SearchResponse::SearchResult>]
434
434
  #
435
435
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
436
436
  #
@@ -482,7 +482,9 @@ module Google
482
482
  retry_policy: @config.retry_policy
483
483
 
484
484
  @search_service_stub.search request, options do |result, operation|
485
+ result = ::Gapic::Rest::PagedEnumerable.new @search_service_stub, :search, "results", request, result, options
485
486
  yield result, operation if block_given?
487
+ throw :response, result
486
488
  end
487
489
  rescue ::Gapic::Rest::Error => e
488
490
  raise ::Google::Cloud::Error.from_error(e)
@@ -730,10 +732,10 @@ module Google
730
732
  #
731
733
  # Can be used only when `session` is set.
732
734
  # @yield [result, operation] Access the result along with the TransportOperation object
733
- # @yieldparam result [::Google::Cloud::DiscoveryEngine::V1::SearchResponse]
735
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::DiscoveryEngine::V1::SearchResponse::SearchResult>]
734
736
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
735
737
  #
736
- # @return [::Google::Cloud::DiscoveryEngine::V1::SearchResponse]
738
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::DiscoveryEngine::V1::SearchResponse::SearchResult>]
737
739
  #
738
740
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
739
741
  #
@@ -785,7 +787,9 @@ module Google
785
787
  retry_policy: @config.retry_policy
786
788
 
787
789
  @search_service_stub.search_lite request, options do |result, operation|
790
+ result = ::Gapic::Rest::PagedEnumerable.new @search_service_stub, :search_lite, "results", request, result, options
788
791
  yield result, operation if block_given?
792
+ throw :response, result
789
793
  end
790
794
  rescue ::Gapic::Rest::Error => e
791
795
  raise ::Google::Cloud::Error.from_error(e)
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module DiscoveryEngine
23
23
  module V1
24
- VERSION = "1.5.0"
24
+ VERSION = "2.0.0"
25
25
  end
26
26
  end
27
27
  end
@@ -409,6 +409,14 @@ module Google
409
409
  # @return [::Array<::String>]
410
410
  # An allowlist of the fully qualified names of RPCs that should be included
411
411
  # on public client surfaces.
412
+ # @!attribute [rw] generate_omitted_as_internal
413
+ # @return [::Boolean]
414
+ # Setting this to true indicates to the client generators that methods
415
+ # that would be excluded from the generation should instead be generated
416
+ # in a way that indicates these methods should not be consumed by
417
+ # end users. How this is expressed is up to individual language
418
+ # implementations to decide. Some examples may be: added annotations,
419
+ # obfuscated identifiers, or other language idiomatic patterns.
412
420
  class SelectiveGapicGeneration
413
421
  include ::Google::Protobuf::MessageExts
414
422
  extend ::Google::Protobuf::MessageExts::ClassMethods
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-discovery_engine-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-01-29 00:00:00.000000000 Z
10
+ date: 2025-02-07 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: gapic-common
@@ -318,7 +318,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
318
318
  - !ruby/object:Gem::Version
319
319
  version: '0'
320
320
  requirements: []
321
- rubygems_version: 3.6.2
321
+ rubygems_version: 3.6.3
322
322
  specification_version: 4
323
323
  summary: Discovery Engine API.
324
324
  test_files: []