google-apis-discoveryengine_v1alpha 0.48.0 → 0.50.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -22,6 +22,320 @@ module Google
22
22
  module Apis
23
23
  module DiscoveryengineV1alpha
24
24
 
25
+ # `Distribution` contains summary statistics for a population of values. It
26
+ # optionally contains a histogram representing the distribution of those values
27
+ # across a set of buckets. The summary statistics are the count, mean, sum of
28
+ # the squared deviation from the mean, the minimum, and the maximum of the set
29
+ # of population of values. The histogram is based on a sequence of buckets and
30
+ # gives a count of values that fall into each bucket. The boundaries of the
31
+ # buckets are given either explicitly or by formulas for buckets of fixed or
32
+ # exponentially increasing widths. Although it is not forbidden, it is generally
33
+ # a bad idea to include non-finite values (infinities or NaNs) in the population
34
+ # of values, as this will render the `mean` and `sum_of_squared_deviation`
35
+ # fields meaningless.
36
+ class GoogleApiDistribution
37
+ include Google::Apis::Core::Hashable
38
+
39
+ # The number of values in each bucket of the histogram, as described in `
40
+ # bucket_options`. If the distribution does not have a histogram, then omit this
41
+ # field. If there is a histogram, then the sum of the values in `bucket_counts`
42
+ # must equal the value in the `count` field of the distribution. If present, `
43
+ # bucket_counts` should contain N values, where N is the number of buckets
44
+ # specified in `bucket_options`. If you supply fewer than N values, the
45
+ # remaining values are assumed to be 0. The order of the values in `
46
+ # bucket_counts` follows the bucket numbering schemes described for the three
47
+ # bucket types. The first value must be the count for the underflow bucket (
48
+ # number 0). The next N-2 values are the counts for the finite buckets (number 1
49
+ # through N-2). The N'th value in `bucket_counts` is the count for the overflow
50
+ # bucket (number N-1).
51
+ # Corresponds to the JSON property `bucketCounts`
52
+ # @return [Array<Fixnum>]
53
+ attr_accessor :bucket_counts
54
+
55
+ # `BucketOptions` describes the bucket boundaries used to create a histogram for
56
+ # the distribution. The buckets can be in a linear sequence, an exponential
57
+ # sequence, or each bucket can be specified explicitly. `BucketOptions` does not
58
+ # include the number of values in each bucket. A bucket has an inclusive lower
59
+ # bound and exclusive upper bound for the values that are counted for that
60
+ # bucket. The upper bound of a bucket must be strictly greater than the lower
61
+ # bound. The sequence of N buckets for a distribution consists of an underflow
62
+ # bucket (number 0), zero or more finite buckets (number 1 through N - 2) and an
63
+ # overflow bucket (number N - 1). The buckets are contiguous: the lower bound of
64
+ # bucket i (i > 0) is the same as the upper bound of bucket i - 1. The buckets
65
+ # span the whole range of finite values: lower bound of the underflow bucket is -
66
+ # infinity and the upper bound of the overflow bucket is +infinity. The finite
67
+ # buckets are so-called because both bounds are finite.
68
+ # Corresponds to the JSON property `bucketOptions`
69
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleApiDistributionBucketOptions]
70
+ attr_accessor :bucket_options
71
+
72
+ # The number of values in the population. Must be non-negative. This value must
73
+ # equal the sum of the values in `bucket_counts` if a histogram is provided.
74
+ # Corresponds to the JSON property `count`
75
+ # @return [Fixnum]
76
+ attr_accessor :count
77
+
78
+ # Must be in increasing order of `value` field.
79
+ # Corresponds to the JSON property `exemplars`
80
+ # @return [Array<Google::Apis::DiscoveryengineV1alpha::GoogleApiDistributionExemplar>]
81
+ attr_accessor :exemplars
82
+
83
+ # The arithmetic mean of the values in the population. If `count` is zero then
84
+ # this field must be zero.
85
+ # Corresponds to the JSON property `mean`
86
+ # @return [Float]
87
+ attr_accessor :mean
88
+
89
+ # The range of the population values.
90
+ # Corresponds to the JSON property `range`
91
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleApiDistributionRange]
92
+ attr_accessor :range
93
+
94
+ # The sum of squared deviations from the mean of the values in the population.
95
+ # For values x_i this is: Sum[i=1..n]((x_i - mean)^2) Knuth, "The Art of
96
+ # Computer Programming", Vol. 2, page 232, 3rd edition describes Welford's
97
+ # method for accumulating this sum in one pass. If `count` is zero then this
98
+ # field must be zero.
99
+ # Corresponds to the JSON property `sumOfSquaredDeviation`
100
+ # @return [Float]
101
+ attr_accessor :sum_of_squared_deviation
102
+
103
+ def initialize(**args)
104
+ update!(**args)
105
+ end
106
+
107
+ # Update properties of this object
108
+ def update!(**args)
109
+ @bucket_counts = args[:bucket_counts] if args.key?(:bucket_counts)
110
+ @bucket_options = args[:bucket_options] if args.key?(:bucket_options)
111
+ @count = args[:count] if args.key?(:count)
112
+ @exemplars = args[:exemplars] if args.key?(:exemplars)
113
+ @mean = args[:mean] if args.key?(:mean)
114
+ @range = args[:range] if args.key?(:range)
115
+ @sum_of_squared_deviation = args[:sum_of_squared_deviation] if args.key?(:sum_of_squared_deviation)
116
+ end
117
+ end
118
+
119
+ # `BucketOptions` describes the bucket boundaries used to create a histogram for
120
+ # the distribution. The buckets can be in a linear sequence, an exponential
121
+ # sequence, or each bucket can be specified explicitly. `BucketOptions` does not
122
+ # include the number of values in each bucket. A bucket has an inclusive lower
123
+ # bound and exclusive upper bound for the values that are counted for that
124
+ # bucket. The upper bound of a bucket must be strictly greater than the lower
125
+ # bound. The sequence of N buckets for a distribution consists of an underflow
126
+ # bucket (number 0), zero or more finite buckets (number 1 through N - 2) and an
127
+ # overflow bucket (number N - 1). The buckets are contiguous: the lower bound of
128
+ # bucket i (i > 0) is the same as the upper bound of bucket i - 1. The buckets
129
+ # span the whole range of finite values: lower bound of the underflow bucket is -
130
+ # infinity and the upper bound of the overflow bucket is +infinity. The finite
131
+ # buckets are so-called because both bounds are finite.
132
+ class GoogleApiDistributionBucketOptions
133
+ include Google::Apis::Core::Hashable
134
+
135
+ # Specifies a set of buckets with arbitrary widths. There are `size(bounds) + 1`
136
+ # (= N) buckets. Bucket `i` has the following boundaries: Upper bound (0 <= i <
137
+ # N-1): bounds[i] Lower bound (1 <= i < N); bounds[i - 1] The `bounds` field
138
+ # must contain at least one element. If `bounds` has only one element, then
139
+ # there are no finite buckets, and that single element is the common boundary of
140
+ # the overflow and underflow buckets.
141
+ # Corresponds to the JSON property `explicitBuckets`
142
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleApiDistributionBucketOptionsExplicit]
143
+ attr_accessor :explicit_buckets
144
+
145
+ # Specifies an exponential sequence of buckets that have a width that is
146
+ # proportional to the value of the lower bound. Each bucket represents a
147
+ # constant relative uncertainty on a specific value in the bucket. There are `
148
+ # num_finite_buckets + 2` (= N) buckets. Bucket `i` has the following boundaries:
149
+ # Upper bound (0 <= i < N-1): scale * (growth_factor ^ i). Lower bound (1 <= i <
150
+ # N): scale * (growth_factor ^ (i - 1)).
151
+ # Corresponds to the JSON property `exponentialBuckets`
152
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleApiDistributionBucketOptionsExponential]
153
+ attr_accessor :exponential_buckets
154
+
155
+ # Specifies a linear sequence of buckets that all have the same width (except
156
+ # overflow and underflow). Each bucket represents a constant absolute
157
+ # uncertainty on the specific value in the bucket. There are `num_finite_buckets
158
+ # + 2` (= N) buckets. Bucket `i` has the following boundaries: Upper bound (0 <=
159
+ # i < N-1): offset + (width * i). Lower bound (1 <= i < N): offset + (width * (i
160
+ # - 1)).
161
+ # Corresponds to the JSON property `linearBuckets`
162
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleApiDistributionBucketOptionsLinear]
163
+ attr_accessor :linear_buckets
164
+
165
+ def initialize(**args)
166
+ update!(**args)
167
+ end
168
+
169
+ # Update properties of this object
170
+ def update!(**args)
171
+ @explicit_buckets = args[:explicit_buckets] if args.key?(:explicit_buckets)
172
+ @exponential_buckets = args[:exponential_buckets] if args.key?(:exponential_buckets)
173
+ @linear_buckets = args[:linear_buckets] if args.key?(:linear_buckets)
174
+ end
175
+ end
176
+
177
+ # Specifies a set of buckets with arbitrary widths. There are `size(bounds) + 1`
178
+ # (= N) buckets. Bucket `i` has the following boundaries: Upper bound (0 <= i <
179
+ # N-1): bounds[i] Lower bound (1 <= i < N); bounds[i - 1] The `bounds` field
180
+ # must contain at least one element. If `bounds` has only one element, then
181
+ # there are no finite buckets, and that single element is the common boundary of
182
+ # the overflow and underflow buckets.
183
+ class GoogleApiDistributionBucketOptionsExplicit
184
+ include Google::Apis::Core::Hashable
185
+
186
+ # The values must be monotonically increasing.
187
+ # Corresponds to the JSON property `bounds`
188
+ # @return [Array<Float>]
189
+ attr_accessor :bounds
190
+
191
+ def initialize(**args)
192
+ update!(**args)
193
+ end
194
+
195
+ # Update properties of this object
196
+ def update!(**args)
197
+ @bounds = args[:bounds] if args.key?(:bounds)
198
+ end
199
+ end
200
+
201
+ # Specifies an exponential sequence of buckets that have a width that is
202
+ # proportional to the value of the lower bound. Each bucket represents a
203
+ # constant relative uncertainty on a specific value in the bucket. There are `
204
+ # num_finite_buckets + 2` (= N) buckets. Bucket `i` has the following boundaries:
205
+ # Upper bound (0 <= i < N-1): scale * (growth_factor ^ i). Lower bound (1 <= i <
206
+ # N): scale * (growth_factor ^ (i - 1)).
207
+ class GoogleApiDistributionBucketOptionsExponential
208
+ include Google::Apis::Core::Hashable
209
+
210
+ # Must be greater than 1.
211
+ # Corresponds to the JSON property `growthFactor`
212
+ # @return [Float]
213
+ attr_accessor :growth_factor
214
+
215
+ # Must be greater than 0.
216
+ # Corresponds to the JSON property `numFiniteBuckets`
217
+ # @return [Fixnum]
218
+ attr_accessor :num_finite_buckets
219
+
220
+ # Must be greater than 0.
221
+ # Corresponds to the JSON property `scale`
222
+ # @return [Float]
223
+ attr_accessor :scale
224
+
225
+ def initialize(**args)
226
+ update!(**args)
227
+ end
228
+
229
+ # Update properties of this object
230
+ def update!(**args)
231
+ @growth_factor = args[:growth_factor] if args.key?(:growth_factor)
232
+ @num_finite_buckets = args[:num_finite_buckets] if args.key?(:num_finite_buckets)
233
+ @scale = args[:scale] if args.key?(:scale)
234
+ end
235
+ end
236
+
237
+ # Specifies a linear sequence of buckets that all have the same width (except
238
+ # overflow and underflow). Each bucket represents a constant absolute
239
+ # uncertainty on the specific value in the bucket. There are `num_finite_buckets
240
+ # + 2` (= N) buckets. Bucket `i` has the following boundaries: Upper bound (0 <=
241
+ # i < N-1): offset + (width * i). Lower bound (1 <= i < N): offset + (width * (i
242
+ # - 1)).
243
+ class GoogleApiDistributionBucketOptionsLinear
244
+ include Google::Apis::Core::Hashable
245
+
246
+ # Must be greater than 0.
247
+ # Corresponds to the JSON property `numFiniteBuckets`
248
+ # @return [Fixnum]
249
+ attr_accessor :num_finite_buckets
250
+
251
+ # Lower bound of the first bucket.
252
+ # Corresponds to the JSON property `offset`
253
+ # @return [Float]
254
+ attr_accessor :offset
255
+
256
+ # Must be greater than 0.
257
+ # Corresponds to the JSON property `width`
258
+ # @return [Float]
259
+ attr_accessor :width
260
+
261
+ def initialize(**args)
262
+ update!(**args)
263
+ end
264
+
265
+ # Update properties of this object
266
+ def update!(**args)
267
+ @num_finite_buckets = args[:num_finite_buckets] if args.key?(:num_finite_buckets)
268
+ @offset = args[:offset] if args.key?(:offset)
269
+ @width = args[:width] if args.key?(:width)
270
+ end
271
+ end
272
+
273
+ # Exemplars are example points that may be used to annotate aggregated
274
+ # distribution values. They are metadata that gives information about a
275
+ # particular value added to a Distribution bucket, such as a trace ID that was
276
+ # active when a value was added. They may contain further information, such as a
277
+ # example values and timestamps, origin, etc.
278
+ class GoogleApiDistributionExemplar
279
+ include Google::Apis::Core::Hashable
280
+
281
+ # Contextual information about the example value. Examples are: Trace: type.
282
+ # googleapis.com/google.monitoring.v3.SpanContext Literal string: type.
283
+ # googleapis.com/google.protobuf.StringValue Labels dropped during aggregation:
284
+ # type.googleapis.com/google.monitoring.v3.DroppedLabels There may be only a
285
+ # single attachment of any given message type in a single exemplar, and this is
286
+ # enforced by the system.
287
+ # Corresponds to the JSON property `attachments`
288
+ # @return [Array<Hash<String,Object>>]
289
+ attr_accessor :attachments
290
+
291
+ # The observation (sampling) time of the above value.
292
+ # Corresponds to the JSON property `timestamp`
293
+ # @return [String]
294
+ attr_accessor :timestamp
295
+
296
+ # Value of the exemplar point. This value determines to which bucket the
297
+ # exemplar belongs.
298
+ # Corresponds to the JSON property `value`
299
+ # @return [Float]
300
+ attr_accessor :value
301
+
302
+ def initialize(**args)
303
+ update!(**args)
304
+ end
305
+
306
+ # Update properties of this object
307
+ def update!(**args)
308
+ @attachments = args[:attachments] if args.key?(:attachments)
309
+ @timestamp = args[:timestamp] if args.key?(:timestamp)
310
+ @value = args[:value] if args.key?(:value)
311
+ end
312
+ end
313
+
314
+ # The range of the population values.
315
+ class GoogleApiDistributionRange
316
+ include Google::Apis::Core::Hashable
317
+
318
+ # The maximum of the population values.
319
+ # Corresponds to the JSON property `max`
320
+ # @return [Float]
321
+ attr_accessor :max
322
+
323
+ # The minimum of the population values.
324
+ # Corresponds to the JSON property `min`
325
+ # @return [Float]
326
+ attr_accessor :min
327
+
328
+ def initialize(**args)
329
+ update!(**args)
330
+ end
331
+
332
+ # Update properties of this object
333
+ def update!(**args)
334
+ @max = args[:max] if args.key?(:max)
335
+ @min = args[:min] if args.key?(:min)
336
+ end
337
+ end
338
+
25
339
  # Message that represents an arbitrary HTTP body. It should only be used for
