google-apis-discoveryengine_v1alpha 0.48.0 → 0.49.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.
@@ -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
@@ -3651,11 +4151,118 @@ module Google
3651
4151
  attr_accessor :grounding_check_required
3652
4152
  alias_method :grounding_check_required?, :grounding_check_required
3653
4153
 
3654
- # Position indicating the start of the claim in the answer candidate, measured
3655
- # in bytes.
3656
- # Corresponds to the JSON property `startPos`
3657
- # @return [Fixnum]
3658
- attr_accessor :start_pos
4154
+ # Position indicating the start of the claim in the answer candidate, measured
4155
+ # in bytes.
4156
+ # Corresponds to the JSON property `startPos`
4157
+ # @return [Fixnum]
4158
+ attr_accessor :start_pos
4159
+
4160
+ def initialize(**args)
4161
+ update!(**args)
4162
+ end
4163
+
4164
+ # Update properties of this object
4165
+ def update!(**args)
4166
+ @citation_indices = args[:citation_indices] if args.key?(:citation_indices)
4167
+ @claim_text = args[:claim_text] if args.key?(:claim_text)
4168
+ @end_pos = args[:end_pos] if args.key?(:end_pos)
4169
+ @grounding_check_required = args[:grounding_check_required] if args.key?(:grounding_check_required)
4170
+ @start_pos = args[:start_pos] if args.key?(:start_pos)
4171
+ end
4172
+ end
4173
+
4174
+ # Specification for the grounding check.
4175
+ class GoogleCloudDiscoveryengineV1alphaCheckGroundingSpec
4176
+ include Google::Apis::Core::Hashable
4177
+
4178
+ # The threshold (in [0,1]) used for determining whether a fact must be cited for
4179
+ # a claim in the answer candidate. Choosing a higher threshold will lead to
4180
+ # fewer but very strong citations, while choosing a lower threshold may lead to
4181
+ # more but somewhat weaker citations. If unset, the threshold will default to 0.
4182
+ # 6.
4183
+ # Corresponds to the JSON property `citationThreshold`
4184
+ # @return [Float]
4185
+ attr_accessor :citation_threshold
4186
+
4187
+ def initialize(**args)
4188
+ update!(**args)
4189
+ end
4190
+
4191
+ # Update properties of this object
4192
+ def update!(**args)
4193
+ @citation_threshold = args[:citation_threshold] if args.key?(:citation_threshold)
4194
+ end
4195
+ end
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
3659
4266
 
3660
4267
  def initialize(**args)
3661
4268
  update!(**args)
@@ -3663,26 +4270,43 @@ module Google
3663
4270
 
3664
4271
  # Update properties of this object
3665
4272
  def update!(**args)
3666
- @citation_indices = args[:citation_indices] if args.key?(:citation_indices)
3667
- @claim_text = args[:claim_text] if args.key?(:claim_text)
3668
- @end_pos = args[:end_pos] if args.key?(:end_pos)
3669
- @grounding_check_required = args[:grounding_check_required] if args.key?(:grounding_check_required)
3670
- @start_pos = args[:start_pos] if args.key?(:start_pos)
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)
3671
4278
  end
3672
4279
  end
3673
4280
 
3674
- # Specification for the grounding check.
3675
- class GoogleCloudDiscoveryengineV1alphaCheckGroundingSpec
4281
+ # Metric result. The metric are in the requirement_condition.
4282
+ class GoogleCloudDiscoveryengineV1alphaCheckRequirementResponseMetricQueryResult
3676
4283
  include Google::Apis::Core::Hashable
3677
4284
 
3678
- # The threshold (in [0,1]) used for determining whether a fact must be cited for
3679
- # a claim in the answer candidate. Choosing a higher threshold will lead to
3680
- # fewer but very strong citations, while choosing a lower threshold may lead to
3681
- # more but somewhat weaker citations. If unset, the threshold will default to 0.
3682
- # 6.
3683
- # Corresponds to the JSON property `citationThreshold`
3684
- # @return [Float]
3685
- attr_accessor :citation_threshold
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
3686
4310
 
