google-apis-discoveryengine_v1beta 0.37.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 +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/google/apis/discoveryengine_v1beta/classes.rb +385 -209
- data/lib/google/apis/discoveryengine_v1beta/gem_version.rb +2 -2
- data/lib/google/apis/discoveryengine_v1beta/representations.rb +204 -113
- data/lib/google/apis/discoveryengine_v1beta/service.rb +50 -15
- metadata +3 -3
@@ -619,19 +619,6 @@ module Google
|
|
619
619
|
end
|
620
620
|
end
|
621
621
|
|
622
|
-
# The digital parsing configurations for documents.
|
623
|
-
class GoogleCloudDiscoveryengineV1DigitalParsingConfig
|
624
|
-
include Google::Apis::Core::Hashable
|
625
|
-
|
626
|
-
def initialize(**args)
|
627
|
-
update!(**args)
|
628
|
-
end
|
629
|
-
|
630
|
-
# Update properties of this object
|
631
|
-
def update!(**args)
|
632
|
-
end
|
633
|
-
end
|
634
|
-
|
635
622
|
# Metadata related to the progress of the SiteSearchEngineService.
|
636
623
|
# DisableAdvancedSiteSearch operation. This will be returned by the google.
|
637
624
|
# longrunning.Operation.metadata field.
|
@@ -718,12 +705,12 @@ module Google
|
|
718
705
|
|
719
706
|
# The digital parsing configurations for documents.
|
720
707
|
# Corresponds to the JSON property `digitalParsingConfig`
|
721
|
-
# @return [Google::Apis::DiscoveryengineV1beta::
|
708
|
+
# @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigDigitalParsingConfig]
|
722
709
|
attr_accessor :digital_parsing_config
|
723
710
|
|
724
711
|
# The OCR parsing configurations for documents.
|
725
712
|
# Corresponds to the JSON property `ocrParsingConfig`
|
726
|
-
# @return [Google::Apis::DiscoveryengineV1beta::
|
713
|
+
# @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigOcrParsingConfig]
|
727
714
|
attr_accessor :ocr_parsing_config
|
728
715
|
|
729
716
|
def initialize(**args)
|
@@ -737,6 +724,47 @@ module Google
|
|
737
724
|
end
|
738
725
|
end
|
739
726
|
|
727
|
+
# The digital parsing configurations for documents.
|
728
|
+
class GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigDigitalParsingConfig
|
729
|
+
include Google::Apis::Core::Hashable
|
730
|
+
|
731
|
+
def initialize(**args)
|
732
|
+
update!(**args)
|
733
|
+
end
|
734
|
+
|
735
|
+
# Update properties of this object
|
736
|
+
def update!(**args)
|
737
|
+
end
|
738
|
+
end
|
739
|
+
|
740
|
+
# The OCR parsing configurations for documents.
|
741
|
+
class GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigOcrParsingConfig
|
742
|
+
include Google::Apis::Core::Hashable
|
743
|
+
|
744
|
+
# Apply additional enhanced OCR processing to a list of document elements.
|
745
|
+
# Supported values: * `table`: advanced table parsing model.
|
746
|
+
# Corresponds to the JSON property `enhancedDocumentElements`
|
747
|
+
# @return [Array<String>]
|
748
|
+
attr_accessor :enhanced_document_elements
|
749
|
+
|
750
|
+
# If true, will use native text instead of OCR text on pages containing native
|
751
|
+
# text.
|
752
|
+
# Corresponds to the JSON property `useNativeText`
|
753
|
+
# @return [Boolean]
|
754
|
+
attr_accessor :use_native_text
|
755
|
+
alias_method :use_native_text?, :use_native_text
|
756
|
+
|
757
|
+
def initialize(**args)
|
758
|
+
update!(**args)
|
759
|
+
end
|
760
|
+
|
761
|
+
# Update properties of this object
|
762
|
+
def update!(**args)
|
763
|
+
@enhanced_document_elements = args[:enhanced_document_elements] if args.key?(:enhanced_document_elements)
|
764
|
+
@use_native_text = args[:use_native_text] if args.key?(:use_native_text)
|
765
|
+
end
|
766
|
+
end
|
767
|
+
|
740
768
|
# Metadata related to the progress of the SiteSearchEngineService.
|
741
769
|
# EnableAdvancedSiteSearch operation. This will be returned by the google.
|
742
770
|
# longrunning.Operation.metadata field.
|
@@ -1244,34 +1272,6 @@ module Google
|
|
1244
1272
|
end
|
1245
1273
|
end
|
1246
1274
|
|
1247
|
-
# The OCR parsing configurations for documents.
|
1248
|
-
class GoogleCloudDiscoveryengineV1OcrParsingConfig
|
1249
|
-
include Google::Apis::Core::Hashable
|
1250
|
-
|
1251
|
-
# Apply additional enhanced OCR processing to a list of document elements.
|
1252
|
-
# Supported values: * `table`: advanced table parsing model.
|
1253
|
-
# Corresponds to the JSON property `enhancedDocumentElements`
|
1254
|
-
# @return [Array<String>]
|
1255
|
-
attr_accessor :enhanced_document_elements
|
1256
|
-
|
1257
|
-
# If true, will use native text instead of OCR text on pages containing native
|
1258
|
-
# text.
|
1259
|
-
# Corresponds to the JSON property `useNativeText`
|
1260
|
-
# @return [Boolean]
|
1261
|
-
attr_accessor :use_native_text
|
1262
|
-
alias_method :use_native_text?, :use_native_text
|
1263
|
-
|
1264
|
-
def initialize(**args)
|
1265
|
-
update!(**args)
|
1266
|
-
end
|
1267
|
-
|
1268
|
-
# Update properties of this object
|
1269
|
-
def update!(**args)
|
1270
|
-
@enhanced_document_elements = args[:enhanced_document_elements] if args.key?(:enhanced_document_elements)
|
1271
|
-
@use_native_text = args[:use_native_text] if args.key?(:use_native_text)
|
1272
|
-
end
|
1273
|
-
end
|
1274
|
-
|
1275
1275
|
# Metadata related to the progress of the PurgeDocuments operation. This will be
|
1276
1276
|
# returned by the google.longrunning.Operation.metadata field.
|
1277
1277
|
class GoogleCloudDiscoveryengineV1PurgeDocumentsMetadata
|
@@ -2016,19 +2016,6 @@ module Google
|
|
2016
2016
|
end
|
2017
2017
|
end
|
2018
2018
|
|
2019
|
-
# The digital parsing configurations for documents.
|
2020
|
-
class GoogleCloudDiscoveryengineV1alphaDigitalParsingConfig
|
2021
|
-
include Google::Apis::Core::Hashable
|
2022
|
-
|
2023
|
-
def initialize(**args)
|
2024
|
-
update!(**args)
|
2025
|
-
end
|
2026
|
-
|
2027
|
-
# Update properties of this object
|
2028
|
-
def update!(**args)
|
2029
|
-
end
|
2030
|
-
end
|
2031
|
-
|
2032
2019
|
# Metadata related to the progress of the SiteSearchEngineService.
|
2033
2020
|
# DisableAdvancedSiteSearch operation. This will be returned by the google.
|
2034
2021
|
# longrunning.Operation.metadata field.
|
@@ -2076,6 +2063,11 @@ module Google
|
|
2076
2063
|
class GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig
|
2077
2064
|
include Google::Apis::Core::Hashable
|
2078
2065
|
|
2066
|
+
# Configuration for chunking config.
|
2067
|
+
# Corresponds to the JSON property `chunkingConfig`
|
2068
|
+
# @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigChunkingConfig]
|
2069
|
+
attr_accessor :chunking_config
|
2070
|
+
|
2079
2071
|
# Related configurations applied to a specific type of document parser.
|
2080
2072
|
# Corresponds to the JSON property `defaultParsingConfig`
|
2081
2073
|
# @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfig]
|
@@ -2087,11 +2079,6 @@ module Google
|
|
2087
2079
|
# @return [String]
|
2088
2080
|
attr_accessor :name
|
2089
2081
|
|
2090
|
-
# The OCR options for parsing documents.
|
2091
|
-
# Corresponds to the JSON property `ocrConfig`
|
2092
|
-
# @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaOcrConfig]
|
2093
|
-
attr_accessor :ocr_config
|
2094
|
-
|
2095
2082
|
# Map from file type to override the default parsing configuration based on the
|
2096
2083
|
# file type. Supported keys: * `pdf`: Override parsing config for PDF files,
|
2097
2084
|
# either digital parsing, ocr parsing or layout parsing is supported. * `html`:
|
@@ -2108,30 +2095,77 @@ module Google
|
|
2108
2095
|
|
2109
2096
|
# Update properties of this object
|
2110
2097
|
def update!(**args)
|
2098
|
+
@chunking_config = args[:chunking_config] if args.key?(:chunking_config)
|
2111
2099
|
@default_parsing_config = args[:default_parsing_config] if args.key?(:default_parsing_config)
|
2112
2100
|
@name = args[:name] if args.key?(:name)
|
2113
|
-
@ocr_config = args[:ocr_config] if args.key?(:ocr_config)
|
2114
2101
|
@parsing_config_overrides = args[:parsing_config_overrides] if args.key?(:parsing_config_overrides)
|
2115
2102
|
end
|
2116
2103
|
end
|
2117
2104
|
|
2105
|
+
# Configuration for chunking config.
|
2106
|
+
class GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigChunkingConfig
|
2107
|
+
include Google::Apis::Core::Hashable
|
2108
|
+
|
2109
|
+
# Configuration for the layout based chunking.
|
2110
|
+
# Corresponds to the JSON property `layoutBasedChunkingConfig`
|
2111
|
+
# @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigChunkingConfigLayoutBasedChunkingConfig]
|
2112
|
+
attr_accessor :layout_based_chunking_config
|
2113
|
+
|
2114
|
+
def initialize(**args)
|
2115
|
+
update!(**args)
|
2116
|
+
end
|
2117
|
+
|
2118
|
+
# Update properties of this object
|
2119
|
+
def update!(**args)
|
2120
|
+
@layout_based_chunking_config = args[:layout_based_chunking_config] if args.key?(:layout_based_chunking_config)
|
2121
|
+
end
|
2122
|
+
end
|
2123
|
+
|
2124
|
+
# Configuration for the layout based chunking.
|
2125
|
+
class GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigChunkingConfigLayoutBasedChunkingConfig
|
2126
|
+
include Google::Apis::Core::Hashable
|
2127
|
+
|
2128
|
+
# The token size limit for each chunk. Supported values: 100-500 (inclusive).
|
2129
|
+
# Default value: 500.
|
2130
|
+
# Corresponds to the JSON property `chunkSize`
|
2131
|
+
# @return [Fixnum]
|
2132
|
+
attr_accessor :chunk_size
|
2133
|
+
|
2134
|
+
# Whether to include appending different levels of headings to chunks from the
|
2135
|
+
# middle of the document to prevent context loss. Default value: False.
|
2136
|
+
# Corresponds to the JSON property `includeAncestorHeadings`
|
2137
|
+
# @return [Boolean]
|
2138
|
+
attr_accessor :include_ancestor_headings
|
2139
|
+
alias_method :include_ancestor_headings?, :include_ancestor_headings
|
2140
|
+
|
2141
|
+
def initialize(**args)
|
2142
|
+
update!(**args)
|
2143
|
+
end
|
2144
|
+
|
2145
|
+
# Update properties of this object
|
2146
|
+
def update!(**args)
|
2147
|
+
@chunk_size = args[:chunk_size] if args.key?(:chunk_size)
|
2148
|
+
@include_ancestor_headings = args[:include_ancestor_headings] if args.key?(:include_ancestor_headings)
|
2149
|
+
end
|
2150
|
+
end
|
2151
|
+
|
2118
2152
|
# Related configurations applied to a specific type of document parser.
|
2119
2153
|
class GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfig
|
2120
2154
|
include Google::Apis::Core::Hashable
|
2121
2155
|
|
2122
2156
|
# The digital parsing configurations for documents.
|
2123
2157
|
# Corresponds to the JSON property `digitalParsingConfig`
|
2124
|
-
# @return [Google::Apis::DiscoveryengineV1beta::
|
2158
|
+
# @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigDigitalParsingConfig]
|
2125
2159
|
attr_accessor :digital_parsing_config
|
2126
2160
|
|
2127
2161
|
# The layout parsing configurations for documents.
|
2128
2162
|
# Corresponds to the JSON property `layoutParsingConfig`
|
2129
|
-
# @return [Google::Apis::DiscoveryengineV1beta::
|
2163
|
+
# @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigLayoutParsingConfig]
|
2130
2164
|
attr_accessor :layout_parsing_config
|
2131
2165
|
|
2132
2166
|
# The OCR parsing configurations for documents.
|
2133
2167
|
# Corresponds to the JSON property `ocrParsingConfig`
|
2134
|
-
# @return [Google::Apis::DiscoveryengineV1beta::
|
2168
|
+
# @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigOcrParsingConfig]
|
2135
2169
|
attr_accessor :ocr_parsing_config
|
2136
2170
|
|
2137
2171
|
def initialize(**args)
|
@@ -2146,6 +2180,60 @@ module Google
|
|
2146
2180
|
end
|
2147
2181
|
end
|
2148
2182
|
|
2183
|
+
# The digital parsing configurations for documents.
|
2184
|
+
class GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigDigitalParsingConfig
|
2185
|
+
include Google::Apis::Core::Hashable
|
2186
|
+
|
2187
|
+
def initialize(**args)
|
2188
|
+
update!(**args)
|
2189
|
+
end
|
2190
|
+
|
2191
|
+
# Update properties of this object
|
2192
|
+
def update!(**args)
|
2193
|
+
end
|
2194
|
+
end
|
2195
|
+
|
2196
|
+
# The layout parsing configurations for documents.
|
2197
|
+
class GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigLayoutParsingConfig
|
2198
|
+
include Google::Apis::Core::Hashable
|
2199
|
+
|
2200
|
+
def initialize(**args)
|
2201
|
+
update!(**args)
|
2202
|
+
end
|
2203
|
+
|
2204
|
+
# Update properties of this object
|
2205
|
+
def update!(**args)
|
2206
|
+
end
|
2207
|
+
end
|
2208
|
+
|
2209
|
+
# The OCR parsing configurations for documents.
|
2210
|
+
class GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigOcrParsingConfig
|
2211
|
+
include Google::Apis::Core::Hashable
|
2212
|
+
|
2213
|
+
# Apply additional enhanced OCR processing to a list of document elements.
|
2214
|
+
# Supported values: * `table`: advanced table parsing model.
|
2215
|
+
# Corresponds to the JSON property `enhancedDocumentElements`
|
2216
|
+
# @return [Array<String>]
|
2217
|
+
attr_accessor :enhanced_document_elements
|
2218
|
+
|
2219
|
+
# If true, will use native text instead of OCR text on pages containing native
|
2220
|
+
# text.
|
2221
|
+
# Corresponds to the JSON property `useNativeText`
|
2222
|
+
# @return [Boolean]
|
2223
|
+
attr_accessor :use_native_text
|
2224
|
+
alias_method :use_native_text?, :use_native_text
|
2225
|
+
|
2226
|
+
def initialize(**args)
|
2227
|
+
update!(**args)
|
2228
|
+
end
|
2229
|
+
|
2230
|
+
# Update properties of this object
|
2231
|
+
def update!(**args)
|
2232
|
+
@enhanced_document_elements = args[:enhanced_document_elements] if args.key?(:enhanced_document_elements)
|
2233
|
+
@use_native_text = args[:use_native_text] if args.key?(:use_native_text)
|
2234
|
+
end
|
2235
|
+
end
|
2236
|
+
|
2149
2237
|
# Metadata related to the progress of the SiteSearchEngineService.
|
2150
2238
|
# EnableAdvancedSiteSearch operation. This will be returned by the google.
|
2151
2239
|
# longrunning.Operation.metadata field.
|
@@ -2191,14 +2279,6 @@ module Google
|
|
2191
2279
|
class GoogleCloudDiscoveryengineV1alphaEngine
|
2192
2280
|
include Google::Apis::Core::Hashable
|
2193
2281
|
|
2194
|
-
# Whether the search engine can associate with multiple data stores. If true,
|
2195
|
-
# the generic search engine can associate with one or more data stores. This is
|
2196
|
-
# an input-only field.
|
2197
|
-
# Corresponds to the JSON property `allowMultipleDataStoresSearchEngine`
|
2198
|
-
# @return [Boolean]
|
2199
|
-
attr_accessor :allow_multiple_data_stores_search_engine
|
2200
|
-
alias_method :allow_multiple_data_stores_search_engine?, :allow_multiple_data_stores_search_engine
|
2201
|
-
|
2202
2282
|
# Configurations for a Chat Engine.
|
2203
2283
|
# Corresponds to the JSON property `chatEngineConfig`
|
2204
2284
|
# @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaEngineChatEngineConfig]
|
@@ -2289,7 +2369,6 @@ module Google
|
|
2289
2369
|
|
2290
2370
|
# Update properties of this object
|
2291
2371
|
def update!(**args)
|
2292
|
-
@allow_multiple_data_stores_search_engine = args[:allow_multiple_data_stores_search_engine] if args.key?(:allow_multiple_data_stores_search_engine)
|
2293
2372
|
@chat_engine_config = args[:chat_engine_config] if args.key?(:chat_engine_config)
|
2294
2373
|
@chat_engine_metadata = args[:chat_engine_metadata] if args.key?(:chat_engine_metadata)
|
2295
2374
|
@common_config = args[:common_config] if args.key?(:common_config)
|
@@ -3023,84 +3102,6 @@ module Google
|
|
3023
3102
|
end
|
3024
3103
|
end
|
3025
3104
|
|
3026
|
-
# The layout parsing configurations for documents.
|
3027
|
-
class GoogleCloudDiscoveryengineV1alphaLayoutParsingConfig
|
3028
|
-
include Google::Apis::Core::Hashable
|
3029
|
-
|
3030
|
-
def initialize(**args)
|
3031
|
-
update!(**args)
|
3032
|
-
end
|
3033
|
-
|
3034
|
-
# Update properties of this object
|
3035
|
-
def update!(**args)
|
3036
|
-
end
|
3037
|
-
end
|
3038
|
-
|
3039
|
-
# The OCR options for parsing documents.
|
3040
|
-
class GoogleCloudDiscoveryengineV1alphaOcrConfig
|
3041
|
-
include Google::Apis::Core::Hashable
|
3042
|
-
|
3043
|
-
# Required. If OCR is enabled or not. OCR must be enabled for other OcrConfig
|
3044
|
-
# options to apply. We will only perform OCR on the first 80 pages of the PDF
|
3045
|
-
# files.
|
3046
|
-
# Corresponds to the JSON property `enabled`
|
3047
|
-
# @return [Boolean]
|
3048
|
-
attr_accessor :enabled
|
3049
|
-
alias_method :enabled?, :enabled
|
3050
|
-
|
3051
|
-
# Apply additional enhanced OCR processing to a list of document elements.
|
3052
|
-
# Supported values: * `table`: advanced table parsing model.
|
3053
|
-
# Corresponds to the JSON property `enhancedDocumentElements`
|
3054
|
-
# @return [Array<String>]
|
3055
|
-
attr_accessor :enhanced_document_elements
|
3056
|
-
|
3057
|
-
# If true, will use native text instead of OCR text on pages containing native
|
3058
|
-
# text.
|
3059
|
-
# Corresponds to the JSON property `useNativeText`
|
3060
|
-
# @return [Boolean]
|
3061
|
-
attr_accessor :use_native_text
|
3062
|
-
alias_method :use_native_text?, :use_native_text
|
3063
|
-
|
3064
|
-
def initialize(**args)
|
3065
|
-
update!(**args)
|
3066
|
-
end
|
3067
|
-
|
3068
|
-
# Update properties of this object
|
3069
|
-
def update!(**args)
|
3070
|
-
@enabled = args[:enabled] if args.key?(:enabled)
|
3071
|
-
@enhanced_document_elements = args[:enhanced_document_elements] if args.key?(:enhanced_document_elements)
|
3072
|
-
@use_native_text = args[:use_native_text] if args.key?(:use_native_text)
|
3073
|
-
end
|
3074
|
-
end
|
3075
|
-
|
3076
|
-
# The OCR parsing configurations for documents.
|
3077
|
-
class GoogleCloudDiscoveryengineV1alphaOcrParsingConfig
|
3078
|
-
include Google::Apis::Core::Hashable
|
3079
|
-
|
3080
|
-
# Apply additional enhanced OCR processing to a list of document elements.
|
3081
|
-
# Supported values: * `table`: advanced table parsing model.
|
3082
|
-
# Corresponds to the JSON property `enhancedDocumentElements`
|
3083
|
-
# @return [Array<String>]
|
3084
|
-
attr_accessor :enhanced_document_elements
|
3085
|
-
|
3086
|
-
# If true, will use native text instead of OCR text on pages containing native
|
3087
|
-
# text.
|
3088
|
-
# Corresponds to the JSON property `useNativeText`
|
3089
|
-
# @return [Boolean]
|
3090
|
-
attr_accessor :use_native_text
|
3091
|
-
alias_method :use_native_text?, :use_native_text
|
3092
|
-
|
3093
|
-
def initialize(**args)
|
3094
|
-
update!(**args)
|
3095
|
-
end
|
3096
|
-
|
3097
|
-
# Update properties of this object
|
3098
|
-
def update!(**args)
|
3099
|
-
@enhanced_document_elements = args[:enhanced_document_elements] if args.key?(:enhanced_document_elements)
|
3100
|
-
@use_native_text = args[:use_native_text] if args.key?(:use_native_text)
|
3101
|
-
end
|
3102
|
-
end
|
3103
|
-
|
3104
3105
|
# Metadata related to the progress of the PurgeDocuments operation. This will be
|
3105
3106
|
# returned by the google.longrunning.Operation.metadata field.
|
3106
3107
|
class GoogleCloudDiscoveryengineV1alphaPurgeDocumentsMetadata
|
@@ -4575,19 +4576,6 @@ module Google
|
|
4575
4576
|
end
|
4576
4577
|
end
|
4577
4578
|
|
4578
|
-
# The digital parsing configurations for documents.
|
4579
|
-
class GoogleCloudDiscoveryengineV1betaDigitalParsingConfig
|
4580
|
-
include Google::Apis::Core::Hashable
|
4581
|
-
|
4582
|
-
def initialize(**args)
|
4583
|
-
update!(**args)
|
4584
|
-
end
|
4585
|
-
|
4586
|
-
# Update properties of this object
|
4587
|
-
def update!(**args)
|
4588
|
-
end
|
4589
|
-
end
|
4590
|
-
|
4591
4579
|
# Metadata related to the progress of the SiteSearchEngineService.
|
4592
4580
|
# DisableAdvancedSiteSearch operation. This will be returned by the google.
|
4593
4581
|
# longrunning.Operation.metadata field.
|
@@ -4860,12 +4848,12 @@ module Google
|
|
4860
4848
|
|
4861
4849
|
# The digital parsing configurations for documents.
|
4862
4850
|
# Corresponds to the JSON property `digitalParsingConfig`
|
4863
|
-
# @return [Google::Apis::DiscoveryengineV1beta::
|
4851
|
+
# @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigDigitalParsingConfig]
|
4864
4852
|
attr_accessor :digital_parsing_config
|
4865
4853
|
|
4866
4854
|
# The OCR parsing configurations for documents.
|
4867
4855
|
# Corresponds to the JSON property `ocrParsingConfig`
|
4868
|
-
# @return [Google::Apis::DiscoveryengineV1beta::
|
4856
|
+
# @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigOcrParsingConfig]
|
4869
4857
|
attr_accessor :ocr_parsing_config
|
4870
4858
|
|
4871
4859
|
def initialize(**args)
|
@@ -4879,6 +4867,47 @@ module Google
|
|
4879
4867
|
end
|
4880
4868
|
end
|
4881
4869
|
|
4870
|
+
# The digital parsing configurations for documents.
|
4871
|
+
class GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigDigitalParsingConfig
|
4872
|
+
include Google::Apis::Core::Hashable
|
4873
|
+
|
4874
|
+
def initialize(**args)
|
4875
|
+
update!(**args)
|
4876
|
+
end
|
4877
|
+
|
4878
|
+
# Update properties of this object
|
4879
|
+
def update!(**args)
|
4880
|
+
end
|
4881
|
+
end
|
4882
|
+
|
4883
|
+
# The OCR parsing configurations for documents.
|
4884
|
+
class GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigOcrParsingConfig
|
4885
|
+
include Google::Apis::Core::Hashable
|
4886
|
+
|
4887
|
+
# Apply additional enhanced OCR processing to a list of document elements.
|
4888
|
+
# Supported values: * `table`: advanced table parsing model.
|
4889
|
+
# Corresponds to the JSON property `enhancedDocumentElements`
|
4890
|
+
# @return [Array<String>]
|
4891
|
+
attr_accessor :enhanced_document_elements
|
4892
|
+
|
4893
|
+
# If true, will use native text instead of OCR text on pages containing native
|
4894
|
+
# text.
|
4895
|
+
# Corresponds to the JSON property `useNativeText`
|
4896
|
+
# @return [Boolean]
|
4897
|
+
attr_accessor :use_native_text
|
4898
|
+
alias_method :use_native_text?, :use_native_text
|
4899
|
+
|
4900
|
+
def initialize(**args)
|
4901
|
+
update!(**args)
|
4902
|
+
end
|
4903
|
+
|
4904
|
+
# Update properties of this object
|
4905
|
+
def update!(**args)
|
4906
|
+
@enhanced_document_elements = args[:enhanced_document_elements] if args.key?(:enhanced_document_elements)
|
4907
|
+
@use_native_text = args[:use_native_text] if args.key?(:use_native_text)
|
4908
|
+
end
|
4909
|
+
end
|
4910
|
+
|
4882
4911
|
# Double list.
|
4883
4912
|
class GoogleCloudDiscoveryengineV1betaDoubleList
|
4884
4913
|
include Google::Apis::Core::Hashable
|
@@ -5961,34 +5990,6 @@ module Google
|
|
5961
5990
|
end
|
5962
5991
|
end
|
5963
5992
|
|
5964
|
-
# The OCR parsing configurations for documents.
|
5965
|
-
class GoogleCloudDiscoveryengineV1betaOcrParsingConfig
|
5966
|
-
include Google::Apis::Core::Hashable
|
5967
|
-
|
5968
|
-
# Apply additional enhanced OCR processing to a list of document elements.
|
5969
|
-
# Supported values: * `table`: advanced table parsing model.
|
5970
|
-
# Corresponds to the JSON property `enhancedDocumentElements`
|
5971
|
-
# @return [Array<String>]
|
5972
|
-
attr_accessor :enhanced_document_elements
|
5973
|
-
|
5974
|
-
# If true, will use native text instead of OCR text on pages containing native
|
5975
|
-
# text.
|
5976
|
-
# Corresponds to the JSON property `useNativeText`
|
5977
|
-
# @return [Boolean]
|
5978
|
-
attr_accessor :use_native_text
|
5979
|
-
alias_method :use_native_text?, :use_native_text
|
5980
|
-
|
5981
|
-
def initialize(**args)
|
5982
|
-
update!(**args)
|
5983
|
-
end
|
5984
|
-
|
5985
|
-
# Update properties of this object
|
5986
|
-
def update!(**args)
|
5987
|
-
@enhanced_document_elements = args[:enhanced_document_elements] if args.key?(:enhanced_document_elements)
|
5988
|
-
@use_native_text = args[:use_native_text] if args.key?(:use_native_text)
|
5989
|
-
end
|
5990
|
-
end
|
5991
|
-
|
5992
5993
|
# Detailed page information.
|
5993
5994
|
class GoogleCloudDiscoveryengineV1betaPageInfo
|
5994
5995
|
include Google::Apis::Core::Hashable
|
@@ -6623,6 +6624,11 @@ module Google
|
|
6623
6624
|
# @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpec]
|
6624
6625
|
attr_accessor :content_search_spec
|
6625
6626
|
|
6627
|
+
# A list of data store specs to apply on a search call.
|
6628
|
+
# Corresponds to the JSON property `dataStoreSpecs`
|
6629
|
+
# @return [Array<Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSearchRequestDataStoreSpec>]
|
6630
|
+
attr_accessor :data_store_specs
|
6631
|
+
|
6626
6632
|
# The specification that uses customized query embedding vector to do semantic
|
6627
6633
|
# document retrieval.
|
6628
6634
|
# Corresponds to the JSON property `embeddingSpec`
|
@@ -6778,6 +6784,7 @@ module Google
|
|
6778
6784
|
@branch = args[:branch] if args.key?(:branch)
|
6779
6785
|
@canonical_filter = args[:canonical_filter] if args.key?(:canonical_filter)
|
6780
6786
|
@content_search_spec = args[:content_search_spec] if args.key?(:content_search_spec)
|
6787
|
+
@data_store_specs = args[:data_store_specs] if args.key?(:data_store_specs)
|
6781
6788
|
@embedding_spec = args[:embedding_spec] if args.key?(:embedding_spec)
|
6782
6789
|
@facet_specs = args[:facet_specs] if args.key?(:facet_specs)
|
6783
6790
|
@filter = args[:filter] if args.key?(:filter)
|
@@ -6841,8 +6848,8 @@ module Google
|
|
6841
6848
|
# An expression which specifies a boost condition. The syntax and supported
|
6842
6849
|
# fields are the same as a filter expression. See SearchRequest.filter for
|
6843
6850
|
# detail syntax and limitations. Examples: * To boost documents with document ID
|
6844
|
-
# "doc_1" or "doc_2", and color "Red" or "Blue":
|
6845
|
-
# doc_2")) AND (color: ANY("Red", "Blue"))
|
6851
|
+
# "doc_1" or "doc_2", and color "Red" or "Blue": `(document_id: ANY("doc_1", "
|
6852
|
+
# doc_2")) AND (color: ANY("Red", "Blue"))`
|
6846
6853
|
# Corresponds to the JSON property `condition`
|
6847
6854
|
# @return [String]
|
6848
6855
|
attr_accessor :condition
|
@@ -6928,6 +6935,15 @@ module Google
|
|
6928
6935
|
# @return [Fixnum]
|
6929
6936
|
attr_accessor :num_previous_segments
|
6930
6937
|
|
6938
|
+
# Specifies whether to return the confidence score from the extractive segments
|
6939
|
+
# in each search result. This feature is available only for new or allowlisted
|
6940
|
+
# data stores. To allowlist your data store, please contact your Customer
|
6941
|
+
# Engineer. The default value is `false`.
|
6942
|
+
# Corresponds to the JSON property `returnExtractiveSegmentScore`
|
6943
|
+
# @return [Boolean]
|
6944
|
+
attr_accessor :return_extractive_segment_score
|
6945
|
+
alias_method :return_extractive_segment_score?, :return_extractive_segment_score
|
6946
|
+
|
6931
6947
|
def initialize(**args)
|
6932
6948
|
update!(**args)
|
6933
6949
|
end
|
@@ -6938,6 +6954,7 @@ module Google
|
|
6938
6954
|
@max_extractive_segment_count = args[:max_extractive_segment_count] if args.key?(:max_extractive_segment_count)
|
6939
6955
|
@num_next_segments = args[:num_next_segments] if args.key?(:num_next_segments)
|
6940
6956
|
@num_previous_segments = args[:num_previous_segments] if args.key?(:num_previous_segments)
|
6957
|
+
@return_extractive_segment_score = args[:return_extractive_segment_score] if args.key?(:return_extractive_segment_score)
|
6941
6958
|
end
|
6942
6959
|
end
|
6943
6960
|
|
@@ -7040,8 +7057,7 @@ module Google
|
|
7040
7057
|
|
7041
7058
|
# The number of top results to generate the summary from. If the number of
|
7042
7059
|
# results returned is less than `summaryResultCount`, the summary is generated
|
7043
|
-
# from all of the results. At most
|
7044
|
-
# summary.
|
7060
|
+
# from all of the results. At most 10 results can be used to generate a summary.
|
7045
7061
|
# Corresponds to the JSON property `summaryResultCount`
|
7046
7062
|
# @return [Fixnum]
|
7047
7063
|
attr_accessor :summary_result_count
|
@@ -7088,9 +7104,12 @@ module Google
|
|
7088
7104
|
|
7089
7105
|
# The model version used to generate the summary. Supported values are: * `
|
7090
7106
|
# stable`: string. Default value when no value is specified. Uses a generally
|
7091
|
-
# available, fine-tuned
|
7092
|
-
#
|
7093
|
-
#
|
7107
|
+
# available, fine-tuned model. For more information, see [Answer generation
|
7108
|
+
# model versions and lifecycle](https://cloud.google.com/generative-ai-app-
|
7109
|
+
# builder/docs/answer-generation-models). * `preview`: string. (Public preview)
|
7110
|
+
# Uses a preview model. For more information, see [Answer generation model
|
7111
|
+
# versions and lifecycle](https://cloud.google.com/generative-ai-app-builder/
|
7112
|
+
# docs/answer-generation-models).
|
7094
7113
|
# Corresponds to the JSON property `version`
|
7095
7114
|
# @return [String]
|
7096
7115
|
attr_accessor :version
|
@@ -7105,6 +7124,26 @@ module Google
|
|
7105
7124
|
end
|
7106
7125
|
end
|
7107
7126
|
|
7127
|
+
# A struct to define data stores to filter on in a search call.
|
7128
|
+
class GoogleCloudDiscoveryengineV1betaSearchRequestDataStoreSpec
|
7129
|
+
include Google::Apis::Core::Hashable
|
7130
|
+
|
7131
|
+
# Required. Full resource name of DataStore, such as `projects/`project`/
|
7132
|
+
# locations/`location`/collections/`collection_id`/dataStores/`data_store_id``.
|
7133
|
+
# Corresponds to the JSON property `dataStore`
|
7134
|
+
# @return [String]
|
7135
|
+
attr_accessor :data_store
|
7136
|
+
|
7137
|
+
def initialize(**args)
|
7138
|
+
update!(**args)
|
7139
|
+
end
|
7140
|
+
|
7141
|
+
# Update properties of this object
|
7142
|
+
def update!(**args)
|
7143
|
+
@data_store = args[:data_store] if args.key?(:data_store)
|
7144
|
+
end
|
7145
|
+
end
|
7146
|
+
|
7108
7147
|
# The specification that uses customized query embedding vector to do semantic
|
7109
7148
|
# document retrieval.
|
7110
7149
|
class GoogleCloudDiscoveryengineV1betaSearchRequestEmbeddingSpec
|
@@ -7952,7 +7991,7 @@ module Google
|
|
7952
7991
|
attr_accessor :model_id
|
7953
7992
|
|
7954
7993
|
# Immutable. Fully qualified name `projects/`project`/locations/`location`/
|
7955
|
-
# collections/`collection_id`/
|
7994
|
+
# collections/`collection_id`/engines/`engine_id`/servingConfigs/`
|
7956
7995
|
# serving_config_id``
|
7957
7996
|
# Corresponds to the JSON property `name`
|
7958
7997
|
# @return [String]
|
@@ -8084,11 +8123,6 @@ module Google
|
|
8084
8123
|
# @return [Fixnum]
|
8085
8124
|
attr_accessor :content_freshness_cutoff_days
|
8086
8125
|
|
8087
|
-
# Specifies the content watched minutes threshold for demotion.
|
8088
|
-
# Corresponds to the JSON property `contentWatchedMinutesThreshold`
|
8089
|
-
# @return [Float]
|
8090
|
-
attr_accessor :content_watched_minutes_threshold
|
8091
|
-
|
8092
8126
|
# Specifies the content watched percentage threshold for demotion. Threshold
|
8093
8127
|
# value must be between [0, 1.0] inclusive.
|
8094
8128
|
# Corresponds to the JSON property `contentWatchedPercentageThreshold`
|
@@ -8116,7 +8150,6 @@ module Google
|
|
8116
8150
|
# Update properties of this object
|
8117
8151
|
def update!(**args)
|
8118
8152
|
@content_freshness_cutoff_days = args[:content_freshness_cutoff_days] if args.key?(:content_freshness_cutoff_days)
|
8119
|
-
@content_watched_minutes_threshold = args[:content_watched_minutes_threshold] if args.key?(:content_watched_minutes_threshold)
|
8120
8153
|
@content_watched_percentage_threshold = args[:content_watched_percentage_threshold] if args.key?(:content_watched_percentage_threshold)
|
8121
8154
|
@content_watched_seconds_threshold = args[:content_watched_seconds_threshold] if args.key?(:content_watched_seconds_threshold)
|
8122
8155
|
@demotion_event_type = args[:demotion_event_type] if args.key?(:demotion_event_type)
|
@@ -8339,6 +8372,149 @@ module Google
|
|
8339
8372
|
end
|
8340
8373
|
end
|
8341
8374
|
|
8375
|
+
# Metadata related to the progress of the TrainCustomModel operation. This is
|
8376
|
+
# returned by the google.longrunning.Operation.metadata field.
|
8377
|
+
class GoogleCloudDiscoveryengineV1betaTrainCustomModelMetadata
|
8378
|
+
include Google::Apis::Core::Hashable
|
8379
|
+
|
8380
|
+
# Operation create time.
|
8381
|
+
# Corresponds to the JSON property `createTime`
|
8382
|
+
# @return [String]
|
8383
|
+
attr_accessor :create_time
|
8384
|
+
|
8385
|
+
# Operation last update time. If the operation is done, this is also the finish
|
8386
|
+
# time.
|
8387
|
+
# Corresponds to the JSON property `updateTime`
|
8388
|
+
# @return [String]
|
8389
|
+
attr_accessor :update_time
|
8390
|
+
|
8391
|
+
def initialize(**args)
|
8392
|
+
update!(**args)
|
8393
|
+
end
|
8394
|
+
|
8395
|
+
# Update properties of this object
|
8396
|
+
def update!(**args)
|
8397
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
8398
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
8399
|
+
end
|
8400
|
+
end
|
8401
|
+
|
8402
|
+
# Request message for SearchTuningService.TrainCustomModel method.
|
8403
|
+
class GoogleCloudDiscoveryengineV1betaTrainCustomModelRequest
|
8404
|
+
include Google::Apis::Core::Hashable
|
8405
|
+
|
8406
|
+
# Configuration of destination for Import related errors.
|
8407
|
+
# Corresponds to the JSON property `errorConfig`
|
8408
|
+
# @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaImportErrorConfig]
|
8409
|
+
attr_accessor :error_config
|
8410
|
+
|
8411
|
+
# Cloud Storage training data input.
|
8412
|
+
# Corresponds to the JSON property `gcsTrainingInput`
|
8413
|
+
# @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaTrainCustomModelRequestGcsTrainingInput]
|
8414
|
+
attr_accessor :gcs_training_input
|
8415
|
+
|
8416
|
+
# Model to be trained. Supported values are: * **search-tuning**: Fine tuning
|
8417
|
+
# the search system based on data provided.
|
8418
|
+
# Corresponds to the JSON property `modelType`
|
8419
|
+
# @return [String]
|
8420
|
+
attr_accessor :model_type
|
8421
|
+
|
8422
|
+
def initialize(**args)
|
8423
|
+
update!(**args)
|
8424
|
+
end
|
8425
|
+
|
8426
|
+
# Update properties of this object
|
8427
|
+
def update!(**args)
|
8428
|
+
@error_config = args[:error_config] if args.key?(:error_config)
|
8429
|
+
@gcs_training_input = args[:gcs_training_input] if args.key?(:gcs_training_input)
|
8430
|
+
@model_type = args[:model_type] if args.key?(:model_type)
|
8431
|
+
end
|
8432
|
+
end
|
8433
|
+
|
8434
|
+
# Cloud Storage training data input.
|
8435
|
+
class GoogleCloudDiscoveryengineV1betaTrainCustomModelRequestGcsTrainingInput
|
8436
|
+
include Google::Apis::Core::Hashable
|
8437
|
+
|
8438
|
+
# The Cloud Storage corpus data which could be associated in train data. The
|
8439
|
+
# data path format is `gs:///`. A newline delimited jsonl/ndjson file. For
|
8440
|
+
# search-tuning model, each line should have the _id, title and text. Example: ``
|
8441
|
+
# "_id": "doc1", title: "relevant doc", "text": "relevant text"``
|
8442
|
+
# Corresponds to the JSON property `corpusDataPath`
|
8443
|
+
# @return [String]
|
8444
|
+
attr_accessor :corpus_data_path
|
8445
|
+
|
8446
|
+
# The gcs query data which could be associated in train data. The data path
|
8447
|
+
# format is `gs:///`. A newline delimited jsonl/ndjson file. For search-tuning
|
8448
|
+
# model, each line should have the _id and text. Example: `"_id": "query1", "
|
8449
|
+
# text": "example query"`
|
8450
|
+
# Corresponds to the JSON property `queryDataPath`
|
8451
|
+
# @return [String]
|
8452
|
+
attr_accessor :query_data_path
|
8453
|
+
|
8454
|
+
# Cloud Storage test data. Same format as train_data_path. If not provided, a
|
8455
|
+
# random 80/20 train/test split will be performed on train_data_path.
|
8456
|
+
# Corresponds to the JSON property `testDataPath`
|
8457
|
+
# @return [String]
|
8458
|
+
attr_accessor :test_data_path
|
8459
|
+
|
8460
|
+
# Cloud Storage training data path whose format should be `gs:///`. The file
|
8461
|
+
# should be in tsv format. Each line should have the doc_id and query_id and
|
8462
|
+
# score (number). For search-tuning model, it should have the query-id corpus-id
|
8463
|
+
# score as tsv file header. The score should be a number in `[0, inf+)`. The
|
8464
|
+
# larger the number is, the more relevant the pair is. Example: * `query-id\
|
8465
|
+
# tcorpus-id\tscore` * `query1\tdoc1\t1`
|
8466
|
+
# Corresponds to the JSON property `trainDataPath`
|
8467
|
+
# @return [String]
|
8468
|
+
attr_accessor :train_data_path
|
8469
|
+
|
8470
|
+
def initialize(**args)
|
8471
|
+
update!(**args)
|
8472
|
+
end
|
8473
|
+
|
8474
|
+
# Update properties of this object
|
8475
|
+
def update!(**args)
|
8476
|
+
@corpus_data_path = args[:corpus_data_path] if args.key?(:corpus_data_path)
|
8477
|
+
@query_data_path = args[:query_data_path] if args.key?(:query_data_path)
|
8478
|
+
@test_data_path = args[:test_data_path] if args.key?(:test_data_path)
|
8479
|
+
@train_data_path = args[:train_data_path] if args.key?(:train_data_path)
|
8480
|
+
end
|
8481
|
+
end
|
8482
|
+
|
8483
|
+
# Response of the TrainCustomModelRequest. This message is returned by the
|
8484
|
+
# google.longrunning.Operations.response field.
|
8485
|
+
class GoogleCloudDiscoveryengineV1betaTrainCustomModelResponse
|
8486
|
+
include Google::Apis::Core::Hashable
|
8487
|
+
|
8488
|
+
# Configuration of destination for Import related errors.
|
8489
|
+
# Corresponds to the JSON property `errorConfig`
|
8490
|
+
# @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaImportErrorConfig]
|
8491
|
+
attr_accessor :error_config
|
8492
|
+
|
8493
|
+
# A sample of errors encountered while processing the data.
|
8494
|
+
# Corresponds to the JSON property `errorSamples`
|
8495
|
+
# @return [Array<Google::Apis::DiscoveryengineV1beta::GoogleRpcStatus>]
|
8496
|
+
attr_accessor :error_samples
|
8497
|
+
|
8498
|
+
# The trained model status. Possible values are: * **bad-data**: The training
|
8499
|
+
# data quality is bad. * **no-improvement**: Tuning didn't improve performance.
|
8500
|
+
# Won't deploy. * **in-progress**: Model training is in progress. * **ready**:
|
8501
|
+
# The model is ready for serving.
|
8502
|
+
# Corresponds to the JSON property `modelStatus`
|
8503
|
+
# @return [String]
|
8504
|
+
attr_accessor :model_status
|
8505
|
+
|
8506
|
+
def initialize(**args)
|
8507
|
+
update!(**args)
|
8508
|
+
end
|
8509
|
+
|
8510
|
+
# Update properties of this object
|
8511
|
+
def update!(**args)
|
8512
|
+
@error_config = args[:error_config] if args.key?(:error_config)
|
8513
|
+
@error_samples = args[:error_samples] if args.key?(:error_samples)
|
8514
|
+
@model_status = args[:model_status] if args.key?(:model_status)
|
8515
|
+
end
|
8516
|
+
end
|
8517
|
+
|
8342
8518
|
# A transaction represents the entire purchase transaction.
|
8343
8519
|
class GoogleCloudDiscoveryengineV1betaTransactionInfo
|
8344
8520
|
include Google::Apis::Core::Hashable
|