26
340
  # payload formats that can't be represented as JSON, such as raw binary or an
27
341
  # HTML page. This message can be used both in streaming and non-streaming API
@@ -70,6 +384,46 @@ module Google
70
384
  end
71
385
  end
72
386
 
387
+ # An object representing a resource that can be used for monitoring, logging,
388
+ # billing, or other purposes. Examples include virtual machine instances,
389
+ # databases, and storage devices such as disks. The `type` field identifies a
390
+ # MonitoredResourceDescriptor object that describes the resource's schema.
391
+ # Information in the `labels` field identifies the actual resource and its
392
+ # attributes according to the schema. For example, a particular Compute Engine
393
+ # VM instance could be represented by the following object, because the
394
+ # MonitoredResourceDescriptor for `"gce_instance"` has labels `"project_id"`, `"
395
+ # instance_id"` and `"zone"`: ` "type": "gce_instance", "labels": ` "project_id":
396
+ # "my-project", "instance_id": "12345678901234", "zone": "us-central1-a" ``
397
+ class GoogleApiMonitoredResource
398
+ include Google::Apis::Core::Hashable
399
+
400
+ # Required. Values for all of the labels listed in the associated monitored
401
+ # resource descriptor. For example, Compute Engine VM instances use the labels `"
402
+ # project_id"`, `"instance_id"`, and `"zone"`.
403
+ # Corresponds to the JSON property `labels`
404
+ # @return [Hash<String,String>]
405
+ attr_accessor :labels
406
+
407
+ # Required. The monitored resource type. This field must match the `type` field
408
+ # of a MonitoredResourceDescriptor object. For example, the type of a Compute
409
+ # Engine VM instance is `gce_instance`. Some descriptors include the service
410
+ # name in the type; for example, the type of a Datastream stream is `datastream.
411
+ # googleapis.com/Stream`.
412
+ # Corresponds to the JSON property `type`
413
+ # @return [String]
414
+ attr_accessor :type
415
+
416
+ def initialize(**args)
417
+ update!(**args)
418
+ end
419
+
420
+ # Update properties of this object
421
+ def update!(**args)
422
+ @labels = args[:labels] if args.key?(:labels)
423
+ @type = args[:type] if args.key?(:type)
424
+ end
425
+ end
426
+
73
427
  # A description of the context in which an error occurred.