3687
4311
  def initialize(**args)
3688
4312
  update!(**args)
@@ -3690,7 +4314,11 @@ module Google
3690
4314
 
3691
4315
  # Update properties of this object
3692
4316
  def update!(**args)
3693
- @citation_threshold = args[:citation_threshold] if args.key?(:citation_threshold)
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)
3694
4322
  end
3695
4323
  end
3696
4324
 
@@ -6523,6 +7151,11 @@ module Google
6523
7151
  class GoogleCloudDiscoveryengineV1alphaImportDocumentsRequest
6524
7152
  include Google::Apis::Core::Hashable
6525
7153
 
7154
+ # AlloyDB source import data from.
7155
+ # Corresponds to the JSON property `alloyDbSource`
7156
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAlloyDbSource]
7157
+ attr_accessor :alloy_db_source
7158
+
6526
7159
  # Whether to automatically generate IDs for the documents if absent. If set to `
6527
7160
  # true`, Document.ids are automatically generated based on the hash of the
6528
7161
  # payload, where IDs may not be consistent during multiple imports. In which
@@ -6620,6 +7253,7 @@ module Google
6620
7253
 
6621
7254
  # Update properties of this object
6622
7255
  def update!(**args)
7256
+ @alloy_db_source = args[:alloy_db_source] if args.key?(:alloy_db_source)
6623
7257
  @auto_generate_ids = args[:auto_generate_ids] if args.key?(:auto_generate_ids)
6624
7258
  @bigquery_source = args[:bigquery_source] if args.key?(:bigquery_source)
6625
7259
  @bigtable_source = args[:bigtable_source] if args.key?(:bigtable_source)
@@ -8463,6 +9097,201 @@ module Google
8463
9097
  end
8464
9098
  end
8465
9099
 
