google-apis-discoveryengine_v1alpha 0.29.0 → 0.30.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 +4 -0
- data/lib/google/apis/discoveryengine_v1alpha/classes.rb +481 -1
- data/lib/google/apis/discoveryengine_v1alpha/gem_version.rb +2 -2
- data/lib/google/apis/discoveryengine_v1alpha/representations.rb +245 -0
- data/lib/google/apis/discoveryengine_v1alpha/service.rb +69 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 01e199e758f187d04e45eb8ab25881bf8a7e81a0ad6470b8245cc4b2930f40e7
|
4
|
+
data.tar.gz: 73bae6449468b3c97aa62d5d59cd2567bcd620f2b8eba795ef0b59dc9e8f2cfb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ce15c7093817b9f2f2dcefb906e5def44bcf397926bf297db75dce2e7d44b190f7608fbd93258703ed61b7a1b0f18357605b65bd85ae5c669061c460a824fc1
|
7
|
+
data.tar.gz: d2d315a46cdd0c0b4d5826a7fef0029baf140c62605c86b219f691f8d7f700d4cfe299f3d9852f6ba15c17be50927a8762175e0c8e596062aabc130d291beea1
|
data/CHANGELOG.md
CHANGED
@@ -1055,6 +1055,22 @@ module Google
|
|
1055
1055
|
# @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaConversation]
|
1056
1056
|
attr_accessor :conversation
|
1057
1057
|
|
1058
|
+
# The filter syntax consists of an expression language for constructing a
|
1059
|
+
# predicate from one or more fields of the documents being filtered. Filter
|
1060
|
+
# expression is case-sensitive. This will be used to filter search results which
|
1061
|
+
# may affect the summary response. If this field is unrecognizable, an `
|
1062
|
+
# INVALID_ARGUMENT` is returned. Filtering in Vertex AI Search is done by
|
1063
|
+
# mapping the LHS filter key to a key property defined in the Vertex AI Search
|
1064
|
+
# backend -- this mapping is defined by the customer in their schema. For
|
1065
|
+
# example a media customer might have a field 'name' in their schema. In this
|
1066
|
+
# case the filter would look like this: filter --> name:'ANY("king kong")' For
|
1067
|
+
# more information about filtering including syntax and filter operators, see [
|
1068
|
+
# Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-
|
1069
|
+
# metadata)
|
1070
|
+
# Corresponds to the JSON property `filter`
|
1071
|
+
# @return [String]
|
1072
|
+
attr_accessor :filter
|
1073
|
+
|
1058
1074
|
# Required. The resource name of the Conversation to get. Format: `projects/`
|
1059
1075
|
# project_number`/locations/`location_id`/collections/`collection`/dataStores/`
|
1060
1076
|
# data_store_id`/conversations/`conversation_id``. Use `projects/`project_number`
|
@@ -1111,6 +1127,7 @@ module Google
|
|
1111
1127
|
# Update properties of this object
|
1112
1128
|
def update!(**args)
|
1113
1129
|
@conversation = args[:conversation] if args.key?(:conversation)
|
1130
|
+
@filter = args[:filter] if args.key?(:filter)
|
1114
1131
|
@name = args[:name] if args.key?(:name)
|
1115
1132
|
@query = args[:query] if args.key?(:query)
|
1116
1133
|
@safe_search = args[:safe_search] if args.key?(:safe_search)
|
@@ -2177,6 +2194,160 @@ module Google
|
|
2177
2194
|
end
|
2178
2195
|
end
|
2179
2196
|
|
2197
|
+
# Metadata related to the progress of the EstimateDataSize operation. This is
|
2198
|
+
# returned by the google.longrunning.Operation.metadata field.
|
2199
|
+
class GoogleCloudDiscoveryengineV1alphaEstimateDataSizeMetadata
|
2200
|
+
include Google::Apis::Core::Hashable
|
2201
|
+
|
2202
|
+
# Operation create time.
|
2203
|
+
# Corresponds to the JSON property `createTime`
|
2204
|
+
# @return [String]
|
2205
|
+
attr_accessor :create_time
|
2206
|
+
|
2207
|
+
def initialize(**args)
|
2208
|
+
update!(**args)
|
2209
|
+
end
|
2210
|
+
|
2211
|
+
# Update properties of this object
|
2212
|
+
def update!(**args)
|
2213
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
2214
|
+
end
|
2215
|
+
end
|
2216
|
+
|
2217
|
+
# Request message for EstimateBillingService.EstimateDataSize method
|
2218
|
+
class GoogleCloudDiscoveryengineV1alphaEstimateDataSizeRequest
|
2219
|
+
include Google::Apis::Core::Hashable
|
2220
|
+
|
2221
|
+
# Data source contains files either in GCS or BigQuery.
|
2222
|
+
# Corresponds to the JSON property `fileDataSource`
|
2223
|
+
# @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaEstimateDataSizeRequestFileDataSource]
|
2224
|
+
attr_accessor :file_data_source
|
2225
|
+
|
2226
|
+
# Data source is a set of website patterns that we crawl to get the total number
|
2227
|
+
# of websites.
|
2228
|
+
# Corresponds to the JSON property `websiteDataSource`
|
2229
|
+
# @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaEstimateDataSizeRequestWebsiteDataSource]
|
2230
|
+
attr_accessor :website_data_source
|
2231
|
+
|
2232
|
+
def initialize(**args)
|
2233
|
+
update!(**args)
|
2234
|
+
end
|
2235
|
+
|
2236
|
+
# Update properties of this object
|
2237
|
+
def update!(**args)
|
2238
|
+
@file_data_source = args[:file_data_source] if args.key?(:file_data_source)
|
2239
|
+
@website_data_source = args[:website_data_source] if args.key?(:website_data_source)
|
2240
|
+
end
|
2241
|
+
end
|
2242
|
+
|
2243
|
+
# Data source contains files either in GCS or BigQuery.
|
2244
|
+
class GoogleCloudDiscoveryengineV1alphaEstimateDataSizeRequestFileDataSource
|
2245
|
+
include Google::Apis::Core::Hashable
|
2246
|
+
|
2247
|
+
# BigQuery source import data from.
|
2248
|
+
# Corresponds to the JSON property `bigquerySource`
|
2249
|
+
# @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaBigQuerySource]
|
2250
|
+
attr_accessor :bigquery_source
|
2251
|
+
|
2252
|
+
# Cloud Storage location for input content.
|
2253
|
+
# Corresponds to the JSON property `gcsSource`
|
2254
|
+
# @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaGcsSource]
|
2255
|
+
attr_accessor :gcs_source
|
2256
|
+
|
2257
|
+
def initialize(**args)
|
2258
|
+
update!(**args)
|
2259
|
+
end
|
2260
|
+
|
2261
|
+
# Update properties of this object
|
2262
|
+
def update!(**args)
|
2263
|
+
@bigquery_source = args[:bigquery_source] if args.key?(:bigquery_source)
|
2264
|
+
@gcs_source = args[:gcs_source] if args.key?(:gcs_source)
|
2265
|
+
end
|
2266
|
+
end
|
2267
|
+
|
2268
|
+
# Data source is a set of website patterns that we crawl to get the total number
|
2269
|
+
# of websites.
|
2270
|
+
class GoogleCloudDiscoveryengineV1alphaEstimateDataSizeRequestWebsiteDataSource
|
2271
|
+
include Google::Apis::Core::Hashable
|
2272
|
+
|
2273
|
+
# Required. The URI patterns to estimate the data sizes. At most 10 patterns are
|
2274
|
+
# allowed, otherwise an INVALID_ARGUMENT error is thrown.
|
2275
|
+
# Corresponds to the JSON property `estimatorUriPatterns`
|
2276
|
+
# @return [Array<Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaEstimateDataSizeRequestWebsiteDataSourceEstimatorUriPattern>]
|
2277
|
+
attr_accessor :estimator_uri_patterns
|
2278
|
+
|
2279
|
+
def initialize(**args)
|
2280
|
+
update!(**args)
|
2281
|
+
end
|
2282
|
+
|
2283
|
+
# Update properties of this object
|
2284
|
+
def update!(**args)
|
2285
|
+
@estimator_uri_patterns = args[:estimator_uri_patterns] if args.key?(:estimator_uri_patterns)
|
2286
|
+
end
|
2287
|
+
end
|
2288
|
+
|
2289
|
+
# URI patterns that we use to crawl.
|
2290
|
+
class GoogleCloudDiscoveryengineV1alphaEstimateDataSizeRequestWebsiteDataSourceEstimatorUriPattern
|
2291
|
+
include Google::Apis::Core::Hashable
|
2292
|
+
|
2293
|
+
# Whether we infer the generated URI or use the exact provided one.
|
2294
|
+
# Corresponds to the JSON property `exactMatch`
|
2295
|
+
# @return [Boolean]
|
2296
|
+
attr_accessor :exact_match
|
2297
|
+
alias_method :exact_match?, :exact_match
|
2298
|
+
|
2299
|
+
# Whether the pattern is exclusive or not. If set to true, the pattern is
|
2300
|
+
# considered exclusive. If unset or set to false, the pattern is considered
|
2301
|
+
# inclusive by default.
|
2302
|
+
# Corresponds to the JSON property `exclusive`
|
2303
|
+
# @return [Boolean]
|
2304
|
+
attr_accessor :exclusive
|
2305
|
+
alias_method :exclusive?, :exclusive
|
2306
|
+
|
2307
|
+
# User provided URI pattern. For example, `foo.com/bar/*`.
|
2308
|
+
# Corresponds to the JSON property `providedUriPattern`
|
2309
|
+
# @return [String]
|
2310
|
+
attr_accessor :provided_uri_pattern
|
2311
|
+
|
2312
|
+
def initialize(**args)
|
2313
|
+
update!(**args)
|
2314
|
+
end
|
2315
|
+
|
2316
|
+
# Update properties of this object
|
2317
|
+
def update!(**args)
|
2318
|
+
@exact_match = args[:exact_match] if args.key?(:exact_match)
|
2319
|
+
@exclusive = args[:exclusive] if args.key?(:exclusive)
|
2320
|
+
@provided_uri_pattern = args[:provided_uri_pattern] if args.key?(:provided_uri_pattern)
|
2321
|
+
end
|
2322
|
+
end
|
2323
|
+
|
2324
|
+
# Response of the EstimateDataSize request. If the long running operation was
|
2325
|
+
# successful, then this message is returned by the google.longrunning.Operations.
|
2326
|
+
# response field if the operation was successful.
|
2327
|
+
class GoogleCloudDiscoveryengineV1alphaEstimateDataSizeResponse
|
2328
|
+
include Google::Apis::Core::Hashable
|
2329
|
+
|
2330
|
+
# Data size in terms of bytes.
|
2331
|
+
# Corresponds to the JSON property `dataSizeBytes`
|
2332
|
+
# @return [Fixnum]
|
2333
|
+
attr_accessor :data_size_bytes
|
2334
|
+
|
2335
|
+
# Total number of documents.
|
2336
|
+
# Corresponds to the JSON property `documentCount`
|
2337
|
+
# @return [Fixnum]
|
2338
|
+
attr_accessor :document_count
|
2339
|
+
|
2340
|
+
def initialize(**args)
|
2341
|
+
update!(**args)
|
2342
|
+
end
|
2343
|
+
|
2344
|
+
# Update properties of this object
|
2345
|
+
def update!(**args)
|
2346
|
+
@data_size_bytes = args[:data_size_bytes] if args.key?(:data_size_bytes)
|
2347
|
+
@document_count = args[:document_count] if args.key?(:document_count)
|
2348
|
+
end
|
2349
|
+
end
|
2350
|
+
|
2180
2351
|
# Response message for SiteSearchEngineService.FetchDomainVerificationStatus
|
2181
2352
|
# method.
|
2182
2353
|
class GoogleCloudDiscoveryengineV1alphaFetchDomainVerificationStatusResponse
|
@@ -4201,6 +4372,11 @@ module Google
|
|
4201
4372
|
# @return [String]
|
4202
4373
|
attr_accessor :language_code
|
4203
4374
|
|
4375
|
+
# Specification of the prompt to use with the model.
|
4376
|
+
# Corresponds to the JSON property `modelPromptSpec`
|
4377
|
+
# @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpecModelPromptSpec]
|
4378
|
+
attr_accessor :model_prompt_spec
|
4379
|
+
|
4204
4380
|
# Specification of the model.
|
4205
4381
|
# Corresponds to the JSON property `modelSpec`
|
4206
4382
|
# @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpecModelSpec]
|
@@ -4224,16 +4400,37 @@ module Google
|
|
4224
4400
|
@ignore_non_summary_seeking_query = args[:ignore_non_summary_seeking_query] if args.key?(:ignore_non_summary_seeking_query)
|
4225
4401
|
@include_citations = args[:include_citations] if args.key?(:include_citations)
|
4226
4402
|
@language_code = args[:language_code] if args.key?(:language_code)
|
4403
|
+
@model_prompt_spec = args[:model_prompt_spec] if args.key?(:model_prompt_spec)
|
4227
4404
|
@model_spec = args[:model_spec] if args.key?(:model_spec)
|
4228
4405
|
@summary_result_count = args[:summary_result_count] if args.key?(:summary_result_count)
|
4229
4406
|
end
|
4230
4407
|
end
|
4231
4408
|
|
4409
|
+
# Specification of the prompt to use with the model.
|
4410
|
+
class GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpecModelPromptSpec
|
4411
|
+
include Google::Apis::Core::Hashable
|
4412
|
+
|
4413
|
+
# Text at the beginning of the prompt that instructs the assistant. Examples are
|
4414
|
+
# available in the user guide.
|
4415
|
+
# Corresponds to the JSON property `preamble`
|
4416
|
+
# @return [String]
|
4417
|
+
attr_accessor :preamble
|
4418
|
+
|
4419
|
+
def initialize(**args)
|
4420
|
+
update!(**args)
|
4421
|
+
end
|
4422
|
+
|
4423
|
+
# Update properties of this object
|
4424
|
+
def update!(**args)
|
4425
|
+
@preamble = args[:preamble] if args.key?(:preamble)
|
4426
|
+
end
|
4427
|
+
end
|
4428
|
+
|
4232
4429
|
# Specification of the model.
|
4233
4430
|
class GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpecModelSpec
|
4234
4431
|
include Google::Apis::Core::Hashable
|
4235
4432
|
|
4236
|
-
# The string format of the model version. e.g. stable,
|
4433
|
+
# The string format of the model version. e.g. stable, preview, etc.
|
4237
4434
|
# Corresponds to the JSON property `version`
|
4238
4435
|
# @return [String]
|
4239
4436
|
attr_accessor :version
|
@@ -4825,6 +5022,11 @@ module Google
|
|
4825
5022
|
# @return [String]
|
4826
5023
|
attr_accessor :summary_text
|
4827
5024
|
|
5025
|
+
# Summary with metadata information.
|
5026
|
+
# Corresponds to the JSON property `summaryWithMetadata`
|
5027
|
+
# @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchResponseSummarySummaryWithMetadata]
|
5028
|
+
attr_accessor :summary_with_metadata
|
5029
|
+
|
4828
5030
|
def initialize(**args)
|
4829
5031
|
update!(**args)
|
4830
5032
|
end
|
@@ -4834,6 +5036,110 @@ module Google
|
|
4834
5036
|
@safety_attributes = args[:safety_attributes] if args.key?(:safety_attributes)
|
4835
5037
|
@summary_skipped_reasons = args[:summary_skipped_reasons] if args.key?(:summary_skipped_reasons)
|
4836
5038
|
@summary_text = args[:summary_text] if args.key?(:summary_text)
|
5039
|
+
@summary_with_metadata = args[:summary_with_metadata] if args.key?(:summary_with_metadata)
|
5040
|
+
end
|
5041
|
+
end
|
5042
|
+
|
5043
|
+
# Citation info for a segment.
|
5044
|
+
class GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryCitation
|
5045
|
+
include Google::Apis::Core::Hashable
|
5046
|
+
|
5047
|
+
# End of the attributed segment, exclusive.
|
5048
|
+
# Corresponds to the JSON property `endIndex`
|
5049
|
+
# @return [Fixnum]
|
5050
|
+
attr_accessor :end_index
|
5051
|
+
|
5052
|
+
# Citation sources for the attributed segment.
|
5053
|
+
# Corresponds to the JSON property `sources`
|
5054
|
+
# @return [Array<Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryCitationSource>]
|
5055
|
+
attr_accessor :sources
|
5056
|
+
|
5057
|
+
# Index indicates the start of the segment, measured in bytes/unicode.
|
5058
|
+
# Corresponds to the JSON property `startIndex`
|
5059
|
+
# @return [Fixnum]
|
5060
|
+
attr_accessor :start_index
|
5061
|
+
|
5062
|
+
def initialize(**args)
|
5063
|
+
update!(**args)
|
5064
|
+
end
|
5065
|
+
|
5066
|
+
# Update properties of this object
|
5067
|
+
def update!(**args)
|
5068
|
+
@end_index = args[:end_index] if args.key?(:end_index)
|
5069
|
+
@sources = args[:sources] if args.key?(:sources)
|
5070
|
+
@start_index = args[:start_index] if args.key?(:start_index)
|
5071
|
+
end
|
5072
|
+
end
|
5073
|
+
|
5074
|
+
# Citation metadata.
|
5075
|
+
class GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryCitationMetadata
|
5076
|
+
include Google::Apis::Core::Hashable
|
5077
|
+
|
5078
|
+
# Citations for segments.
|
5079
|
+
# Corresponds to the JSON property `citations`
|
5080
|
+
# @return [Array<Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryCitation>]
|
5081
|
+
attr_accessor :citations
|
5082
|
+
|
5083
|
+
def initialize(**args)
|
5084
|
+
update!(**args)
|
5085
|
+
end
|
5086
|
+
|
5087
|
+
# Update properties of this object
|
5088
|
+
def update!(**args)
|
5089
|
+
@citations = args[:citations] if args.key?(:citations)
|
5090
|
+
end
|
5091
|
+
end
|
5092
|
+
|
5093
|
+
# Citation source.
|
5094
|
+
class GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryCitationSource
|
5095
|
+
include Google::Apis::Core::Hashable
|
5096
|
+
|
5097
|
+
# Document reference index from SummaryWithMetadata.references. It is 0-indexed
|
5098
|
+
# and the value will be zero if the reference_index is not set explicitly.
|
5099
|
+
# Corresponds to the JSON property `referenceIndex`
|
5100
|
+
# @return [Fixnum]
|
5101
|
+
attr_accessor :reference_index
|
5102
|
+
|
5103
|
+
def initialize(**args)
|
5104
|
+
update!(**args)
|
5105
|
+
end
|
5106
|
+
|
5107
|
+
# Update properties of this object
|
5108
|
+
def update!(**args)
|
5109
|
+
@reference_index = args[:reference_index] if args.key?(:reference_index)
|
5110
|
+
end
|
5111
|
+
end
|
5112
|
+
|
5113
|
+
# Document reference.
|
5114
|
+
class GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryReference
|
5115
|
+
include Google::Apis::Core::Hashable
|
5116
|
+
|
5117
|
+
# Required. Document.name of the document. Full resource name of the referenced
|
5118
|
+
# document, in the format `projects/*/locations/*/collections/*/dataStores/*/
|
5119
|
+
# branches/*/documents/*`.
|
5120
|
+
# Corresponds to the JSON property `document`
|
5121
|
+
# @return [String]
|
5122
|
+
attr_accessor :document
|
5123
|
+
|
5124
|
+
# Title of the document.
|
5125
|
+
# Corresponds to the JSON property `title`
|
5126
|
+
# @return [String]
|
5127
|
+
attr_accessor :title
|
5128
|
+
|
5129
|
+
# GCS or HTTP uri for the document.
|
5130
|
+
# Corresponds to the JSON property `uri`
|
5131
|
+
# @return [String]
|
5132
|
+
attr_accessor :uri
|
5133
|
+
|
5134
|
+
def initialize(**args)
|
5135
|
+
update!(**args)
|
5136
|
+
end
|
5137
|
+
|
5138
|
+
# Update properties of this object
|
5139
|
+
def update!(**args)
|
5140
|
+
@document = args[:document] if args.key?(:document)
|
5141
|
+
@title = args[:title] if args.key?(:title)
|
5142
|
+
@uri = args[:uri] if args.key?(:uri)
|
4837
5143
|
end
|
4838
5144
|
end
|
4839
5145
|
|
@@ -4864,6 +5170,37 @@ module Google
|
|
4864
5170
|
end
|
4865
5171
|
end
|
4866
5172
|
|
5173
|
+
# Summary with metadata information.
|
5174
|
+
class GoogleCloudDiscoveryengineV1alphaSearchResponseSummarySummaryWithMetadata
|
5175
|
+
include Google::Apis::Core::Hashable
|
5176
|
+
|
5177
|
+
# Citation metadata.
|
5178
|
+
# Corresponds to the JSON property `citationMetadata`
|
5179
|
+
# @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryCitationMetadata]
|
5180
|
+
attr_accessor :citation_metadata
|
5181
|
+
|
5182
|
+
# Document References.
|
5183
|
+
# Corresponds to the JSON property `references`
|
5184
|
+
# @return [Array<Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryReference>]
|
5185
|
+
attr_accessor :references
|
5186
|
+
|
5187
|
+
# Summary text with no citation information.
|
5188
|
+
# Corresponds to the JSON property `summary`
|
5189
|
+
# @return [String]
|
5190
|
+
attr_accessor :summary
|
5191
|
+
|
5192
|
+
def initialize(**args)
|
5193
|
+
update!(**args)
|
5194
|
+
end
|
5195
|
+
|
5196
|
+
# Update properties of this object
|
5197
|
+
def update!(**args)
|
5198
|
+
@citation_metadata = args[:citation_metadata] if args.key?(:citation_metadata)
|
5199
|
+
@references = args[:references] if args.key?(:references)
|
5200
|
+
@summary = args[:summary] if args.key?(:summary)
|
5201
|
+
end
|
5202
|
+
end
|
5203
|
+
|
4867
5204
|
# SiteSearchEngine captures DataStore level site search persisting
|
4868
5205
|
# configurations. It is a singleton value per data store.
|
4869
5206
|
class GoogleCloudDiscoveryengineV1alphaSiteSearchEngine
|
@@ -5045,6 +5382,149 @@ module Google
|
|
5045
5382
|
end
|
5046
5383
|
end
|
5047
5384
|
|
5385
|
+
# Metadata related to the progress of the TrainCustomModel operation. This is
|
5386
|
+
# returned by the google.longrunning.Operation.metadata field.
|
5387
|
+
class GoogleCloudDiscoveryengineV1alphaTrainCustomModelMetadata
|
5388
|
+
include Google::Apis::Core::Hashable
|
5389
|
+
|
5390
|
+
# Operation create time.
|
5391
|
+
# Corresponds to the JSON property `createTime`
|
5392
|
+
# @return [String]
|
5393
|
+
attr_accessor :create_time
|
5394
|
+
|
5395
|
+
# Operation last update time. If the operation is done, this is also the finish
|
5396
|
+
# time.
|
5397
|
+
# Corresponds to the JSON property `updateTime`
|
5398
|
+
# @return [String]
|
5399
|
+
attr_accessor :update_time
|
5400
|
+
|
5401
|
+
def initialize(**args)
|
5402
|
+
update!(**args)
|
5403
|
+
end
|
5404
|
+
|
5405
|
+
# Update properties of this object
|
5406
|
+
def update!(**args)
|
5407
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
5408
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
5409
|
+
end
|
5410
|
+
end
|
5411
|
+
|
5412
|
+
# Request message for SearchTuningService.TrainCustomModel method.
|
5413
|
+
class GoogleCloudDiscoveryengineV1alphaTrainCustomModelRequest
|
5414
|
+
include Google::Apis::Core::Hashable
|
5415
|
+
|
5416
|
+
# Configuration of destination for Import related errors.
|
5417
|
+
# Corresponds to the JSON property `errorConfig`
|
5418
|
+
# @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaImportErrorConfig]
|
5419
|
+
attr_accessor :error_config
|
5420
|
+
|
5421
|
+
# Gcs training data input.
|
5422
|
+
# Corresponds to the JSON property `gcsTrainingInput`
|
5423
|
+
# @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaTrainCustomModelRequestGcsTrainingInput]
|
5424
|
+
attr_accessor :gcs_training_input
|
5425
|
+
|
5426
|
+
# Model to be trained. Supported values are: * **search-tuning**: Fine tuning
|
5427
|
+
# the search system based on data provided.
|
5428
|
+
# Corresponds to the JSON property `modelType`
|
5429
|
+
# @return [String]
|
5430
|
+
attr_accessor :model_type
|
5431
|
+
|
5432
|
+
def initialize(**args)
|
5433
|
+
update!(**args)
|
5434
|
+
end
|
5435
|
+
|
5436
|
+
# Update properties of this object
|
5437
|
+
def update!(**args)
|
5438
|
+
@error_config = args[:error_config] if args.key?(:error_config)
|
5439
|
+
@gcs_training_input = args[:gcs_training_input] if args.key?(:gcs_training_input)
|
5440
|
+
@model_type = args[:model_type] if args.key?(:model_type)
|
5441
|
+
end
|
5442
|
+
end
|
5443
|
+
|
5444
|
+
# Gcs training data input.
|
5445
|
+
class GoogleCloudDiscoveryengineV1alphaTrainCustomModelRequestGcsTrainingInput
|
5446
|
+
include Google::Apis::Core::Hashable
|
5447
|
+
|
5448
|
+
# The gcs corpus data which could be associated in train data. The data path
|
5449
|
+
# format is gs:///. A newline delimited jsonl/ndjson file. * For search-tuning
|
5450
|
+
# model, each line should have the _id, title and text. Example: `"_id": "doc1",
|
5451
|
+
# title: "relevant doc", "text": "relevant text"`
|
5452
|
+
# Corresponds to the JSON property `corpusDataPath`
|
5453
|
+
# @return [String]
|
5454
|
+
attr_accessor :corpus_data_path
|
5455
|
+
|
5456
|
+
# The gcs query data which could be associated in train data. The data path
|
5457
|
+
# format is gs:///. A newline delimited jsonl/ndjson file. * For search-tuning
|
5458
|
+
# model, each line should have the _id and text. Example: `"_id": "query1", "
|
5459
|
+
# text": "example query"`
|
5460
|
+
# Corresponds to the JSON property `queryDataPath`
|
5461
|
+
# @return [String]
|
5462
|
+
attr_accessor :query_data_path
|
5463
|
+
|
5464
|
+
# Gcs test data. Same format as train_data_path. If not provided, a random 80/20
|
5465
|
+
# train/test split will be performed on train_data_path.
|
5466
|
+
# Corresponds to the JSON property `testDataPath`
|
5467
|
+
# @return [String]
|
5468
|
+
attr_accessor :test_data_path
|
5469
|
+
|
5470
|
+
# Gcs training data path whose format should be gs:///. The file should be in
|
5471
|
+
# tsv format. Each line should have the doc_id and query_id and score (number). *
|
5472
|
+
# For search-tuning model, it should have the query-id corpus-id score as tsv
|
5473
|
+
# file header. The score should be a number in [0, inf+). The larger the number
|
5474
|
+
# is, the more relevant the pair is. Example: query-id\tcorpus-id\tscore query1\
|
5475
|
+
# tdoc1\t1
|
5476
|
+
# Corresponds to the JSON property `trainDataPath`
|
5477
|
+
# @return [String]
|
5478
|
+
attr_accessor :train_data_path
|
5479
|
+
|
5480
|
+
def initialize(**args)
|
5481
|
+
update!(**args)
|
5482
|
+
end
|
5483
|
+
|
5484
|
+
# Update properties of this object
|
5485
|
+
def update!(**args)
|
5486
|
+
@corpus_data_path = args[:corpus_data_path] if args.key?(:corpus_data_path)
|
5487
|
+
@query_data_path = args[:query_data_path] if args.key?(:query_data_path)
|
5488
|
+
@test_data_path = args[:test_data_path] if args.key?(:test_data_path)
|
5489
|
+
@train_data_path = args[:train_data_path] if args.key?(:train_data_path)
|
5490
|
+
end
|
5491
|
+
end
|
5492
|
+
|
5493
|
+
# Response of the TrainCustomModelRequest. This message is returned by the
|
5494
|
+
# google.longrunning.Operations.response field.
|
5495
|
+
class GoogleCloudDiscoveryengineV1alphaTrainCustomModelResponse
|
5496
|
+
include Google::Apis::Core::Hashable
|
5497
|
+
|
5498
|
+
# Configuration of destination for Import related errors.
|
5499
|
+
# Corresponds to the JSON property `errorConfig`
|
5500
|
+
# @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaImportErrorConfig]
|
5501
|
+
attr_accessor :error_config
|
5502
|
+
|
5503
|
+
# A sample of errors encountered while processing the data.
|
5504
|
+
# Corresponds to the JSON property `errorSamples`
|
5505
|
+
# @return [Array<Google::Apis::DiscoveryengineV1alpha::GoogleRpcStatus>]
|
5506
|
+
attr_accessor :error_samples
|
5507
|
+
|
5508
|
+
# The trained model status. Possible values are: * **bad-data**: The training
|
5509
|
+
# data quality is bad. * **no-improvement**: Tuning didn't improve performance.
|
5510
|
+
# Won't deploy. * **in-progress**: Model training is in progress. * **ready**:
|
5511
|
+
# The model is ready for serving.
|
5512
|
+
# Corresponds to the JSON property `modelStatus`
|
5513
|
+
# @return [String]
|
5514
|
+
attr_accessor :model_status
|
5515
|
+
|
5516
|
+
def initialize(**args)
|
5517
|
+
update!(**args)
|
5518
|
+
end
|
5519
|
+
|
5520
|
+
# Update properties of this object
|
5521
|
+
def update!(**args)
|
5522
|
+
@error_config = args[:error_config] if args.key?(:error_config)
|
5523
|
+
@error_samples = args[:error_samples] if args.key?(:error_samples)
|
5524
|
+
@model_status = args[:model_status] if args.key?(:model_status)
|
5525
|
+
end
|
5526
|
+
end
|
5527
|
+
|
5048
5528
|
# A transaction represents the entire purchase transaction.
|
5049
5529
|
class GoogleCloudDiscoveryengineV1alphaTransactionInfo
|
5050
5530
|
include Google::Apis::Core::Hashable
|
@@ -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.
|
19
|
+
GEM_VERSION = "0.30.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.12.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20231209"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -406,6 +406,42 @@ module Google
|
|
406
406
|
include Google::Apis::Core::JsonObjectSupport
|
407
407
|
end
|
408
408
|
|
409
|
+
class GoogleCloudDiscoveryengineV1alphaEstimateDataSizeMetadata
|
410
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
411
|
+
|
412
|
+
include Google::Apis::Core::JsonObjectSupport
|
413
|
+
end
|
414
|
+
|
415
|
+
class GoogleCloudDiscoveryengineV1alphaEstimateDataSizeRequest
|
416
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
417
|
+
|
418
|
+
include Google::Apis::Core::JsonObjectSupport
|
419
|
+
end
|
420
|
+
|
421
|
+
class GoogleCloudDiscoveryengineV1alphaEstimateDataSizeRequestFileDataSource
|
422
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
423
|
+
|
424
|
+
include Google::Apis::Core::JsonObjectSupport
|
425
|
+
end
|
426
|
+
|
427
|
+
class GoogleCloudDiscoveryengineV1alphaEstimateDataSizeRequestWebsiteDataSource
|
428
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
429
|
+
|
430
|
+
include Google::Apis::Core::JsonObjectSupport
|
431
|
+
end
|
432
|
+
|
433
|
+
class GoogleCloudDiscoveryengineV1alphaEstimateDataSizeRequestWebsiteDataSourceEstimatorUriPattern
|
434
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
435
|
+
|
436
|
+
include Google::Apis::Core::JsonObjectSupport
|
437
|
+
end
|
438
|
+
|
439
|
+
class GoogleCloudDiscoveryengineV1alphaEstimateDataSizeResponse
|
440
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
441
|
+
|
442
|
+
include Google::Apis::Core::JsonObjectSupport
|
443
|
+
end
|
444
|
+
|
409
445
|
class GoogleCloudDiscoveryengineV1alphaFetchDomainVerificationStatusResponse
|
410
446
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
411
447
|
|
@@ -712,6 +748,12 @@ module Google
|
|
712
748
|
include Google::Apis::Core::JsonObjectSupport
|
713
749
|
end
|
714
750
|
|
751
|
+
class GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpecModelPromptSpec
|
752
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
753
|
+
|
754
|
+
include Google::Apis::Core::JsonObjectSupport
|
755
|
+
end
|
756
|
+
|
715
757
|
class GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpecModelSpec
|
716
758
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
717
759
|
|
@@ -814,12 +856,42 @@ module Google
|
|
814
856
|
include Google::Apis::Core::JsonObjectSupport
|
815
857
|
end
|
816
858
|
|
859
|
+
class GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryCitation
|
860
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
861
|
+
|
862
|
+
include Google::Apis::Core::JsonObjectSupport
|
863
|
+
end
|
864
|
+
|
865
|
+
class GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryCitationMetadata
|
866
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
867
|
+
|
868
|
+
include Google::Apis::Core::JsonObjectSupport
|
869
|
+
end
|
870
|
+
|
871
|
+
class GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryCitationSource
|
872
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
873
|
+
|
874
|
+
include Google::Apis::Core::JsonObjectSupport
|
875
|
+
end
|
876
|
+
|
877
|
+
class GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryReference
|
878
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
879
|
+
|
880
|
+
include Google::Apis::Core::JsonObjectSupport
|
881
|
+
end
|
882
|
+
|
817
883
|
class GoogleCloudDiscoveryengineV1alphaSearchResponseSummarySafetyAttributes
|
818
884
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
819
885
|
|
820
886
|
include Google::Apis::Core::JsonObjectSupport
|
821
887
|
end
|
822
888
|
|
889
|
+
class GoogleCloudDiscoveryengineV1alphaSearchResponseSummarySummaryWithMetadata
|
890
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
891
|
+
|
892
|
+
include Google::Apis::Core::JsonObjectSupport
|
893
|
+
end
|
894
|
+
|
823
895
|
class GoogleCloudDiscoveryengineV1alphaSiteSearchEngine
|
824
896
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
825
897
|
|
@@ -856,6 +928,30 @@ module Google
|
|
856
928
|
include Google::Apis::Core::JsonObjectSupport
|
857
929
|
end
|
858
930
|
|
931
|
+
class GoogleCloudDiscoveryengineV1alphaTrainCustomModelMetadata
|
932
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
933
|
+
|
934
|
+
include Google::Apis::Core::JsonObjectSupport
|
935
|
+
end
|
936
|
+
|
937
|
+
class GoogleCloudDiscoveryengineV1alphaTrainCustomModelRequest
|
938
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
939
|
+
|
940
|
+
include Google::Apis::Core::JsonObjectSupport
|
941
|
+
end
|
942
|
+
|
943
|
+
class GoogleCloudDiscoveryengineV1alphaTrainCustomModelRequestGcsTrainingInput
|
944
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
945
|
+
|
946
|
+
include Google::Apis::Core::JsonObjectSupport
|
947
|
+
end
|
948
|
+
|
949
|
+
class GoogleCloudDiscoveryengineV1alphaTrainCustomModelResponse
|
950
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
951
|
+
|
952
|
+
include Google::Apis::Core::JsonObjectSupport
|
953
|
+
end
|
954
|
+
|
859
955
|
class GoogleCloudDiscoveryengineV1alphaTransactionInfo
|
860
956
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
861
957
|
|
@@ -1351,6 +1447,7 @@ module Google
|
|
1351
1447
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1352
1448
|
property :conversation, as: 'conversation', class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaConversation, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaConversation::Representation
|
1353
1449
|
|
1450
|
+
property :filter, as: 'filter'
|
1354
1451
|
property :name, as: 'name'
|
1355
1452
|
property :query, as: 'query', class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaTextInput, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaTextInput::Representation
|
1356
1453
|
|
@@ -1653,6 +1750,58 @@ module Google
|
|
1653
1750
|
end
|
1654
1751
|
end
|
1655
1752
|
|
1753
|
+
class GoogleCloudDiscoveryengineV1alphaEstimateDataSizeMetadata
|
1754
|
+
# @private
|
1755
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1756
|
+
property :create_time, as: 'createTime'
|
1757
|
+
end
|
1758
|
+
end
|
1759
|
+
|
1760
|
+
class GoogleCloudDiscoveryengineV1alphaEstimateDataSizeRequest
|
1761
|
+
# @private
|
1762
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1763
|
+
property :file_data_source, as: 'fileDataSource', class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaEstimateDataSizeRequestFileDataSource, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaEstimateDataSizeRequestFileDataSource::Representation
|
1764
|
+
|
1765
|
+
property :website_data_source, as: 'websiteDataSource', class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaEstimateDataSizeRequestWebsiteDataSource, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaEstimateDataSizeRequestWebsiteDataSource::Representation
|
1766
|
+
|
1767
|
+
end
|
1768
|
+
end
|
1769
|
+
|
1770
|
+
class GoogleCloudDiscoveryengineV1alphaEstimateDataSizeRequestFileDataSource
|
1771
|
+
# @private
|
1772
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1773
|
+
property :bigquery_source, as: 'bigquerySource', class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaBigQuerySource, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaBigQuerySource::Representation
|
1774
|
+
|
1775
|
+
property :gcs_source, as: 'gcsSource', class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaGcsSource, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaGcsSource::Representation
|
1776
|
+
|
1777
|
+
end
|
1778
|
+
end
|
1779
|
+
|
1780
|
+
class GoogleCloudDiscoveryengineV1alphaEstimateDataSizeRequestWebsiteDataSource
|
1781
|
+
# @private
|
1782
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1783
|
+
collection :estimator_uri_patterns, as: 'estimatorUriPatterns', class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaEstimateDataSizeRequestWebsiteDataSourceEstimatorUriPattern, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaEstimateDataSizeRequestWebsiteDataSourceEstimatorUriPattern::Representation
|
1784
|
+
|
1785
|
+
end
|
1786
|
+
end
|
1787
|
+
|
1788
|
+
class GoogleCloudDiscoveryengineV1alphaEstimateDataSizeRequestWebsiteDataSourceEstimatorUriPattern
|
1789
|
+
# @private
|
1790
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1791
|
+
property :exact_match, as: 'exactMatch'
|
1792
|
+
property :exclusive, as: 'exclusive'
|
1793
|
+
property :provided_uri_pattern, as: 'providedUriPattern'
|
1794
|
+
end
|
1795
|
+
end
|
1796
|
+
|
1797
|
+
class GoogleCloudDiscoveryengineV1alphaEstimateDataSizeResponse
|
1798
|
+
# @private
|
1799
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1800
|
+
property :data_size_bytes, :numeric_string => true, as: 'dataSizeBytes'
|
1801
|
+
property :document_count, :numeric_string => true, as: 'documentCount'
|
1802
|
+
end
|
1803
|
+
end
|
1804
|
+
|
1656
1805
|
class GoogleCloudDiscoveryengineV1alphaFetchDomainVerificationStatusResponse
|
1657
1806
|
# @private
|
1658
1807
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2164,12 +2313,21 @@ module Google
|
|
2164
2313
|
property :ignore_non_summary_seeking_query, as: 'ignoreNonSummarySeekingQuery'
|
2165
2314
|
property :include_citations, as: 'includeCitations'
|
2166
2315
|
property :language_code, as: 'languageCode'
|
2316
|
+
property :model_prompt_spec, as: 'modelPromptSpec', class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpecModelPromptSpec, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpecModelPromptSpec::Representation
|
2317
|
+
|
2167
2318
|
property :model_spec, as: 'modelSpec', class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpecModelSpec, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpecModelSpec::Representation
|
2168
2319
|
|
2169
2320
|
property :summary_result_count, as: 'summaryResultCount'
|
2170
2321
|
end
|
2171
2322
|
end
|
2172
2323
|
|
2324
|
+
class GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpecModelPromptSpec
|
2325
|
+
# @private
|
2326
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2327
|
+
property :preamble, as: 'preamble'
|
2328
|
+
end
|
2329
|
+
end
|
2330
|
+
|
2173
2331
|
class GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpecModelSpec
|
2174
2332
|
# @private
|
2175
2333
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2335,6 +2493,42 @@ module Google
|
|
2335
2493
|
|
2336
2494
|
collection :summary_skipped_reasons, as: 'summarySkippedReasons'
|
2337
2495
|
property :summary_text, as: 'summaryText'
|
2496
|
+
property :summary_with_metadata, as: 'summaryWithMetadata', class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchResponseSummarySummaryWithMetadata, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchResponseSummarySummaryWithMetadata::Representation
|
2497
|
+
|
2498
|
+
end
|
2499
|
+
end
|
2500
|
+
|
2501
|
+
class GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryCitation
|
2502
|
+
# @private
|
2503
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2504
|
+
property :end_index, :numeric_string => true, as: 'endIndex'
|
2505
|
+
collection :sources, as: 'sources', class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryCitationSource, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryCitationSource::Representation
|
2506
|
+
|
2507
|
+
property :start_index, :numeric_string => true, as: 'startIndex'
|
2508
|
+
end
|
2509
|
+
end
|
2510
|
+
|
2511
|
+
class GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryCitationMetadata
|
2512
|
+
# @private
|
2513
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2514
|
+
collection :citations, as: 'citations', class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryCitation, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryCitation::Representation
|
2515
|
+
|
2516
|
+
end
|
2517
|
+
end
|
2518
|
+
|
2519
|
+
class GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryCitationSource
|
2520
|
+
# @private
|
2521
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2522
|
+
property :reference_index, :numeric_string => true, as: 'referenceIndex'
|
2523
|
+
end
|
2524
|
+
end
|
2525
|
+
|
2526
|
+
class GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryReference
|
2527
|
+
# @private
|
2528
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2529
|
+
property :document, as: 'document'
|
2530
|
+
property :title, as: 'title'
|
2531
|
+
property :uri, as: 'uri'
|
2338
2532
|
end
|
2339
2533
|
end
|
2340
2534
|
|
@@ -2346,6 +2540,17 @@ module Google
|
|
2346
2540
|
end
|
2347
2541
|
end
|
2348
2542
|
|
2543
|
+
class GoogleCloudDiscoveryengineV1alphaSearchResponseSummarySummaryWithMetadata
|
2544
|
+
# @private
|
2545
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2546
|
+
property :citation_metadata, as: 'citationMetadata', class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryCitationMetadata, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryCitationMetadata::Representation
|
2547
|
+
|
2548
|
+
collection :references, as: 'references', class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryReference, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryReference::Representation
|
2549
|
+
|
2550
|
+
property :summary, as: 'summary'
|
2551
|
+
end
|
2552
|
+
end
|
2553
|
+
|
2349
2554
|
class GoogleCloudDiscoveryengineV1alphaSiteSearchEngine
|
2350
2555
|
# @private
|
2351
2556
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2401,6 +2606,46 @@ module Google
|
|
2401
2606
|
end
|
2402
2607
|
end
|
2403
2608
|
|
2609
|
+
class GoogleCloudDiscoveryengineV1alphaTrainCustomModelMetadata
|
2610
|
+
# @private
|
2611
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2612
|
+
property :create_time, as: 'createTime'
|
2613
|
+
property :update_time, as: 'updateTime'
|
2614
|
+
end
|
2615
|
+
end
|
2616
|
+
|
2617
|
+
class GoogleCloudDiscoveryengineV1alphaTrainCustomModelRequest
|
2618
|
+
# @private
|
2619
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2620
|
+
property :error_config, as: 'errorConfig', class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaImportErrorConfig, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaImportErrorConfig::Representation
|
2621
|
+
|
2622
|
+
property :gcs_training_input, as: 'gcsTrainingInput', class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaTrainCustomModelRequestGcsTrainingInput, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaTrainCustomModelRequestGcsTrainingInput::Representation
|
2623
|
+
|
2624
|
+
property :model_type, as: 'modelType'
|
2625
|
+
end
|
2626
|
+
end
|
2627
|
+
|
2628
|
+
class GoogleCloudDiscoveryengineV1alphaTrainCustomModelRequestGcsTrainingInput
|
2629
|
+
# @private
|
2630
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2631
|
+
property :corpus_data_path, as: 'corpusDataPath'
|
2632
|
+
property :query_data_path, as: 'queryDataPath'
|
2633
|
+
property :test_data_path, as: 'testDataPath'
|
2634
|
+
property :train_data_path, as: 'trainDataPath'
|
2635
|
+
end
|
2636
|
+
end
|
2637
|
+
|
2638
|
+
class GoogleCloudDiscoveryengineV1alphaTrainCustomModelResponse
|
2639
|
+
# @private
|
2640
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2641
|
+
property :error_config, as: 'errorConfig', class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaImportErrorConfig, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaImportErrorConfig::Representation
|
2642
|
+
|
2643
|
+
collection :error_samples, as: 'errorSamples', class: Google::Apis::DiscoveryengineV1alpha::GoogleRpcStatus, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleRpcStatus::Representation
|
2644
|
+
|
2645
|
+
property :model_status, as: 'modelStatus'
|
2646
|
+
end
|
2647
|
+
end
|
2648
|
+
|
2404
2649
|
class GoogleCloudDiscoveryengineV1alphaTransactionInfo
|
2405
2650
|
# @private
|
2406
2651
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -190,6 +190,40 @@ module Google
|
|
190
190
|
execute_or_queue_command(command, &block)
|
191
191
|
end
|
192
192
|
|
193
|
+
# Estimates the data size to be used by a customer.
|
194
|
+
# @param [String] location
|
195
|
+
# Required. Full resource name of the Location, such as `projects/`project`/
|
196
|
+
# locations/`location``.
|
197
|
+
# @param [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaEstimateDataSizeRequest] google_cloud_discoveryengine_v1alpha_estimate_data_size_request_object
|
198
|
+
# @param [String] fields
|
199
|
+
# Selector specifying which fields to include in a partial response.
|
200
|
+
# @param [String] quota_user
|
201
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
202
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
203
|
+
# @param [Google::Apis::RequestOptions] options
|
204
|
+
# Request-specific options
|
205
|
+
#
|
206
|
+
# @yield [result, err] Result & error if block supplied
|
207
|
+
# @yieldparam result [Google::Apis::DiscoveryengineV1alpha::GoogleLongrunningOperation] parsed result object
|
208
|
+
# @yieldparam err [StandardError] error object if request failed
|
209
|
+
#
|
210
|
+
# @return [Google::Apis::DiscoveryengineV1alpha::GoogleLongrunningOperation]
|
211
|
+
#
|
212
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
213
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
214
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
215
|
+
def estimate_project_location_data_size(location, google_cloud_discoveryengine_v1alpha_estimate_data_size_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
216
|
+
command = make_simple_command(:post, 'v1alpha/{+location}:estimateDataSize', options)
|
217
|
+
command.request_representation = Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaEstimateDataSizeRequest::Representation
|
218
|
+
command.request_object = google_cloud_discoveryengine_v1alpha_estimate_data_size_request_object
|
219
|
+
command.response_representation = Google::Apis::DiscoveryengineV1alpha::GoogleLongrunningOperation::Representation
|
220
|
+
command.response_class = Google::Apis::DiscoveryengineV1alpha::GoogleLongrunningOperation
|
221
|
+
command.params['location'] = location unless location.nil?
|
222
|
+
command.query['fields'] = fields unless fields.nil?
|
223
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
224
|
+
execute_or_queue_command(command, &block)
|
225
|
+
end
|
226
|
+
|
193
227
|
# Gets the latest state of a long-running operation. Clients can use this method
|
194
228
|
# to poll the operation result at intervals as recommended by the API service.
|
195
229
|
# @param [String] name
|
@@ -562,6 +596,41 @@ module Google
|
|
562
596
|
execute_or_queue_command(command, &block)
|
563
597
|
end
|
564
598
|
|
599
|
+
# Trains a custom model.
|
600
|
+
# @param [String] data_store
|
601
|
+
# Required. The resource name of the Data Store, such as `projects/*/locations/
|
602
|
+
# global/collections/default_collection/dataStores/default_data_store`. This
|
603
|
+
# field is used to identify the data store where to train the models.
|
604
|
+
# @param [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaTrainCustomModelRequest] google_cloud_discoveryengine_v1alpha_train_custom_model_request_object
|
605
|
+
# @param [String] fields
|
606
|
+
# Selector specifying which fields to include in a partial response.
|
607
|
+
# @param [String] quota_user
|
608
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
609
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
610
|
+
# @param [Google::Apis::RequestOptions] options
|
611
|
+
# Request-specific options
|
612
|
+
#
|
613
|
+
# @yield [result, err] Result & error if block supplied
|
614
|
+
# @yieldparam result [Google::Apis::DiscoveryengineV1alpha::GoogleLongrunningOperation] parsed result object
|
615
|
+
# @yieldparam err [StandardError] error object if request failed
|
616
|
+
#
|
617
|
+
# @return [Google::Apis::DiscoveryengineV1alpha::GoogleLongrunningOperation]
|
618
|
+
#
|
619
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
620
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
621
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
622
|
+
def train_project_location_collection_data_store_custom_model(data_store, google_cloud_discoveryengine_v1alpha_train_custom_model_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
623
|
+
command = make_simple_command(:post, 'v1alpha/{+dataStore}:trainCustomModel', options)
|
624
|
+
command.request_representation = Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaTrainCustomModelRequest::Representation
|
625
|
+
command.request_object = google_cloud_discoveryengine_v1alpha_train_custom_model_request_object
|
626
|
+
command.response_representation = Google::Apis::DiscoveryengineV1alpha::GoogleLongrunningOperation::Representation
|
627
|
+
command.response_class = Google::Apis::DiscoveryengineV1alpha::GoogleLongrunningOperation
|
628
|
+
command.params['dataStore'] = data_store unless data_store.nil?
|
629
|
+
command.query['fields'] = fields unless fields.nil?
|
630
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
631
|
+
execute_or_queue_command(command, &block)
|
632
|
+
end
|
633
|
+
|
565
634
|
# Creates a Document.
|
566
635
|
# @param [String] parent
|
567
636
|
# Required. The parent resource name, such as `projects/`project`/locations/`
|
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.
|
4
|
+
version: 0.30.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: 2023-12-
|
11
|
+
date: 2023-12-17 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.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-discoveryengine_v1alpha/v0.30.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: []
|