74
428
  class GoogleCloudDiscoveryengineLoggingErrorContext
75
429
  include Google::Apis::Core::Hashable
@@ -941,6 +1295,11 @@ module Google
941
1295
  class GoogleCloudDiscoveryengineV1DocumentProcessingConfig
942
1296
  include Google::Apis::Core::Hashable
943
1297
 
1298
+ # Configuration for chunking config.
1299
+ # Corresponds to the JSON property `chunkingConfig`
1300
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1DocumentProcessingConfigChunkingConfig]
1301
+ attr_accessor :chunking_config
1302
+
944
1303
  # Related configurations applied to a specific type of document parser.
945
1304
  # Corresponds to the JSON property `defaultParsingConfig`
946
1305
  # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfig]
@@ -968,12 +1327,60 @@ module Google
968
1327
 
969
1328
  # Update properties of this object
970
1329
  def update!(**args)
1330
+ @chunking_config = args[:chunking_config] if args.key?(:chunking_config)
971
1331
  @default_parsing_config = args[:default_parsing_config] if args.key?(:default_parsing_config)
972
1332
  @name = args[:name] if args.key?(:name)
973
1333
  @parsing_config_overrides = args[:parsing_config_overrides] if args.key?(:parsing_config_overrides)
974
1334
  end
975
1335
  end
976
1336
 
1337
+ # Configuration for chunking config.
1338
+ class GoogleCloudDiscoveryengineV1DocumentProcessingConfigChunkingConfig
1339
+ include Google::Apis::Core::Hashable
1340
+
1341
+ # Configuration for the layout based chunking.
1342
+ # Corresponds to the JSON property `layoutBasedChunkingConfig`
1343
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1DocumentProcessingConfigChunkingConfigLayoutBasedChunkingConfig]
1344
+ attr_accessor :layout_based_chunking_config
1345
+
1346
+ def initialize(**args)
1347
+ update!(**args)
1348
+ end
1349
+
1350
+ # Update properties of this object
1351
+ def update!(**args)
1352
+ @layout_based_chunking_config = args[:layout_based_chunking_config] if args.key?(:layout_based_chunking_config)
1353
+ end
1354
+ end
1355
+
1356
+ # Configuration for the layout based chunking.
1357
+ class GoogleCloudDiscoveryengineV1DocumentProcessingConfigChunkingConfigLayoutBasedChunkingConfig
1358
+ include Google::Apis::Core::Hashable
1359
+
1360
+ # The token size limit for each chunk. Supported values: 100-500 (inclusive).
1361
+ # Default value: 500.
1362
+ # Corresponds to the JSON property `chunkSize`
1363
+ # @return [Fixnum]
1364
+ attr_accessor :chunk_size
1365
+
1366
+ # Whether to include appending different levels of headings to chunks from the
1367
+ # middle of the document to prevent context loss. Default value: False.
1368
+ # Corresponds to the JSON property `includeAncestorHeadings`
1369
+ # @return [Boolean]
1370
+ attr_accessor :include_ancestor_headings
1371
+ alias_method :include_ancestor_headings?, :include_ancestor_headings
1372
+
1373
+ def initialize(**args)
1374
+ update!(**args)
1375
+ end
1376
+
1377
+ # Update properties of this object
1378
+ def update!(**args)
1379
+ @chunk_size = args[:chunk_size] if args.key?(:chunk_size)
1380
+ @include_ancestor_headings = args[:include_ancestor_headings] if args.key?(:include_ancestor_headings)
1381
+ end
1382
+ end
1383
+
977
1384
  # Related configurations applied to a specific type of document parser.
978
1385
  class GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfig
979
1386
  include Google::Apis::Core::Hashable
@@ -983,6 +1390,11 @@ module Google
983
1390
  # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigDigitalParsingConfig]
984
1391
  attr_accessor :digital_parsing_config
985
1392
 
1393
+ # The layout parsing configurations for documents.
1394
+ # Corresponds to the JSON property `layoutParsingConfig`
1395
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigLayoutParsingConfig]
1396
+ attr_accessor :layout_parsing_config
1397
+
986
1398
  # The OCR parsing configurations for documents.
987
1399
  # Corresponds to the JSON property `ocrParsingConfig`
988
1400
  # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigOcrParsingConfig]
@@ -995,6 +1407,7 @@ module Google
995
1407
  # Update properties of this object
996
1408
  def update!(**args)
997
1409
  @digital_parsing_config = args[:digital_parsing_config] if args.key?(:digital_parsing_config)
1410
+ @layout_parsing_config = args[:layout_parsing_config] if args.key?(:layout_parsing_config)
998
1411
  @ocr_parsing_config = args[:ocr_parsing_config] if args.key?(:ocr_parsing_config)
999
1412
  end
1000
1413
  end
@@ -1012,6 +1425,19 @@ module Google
1012
1425
  end
1013
1426
  end
1014
1427
 
1428
+ # The layout parsing configurations for documents.
1429
+ class GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigLayoutParsingConfig
1430
+ include Google::Apis::Core::Hashable
1431
+
1432
+ def initialize(**args)
1433
+ update!(**args)
1434
+ end
1435
+
1436
+ # Update properties of this object
1437
+ def update!(**args)
1438
+ end
1439
+ end
1440
+
1015
1441
  # The OCR parsing configurations for documents.
1016
1442
  class GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigOcrParsingConfig
1017
1443
  include Google::Apis::Core::Hashable
@@ -2043,6 +2469,64 @@ module Google
2043
2469
  end
2044
2470
  end
2045
2471
 
2472
+ # AlloyDB source import data from.
2473
+ class GoogleCloudDiscoveryengineV1alphaAlloyDbSource
2474
+ include Google::Apis::Core::Hashable
2475
+
2476
+ # Required. The AlloyDB cluster to copy the data from with a length limit of 256
2477
+ # characters.
2478
+ # Corresponds to the JSON property `clusterId`
2479
+ # @return [String]
2480
+ attr_accessor :cluster_id
2481
+
2482
+ # Required. The AlloyDB database to copy the data from with a length limit of
2483
+ # 256 characters.
2484
+ # Corresponds to the JSON property `databaseId`
2485
+ # @return [String]
2486
+ attr_accessor :database_id
2487
+
2488
+ # Intermediate Cloud Storage directory used for the import with a length limit
2489
+ # of 2,000 characters. Can be specified if one wants to have the AlloyDB export
2490
+ # to a specific Cloud Storage directory. Ensure that the AlloyDB service account
2491
+ # has the necessary Cloud Storage Admin permissions to access the specified
2492
+ # Cloud Storage directory.
2493
+ # Corresponds to the JSON property `gcsStagingDir`
2494
+ # @return [String]
2495
+ attr_accessor :gcs_staging_dir
2496
+
2497
+ # Required. The AlloyDB location to copy the data from with a length limit of
2498
+ # 256 characters.
2499
+ # Corresponds to the JSON property `locationId`
2500
+ # @return [String]
2501
+ attr_accessor :location_id
2502
+
2503
+ # The project ID that the AlloyDB source is in with a length limit of 128
2504
+ # characters. If not specified, inherits the project ID from the parent request.
2505
+ # Corresponds to the JSON property `projectId`
2506
+ # @return [String]
2507
+ attr_accessor :project_id
2508
+
2509
+ # Required. The AlloyDB table to copy the data from with a length limit of 256
2510
+ # characters.
2511
+ # Corresponds to the JSON property `tableId`
2512
+ # @return [String]
2513
+ attr_accessor :table_id
2514
+
2515
+ def initialize(**args)
2516
+ update!(**args)
2517
+ end
2518
+
2519
+ # Update properties of this object
2520
+ def update!(**args)
2521
+ @cluster_id = args[:cluster_id] if args.key?(:cluster_id)
2522
+ @database_id = args[:database_id] if args.key?(:database_id)
2523
+ @gcs_staging_dir = args[:gcs_staging_dir] if args.key?(:gcs_staging_dir)
2524
+ @location_id = args[:location_id] if args.key?(:location_id)
2525
+ @project_id = args[:project_id] if args.key?(:project_id)
2526
+ @table_id = args[:table_id] if args.key?(:table_id)
2527
+ end
2528
+ end
2529
+
2046
2530
  # Defines an answer.