9100
+ # A data requirement.
9101
+ class GoogleCloudDiscoveryengineV1alphaRequirement
9102
+ include Google::Apis::Core::Hashable
9103
+
9104
+ # Represents a textual expression in the Common Expression Language (CEL) syntax.
9105
+ # CEL is a C-like expression language. The syntax and semantics of CEL are
9106
+ # documented at https://github.com/google/cel-spec. Example (Comparison): title:
9107
+ # "Summary size limit" description: "Determines if a summary is less than 100
9108
+ # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
9109
+ # Requestor is owner" description: "Determines if requestor is the document
9110
+ # owner" expression: "document.owner == request.auth.claims.email" Example (
9111
+ # Logic): title: "Public documents" description: "Determine whether the document
9112
+ # should be publicly visible" expression: "document.type != 'private' &&
9113
+ # document.type != 'internal'" Example (Data Manipulation): title: "Notification
9114
+ # string" description: "Create a notification string with a timestamp."
9115
+ # expression: "'New message received at ' + string(document.create_time)" The
9116
+ # exact variables and functions that may be referenced within an expression are
9117
+ # determined by the service that evaluates it. See the service documentation for
9118
+ # additional information.
9119
+ # Corresponds to the JSON property `condition`
9120
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleTypeExpr]
9121
+ attr_accessor :condition
9122
+
9123
+ # The description of the requirement.
9124
+ # Corresponds to the JSON property `description`
9125
+ # @return [String]
9126
+ attr_accessor :description
9127
+
9128
+ # The name of the requirement.
9129
+ # Corresponds to the JSON property `displayName`
9130
+ # @return [String]
9131
+ attr_accessor :display_name
9132
+
9133
+ # A list of the metric bindings to be used in `condition`.
9134
+ # Corresponds to the JSON property `metricBindings`
9135
+ # @return [Array<Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaRequirementMetricBinding>]
9136
+ attr_accessor :metric_bindings
9137
+
9138
+ # A list of threshold bindings to be used in `condition`.
9139
+ # Corresponds to the JSON property `thresholdBindings`
9140
+ # @return [Array<Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaRequirementThresholdBinding>]
9141
+ attr_accessor :threshold_bindings
9142
+
9143
+ # The requirement type, used as an identifier. Must be unique. The type should
9144
+ # prefix with service name to avoid possible collision. It's encoraged to use
9145
+ # natural hierarchical grouping for similar requirements. Examples: * `library.
9146
+ # googleapis.com/books/min_available_books` * `discoveryengine.googleapis.com/
9147
+ # media_rec/recommended_for_you/conversion_rate`
9148
+ # Corresponds to the JSON property `type`
9149
+ # @return [String]
9150
+ attr_accessor :type
9151
+
9152
+ # A list of the metric bindings to be used in `condition`.
9153
+ # Corresponds to the JSON property `violationSamplesBindings`
9154
+ # @return [Array<Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaRequirementViolationSamplesBinding>]
9155
+ attr_accessor :violation_samples_bindings
9156
+
9157
+ def initialize(**args)
9158
+ update!(**args)
9159
+ end
9160
+
9161
+ # Update properties of this object
9162
+ def update!(**args)
9163
+ @condition = args[:condition] if args.key?(:condition)
9164
+ @description = args[:description] if args.key?(:description)
9165
+ @display_name = args[:display_name] if args.key?(:display_name)
9166
+ @metric_bindings = args[:metric_bindings] if args.key?(:metric_bindings)
9167
+ @threshold_bindings = args[:threshold_bindings] if args.key?(:threshold_bindings)
9168
+ @type = args[:type] if args.key?(:type)
9169
+ @violation_samples_bindings = args[:violation_samples_bindings] if args.key?(:violation_samples_bindings)
9170
+ end
9171
+ end
9172
+
9173
+ # Specifies a metrics query and bind its result to a variable which will be used
9174
+ # in the `condition`.
9175
+ class GoogleCloudDiscoveryengineV1alphaRequirementMetricBinding
9176
+ include Google::Apis::Core::Hashable
9177
+
9178
+ # The category of the metric's target resource. Example: "Events"
9179
+ # Corresponds to the JSON property `category`
9180
+ # @return [String]
9181
+ attr_accessor :category
9182
+
9183
+ # Human readable description of the corresponding metric filter.
9184
+ # Corresponds to the JSON property `description`
9185
+ # @return [String]
9186
+ attr_accessor :description
9187
+
9188
+ # The filter string used for metrics query. Example: "metric.type = \"
9189
+ # discoveryengine.googleapis.com/events/day_count\" AND " "metric.conditions.
9190
+ # time_range = \"NINETY_DAYS\""
9191
+ # Corresponds to the JSON property `metricFilter`
9192
+ # @return [String]
9193
+ attr_accessor :metric_filter
9194
+
9195
+ # The resource being monitored for the metric.
9196
+ # Corresponds to the JSON property `resourceType`
9197
+ # @return [String]
9198
+ attr_accessor :resource_type
9199
+
9200
+ # The variable id to be referenced in `condition`.
9201
+ # Corresponds to the JSON property `variableId`
9202
+ # @return [String]
9203
+ attr_accessor :variable_id
9204
+
9205
+ def initialize(**args)
9206
+ update!(**args)
9207
+ end
9208
+
9209
+ # Update properties of this object
9210
+ def update!(**args)
9211
+ @category = args[:category] if args.key?(:category)
9212
+ @description = args[:description] if args.key?(:description)
9213
+ @metric_filter = args[:metric_filter] if args.key?(:metric_filter)
9214
+ @resource_type = args[:resource_type] if args.key?(:resource_type)
9215
+ @variable_id = args[:variable_id] if args.key?(:variable_id)
9216
+ end
9217
+ end
9218
+
9219
+ # Specifies a multi-level threshold to apply to apply to a `metric_bindings` in
9220
+ # the `condition` CEL expression.
9221
+ class GoogleCloudDiscoveryengineV1alphaRequirementThresholdBinding
9222
+ include Google::Apis::Core::Hashable
9223
+
9224
+ # Threshold to trigger a blocking failure. If not met, the requirement will
9225
+ # evaluate as a `FAILURE`.
9226
+ # Corresponds to the JSON property `blockingThreshold`
9227
+ # @return [Float]
9228
+ attr_accessor :blocking_threshold
9229
+
9230
+ # Human readable description of the corresponding threshold and sub-requirement.
9231
+ # Corresponds to the JSON property `description`
9232
+ # @return [String]
9233
+ attr_accessor :description
9234
+
9235
+ # The variable id to be referenced in `condition`. Must be unique across all `
9236
+ # metric_bindings` and `threshold_bindings`.
9237
+ # Corresponds to the JSON property `variableId`
9238
+ # @return [String]
9239
+ attr_accessor :variable_id
9240
+
9241
+ # Threshold to trigger a warning. If not met, the requirement will evaluate as a
9242
+ # `WARNING`.
9243
+ # Corresponds to the JSON property `warningThreshold`
9244
+ # @return [Float]
9245
+ attr_accessor :warning_threshold
9246
+
9247
+ def initialize(**args)
9248
+ update!(**args)
9249
+ end
9250
+
9251
+ # Update properties of this object
9252
+ def update!(**args)
9253
+ @blocking_threshold = args[:blocking_threshold] if args.key?(:blocking_threshold)
9254
+ @description = args[:description] if args.key?(:description)
9255
+ @variable_id = args[:variable_id] if args.key?(:variable_id)
9256
+ @warning_threshold = args[:warning_threshold] if args.key?(:warning_threshold)
9257
+ end
9258
+ end
9259
+
9260
+ # Specifies a samples query and bind its result to a variable which will be used
9261
+ # in the `condition`.
9262
+ class GoogleCloudDiscoveryengineV1alphaRequirementViolationSamplesBinding
9263
+ include Google::Apis::Core::Hashable
9264
+
9265
+ # Description of this sample binding. Used by the UI to render user friendly
9266
+ # descriptions for each requirement condition. Should be less than 128
9267
+ # characters long.
9268
+ # Corresponds to the JSON property `description`
9269
+ # @return [String]
9270
+ attr_accessor :description
9271
+
9272
+ # The filter string used for samples query. Example: "sample.type = \"retail.
9273
+ # googleapis.com/user_event\" AND " "sample.labels.event_type = \"PURCHASE\" "
9274
+ # Corresponds to the JSON property `sampleFilter`
9275
+ # @return [String]
9276
+ attr_accessor :sample_filter
9277
+
9278
+ # The variable id to be referenced in `condition`.
9279
+ # Corresponds to the JSON property `variableId`
9280
+ # @return [String]
9281
+ attr_accessor :variable_id
9282
+
9283
+ def initialize(**args)
9284
+ update!(**args)
9285
+ end
9286
+
9287
+ # Update properties of this object
9288
+ def update!(**args)
9289
+ @description = args[:description] if args.key?(:description)
9290
+ @sample_filter = args[:sample_filter] if args.key?(:sample_filter)
9291
+ @variable_id = args[:variable_id] if args.key?(:variable_id)
9292
+ end
9293
+ end
9294
+
8466
9295
  # Request for resuming training of an engine.
