google-apis-discoveryengine_v1alpha 0.38.0 → 0.39.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: a9e25f816eeee6bc3cb74ea8b3ff5057a078e5f37c7987f7e439e28d0c371470
4
- data.tar.gz: 56a5aa458029eddca8dd0b098597d0210f43470b7c5dc1602eadb5aa35954f32
3
+ metadata.gz: 7f69c25fa5eb9499ef358d5ff65686c8b0c703fedabd02d2639d9a38825b5fbf
4
+ data.tar.gz: defab04a61a4fd91528bac55521a3dcd8c352065ecdb40da17dbc7b6d4905f10
5
5
  SHA512:
6
- metadata.gz: ef6adf8cc1c10a0835677ddfba32be1584f15a5466713310d5a2121a291a509c5e9459afb7fce331520469c317159dd0f206f389e936c81cf5c50530e401418e
7
- data.tar.gz: 611bfc46fff73d591c9dc236aa5557dccb257dba9552a3b5e25b790549ae5660419a081ffeff0cd9d6ee01e01148e6e3d3f986c16fa120fa9e48591b469a9eba
6
+ metadata.gz: 6f4156d1949151b4eb7fe9ac1f2fccd1edb2b2ae9ed5357b335366e5df57334e963f0538c9e34aa1ab0828df491f8150401deebdc65d7f04b00b2e094c6b6ae4
7
+ data.tar.gz: e46077bdc0bbd22dd881e1915b3eb287af8b3b73570ae0a116c6b39003354e168baec9d64f7ad3946aca96869065004c302aa78aafe93bae9b6493de8fa2cf9d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-discoveryengine_v1alpha
2
2
 
3
+ ### v0.39.0 (2024-03-10)
4
+
5
+ * Regenerated from discovery document revision 20240229
6
+
3
7
  ### v0.38.0 (2024-03-03)
4
8
 
5
9
  * Regenerated from discovery document revision 20240227
@@ -1823,6 +1823,81 @@ module Google
1823
1823
  end
1824
1824
  end
1825
1825
 
1826
+ # Chunk captures all raw metadata information of items to be recommended or
1827
+ # searched in the chunk mode.
1828
+ class GoogleCloudDiscoveryengineV1alphaChunk
1829
+ include Google::Apis::Core::Hashable
1830
+
1831
+ # Content is a string from a document (parsed content).
1832
+ # Corresponds to the JSON property `content`
1833
+ # @return [String]
1834
+ attr_accessor :content
1835
+
1836
+ # Output only. This field is OUTPUT_ONLY. It contains derived data that are not
1837
+ # in the original input document.
1838
+ # Corresponds to the JSON property `derivedStructData`
1839
+ # @return [Hash<String,Object>]
1840
+ attr_accessor :derived_struct_data
1841
+
1842
+ # Document metadata contains the information of the document of the current
1843
+ # chunk.
1844
+ # Corresponds to the JSON property `documentMetadata`
1845
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaChunkDocumentMetadata]
1846
+ attr_accessor :document_metadata
1847
+
1848
+ # Unique chunk id of the current chunk.
1849
+ # Corresponds to the JSON property `id`
1850
+ # @return [String]
1851
+ attr_accessor :id
1852
+
1853
+ # The full resource name of the chunk. Format: `projects/`project`/locations/`
1854
+ # location`/collections/`collection`/dataStores/`data_store`/branches/`branch`/
1855
+ # documents/`document_id`/chunks/`chunk_id``. This field must be a UTF-8 encoded
1856
+ # string with a length limit of 1024 characters.
1857
+ # Corresponds to the JSON property `name`
1858
+ # @return [String]
1859
+ attr_accessor :name
1860
+
1861
+ def initialize(**args)
1862
+ update!(**args)
1863
+ end
1864
+
1865
+ # Update properties of this object
1866
+ def update!(**args)
1867
+ @content = args[:content] if args.key?(:content)
1868
+ @derived_struct_data = args[:derived_struct_data] if args.key?(:derived_struct_data)
1869
+ @document_metadata = args[:document_metadata] if args.key?(:document_metadata)
1870
+ @id = args[:id] if args.key?(:id)
1871
+ @name = args[:name] if args.key?(:name)
1872
+ end
1873
+ end
1874
+
1875
+ # Document metadata contains the information of the document of the current
1876
+ # chunk.
1877
+ class GoogleCloudDiscoveryengineV1alphaChunkDocumentMetadata
1878
+ include Google::Apis::Core::Hashable
1879
+
1880
+ # Title of the document.
1881
+ # Corresponds to the JSON property `title`
1882
+ # @return [String]
1883
+ attr_accessor :title
1884
+
1885
+ # Uri of the document.
1886
+ # Corresponds to the JSON property `uri`
1887
+ # @return [String]
1888
+ attr_accessor :uri
1889
+
1890
+ def initialize(**args)
1891
+ update!(**args)
1892
+ end
1893
+
1894
+ # Update properties of this object
1895
+ def update!(**args)
1896
+ @title = args[:title] if args.key?(:title)
1897
+ @uri = args[:uri] if args.key?(:uri)
1898
+ end
1899
+ end
1900
+
1826
1901
  # Request message for CompletionService.CompleteQuery method.