2047
2531
  class GoogleCloudDiscoveryengineV1alphaAnswer
2048
2532
  include Google::Apis::Core::Hashable
@@ -2226,6 +2710,21 @@ module Google
2226
2710
  # @return [String]
2227
2711
  attr_accessor :session
2228
2712
 
2713
+ # The user labels applied to a resource must meet the following requirements: *
2714
+ # Each resource can have multiple labels, up to a maximum of 64. * Each label
2715
+ # must be a key-value pair. * Keys have a minimum length of 1 character and a
2716
+ # maximum length of 63 characters and cannot be empty. Values can be empty and
2717
+ # have a maximum length of 63 characters. * Keys and values can contain only
2718
+ # lowercase letters, numeric characters, underscores, and dashes. All characters
2719
+ # must use UTF-8 encoding, and international characters are allowed. * The key
2720
+ # portion of a label must be unique. However, you can use the same key with
2721
+ # multiple resources. * Keys must start with a lowercase letter or international
2722
+ # character. See [Google Cloud Document](https://cloud.google.com/resource-
2723
+ # manager/docs/creating-managing-labels#requirements) for more details.
2724
+ # Corresponds to the JSON property `userLabels`
2725
+ # @return [Hash<String,String>]
2726
+ attr_accessor :user_labels
2727
+
2229
2728
  # A unique identifier for tracking visitors. For example, this could be
2230
2729
  # implemented with an HTTP cookie, which should be able to uniquely identify a
2231
2730
  # visitor on a single device. This unique identifier should not change if the
@@ -2251,6 +2750,7 @@ module Google
2251
2750
  @safety_spec = args[:safety_spec] if args.key?(:safety_spec)
2252
2751
  @search_spec = args[:search_spec] if args.key?(:search_spec)
2253
2752
  @session = args[:session] if args.key?(:session)
2753
+ @user_labels = args[:user_labels] if args.key?(:user_labels)
2254
2754
  @user_pseudo_id = args[:user_pseudo_id] if args.key?(:user_pseudo_id)
2255
2755
  end
2256
2756
  end
@@ -3694,6 +4194,134 @@ module Google
3694
4194
  end
3695
4195
  end
3696
4196
 
4197
+ # Request for CheckRequirement method.
4198
+ class GoogleCloudDiscoveryengineV1alphaCheckRequirementRequest
4199
+ include Google::Apis::Core::Hashable
4200
+
4201
+ # A Requirement.type specifying the requirement to check.
4202
+ # Corresponds to the JSON property `requirementType`
4203
+ # @return [String]
4204
+ attr_accessor :requirement_type
4205
+
4206
+ # The resources to be checked for this requirement.
4207
+ # Corresponds to the JSON property `resources`
4208
+ # @return [Array<Google::Apis::DiscoveryengineV1alpha::GoogleApiMonitoredResource>]
4209
+ attr_accessor :resources
4210
+
4211
+ def initialize(**args)
4212
+ update!(**args)
4213
+ end
4214
+
4215
+ # Update properties of this object
4216
+ def update!(**args)
4217
+ @requirement_type = args[:requirement_type] if args.key?(:requirement_type)
4218
+ @resources = args[:resources] if args.key?(:resources)
4219
+ end
4220
+ end
4221
+
4222
+ # Response for CheckRequirement method.
4223
+ class GoogleCloudDiscoveryengineV1alphaCheckRequirementResponse
4224
+ include Google::Apis::Core::Hashable
4225
+
4226
+ # Metric results.
4227
+ # Corresponds to the JSON property `metricResults`
4228
+ # @return [Array<Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaCheckRequirementResponseMetricQueryResult>]
4229
+ attr_accessor :metric_results
4230
+
4231
+ # Timestamp of the oldest calculated metric (i.e. the most stale metric).
4232
+ # Indicates that the `requirement_result` may not accurately reflect any Event
4233
+ # and Product Catalog updates performed after this time.
4234
+ # Corresponds to the JSON property `oldestMetricTimestamp`
4235
+ # @return [String]
4236
+ attr_accessor :oldest_metric_timestamp
4237
+
4238
+ # A data requirement.
4239
+ # Corresponds to the JSON property `requirement`
4240
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaRequirement]
4241
+ attr_accessor :requirement
4242
+
4243
+ # Represents a textual expression in the Common Expression Language (CEL) syntax.
4244
+ # CEL is a C-like expression language. The syntax and semantics of CEL are
4245
+ # documented at https://github.com/google/cel-spec. Example (Comparison): title:
4246
+ # "Summary size limit" description: "Determines if a summary is less than 100
4247
+ # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
4248
+ # Requestor is owner" description: "Determines if requestor is the document
4249
+ # owner" expression: "document.owner == request.auth.claims.email" Example (
4250
+ # Logic): title: "Public documents" description: "Determine whether the document
4251
+ # should be publicly visible" expression: "document.type != 'private' &&
4252
+ # document.type != 'internal'" Example (Data Manipulation): title: "Notification
4253
+ # string" description: "Create a notification string with a timestamp."
4254
+ # expression: "'New message received at ' + string(document.create_time)" The
4255
+ # exact variables and functions that may be referenced within an expression are
4256
+ # determined by the service that evaluates it. See the service documentation for
4257
+ # additional information.
4258
+ # Corresponds to the JSON property `requirementCondition`
4259
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleTypeExpr]
4260
+ attr_accessor :requirement_condition
4261
+
4262
+ # Requirement result, e.g. pass or fail.
4263
+ # Corresponds to the JSON property `requirementResult`
4264
+ # @return [String]
4265
+ attr_accessor :requirement_result
4266
+
4267
+ def initialize(**args)
4268
+ update!(**args)
4269
+ end
4270
+
4271
+ # Update properties of this object
4272
+ def update!(**args)
4273
+ @metric_results = args[:metric_results] if args.key?(:metric_results)
4274
+ @oldest_metric_timestamp = args[:oldest_metric_timestamp] if args.key?(:oldest_metric_timestamp)
4275
+ @requirement = args[:requirement] if args.key?(:requirement)
4276
+ @requirement_condition = args[:requirement_condition] if args.key?(:requirement_condition)
4277
+ @requirement_result = args[:requirement_result] if args.key?(:requirement_result)
4278
+ end
4279
+ end
4280
+
4281
+ # Metric result. The metric are in the requirement_condition.
4282
+ class GoogleCloudDiscoveryengineV1alphaCheckRequirementResponseMetricQueryResult
4283
+ include Google::Apis::Core::Hashable
4284
+
4285
+ # Type identifier of the metric corresponding to this query result.
4286
+ # Corresponds to the JSON property `metricType`
4287
+ # @return [String]
4288
+ attr_accessor :metric_type
4289
+
4290
+ # This metric query name is mapping to variables in the requirement_condition.
4291
+ # Corresponds to the JSON property `name`
4292
+ # @return [String]
4293
+ attr_accessor :name
4294
+
4295
+ # Time corresponding to when this metric value was calculated.
4296
+ # Corresponds to the JSON property `timestamp`
4297
+ # @return [String]
4298
+ attr_accessor :timestamp
4299
+
4300
+ # The unit in which this metric is reported. Follows [The Unified Code for Units
4301
+ # of Measure](https://unitsofmeasure.org/ucum.html) standard.
4302
+ # Corresponds to the JSON property `unit`
4303
+ # @return [String]
4304
+ attr_accessor :unit
4305
+
4306
+ # A single strongly-typed value.
4307
+ # Corresponds to the JSON property `value`
4308
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleMonitoringV3TypedValue]
4309
+ attr_accessor :value
4310
+
4311
+ def initialize(**args)
4312
+ update!(**args)
4313
+ end
4314
+
4315
+ # Update properties of this object
4316
+ def update!(**args)
4317
+ @metric_type = args[:metric_type] if args.key?(:metric_type)
4318
+ @name = args[:name] if args.key?(:name)
4319
+ @timestamp = args[:timestamp] if args.key?(:timestamp)
4320
+ @unit = args[:unit] if args.key?(:unit)
4321
+ @value = args[:value] if args.key?(:value)
4322
+ end
4323
+ end
4324
+
3697
4325
  # Chunk captures all raw metadata information of items to be recommended or