8467
9296
  class GoogleCloudDiscoveryengineV1alphaResumeEngineRequest
8468
9297
  include Google::Apis::Core::Hashable
@@ -8951,8 +9780,10 @@ module Google
8951
9780
  # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecExtractiveContentSpec]
8952
9781
  attr_accessor :extractive_content_spec
8953
9782
 
8954
- # Specifies the search result mode. If unspecified, the search result mode
8955
- # defaults to `DOCUMENTS`.
9783
+ # Specifies the search result mode. If unspecified, the search result mode is
9784
+ # based on DataStore.DocumentProcessingConfig.chunking_config: * If DataStore.
9785
+ # DocumentProcessingConfig.chunking_config is specified, it defaults to `CHUNKS`.
9786
+ # * Otherwise, it defaults to `DOCUMENTS`.
8956
9787
  # Corresponds to the JSON property `searchResultMode`
8957
9788
  # @return [String]
8958
9789
  attr_accessor :search_result_mode
@@ -11970,6 +12801,11 @@ module Google
11970
12801
  class GoogleCloudDiscoveryengineV1betaDocumentProcessingConfig
11971
12802
  include Google::Apis::Core::Hashable
11972
12803
 
12804
+ # Configuration for chunking config.
12805
+ # Corresponds to the JSON property `chunkingConfig`
12806
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigChunkingConfig]
12807
+ attr_accessor :chunking_config
12808
+
11973
12809
  # Related configurations applied to a specific type of document parser.