1827
1902
  class GoogleCloudDiscoveryengineV1alphaCompleteQueryRequest
1828
1903
  include Google::Apis::Core::Hashable
@@ -1857,7 +1932,7 @@ module Google
1857
1932
  # imported search events. * `document-completable` - Using suggestions taken
1858
1933
  # directly from user-imported document fields marked as completable. Default
1859
1934
  # values: * `document` is the default model for regular dataStores. * `search-
1860
- # history` is the default model for site search dataStores.
1935
+ # history` is the default model for site search dataStores. *
1861
1936
  # Corresponds to the JSON property `queryModel`
1862
1937
  # @return [String]
1863
1938
  attr_accessor :query_model
@@ -2906,6 +2981,11 @@ module Google
2906
2981
  class GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig
2907
2982
  include Google::Apis::Core::Hashable
2908
2983
 
2984
+ # Configuration for chunking config.
2985
+ # Corresponds to the JSON property `chunkingConfig`
2986
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigChunkingConfig]
2987
+ attr_accessor :chunking_config
2988
+
2909
2989
  # Related configurations applied to a specific type of document parser.
2910
2990
  # Corresponds to the JSON property `defaultParsingConfig`
2911
2991
  # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfig]
@@ -2938,6 +3018,7 @@ module Google
2938
3018
 
2939
3019
  # Update properties of this object
2940
3020
  def update!(**args)
3021
+ @chunking_config = args[:chunking_config] if args.key?(:chunking_config)
2941
3022
  @default_parsing_config = args[:default_parsing_config] if args.key?(:default_parsing_config)
2942
3023
  @name = args[:name] if args.key?(:name)
2943
3024
  @ocr_config = args[:ocr_config] if args.key?(:ocr_config)
@@ -2945,6 +3026,53 @@ module Google
2945
3026
  end
2946
3027
  end
2947
3028
 
3029
+ # Configuration for chunking config.
3030
+ class GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigChunkingConfig
3031
+ include Google::Apis::Core::Hashable
3032
+
3033
+ # Configuration for the layout based chunking.
3034
+ # Corresponds to the JSON property `layoutBasedChunkingConfig`
3035
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigChunkingConfigLayoutBasedChunkingConfig]
3036
+ attr_accessor :layout_based_chunking_config
3037
+
3038
+ def initialize(**args)
3039
+ update!(**args)
3040
+ end
3041
+
3042
+ # Update properties of this object
3043
+ def update!(**args)
3044
+ @layout_based_chunking_config = args[:layout_based_chunking_config] if args.key?(:layout_based_chunking_config)
3045
+ end
3046
+ end
3047
+
3048
+ # Configuration for the layout based chunking.
3049
+ class GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigChunkingConfigLayoutBasedChunkingConfig
3050
+ include Google::Apis::Core::Hashable
3051
+
3052
+ # The token size limit for each chunk. Supported values: 100-500 (inclusive).
3053
+ # Default value: 500.
3054
+ # Corresponds to the JSON property `chunkSize`
3055
+ # @return [Fixnum]
3056
+ attr_accessor :chunk_size
3057
+
3058
+ # Whether to include appending different levels of headings to chunks from the
3059
+ # middle of the document to prevent context loss. Default value: False.
3060
+ # Corresponds to the JSON property `includeAncestorHeadings`
3061
+ # @return [Boolean]
3062
+ attr_accessor :include_ancestor_headings
3063
+ alias_method :include_ancestor_headings?, :include_ancestor_headings
3064
+
3065
+ def initialize(**args)
3066
+ update!(**args)
3067
+ end
3068
+
3069
+ # Update properties of this object
3070
+ def update!(**args)
3071
+ @chunk_size = args[:chunk_size] if args.key?(:chunk_size)
3072
+ @include_ancestor_headings = args[:include_ancestor_headings] if args.key?(:include_ancestor_headings)
3073
+ end
3074
+ end
3075
+
2948
3076
  # Related configurations applied to a specific type of document parser.
2949
3077
  class GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfig
2950
3078
  include Google::Apis::Core::Hashable
@@ -5914,6 +6042,14 @@ module Google
5914
6042
  # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecExtractiveContentSpec]
5915
6043
  attr_accessor :extractive_content_spec
5916
6044
 