3698
4326
  # searched in the chunk mode.
3699
4327
  class GoogleCloudDiscoveryengineV1alphaChunk
@@ -4797,6 +5425,11 @@ module Google
4797
5425
  # @return [String]
4798
5426
  attr_accessor :industry_vertical
4799
5427
 
5428
+ # Language info for DataStore.
5429
+ # Corresponds to the JSON property `languageInfo`
5430
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaLanguageInfo]
5431
+ attr_accessor :language_info
5432
+
4800
5433
  # Immutable. The full resource name of the data store. Format: `projects/`
4801
5434
  # project`/locations/`location`/collections/`collection_id`/dataStores/`
4802
5435
  # data_store_id``. This field must be a UTF-8 encoded string with a length limit
@@ -4832,6 +5465,7 @@ module Google
4832
5465
  @document_processing_config = args[:document_processing_config] if args.key?(:document_processing_config)
4833
5466
  @idp_config = args[:idp_config] if args.key?(:idp_config)
4834
5467
  @industry_vertical = args[:industry_vertical] if args.key?(:industry_vertical)
5468
+ @language_info = args[:language_info] if args.key?(:language_info)
4835
5469
  @name = args[:name] if args.key?(:name)
4836
5470
  @solution_types = args[:solution_types] if args.key?(:solution_types)
4837
5471
  @starting_schema = args[:starting_schema] if args.key?(:starting_schema)
@@ -6523,6 +7157,11 @@ module Google
6523
7157
  class GoogleCloudDiscoveryengineV1alphaImportDocumentsRequest
6524
7158
  include Google::Apis::Core::Hashable
6525
7159
 
7160
+ # AlloyDB source import data from.
7161
+ # Corresponds to the JSON property `alloyDbSource`
7162
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAlloyDbSource]
7163
+ attr_accessor :alloy_db_source
7164
+
6526
7165
  # Whether to automatically generate IDs for the documents if absent. If set to `
6527
7166
  # true`, Document.ids are automatically generated based on the hash of the
6528
7167
  # payload, where IDs may not be consistent during multiple imports. In which
@@ -6620,6 +7259,7 @@ module Google
6620
7259
 
6621
7260
  # Update properties of this object
6622
7261
  def update!(**args)
7262
+ @alloy_db_source = args[:alloy_db_source] if args.key?(:alloy_db_source)
6623
7263
  @auto_generate_ids = args[:auto_generate_ids] if args.key?(:auto_generate_ids)
6624
7264
  @bigquery_source = args[:bigquery_source] if args.key?(:bigquery_source)
6625
7265
  @bigtable_source = args[:bigtable_source] if args.key?(:bigtable_source)
@@ -6960,10 +7600,51 @@ module Google
6960
7600
  # @return [Float]
6961
7601
  attr_accessor :maximum
6962
7602
 
6963
- # Inclusive lower bound.
6964
- # Corresponds to the JSON property `minimum`
6965
- # @return [Float]
6966
- attr_accessor :minimum
7603
+ # Inclusive lower bound.
7604
+ # Corresponds to the JSON property `minimum`
7605
+ # @return [Float]
7606
+ attr_accessor :minimum
7607
+
7608
+ def initialize(**args)
7609
+ update!(**args)
7610
+ end
7611
+
7612
+ # Update properties of this object
7613
+ def update!(**args)
7614
+ @exclusive_maximum = args[:exclusive_maximum] if args.key?(:exclusive_maximum)
7615
+ @exclusive_minimum = args[:exclusive_minimum] if args.key?(:exclusive_minimum)
7616
+ @maximum = args[:maximum] if args.key?(:maximum)
7617
+ @minimum = args[:minimum] if args.key?(:minimum)
7618
+ end
7619
+ end
7620
+
7621
+ # Language info for DataStore.
7622
+ class GoogleCloudDiscoveryengineV1alphaLanguageInfo
7623
+ include Google::Apis::Core::Hashable
7624
+
7625
+ # Output only. Language part of normalized_language_code. E.g.: `en-US` -> `en`,
7626
+ # `zh-Hans-HK` -> `zh`, `en` -> `en`.
7627
+ # Corresponds to the JSON property `language`
7628
+ # @return [String]
7629
+ attr_accessor :language
7630
+
7631
+ # The language code for the DataStore.
7632
+ # Corresponds to the JSON property `languageCode`
7633
+ # @return [String]
7634
+ attr_accessor :language_code
7635
+
7636
+ # Output only. This is the normalized form of language_code. E.g.: language_code
7637
+ # of `en-GB`, `en_GB`, `en-UK` or `en-gb` will have normalized_language_code of `
7638
+ # en-GB`.
7639
+ # Corresponds to the JSON property `normalizedLanguageCode`
7640
+ # @return [String]
7641
+ attr_accessor :normalized_language_code
7642
+
7643
+ # Output only. Region part of normalized_language_code, if present. E.g.: `en-US`
7644
+ # -> `US`, `zh-Hans-HK` -> `HK`, `en` -> ``.
7645
+ # Corresponds to the JSON property `region`
7646
+ # @return [String]
7647
+ attr_accessor :region
6967
7648
 
6968
7649
  def initialize(**args)
6969
7650
  update!(**args)
@@ -6971,10 +7652,10 @@ module Google
6971
7652
 
6972
7653
  # Update properties of this object
6973
7654
  def update!(**args)
6974
- @exclusive_maximum = args[:exclusive_maximum] if args.key?(:exclusive_maximum)
6975
- @exclusive_minimum = args[:exclusive_minimum] if args.key?(:exclusive_minimum)
6976
- @maximum = args[:maximum] if args.key?(:maximum)
6977
- @minimum = args[:minimum] if args.key?(:minimum)
7655
+ @language = args[:language] if args.key?(:language)
7656
+ @language_code = args[:language_code] if args.key?(:language_code)
7657
+ @normalized_language_code = args[:normalized_language_code] if args.key?(:normalized_language_code)
7658
+ @region = args[:region] if args.key?(:region)
6978
7659
  end
6979
7660
  end
6980
7661
 
@@ -8463,6 +9144,201 @@ module Google
8463
9144
  end
8464
9145
  end
8465
9146
 