11974
12810
  # Corresponds to the JSON property `defaultParsingConfig`
11975
12811
  # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfig]
@@ -11997,12 +12833,60 @@ module Google
11997
12833
 
11998
12834
  # Update properties of this object
11999
12835
  def update!(**args)
12836
+ @chunking_config = args[:chunking_config] if args.key?(:chunking_config)
12000
12837
  @default_parsing_config = args[:default_parsing_config] if args.key?(:default_parsing_config)
12001
12838
  @name = args[:name] if args.key?(:name)
12002
12839
  @parsing_config_overrides = args[:parsing_config_overrides] if args.key?(:parsing_config_overrides)
12003
12840
  end
12004
12841
  end
12005
12842
 
12843
+ # Configuration for chunking config.
12844
+ class GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigChunkingConfig
12845
+ include Google::Apis::Core::Hashable
12846
+
12847
+ # Configuration for the layout based chunking.
12848
+ # Corresponds to the JSON property `layoutBasedChunkingConfig`
12849
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigChunkingConfigLayoutBasedChunkingConfig]
12850
+ attr_accessor :layout_based_chunking_config
12851
+
12852
+ def initialize(**args)
12853
+ update!(**args)
12854
+ end
12855
+
12856
+ # Update properties of this object
12857
+ def update!(**args)
12858
+ @layout_based_chunking_config = args[:layout_based_chunking_config] if args.key?(:layout_based_chunking_config)
12859
+ end
12860
+ end
12861
+
12862
+ # Configuration for the layout based chunking.
12863
+ class GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigChunkingConfigLayoutBasedChunkingConfig
12864
+ include Google::Apis::Core::Hashable
12865
+
12866
+ # The token size limit for each chunk. Supported values: 100-500 (inclusive).
12867
+ # Default value: 500.
12868
+ # Corresponds to the JSON property `chunkSize`
12869
+ # @return [Fixnum]
12870
+ attr_accessor :chunk_size
12871
+
12872
+ # Whether to include appending different levels of headings to chunks from the
12873
+ # middle of the document to prevent context loss. Default value: False.
12874
+ # Corresponds to the JSON property `includeAncestorHeadings`
12875
+ # @return [Boolean]
12876
+ attr_accessor :include_ancestor_headings
12877
+ alias_method :include_ancestor_headings?, :include_ancestor_headings
12878
+
12879
+ def initialize(**args)
12880
+ update!(**args)
12881
+ end
12882
+
12883
+ # Update properties of this object
12884
+ def update!(**args)
12885
+ @chunk_size = args[:chunk_size] if args.key?(:chunk_size)
12886
+ @include_ancestor_headings = args[:include_ancestor_headings] if args.key?(:include_ancestor_headings)
12887
+ end
12888
+ end
12889
+
12006
12890
  # Related configurations applied to a specific type of document parser.