6045
+ # Specifies the search result mode. If unspecified, the search result mode is
6046
+ # based on DataStore.DocumentProcessingConfig.chunking_config: * If DataStore.
6047
+ # DocumentProcessingConfig.chunking_config is specified, it defaults to `CHUNKS`.
6048
+ # * Otherwise, it defaults to `DOCUMENTS`.
6049
+ # Corresponds to the JSON property `searchResultMode`
6050
+ # @return [String]
6051
+ attr_accessor :search_result_mode
6052
+
5917
6053
  # A specification for configuring snippets in a search response.
5918
6054
  # Corresponds to the JSON property `snippetSpec`
5919
6055
  # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSnippetSpec]
@@ -5931,6 +6067,7 @@ module Google
5931
6067
  # Update properties of this object
5932
6068
  def update!(**args)
5933
6069
  @extractive_content_spec = args[:extractive_content_spec] if args.key?(:extractive_content_spec)
6070
+ @search_result_mode = args[:search_result_mode] if args.key?(:search_result_mode)
5934
6071
  @snippet_spec = args[:snippet_spec] if args.key?(:snippet_spec)
5935
6072
  @summary_spec = args[:summary_spec] if args.key?(:summary_spec)
5936
6073
  end
@@ -6681,6 +6818,12 @@ module Google
6681
6818
  class GoogleCloudDiscoveryengineV1alphaSearchResponseSearchResult
6682
6819
  include Google::Apis::Core::Hashable
6683
6820
 
6821
+ # Chunk captures all raw metadata information of items to be recommended or
6822
+ # searched in the chunk mode.
6823
+ # Corresponds to the JSON property `chunk`
6824
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaChunk]
6825
+ attr_accessor :chunk
6826
+
6684
6827
  # Document captures all raw metadata information of items to be recommended or
6685
6828
  # searched.
6686
6829
  # Corresponds to the JSON property `document`
@@ -6703,6 +6846,7 @@ module Google
6703
6846
 
6704
6847
  # Update properties of this object
6705
6848
  def update!(**args)
6849
+ @chunk = args[:chunk] if args.key?(:chunk)
6706
6850
  @document = args[:document] if args.key?(:document)
6707
6851
  @id = args[:id] if args.key?(:id)
6708
6852
  @model_scores = args[:model_scores] if args.key?(:model_scores)
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module DiscoveryengineV1alpha
18
18
  # Version of the google-apis-discoveryengine_v1alpha gem
19
- GEM_VERSION = "0.38.0"
19
+ GEM_VERSION = "0.39.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.14.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240227"
25
+ REVISION = "20240229"
26
26
  end
27
27
  end
28
28
  end
@@ -364,6 +364,18 @@ module Google
364
364
  include Google::Apis::Core::JsonObjectSupport
365
365
  end
366
366
 
367
+ class GoogleCloudDiscoveryengineV1alphaChunk
368
+ class Representation < Google::Apis::Core::JsonRepresentation; end
369
+
370
+ include Google::Apis::Core::JsonObjectSupport
371
+ end
372
+
373
+ class GoogleCloudDiscoveryengineV1alphaChunkDocumentMetadata
374
+ class Representation < Google::Apis::Core::JsonRepresentation; end
375
+
376
+ include Google::Apis::Core::JsonObjectSupport
377
+ end
378
+
367
379
  class GoogleCloudDiscoveryengineV1alphaCompleteQueryRequest
368
380
  class Representation < Google::Apis::Core::JsonRepresentation; end
369
381
 
@@ -550,6 +562,18 @@ module Google
550
562
  include Google::Apis::Core::JsonObjectSupport
551
563
  end
552
564
 
565
+ class GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigChunkingConfig
566
+ class Representation < Google::Apis::Core::JsonRepresentation; end
567
+
568
+ include Google::Apis::Core::JsonObjectSupport
569
+ end
570
+
571
+ class GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigChunkingConfigLayoutBasedChunkingConfig
572
+ class Representation < Google::Apis::Core::JsonRepresentation; end
573
+
574
+ include Google::Apis::Core::JsonObjectSupport
575
+ end
576
+
553
577
  class GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfig
554
578
  class Representation < Google::Apis::Core::JsonRepresentation; end
555
579
 
@@ -2225,6 +2249,26 @@ module Google
2225
2249
  end
2226
2250
  end
2227
2251
 