9147
+ # A data requirement.
9148
+ class GoogleCloudDiscoveryengineV1alphaRequirement
9149
+ include Google::Apis::Core::Hashable
9150
+
9151
+ # Represents a textual expression in the Common Expression Language (CEL) syntax.
9152
+ # CEL is a C-like expression language. The syntax and semantics of CEL are
9153
+ # documented at https://github.com/google/cel-spec. Example (Comparison): title:
9154
+ # "Summary size limit" description: "Determines if a summary is less than 100
9155
+ # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
9156
+ # Requestor is owner" description: "Determines if requestor is the document
9157
+ # owner" expression: "document.owner == request.auth.claims.email" Example (
9158
+ # Logic): title: "Public documents" description: "Determine whether the document
9159
+ # should be publicly visible" expression: "document.type != 'private' &&
9160
+ # document.type != 'internal'" Example (Data Manipulation): title: "Notification
9161
+ # string" description: "Create a notification string with a timestamp."
9162
+ # expression: "'New message received at ' + string(document.create_time)" The
9163
+ # exact variables and functions that may be referenced within an expression are
9164
+ # determined by the service that evaluates it. See the service documentation for
9165
+ # additional information.
9166
+ # Corresponds to the JSON property `condition`
9167
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleTypeExpr]
9168
+ attr_accessor :condition
9169
+
9170
+ # The description of the requirement.
9171
+ # Corresponds to the JSON property `description`
9172
+ # @return [String]
9173
+ attr_accessor :description
9174
+
9175
+ # The name of the requirement.
9176
+ # Corresponds to the JSON property `displayName`
9177
+ # @return [String]
9178
+ attr_accessor :display_name
9179
+
9180
+ # A list of the metric bindings to be used in `condition`.
9181
+ # Corresponds to the JSON property `metricBindings`
9182
+ # @return [Array<Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaRequirementMetricBinding>]
9183
+ attr_accessor :metric_bindings
9184
+
9185
+ # A list of threshold bindings to be used in `condition`.
9186
+ # Corresponds to the JSON property `thresholdBindings`
9187
+ # @return [Array<Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaRequirementThresholdBinding>]
9188
+ attr_accessor :threshold_bindings
9189
+
9190
+ # The requirement type, used as an identifier. Must be unique. The type should
9191
+ # prefix with service name to avoid possible collision. It's encoraged to use
9192
+ # natural hierarchical grouping for similar requirements. Examples: * `library.
9193
+ # googleapis.com/books/min_available_books` * `discoveryengine.googleapis.com/
9194
+ # media_rec/recommended_for_you/conversion_rate`
9195
+ # Corresponds to the JSON property `type`
9196
+ # @return [String]
9197
+ attr_accessor :type
9198
+
9199
+ # A list of the metric bindings to be used in `condition`.
9200
+ # Corresponds to the JSON property `violationSamplesBindings`
9201
+ # @return [Array<Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaRequirementViolationSamplesBinding>]
9202
+ attr_accessor :violation_samples_bindings
9203
+
9204
+ def initialize(**args)
9205
+ update!(**args)
9206
+ end
9207
+
9208
+ # Update properties of this object
9209
+ def update!(**args)
9210
+ @condition = args[:condition] if args.key?(:condition)
9211
+ @description = args[:description] if args.key?(:description)
9212
+ @display_name = args[:display_name] if args.key?(:display_name)
9213
+ @metric_bindings = args[:metric_bindings] if args.key?(:metric_bindings)
9214
+ @threshold_bindings = args[:threshold_bindings] if args.key?(:threshold_bindings)
9215
+ @type = args[:type] if args.key?(:type)
9216
+ @violation_samples_bindings = args[:violation_samples_bindings] if args.key?(:violation_samples_bindings)
9217
+ end
9218
+ end
9219
+
9220
+ # Specifies a metrics query and bind its result to a variable which will be used
9221
+ # in the `condition`.
9222
+ class GoogleCloudDiscoveryengineV1alphaRequirementMetricBinding
9223
+ include Google::Apis::Core::Hashable
9224
+
9225
+ # The category of the metric's target resource. Example: "Events"
9226
+ # Corresponds to the JSON property `category`
9227
+ # @return [String]
9228
+ attr_accessor :category
9229
+
9230
+ # Human readable description of the corresponding metric filter.
9231
+ # Corresponds to the JSON property `description`
9232
+ # @return [String]
9233
+ attr_accessor :description
9234
+
9235
+ # The filter string used for metrics query. Example: "metric.type = \"
9236
+ # discoveryengine.googleapis.com/events/day_count\" AND " "metric.conditions.
9237
+ # time_range = \"NINETY_DAYS\""
9238
+ # Corresponds to the JSON property `metricFilter`
9239
+ # @return [String]
9240
+ attr_accessor :metric_filter
9241
+
9242
+ # The resource being monitored for the metric.
9243
+ # Corresponds to the JSON property `resourceType`
9244
+ # @return [String]
9245
+ attr_accessor :resource_type
9246
+
9247
+ # The variable id to be referenced in `condition`.
9248
+ # Corresponds to the JSON property `variableId`
9249
+ # @return [String]
9250
+ attr_accessor :variable_id
9251
+
9252
+ def initialize(**args)
9253
+ update!(**args)
9254
+ end
9255
+
9256
+ # Update properties of this object
9257
+ def update!(**args)
9258
+ @category = args[:category] if args.key?(:category)
9259
+ @description = args[:description] if args.key?(:description)
9260
+ @metric_filter = args[:metric_filter] if args.key?(:metric_filter)
9261
+ @resource_type = args[:resource_type] if args.key?(:resource_type)
9262
+ @variable_id = args[:variable_id] if args.key?(:variable_id)
9263
+ end
9264
+ end
9265
+
9266
+ # Specifies a multi-level threshold to apply to apply to a `metric_bindings` in
9267
+ # the `condition` CEL expression.
9268
+ class GoogleCloudDiscoveryengineV1alphaRequirementThresholdBinding
9269
+ include Google::Apis::Core::Hashable
9270
+
9271
+ # Threshold to trigger a blocking failure. If not met, the requirement will
9272
+ # evaluate as a `FAILURE`.
9273
+ # Corresponds to the JSON property `blockingThreshold`
9274
+ # @return [Float]
9275
+ attr_accessor :blocking_threshold
9276
+
9277
+ # Human readable description of the corresponding threshold and sub-requirement.
9278
+ # Corresponds to the JSON property `description`
9279
+ # @return [String]
9280
+ attr_accessor :description
9281
+
9282
+ # The variable id to be referenced in `condition`. Must be unique across all `
9283
+ # metric_bindings` and `threshold_bindings`.
9284
+ # Corresponds to the JSON property `variableId`
9285
+ # @return [String]
9286
+ attr_accessor :variable_id
9287
+
9288
+ # Threshold to trigger a warning. If not met, the requirement will evaluate as a
9289
+ # `WARNING`.
9290
+ # Corresponds to the JSON property `warningThreshold`
9291
+ # @return [Float]
9292
+ attr_accessor :warning_threshold
9293
+
9294
+ def initialize(**args)
9295
+ update!(**args)
9296
+ end
9297
+
9298
+ # Update properties of this object
9299
+ def update!(**args)
9300
+ @blocking_threshold = args[:blocking_threshold] if args.key?(:blocking_threshold)
9301
+ @description = args[:description] if args.key?(:description)
9302
+ @variable_id = args[:variable_id] if args.key?(:variable_id)
9303
+ @warning_threshold = args[:warning_threshold] if args.key?(:warning_threshold)
9304
+ end
9305
+ end
9306
+
9307
+ # Specifies a samples query and bind its result to a variable which will be used
9308
+ # in the `condition`.
9309
+ class GoogleCloudDiscoveryengineV1alphaRequirementViolationSamplesBinding
9310
+ include Google::Apis::Core::Hashable
9311
+
9312
+ # Description of this sample binding. Used by the UI to render user friendly
9313
+ # descriptions for each requirement condition. Should be less than 128
9314
+ # characters long.
9315
+ # Corresponds to the JSON property `description`
9316
+ # @return [String]
9317
+ attr_accessor :description
9318
+
9319
+ # The filter string used for samples query. Example: "sample.type = \"retail.
9320
+ # googleapis.com/user_event\" AND " "sample.labels.event_type = \"PURCHASE\" "
9321
+ # Corresponds to the JSON property `sampleFilter`
9322
+ # @return [String]
9323
+ attr_accessor :sample_filter
9324
+
9325
+ # The variable id to be referenced in `condition`.
9326
+ # Corresponds to the JSON property `variableId`
9327
+ # @return [String]
9328
+ attr_accessor :variable_id
9329
+
9330
+ def initialize(**args)
9331
+ update!(**args)
9332
+ end
9333
+
9334
+ # Update properties of this object
9335
+ def update!(**args)
9336
+ @description = args[:description] if args.key?(:description)
9337
+ @sample_filter = args[:sample_filter] if args.key?(:sample_filter)
9338
+ @variable_id = args[:variable_id] if args.key?(:variable_id)
9339
+ end
9340
+ end
9341
+
8466
9342
  # Request for resuming training of an engine.
8467
9343
  class GoogleCloudDiscoveryengineV1alphaResumeEngineRequest
8468
9344
  include Google::Apis::Core::Hashable
@@ -8641,6 +9517,14 @@ module Google
8641
9517
  # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchRequestImageQuery]
8642
9518
  attr_accessor :image_query
8643
9519
 
9520
+ # The BCP-47 language code, such as "en-US" or "sr-Latn". For more information,
9521
+ # see [Standard fields](https://cloud.google.com/apis/design/standard_fields).
9522
+ # This field helps to better interpret the query. If a value isn't specified,
9523
+ # the query language code is automatically detected, which may not be accurate.
9524
+ # Corresponds to the JSON property `languageCode`
9525
+ # @return [String]
9526
+ attr_accessor :language_code
9527
+
8644
9528
  # A 0-indexed integer that specifies the current offset (that is, starting
8645
9529
  # result location, amongst the Documents deemed by the API as relevant) in
8646
9530
  # search results. This field is only considered if page_token is unset. If this
@@ -8712,6 +9596,14 @@ module Google
8712
9596
  # @return [String]
8713
9597
  attr_accessor :ranking_expression
8714
9598
 