12007
12891
  class GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfig
12008
12892
  include Google::Apis::Core::Hashable
@@ -12012,6 +12896,11 @@ module Google
12012
12896
  # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigDigitalParsingConfig]
12013
12897
  attr_accessor :digital_parsing_config
12014
12898
 
12899
+ # The layout parsing configurations for documents.
12900
+ # Corresponds to the JSON property `layoutParsingConfig`
12901
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigLayoutParsingConfig]
12902
+ attr_accessor :layout_parsing_config
12903
+
12015
12904
  # The OCR parsing configurations for documents.
12016
12905
  # Corresponds to the JSON property `ocrParsingConfig`
12017
12906
  # @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigOcrParsingConfig]
@@ -12024,6 +12913,7 @@ module Google
12024
12913
  # Update properties of this object
12025
12914
  def update!(**args)
12026
12915
  @digital_parsing_config = args[:digital_parsing_config] if args.key?(:digital_parsing_config)
12916
+ @layout_parsing_config = args[:layout_parsing_config] if args.key?(:layout_parsing_config)
12027
12917
  @ocr_parsing_config = args[:ocr_parsing_config] if args.key?(:ocr_parsing_config)
12028
12918
  end
12029
12919
  end
@@ -12041,6 +12931,19 @@ module Google
12041
12931
  end
12042
12932
  end
12043
12933
 
12934
+ # The layout parsing configurations for documents.
12935
+ class GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigLayoutParsingConfig
12936
+ include Google::Apis::Core::Hashable
12937
+
12938
+ def initialize(**args)
12939
+ update!(**args)
12940
+ end
12941
+
12942
+ # Update properties of this object
12943
+ def update!(**args)
12944
+ end
12945
+ end
12946
+
12044
12947
  # The OCR parsing configurations for documents.
12045
12948
  class GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigOcrParsingConfig
12046
12949
  include Google::Apis::Core::Hashable
@@ -13274,6 +14177,61 @@ module Google
13274
14177
  end
13275
14178
  end
13276
14179
 
14180
+ # A single strongly-typed value.
14181
+ class GoogleMonitoringV3TypedValue
14182
+ include Google::Apis::Core::Hashable
14183
+
14184
+ # A Boolean value: `true` or `false`.
14185
+ # Corresponds to the JSON property `boolValue`
14186
+ # @return [Boolean]
14187
+ attr_accessor :bool_value
14188
+ alias_method :bool_value?, :bool_value
14189
+
14190
+ # `Distribution` contains summary statistics for a population of values. It
14191
+ # optionally contains a histogram representing the distribution of those values
14192
+ # across a set of buckets. The summary statistics are the count, mean, sum of
14193
+ # the squared deviation from the mean, the minimum, and the maximum of the set
14194
+ # of population of values. The histogram is based on a sequence of buckets and
14195
+ # gives a count of values that fall into each bucket. The boundaries of the
14196
+ # buckets are given either explicitly or by formulas for buckets of fixed or
14197
+ # exponentially increasing widths. Although it is not forbidden, it is generally
14198
+ # a bad idea to include non-finite values (infinities or NaNs) in the population
14199
+ # of values, as this will render the `mean` and `sum_of_squared_deviation`
14200
+ # fields meaningless.
14201
+ # Corresponds to the JSON property `distributionValue`
14202
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleApiDistribution]
14203
+ attr_accessor :distribution_value
14204
+
14205
+ # A 64-bit double-precision floating-point number. Its magnitude is
14206
+ # approximately ±10±300 and it has 16 significant digits of precision.
14207
+ # Corresponds to the JSON property `doubleValue`
14208
+ # @return [Float]
14209
+ attr_accessor :double_value
14210
+
14211
+ # A 64-bit integer. Its range is approximately ±9.2x1018.
14212
+ # Corresponds to the JSON property `int64Value`
14213
+ # @return [Fixnum]
14214
+ attr_accessor :int64_value
14215
+
14216
+ # A variable-length string value.
14217
+ # Corresponds to the JSON property `stringValue`
14218
+ # @return [String]
14219
+ attr_accessor :string_value
14220
+
14221
+ def initialize(**args)
14222
+ update!(**args)
14223
+ end
14224
+
14225
+ # Update properties of this object
14226
+ def update!(**args)
14227
+ @bool_value = args[:bool_value] if args.key?(:bool_value)
14228
+ @distribution_value = args[:distribution_value] if args.key?(:distribution_value)
14229
+ @double_value = args[:double_value] if args.key?(:double_value)
14230
+ @int64_value = args[:int64_value] if args.key?(:int64_value)
14231
+ @string_value = args[:string_value] if args.key?(:string_value)
14232
+ end
14233
+ end
14234
+
13277
14235
  # A generic empty message that you can re-use to avoid defining duplicated empty