2252
+ class GoogleCloudDiscoveryengineV1alphaChunk
2253
+ # @private
2254
+ class Representation < Google::Apis::Core::JsonRepresentation
2255
+ property :content, as: 'content'
2256
+ hash :derived_struct_data, as: 'derivedStructData'
2257
+ property :document_metadata, as: 'documentMetadata', class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaChunkDocumentMetadata, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaChunkDocumentMetadata::Representation
2258
+
2259
+ property :id, as: 'id'
2260
+ property :name, as: 'name'
2261
+ end
2262
+ end
2263
+
2264
+ class GoogleCloudDiscoveryengineV1alphaChunkDocumentMetadata
2265
+ # @private
2266
+ class Representation < Google::Apis::Core::JsonRepresentation
2267
+ property :title, as: 'title'
2268
+ property :uri, as: 'uri'
2269
+ end
2270
+ end
2271
+
2228
2272
  class GoogleCloudDiscoveryengineV1alphaCompleteQueryRequest
2229
2273
  # @private
2230
2274
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2516,6 +2560,8 @@ module Google
2516
2560
  class GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig
2517
2561
  # @private
2518
2562
  class Representation < Google::Apis::Core::JsonRepresentation
2563
+ property :chunking_config, as: 'chunkingConfig', class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigChunkingConfig, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigChunkingConfig::Representation
2564
+
2519
2565
  property :default_parsing_config, as: 'defaultParsingConfig', class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfig, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfig::Representation
2520
2566
 
2521
2567
  property :name, as: 'name'
@@ -2526,6 +2572,22 @@ module Google
2526
2572
  end
2527
2573
  end
2528
2574
 
2575
+ class GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigChunkingConfig
2576
+ # @private
2577
+ class Representation < Google::Apis::Core::JsonRepresentation
2578
+ property :layout_based_chunking_config, as: 'layoutBasedChunkingConfig', class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigChunkingConfigLayoutBasedChunkingConfig, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigChunkingConfigLayoutBasedChunkingConfig::Representation
2579
+
2580
+ end
2581
+ end
2582
+
2583
+ class GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigChunkingConfigLayoutBasedChunkingConfig
2584
+ # @private
2585
+ class Representation < Google::Apis::Core::JsonRepresentation
2586
+ property :chunk_size, as: 'chunkSize'
2587
+ property :include_ancestor_headings, as: 'includeAncestorHeadings'
2588
+ end
2589
+ end
2590
+
2529
2591
  class GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfig
2530
2592
  # @private
2531
2593
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3344,6 +3406,7 @@ module Google
3344
3406
  class Representation < Google::Apis::Core::JsonRepresentation
3345
3407
  property :extractive_content_spec, as: 'extractiveContentSpec', class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecExtractiveContentSpec, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecExtractiveContentSpec::Representation
3346
3408
 
3409
+ property :search_result_mode, as: 'searchResultMode'
3347
3410
  property :snippet_spec, as: 'snippetSpec', class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSnippetSpec, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSnippetSpec::Representation
3348
3411
 
3349
3412
  property :summary_spec, as: 'summarySpec', class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpec, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpec::Representation
@@ -3542,6 +3605,8 @@ module Google
3542
3605
  class GoogleCloudDiscoveryengineV1alphaSearchResponseSearchResult
3543
3606
  # @private
3544
3607
  class Representation < Google::Apis::Core::JsonRepresentation
3608
+ property :chunk, as: 'chunk', class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaChunk, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaChunk::Representation
3609
+
3545
3610
  property :document, as: 'document', class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaDocument, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaDocument::Representation
3546
3611
 
3547
3612
  property :id, as: 'id'
@@ -388,7 +388,7 @@ module Google
388
388
  # imported search events. * `document-completable` - Using suggestions taken
389
389
  # directly from user-imported document fields marked as completable. Default
390
390
  # values: * `document` is the default model for regular dataStores. * `search-
391
- # history` is the default model for site search dataStores.
391
+ # history` is the default model for site search dataStores. *
392
392
  # @param [String] user_pseudo_id
393
393
  # A unique identifier for tracking visitors. For example, this could be
394
394
  # implemented with an HTTP cookie, which should be able to uniquely identify a
@@ -3595,7 +3595,7 @@ module Google
3595
3595
  # imported search events. * `document-completable` - Using suggestions taken
3596
3596
  # directly from user-imported document fields marked as completable. Default
3597
3597
  # values: * `document` is the default model for regular dataStores. * `search-
3598
- # history` is the default model for site search dataStores.
3598
+ # history` is the default model for site search dataStores. *
3599
3599
  # @param [String] user_pseudo_id
3600
3600
  # A unique identifier for tracking visitors. For example, this could be
3601
3601
  # implemented with an HTTP cookie, which should be able to uniquely identify a
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-discoveryengine_v1alpha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.38.0
4
+ version: 0.39.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: 2024-03-03 00:00:00.000000000 Z
11
+ date: 2024-03-10 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/main/generated/google-apis-discoveryengine_v1alpha/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-discoveryengine_v1alpha/v0.38.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-discoveryengine_v1alpha/v0.39.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-discoveryengine_v1alpha
63
63
  post_install_message:
64
64
  rdoc_options: []