9599
+ # The Unicode country/region code (CLDR) of a location, such as "US" and "419".
9600
+ # For more information, see [Standard fields](https://cloud.google.com/apis/
9601
+ # design/standard_fields). If set, then results will be boosted based on the
9602
+ # region_code provided.
9603
+ # Corresponds to the JSON property `regionCode`
9604
+ # @return [String]
9605
+ attr_accessor :region_code
9606
+
8715
9607
  # Whether to turn on safe search. This is only supported for website search.
8716
9608
  # Corresponds to the JSON property `safeSearch`
8717
9609
  # @return [Boolean]
@@ -8771,6 +9663,7 @@ module Google
8771
9663
  @facet_specs = args[:facet_specs] if args.key?(:facet_specs)
8772
9664
  @filter = args[:filter] if args.key?(:filter)
8773
9665
  @image_query = args[:image_query] if args.key?(:image_query)
9666
+ @language_code = args[:language_code] if args.key?(:language_code)
8774
9667
  @offset = args[:offset] if args.key?(:offset)
8775
9668
  @order_by = args[:order_by] if args.key?(:order_by)
8776
9669
  @page_size = args[:page_size] if args.key?(:page_size)
@@ -8779,6 +9672,7 @@ module Google
8779
9672
  @query = args[:query] if args.key?(:query)
8780
9673
  @query_expansion_spec = args[:query_expansion_spec] if args.key?(:query_expansion_spec)
8781
9674
  @ranking_expression = args[:ranking_expression] if args.key?(:ranking_expression)
9675
+ @region_code = args[:region_code] if args.key?(:region_code)
8782
9676
  @safe_search = args[:safe_search] if args.key?(:safe_search)
8783
9677
  @spell_correction_spec = args[:spell_correction_spec] if args.key?(:spell_correction_spec)
8784
9678
  @user_info = args[:user_info] if args.key?(:user_info)
@@ -8951,8 +9845,10 @@ module Google
8951
9845
  # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecExtractiveContentSpec]
8952
9846
  attr_accessor :extractive_content_spec
8953
9847
 
8954
- # Specifies the search result mode. If unspecified, the search result mode
8955
- # defaults to `DOCUMENTS`.
9848
+ # Specifies the search result mode. If unspecified, the search result mode is
9849
+ # based on DataStore.DocumentProcessingConfig.chunking_config: * If DataStore.
9850
+ # DocumentProcessingConfig.chunking_config is specified, it defaults to `CHUNKS`.
9851
+ # * Otherwise, it defaults to `DOCUMENTS`.
8956
9852
  # Corresponds to the JSON property `searchResultMode`
8957
9853
  # @return [String]
8958
9854
  attr_accessor :search_result_mode
@@ -11775,6 +12671,11 @@ module Google
11775
12671
  # @return [String]
11776
12672
  attr_accessor :industry_vertical
11777
12673
 
12674
+ # Language info for DataStore.
12675
+ # Corresponds to the JSON property `languageInfo`
12676
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1betaLanguageInfo]
12677
+ attr_accessor :language_info
12678
+
11778
12679
  # Immutable. The full resource name of the data store. Format: `projects/`
11779
12680
  # project`/locations/`location`/collections/`collection_id`/dataStores/`
11780
12681
  # data_store_id``. This field must be a UTF-8 encoded string with a length limit
@@ -11808,6 +12709,7 @@ module Google
11808
12709
  @display_name = args[:display_name] if args.key?(:display_name)
11809
12710
  @document_processing_config = args[:document_processing_config] if args.key?(:document_processing_config)
11810
12711
  @industry_vertical = args[:industry_vertical] if args.key?(:industry_vertical)
12712
+ @language_info = args[:language_info] if args.key?(:language_info)
11811
12713
  @name = args[:name] if args.key?(:name)
11812
12714
  @solution_types = args[:solution_types] if args.key?(:solution_types)
11813
12715
  @starting_schema = args[:starting_schema] if args.key?(:starting_schema)
@@ -11970,6 +12872,11 @@ module Google
11970
12872
  class GoogleCloudDiscoveryengineV1betaDocumentProcessingConfig
11971
12873
  include Google::Apis::Core::Hashable
11972
12874
 
12875
+ # Configuration for chunking config.
12876
+ # Corresponds to the JSON property `chunkingConfig`
12877
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigChunkingConfig]
12878
+ attr_accessor :chunking_config
12879
+
11973
12880
  # Related configurations applied to a specific type of document parser.
11974
12881
  # Corresponds to the JSON property `defaultParsingConfig`
11975
12882
  # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfig]
@@ -11997,12 +12904,60 @@ module Google
11997
12904
 
11998
12905
  # Update properties of this object
11999
12906
  def update!(**args)
12907
+ @chunking_config = args[:chunking_config] if args.key?(:chunking_config)
12000
12908
  @default_parsing_config = args[:default_parsing_config] if args.key?(:default_parsing_config)
12001
12909
  @name = args[:name] if args.key?(:name)
12002
12910
  @parsing_config_overrides = args[:parsing_config_overrides] if args.key?(:parsing_config_overrides)
12003
12911
  end
12004
12912
  end
12005
12913
 
12914
+ # Configuration for chunking config.
12915
+ class GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigChunkingConfig
12916
+ include Google::Apis::Core::Hashable
12917
+
12918
+ # Configuration for the layout based chunking.
12919
+ # Corresponds to the JSON property `layoutBasedChunkingConfig`
12920
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigChunkingConfigLayoutBasedChunkingConfig]
12921
+ attr_accessor :layout_based_chunking_config
12922
+
12923
+ def initialize(**args)
12924
+ update!(**args)
12925
+ end
12926
+
12927
+ # Update properties of this object
12928
+ def update!(**args)
12929
+ @layout_based_chunking_config = args[:layout_based_chunking_config] if args.key?(:layout_based_chunking_config)
12930
+ end
12931
+ end
12932
+
12933
+ # Configuration for the layout based chunking.
12934
+ class GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigChunkingConfigLayoutBasedChunkingConfig
12935
+ include Google::Apis::Core::Hashable
12936
+
12937
+ # The token size limit for each chunk. Supported values: 100-500 (inclusive).
12938
+ # Default value: 500.
12939
+ # Corresponds to the JSON property `chunkSize`
12940
+ # @return [Fixnum]
12941
+ attr_accessor :chunk_size
12942
+
12943
+ # Whether to include appending different levels of headings to chunks from the
12944
+ # middle of the document to prevent context loss. Default value: False.
12945
+ # Corresponds to the JSON property `includeAncestorHeadings`
12946
+ # @return [Boolean]
12947
+ attr_accessor :include_ancestor_headings
12948
+ alias_method :include_ancestor_headings?, :include_ancestor_headings
12949
+
12950
+ def initialize(**args)
12951
+ update!(**args)
12952
+ end
12953
+
12954
+ # Update properties of this object
12955
+ def update!(**args)
12956
+ @chunk_size = args[:chunk_size] if args.key?(:chunk_size)
12957
+ @include_ancestor_headings = args[:include_ancestor_headings] if args.key?(:include_ancestor_headings)
12958
+ end
12959
+ end
12960
+
12006
12961
  # Related configurations applied to a specific type of document parser.
12007
12962
  class GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfig
12008
12963
  include Google::Apis::Core::Hashable
@@ -12012,6 +12967,11 @@ module Google
12012
12967
  # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigDigitalParsingConfig]
12013
12968
  attr_accessor :digital_parsing_config
12014
12969
 
12970
+ # The layout parsing configurations for documents.
12971
+ # Corresponds to the JSON property `layoutParsingConfig`
12972
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigLayoutParsingConfig]
12973
+ attr_accessor :layout_parsing_config
12974
+
12015
12975
  # The OCR parsing configurations for documents.
12016
12976
  # Corresponds to the JSON property `ocrParsingConfig`
12017
12977
  # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigOcrParsingConfig]
@@ -12024,6 +12984,7 @@ module Google
12024
12984
  # Update properties of this object
12025
12985
  def update!(**args)
12026
12986
  @digital_parsing_config = args[:digital_parsing_config] if args.key?(:digital_parsing_config)
12987
+ @layout_parsing_config = args[:layout_parsing_config] if args.key?(:layout_parsing_config)
12027
12988
  @ocr_parsing_config = args[:ocr_parsing_config] if args.key?(:ocr_parsing_config)
12028
12989
  end
12029
12990
  end
@@ -12041,6 +13002,19 @@ module Google
12041
13002
  end
12042
13003
  end
12043
13004
 