13278
14236
  # messages in your APIs. A typical example is to use it as the request or the
13279
14237
  # response type of an API method. For instance: service Foo ` rpc Bar(google.
@@ -13369,6 +14327,60 @@ module Google
13369
14327
  @year = args[:year] if args.key?(:year)
13370
14328
  end
13371
14329
  end
14330
+
14331
+ # Represents a textual expression in the Common Expression Language (CEL) syntax.
14332
+ # CEL is a C-like expression language. The syntax and semantics of CEL are
14333
+ # documented at https://github.com/google/cel-spec. Example (Comparison): title:
14334
+ # "Summary size limit" description: "Determines if a summary is less than 100
14335
+ # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
14336
+ # Requestor is owner" description: "Determines if requestor is the document
14337
+ # owner" expression: "document.owner == request.auth.claims.email" Example (
14338
+ # Logic): title: "Public documents" description: "Determine whether the document
14339
+ # should be publicly visible" expression: "document.type != 'private' &&
14340
+ # document.type != 'internal'" Example (Data Manipulation): title: "Notification
14341
+ # string" description: "Create a notification string with a timestamp."
14342
+ # expression: "'New message received at ' + string(document.create_time)" The
14343
+ # exact variables and functions that may be referenced within an expression are
14344
+ # determined by the service that evaluates it. See the service documentation for
14345
+ # additional information.
14346
+ class GoogleTypeExpr
14347
+ include Google::Apis::Core::Hashable
14348
+
14349
+ # Optional. Description of the expression. This is a longer text which describes
14350
+ # the expression, e.g. when hovered over it in a UI.
14351
+ # Corresponds to the JSON property `description`
14352
+ # @return [String]
14353
+ attr_accessor :description
14354
+
14355
+ # Textual representation of an expression in Common Expression Language syntax.
14356
+ # Corresponds to the JSON property `expression`
14357
+ # @return [String]
14358
+ attr_accessor :expression
14359
+
14360
+ # Optional. String indicating the location of the expression for error reporting,
14361
+ # e.g. a file name and a position in the file.
14362
+ # Corresponds to the JSON property `location`
14363
+ # @return [String]
14364
+ attr_accessor :location
14365
+
14366
+ # Optional. Title for the expression, i.e. a short string describing its purpose.
14367
+ # This can be used e.g. in UIs which allow to enter the expression.
14368
+ # Corresponds to the JSON property `title`
14369
+ # @return [String]
14370
+ attr_accessor :title
14371
+
14372
+ def initialize(**args)
14373
+ update!(**args)
14374
+ end
14375
+
14376
+ # Update properties of this object
14377
+ def update!(**args)
14378
+ @description = args[:description] if args.key?(:description)
14379
+ @expression = args[:expression] if args.key?(:expression)
14380
+ @location = args[:location] if args.key?(:location)
14381
+ @title = args[:title] if args.key?(:title)
14382
+ end
14383
+ end
13372
14384
  end
13373
14385
  end
13374
14386
  end