13005
+ # The layout parsing configurations for documents.
13006
+ class GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigLayoutParsingConfig
13007
+ include Google::Apis::Core::Hashable
13008
+
13009
+ def initialize(**args)
13010
+ update!(**args)
13011
+ end
13012
+
13013
+ # Update properties of this object
13014
+ def update!(**args)
13015
+ end
13016
+ end
13017
+
12044
13018
  # The OCR parsing configurations for documents.
12045
13019
  class GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigOcrParsingConfig
12046
13020
  include Google::Apis::Core::Hashable
@@ -12581,6 +13555,47 @@ module Google
12581
13555
  end
12582
13556
  end
12583
13557
 
13558
+ # Language info for DataStore.
13559
+ class GoogleCloudDiscoveryengineV1betaLanguageInfo
13560
+ include Google::Apis::Core::Hashable
13561
+
13562
+ # Output only. Language part of normalized_language_code. E.g.: `en-US` -> `en`,
13563
+ # `zh-Hans-HK` -> `zh`, `en` -> `en`.
13564
+ # Corresponds to the JSON property `language`
13565
+ # @return [String]
13566
+ attr_accessor :language
13567
+
13568
+ # The language code for the DataStore.
13569
+ # Corresponds to the JSON property `languageCode`
13570
+ # @return [String]
13571
+ attr_accessor :language_code
13572
+
13573
+ # Output only. This is the normalized form of language_code. E.g.: language_code
13574
+ # of `en-GB`, `en_GB`, `en-UK` or `en-gb` will have normalized_language_code of `
13575
+ # en-GB`.
13576
+ # Corresponds to the JSON property `normalizedLanguageCode`
13577
+ # @return [String]
13578
+ attr_accessor :normalized_language_code
13579
+
13580
+ # Output only. Region part of normalized_language_code, if present. E.g.: `en-US`
13581
+ # -> `US`, `zh-Hans-HK` -> `HK`, `en` -> ``.
13582
+ # Corresponds to the JSON property `region`
13583
+ # @return [String]
13584
+ attr_accessor :region
13585
+
13586
+ def initialize(**args)
13587
+ update!(**args)
13588
+ end
13589
+
13590
+ # Update properties of this object
13591
+ def update!(**args)
13592
+ @language = args[:language] if args.key?(:language)
13593
+ @language_code = args[:language_code] if args.key?(:language_code)
13594
+ @normalized_language_code = args[:normalized_language_code] if args.key?(:normalized_language_code)
13595
+ @region = args[:region] if args.key?(:region)
13596
+ end
13597
+ end
13598
+
12584
13599
  # Response message for SearchTuningService.ListCustomModels method.
12585
13600
  class GoogleCloudDiscoveryengineV1betaListCustomModelsResponse
12586
13601
  include Google::Apis::Core::Hashable
@@ -13274,6 +14289,61 @@ module Google
13274
14289
  end
13275
14290
  end
13276
14291
 
14292
+ # A single strongly-typed value.
14293
+ class GoogleMonitoringV3TypedValue
14294
+ include Google::Apis::Core::Hashable
14295
+
14296
+ # A Boolean value: `true` or `false`.
14297
+ # Corresponds to the JSON property `boolValue`
14298
+ # @return [Boolean]
14299
+ attr_accessor :bool_value
14300
+ alias_method :bool_value?, :bool_value
14301
+
14302
+ # `Distribution` contains summary statistics for a population of values. It
14303
+ # optionally contains a histogram representing the distribution of those values
14304
+ # across a set of buckets. The summary statistics are the count, mean, sum of
14305
+ # the squared deviation from the mean, the minimum, and the maximum of the set
14306
+ # of population of values. The histogram is based on a sequence of buckets and
14307
+ # gives a count of values that fall into each bucket. The boundaries of the
14308
+ # buckets are given either explicitly or by formulas for buckets of fixed or
14309
+ # exponentially increasing widths. Although it is not forbidden, it is generally
14310
+ # a bad idea to include non-finite values (infinities or NaNs) in the population
14311
+ # of values, as this will render the `mean` and `sum_of_squared_deviation`
14312
+ # fields meaningless.
14313
+ # Corresponds to the JSON property `distributionValue`
14314
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleApiDistribution]
14315
+ attr_accessor :distribution_value
14316
+
14317
+ # A 64-bit double-precision floating-point number. Its magnitude is
14318
+ # approximately ±10±300 and it has 16 significant digits of precision.
14319
+ # Corresponds to the JSON property `doubleValue`
14320
+ # @return [Float]
14321
+ attr_accessor :double_value
14322
+
14323
+ # A 64-bit integer. Its range is approximately ±9.2x1018.
14324
+ # Corresponds to the JSON property `int64Value`
14325
+ # @return [Fixnum]
14326
+ attr_accessor :int64_value
14327
+
14328
+ # A variable-length string value.
14329
+ # Corresponds to the JSON property `stringValue`
14330
+ # @return [String]
14331
+ attr_accessor :string_value
14332
+
14333
+ def initialize(**args)
14334
+ update!(**args)
14335
+ end
14336
+
14337
+ # Update properties of this object
14338
+ def update!(**args)
14339
+ @bool_value = args[:bool_value] if args.key?(:bool_value)
14340
+ @distribution_value = args[:distribution_value] if args.key?(:distribution_value)
14341
+ @double_value = args[:double_value] if args.key?(:double_value)
14342
+ @int64_value = args[:int64_value] if args.key?(:int64_value)
14343
+ @string_value = args[:string_value] if args.key?(:string_value)
14344
+ end
14345
+ end
14346
+
13277
14347
  # A generic empty message that you can re-use to avoid defining duplicated empty
13278
14348
  # messages in your APIs. A typical example is to use it as the request or the
13279
14349
  # response type of an API method. For instance: service Foo ` rpc Bar(google.
@@ -13369,6 +14439,60 @@ module Google
13369
14439
  @year = args[:year] if args.key?(:year)
13370
14440
  end
13371
14441
  end
14442
+
14443
+ # Represents a textual expression in the Common Expression Language (CEL) syntax.
14444
+ # CEL is a C-like expression language. The syntax and semantics of CEL are
14445
+ # documented at https://github.com/google/cel-spec. Example (Comparison): title:
14446
+ # "Summary size limit" description: "Determines if a summary is less than 100
14447
+ # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
14448
+ # Requestor is owner" description: "Determines if requestor is the document
14449
+ # owner" expression: "document.owner == request.auth.claims.email" Example (
14450
+ # Logic): title: "Public documents" description: "Determine whether the document
14451
+ # should be publicly visible" expression: "document.type != 'private' &&
14452
+ # document.type != 'internal'" Example (Data Manipulation): title: "Notification
14453
+ # string" description: "Create a notification string with a timestamp."
14454
+ # expression: "'New message received at ' + string(document.create_time)" The
14455
+ # exact variables and functions that may be referenced within an expression are
14456
+ # determined by the service that evaluates it. See the service documentation for
14457
+ # additional information.
14458
+ class GoogleTypeExpr
14459
+ include Google::Apis::Core::Hashable
14460
+
14461
+ # Optional. Description of the expression. This is a longer text which describes
14462
+ # the expression, e.g. when hovered over it in a UI.
14463
+ # Corresponds to the JSON property `description`
14464
+ # @return [String]
14465
+ attr_accessor :description
14466
+
14467
+ # Textual representation of an expression in Common Expression Language syntax.
14468
+ # Corresponds to the JSON property `expression`
14469
+ # @return [String]
14470
+ attr_accessor :expression
14471
+
14472
+ # Optional. String indicating the location of the expression for error reporting,
14473
+ # e.g. a file name and a position in the file.
14474
+ # Corresponds to the JSON property `location`
14475
+ # @return [String]
14476
+ attr_accessor :location
14477
+
14478
+ # Optional. Title for the expression, i.e. a short string describing its purpose.
14479
+ # This can be used e.g. in UIs which allow to enter the expression.
14480
+ # Corresponds to the JSON property `title`
14481
+ # @return [String]
14482
+ attr_accessor :title
14483
+
14484
+ def initialize(**args)
14485
+ update!(**args)
14486
+ end
14487
+
14488
+ # Update properties of this object
14489
+ def update!(**args)
14490
+ @description = args[:description] if args.key?(:description)
14491
+ @expression = args[:expression] if args.key?(:expression)
14492
+ @location = args[:location] if args.key?(:location)
14493
+ @title = args[:title] if args.key?(:title)
14494
+ end
14495
+ end
13372
14496
  end
13373
14497
  end
13374
14498
  end