google-apis-aiplatform_v1 0.7.0 → 0.9.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,884 @@ module Google
22
22
  module Apis
23
23
  module AiplatformV1
24
24
 
25
+ # Video embedding response.
26
+ class CloudAiLargeModelsVisionEmbedVideoResponse
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # The embedding vector for the video.
30
+ # Corresponds to the JSON property `videoEmbeddings`
31
+ # @return [Array<Object>]
32
+ attr_accessor :video_embeddings
33
+
34
+ def initialize(**args)
35
+ update!(**args)
36
+ end
37
+
38
+ # Update properties of this object
39
+ def update!(**args)
40
+ @video_embeddings = args[:video_embeddings] if args.key?(:video_embeddings)
41
+ end
42
+ end
43
+
44
+ # Details for filtered input text.
45
+ class CloudAiLargeModelsVisionFilteredText
46
+ include Google::Apis::Core::Hashable
47
+
48
+ # Confidence level
49
+ # Corresponds to the JSON property `category`
50
+ # @return [String]
51
+ attr_accessor :category
52
+
53
+ # Filtered category
54
+ # Corresponds to the JSON property `confidence`
55
+ # @return [String]
56
+ attr_accessor :confidence
57
+
58
+ # Input prompt
59
+ # Corresponds to the JSON property `prompt`
60
+ # @return [String]
61
+ attr_accessor :prompt
62
+
63
+ # Score for category
64
+ # Corresponds to the JSON property `score`
65
+ # @return [Float]
66
+ attr_accessor :score
67
+
68
+ def initialize(**args)
69
+ update!(**args)
70
+ end
71
+
72
+ # Update properties of this object
73
+ def update!(**args)
74
+ @category = args[:category] if args.key?(:category)
75
+ @confidence = args[:confidence] if args.key?(:confidence)
76
+ @prompt = args[:prompt] if args.key?(:prompt)
77
+ @score = args[:score] if args.key?(:score)
78
+ end
79
+ end
80
+
81
+ # Generate video response.
82
+ class CloudAiLargeModelsVisionGenerateVideoResponse
83
+ include Google::Apis::Core::Hashable
84
+
85
+ # The generates samples.
86
+ # Corresponds to the JSON property `generatedSamples`
87
+ # @return [Array<Google::Apis::AiplatformV1::CloudAiLargeModelsVisionMedia>]
88
+ attr_accessor :generated_samples
89
+
90
+ # Returns if any videos were filtered due to RAI policies.
91
+ # Corresponds to the JSON property `raiMediaFilteredCount`
92
+ # @return [Fixnum]
93
+ attr_accessor :rai_media_filtered_count
94
+
95
+ # Returns rai failure reasons if any.
96
+ # Corresponds to the JSON property `raiMediaFilteredReasons`
97
+ # @return [Array<String>]
98
+ attr_accessor :rai_media_filtered_reasons
99
+
100
+ # Details for filtered input text.
101
+ # Corresponds to the JSON property `raiTextFilteredReason`
102
+ # @return [Google::Apis::AiplatformV1::CloudAiLargeModelsVisionFilteredText]
103
+ attr_accessor :rai_text_filtered_reason
104
+
105
+ def initialize(**args)
106
+ update!(**args)
107
+ end
108
+
109
+ # Update properties of this object
110
+ def update!(**args)
111
+ @generated_samples = args[:generated_samples] if args.key?(:generated_samples)
112
+ @rai_media_filtered_count = args[:rai_media_filtered_count] if args.key?(:rai_media_filtered_count)
113
+ @rai_media_filtered_reasons = args[:rai_media_filtered_reasons] if args.key?(:rai_media_filtered_reasons)
114
+ @rai_text_filtered_reason = args[:rai_text_filtered_reason] if args.key?(:rai_text_filtered_reason)
115
+ end
116
+ end
117
+
118
+ # Image.
119
+ class CloudAiLargeModelsVisionImage
120
+ include Google::Apis::Core::Hashable
121
+
122
+ # Image encoding, encoded as "image/png" or "image/jpg".
123
+ # Corresponds to the JSON property `encoding`
124
+ # @return [String]
125
+ attr_accessor :encoding
126
+
127
+ # Raw bytes.
128
+ # Corresponds to the JSON property `image`
129
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
130
+ # @return [String]
131
+ attr_accessor :image
132
+
133
+ # RAI scores for generated image returned.
134
+ # Corresponds to the JSON property `imageRaiScores`
135
+ # @return [Google::Apis::AiplatformV1::CloudAiLargeModelsVisionImageRaiScores]
136
+ attr_accessor :image_rai_scores
137
+
138
+ # RAI info for image
139
+ # Corresponds to the JSON property `raiInfo`
140
+ # @return [Google::Apis::AiplatformV1::CloudAiLargeModelsVisionRaiInfo]
141
+ attr_accessor :rai_info
142
+
143
+ # Semantic filter info for image.
144
+ # Corresponds to the JSON property `semanticFilterResponse`
145
+ # @return [Google::Apis::AiplatformV1::CloudAiLargeModelsVisionSemanticFilterResponse]
146
+ attr_accessor :semantic_filter_response
147
+
148
+ # Path to another storage (typically Google Cloud Storage).
149
+ # Corresponds to the JSON property `uri`
150
+ # @return [String]
151
+ attr_accessor :uri
152
+
153
+ def initialize(**args)
154
+ update!(**args)
155
+ end
156
+
157
+ # Update properties of this object
158
+ def update!(**args)
159
+ @encoding = args[:encoding] if args.key?(:encoding)
160
+ @image = args[:image] if args.key?(:image)
161
+ @image_rai_scores = args[:image_rai_scores] if args.key?(:image_rai_scores)
162
+ @rai_info = args[:rai_info] if args.key?(:rai_info)
163
+ @semantic_filter_response = args[:semantic_filter_response] if args.key?(:semantic_filter_response)
164
+ @uri = args[:uri] if args.key?(:uri)
165
+ end
166
+ end
167
+
168
+ # RAI scores for generated image returned.
169
+ class CloudAiLargeModelsVisionImageRaiScores
170
+ include Google::Apis::Core::Hashable
171
+
172
+ # Agile watermark score for image.
173
+ # Corresponds to the JSON property `agileWatermarkDetectionScore`
174
+ # @return [Float]
175
+ attr_accessor :agile_watermark_detection_score
176
+
177
+ def initialize(**args)
178
+ update!(**args)
179
+ end
180
+
181
+ # Update properties of this object
182
+ def update!(**args)
183
+ @agile_watermark_detection_score = args[:agile_watermark_detection_score] if args.key?(:agile_watermark_detection_score)
184
+ end
185
+ end
186
+
187
+ # Media.
188
+ class CloudAiLargeModelsVisionMedia
189
+ include Google::Apis::Core::Hashable
190
+
191
+ # Image.
192
+ # Corresponds to the JSON property `image`
193
+ # @return [Google::Apis::AiplatformV1::CloudAiLargeModelsVisionImage]
194
+ attr_accessor :image
195
+
196
+ # Video
197
+ # Corresponds to the JSON property `video`
198
+ # @return [Google::Apis::AiplatformV1::CloudAiLargeModelsVisionVideo]
199
+ attr_accessor :video
200
+
201
+ def initialize(**args)
202
+ update!(**args)
203
+ end
204
+
205
+ # Update properties of this object
206
+ def update!(**args)
207
+ @image = args[:image] if args.key?(:image)
208
+ @video = args[:video] if args.key?(:video)
209
+ end
210
+ end
211
+
212
+ # Generate media content response
213
+ class CloudAiLargeModelsVisionMediaGenerateContentResponse
214
+ include Google::Apis::Core::Hashable
215
+
216
+ # Response to the user's request.
217
+ # Corresponds to the JSON property `response`
218
+ # @return [Google::Apis::AiplatformV1::CloudAiNlLlmProtoServiceGenerateMultiModalResponse]
219
+ attr_accessor :response
220
+
221
+ def initialize(**args)
222
+ update!(**args)
223
+ end
224
+
225
+ # Update properties of this object
226
+ def update!(**args)
227
+ @response = args[:response] if args.key?(:response)
228
+ end
229
+ end
230
+
231
+ #
232
+ class CloudAiLargeModelsVisionNamedBoundingBox
233
+ include Google::Apis::Core::Hashable
234
+
235
+ #
236
+ # Corresponds to the JSON property `classes`
237
+ # @return [Array<String>]
238
+ attr_accessor :classes
239
+
240
+ #
241
+ # Corresponds to the JSON property `entities`
242
+ # @return [Array<String>]
243
+ attr_accessor :entities
244
+
245
+ #
246
+ # Corresponds to the JSON property `scores`
247
+ # @return [Array<Float>]
248
+ attr_accessor :scores
249
+
250
+ #
251
+ # Corresponds to the JSON property `x1`
252
+ # @return [Float]
253
+ attr_accessor :x1
254
+
255
+ #
256
+ # Corresponds to the JSON property `x2`
257
+ # @return [Float]
258
+ attr_accessor :x2
259
+
260
+ #
261
+ # Corresponds to the JSON property `y1`
262
+ # @return [Float]
263
+ attr_accessor :y1
264
+
265
+ #
266
+ # Corresponds to the JSON property `y2`
267
+ # @return [Float]
268
+ attr_accessor :y2
269
+
270
+ def initialize(**args)
271
+ update!(**args)
272
+ end
273
+
274
+ # Update properties of this object
275
+ def update!(**args)
276
+ @classes = args[:classes] if args.key?(:classes)
277
+ @entities = args[:entities] if args.key?(:entities)
278
+ @scores = args[:scores] if args.key?(:scores)
279
+ @x1 = args[:x1] if args.key?(:x1)
280
+ @x2 = args[:x2] if args.key?(:x2)
281
+ @y1 = args[:y1] if args.key?(:y1)
282
+ @y2 = args[:y2] if args.key?(:y2)
283
+ end
284
+ end
285
+
286
+ #
287
+ class CloudAiLargeModelsVisionRaiInfo
288
+ include Google::Apis::Core::Hashable
289
+
290
+ # List of rai categories' information to return
291
+ # Corresponds to the JSON property `raiCategories`
292
+ # @return [Array<String>]
293
+ attr_accessor :rai_categories
294
+
295
+ # List of rai scores mapping to the rai categories. Rounded to 1 decimal place.
296
+ # Corresponds to the JSON property `scores`
297
+ # @return [Array<Float>]
298
+ attr_accessor :scores
299
+
300
+ def initialize(**args)
301
+ update!(**args)
302
+ end
303
+
304
+ # Update properties of this object
305
+ def update!(**args)
306
+ @rai_categories = args[:rai_categories] if args.key?(:rai_categories)
307
+ @scores = args[:scores] if args.key?(:scores)
308
+ end
309
+ end
310
+
311
+ # Video reasoning response.
312
+ class CloudAiLargeModelsVisionReasonVideoResponse
313
+ include Google::Apis::Core::Hashable
314
+
315
+ # Generated text responses. The generated responses for different segments
316
+ # within the same video.
317
+ # Corresponds to the JSON property `responses`
318
+ # @return [Array<Google::Apis::AiplatformV1::CloudAiLargeModelsVisionReasonVideoResponseTextResponse>]
319
+ attr_accessor :responses
320
+
321
+ def initialize(**args)
322
+ update!(**args)
323
+ end
324
+
325
+ # Update properties of this object
326
+ def update!(**args)
327
+ @responses = args[:responses] if args.key?(:responses)
328
+ end
329
+ end
330
+
331
+ # Contains text that is the response of the video captioning.
332
+ class CloudAiLargeModelsVisionReasonVideoResponseTextResponse
333
+ include Google::Apis::Core::Hashable
334
+
335
+ # For ease of use, assume that the start_offset is inclusive and the end_offset
336
+ # is exclusive. In mathematical terms, the partition would be written as [
337
+ # start_offset, end_offset).
338
+ # Corresponds to the JSON property `relativeTemporalPartition`
339
+ # @return [Google::Apis::AiplatformV1::CloudAiLargeModelsVisionRelativeTemporalPartition]
340
+ attr_accessor :relative_temporal_partition
341
+
342
+ # Text information
343
+ # Corresponds to the JSON property `text`
344
+ # @return [String]
345
+ attr_accessor :text
346
+
347
+ def initialize(**args)
348
+ update!(**args)
349
+ end
350
+
351
+ # Update properties of this object
352
+ def update!(**args)
353
+ @relative_temporal_partition = args[:relative_temporal_partition] if args.key?(:relative_temporal_partition)
354
+ @text = args[:text] if args.key?(:text)
355
+ end
356
+ end
357
+
358
+ # For ease of use, assume that the start_offset is inclusive and the end_offset
359
+ # is exclusive. In mathematical terms, the partition would be written as [
360
+ # start_offset, end_offset).
361
+ class CloudAiLargeModelsVisionRelativeTemporalPartition
362
+ include Google::Apis::Core::Hashable
363
+
364
+ # End time offset of the partition.
365
+ # Corresponds to the JSON property `endOffset`
366
+ # @return [String]
367
+ attr_accessor :end_offset
368
+
369
+ # Start time offset of the partition.
370
+ # Corresponds to the JSON property `startOffset`
371
+ # @return [String]
372
+ attr_accessor :start_offset
373
+
374
+ def initialize(**args)
375
+ update!(**args)
376
+ end
377
+
378
+ # Update properties of this object
379
+ def update!(**args)
380
+ @end_offset = args[:end_offset] if args.key?(:end_offset)
381
+ @start_offset = args[:start_offset] if args.key?(:start_offset)
382
+ end
383
+ end
384
+
385
+ #
386
+ class CloudAiLargeModelsVisionSemanticFilterResponse
387
+ include Google::Apis::Core::Hashable
388
+
389
+ # Class labels of the bounding boxes that failed the semantic filtering.
390
+ # Bounding box coordinates.
391
+ # Corresponds to the JSON property `namedBoundingBoxes`
392
+ # @return [Array<Google::Apis::AiplatformV1::CloudAiLargeModelsVisionNamedBoundingBox>]
393
+ attr_accessor :named_bounding_boxes
394
+
395
+ # This response is added when semantic filter config is turned on in EditConfig.
396
+ # It reports if this image is passed semantic filter response. If
397
+ # passed_semantic_filter is false, the bounding box information will be
398
+ # populated for user to check what caused the semantic filter to fail.
399
+ # Corresponds to the JSON property `passedSemanticFilter`
400
+ # @return [Boolean]
401
+ attr_accessor :passed_semantic_filter
402
+ alias_method :passed_semantic_filter?, :passed_semantic_filter
403
+
404
+ def initialize(**args)
405
+ update!(**args)
406
+ end
407
+
408
+ # Update properties of this object
409
+ def update!(**args)
410
+ @named_bounding_boxes = args[:named_bounding_boxes] if args.key?(:named_bounding_boxes)
411
+ @passed_semantic_filter = args[:passed_semantic_filter] if args.key?(:passed_semantic_filter)
412
+ end
413
+ end
414
+
415
+ # Video
416
+ class CloudAiLargeModelsVisionVideo
417
+ include Google::Apis::Core::Hashable
418
+
419
+ # Path to another storage (typically Google Cloud Storage).
420
+ # Corresponds to the JSON property `uri`
421
+ # @return [String]
422
+ attr_accessor :uri
423
+
424
+ # Raw bytes.
425
+ # Corresponds to the JSON property `video`
426
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
427
+ # @return [String]
428
+ attr_accessor :video
429
+
430
+ def initialize(**args)
431
+ update!(**args)
432
+ end
433
+
434
+ # Update properties of this object
435
+ def update!(**args)
436
+ @uri = args[:uri] if args.key?(:uri)
437
+ @video = args[:video] if args.key?(:video)
438
+ end
439
+ end
440
+
441
+ #
442
+ class CloudAiNlLlmProtoServiceCandidate
443
+ include Google::Apis::Core::Hashable
444
+
445
+ # A collection of source attributions for a piece of content.
446
+ # Corresponds to the JSON property `citationMetadata`
447
+ # @return [Google::Apis::AiplatformV1::CloudAiNlLlmProtoServiceCitationMetadata]
448
+ attr_accessor :citation_metadata
449
+
450
+ # The content of a single message from a participant.
451
+ # Corresponds to the JSON property `content`
452
+ # @return [Google::Apis::AiplatformV1::CloudAiNlLlmProtoServiceContent]
453
+ attr_accessor :content
454
+
455
+ # A string that describes the filtering behavior in more detail. Only filled
456
+ # when reason is set.
457
+ # Corresponds to the JSON property `finishMessage`
458
+ # @return [String]
459
+ attr_accessor :finish_message
460
+
461
+ # The reason why the model stopped generating tokens.
462
+ # Corresponds to the JSON property `finishReason`
463
+ # @return [String]
464
+ attr_accessor :finish_reason
465
+
466
+ # Index of the candidate.
467
+ # Corresponds to the JSON property `index`
468
+ # @return [Fixnum]
469
+ attr_accessor :index
470
+
471
+ # Safety ratings of the generated content.
472
+ # Corresponds to the JSON property `safetyRatings`
473
+ # @return [Array<Google::Apis::AiplatformV1::CloudAiNlLlmProtoServiceSafetyRating>]
474
+ attr_accessor :safety_ratings
475
+
476
+ def initialize(**args)
477
+ update!(**args)
478
+ end
479
+
480
+ # Update properties of this object
481
+ def update!(**args)
482
+ @citation_metadata = args[:citation_metadata] if args.key?(:citation_metadata)
483
+ @content = args[:content] if args.key?(:content)
484
+ @finish_message = args[:finish_message] if args.key?(:finish_message)
485
+ @finish_reason = args[:finish_reason] if args.key?(:finish_reason)
486
+ @index = args[:index] if args.key?(:index)
487
+ @safety_ratings = args[:safety_ratings] if args.key?(:safety_ratings)
488
+ end
489
+ end
490
+
491
+ # Source attributions for content.
492
+ class CloudAiNlLlmProtoServiceCitation
493
+ include Google::Apis::Core::Hashable
494
+
495
+ # End index into the content.
496
+ # Corresponds to the JSON property `endIndex`
497
+ # @return [Fixnum]
498
+ attr_accessor :end_index
499
+
500
+ # License of the attribution.
501
+ # Corresponds to the JSON property `license`
502
+ # @return [String]
503
+ attr_accessor :license
504
+
505
+ # Represents a whole or partial calendar date, such as a birthday. The time of
506
+ # day and time zone are either specified elsewhere or are insignificant. The
507
+ # date is relative to the Gregorian Calendar. This can represent one of the
508
+ # following: * A full date, with non-zero year, month, and day values. * A month
509
+ # and day, with a zero year (for example, an anniversary). * A year on its own,
510
+ # with a zero month and a zero day. * A year and month, with a zero day (for
511
+ # example, a credit card expiration date). Related types: * google.type.
512
+ # TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
513
+ # Corresponds to the JSON property `publicationDate`
514
+ # @return [Google::Apis::AiplatformV1::GoogleTypeDate]
515
+ attr_accessor :publication_date
516
+
517
+ # Start index into the content.
518
+ # Corresponds to the JSON property `startIndex`
519
+ # @return [Fixnum]
520
+ attr_accessor :start_index
521
+
522
+ # Title of the attribution.
523
+ # Corresponds to the JSON property `title`
524
+ # @return [String]
525
+ attr_accessor :title
526
+
527
+ # Url reference of the attribution.
528
+ # Corresponds to the JSON property `uri`
529
+ # @return [String]
530
+ attr_accessor :uri
531
+
532
+ def initialize(**args)
533
+ update!(**args)
534
+ end
535
+
536
+ # Update properties of this object
537
+ def update!(**args)
538
+ @end_index = args[:end_index] if args.key?(:end_index)
539
+ @license = args[:license] if args.key?(:license)
540
+ @publication_date = args[:publication_date] if args.key?(:publication_date)
541
+ @start_index = args[:start_index] if args.key?(:start_index)
542
+ @title = args[:title] if args.key?(:title)
543
+ @uri = args[:uri] if args.key?(:uri)
544
+ end
545
+ end
546
+
547
+ # A collection of source attributions for a piece of content.
548
+ class CloudAiNlLlmProtoServiceCitationMetadata
549
+ include Google::Apis::Core::Hashable
550
+
551
+ # List of citations.
552
+ # Corresponds to the JSON property `citations`
553
+ # @return [Array<Google::Apis::AiplatformV1::CloudAiNlLlmProtoServiceCitation>]
554
+ attr_accessor :citations
555
+
556
+ def initialize(**args)
557
+ update!(**args)
558
+ end
559
+
560
+ # Update properties of this object
561
+ def update!(**args)
562
+ @citations = args[:citations] if args.key?(:citations)
563
+ end
564
+ end
565
+
566
+ # The content of a single message from a participant.
567
+ class CloudAiNlLlmProtoServiceContent
568
+ include Google::Apis::Core::Hashable
569
+
570
+ # The parts of the message.
571
+ # Corresponds to the JSON property `parts`
572
+ # @return [Array<Google::Apis::AiplatformV1::CloudAiNlLlmProtoServicePart>]
573
+ attr_accessor :parts
574
+
575
+ # The role of the current conversation participant.
576
+ # Corresponds to the JSON property `role`
577
+ # @return [String]
578
+ attr_accessor :role
579
+
580
+ def initialize(**args)
581
+ update!(**args)
582
+ end
583
+
584
+ # Update properties of this object
585
+ def update!(**args)
586
+ @parts = args[:parts] if args.key?(:parts)
587
+ @role = args[:role] if args.key?(:role)
588
+ end
589
+ end
590
+
591
+ # Function call details.
592
+ class CloudAiNlLlmProtoServiceFunctionCall
593
+ include Google::Apis::Core::Hashable
594
+
595
+ # The function parameters and values in JSON format.
596
+ # Corresponds to the JSON property `args`
597
+ # @return [Hash<String,Object>]
598
+ attr_accessor :args
599
+
600
+ # Required. The name of the function to call.
601
+ # Corresponds to the JSON property `name`
602
+ # @return [String]
603
+ attr_accessor :name
604
+
605
+ def initialize(**args)
606
+ update!(**args)
607
+ end
608
+
609
+ # Update properties of this object
610
+ def update!(**args)
611
+ @args = args[:args] if args.key?(:args)
612
+ @name = args[:name] if args.key?(:name)
613
+ end
614
+ end
615
+
616
+ # Function response details.
617
+ class CloudAiNlLlmProtoServiceFunctionResponse
618
+ include Google::Apis::Core::Hashable
619
+
620
+ # Required. The name of the function to call.
621
+ # Corresponds to the JSON property `name`
622
+ # @return [String]
623
+ attr_accessor :name
624
+
625
+ # Required. The function response in JSON object format.
626
+ # Corresponds to the JSON property `response`
627
+ # @return [Hash<String,Object>]
628
+ attr_accessor :response
629
+
630
+ def initialize(**args)
631
+ update!(**args)
632
+ end
633
+
634
+ # Update properties of this object
635
+ def update!(**args)
636
+ @name = args[:name] if args.key?(:name)
637
+ @response = args[:response] if args.key?(:response)
638
+ end
639
+ end
640
+
641
+ #
642
+ class CloudAiNlLlmProtoServiceGenerateMultiModalResponse
643
+ include Google::Apis::Core::Hashable
644
+
645
+ # Possible candidate responses to the conversation up until this point.
646
+ # Corresponds to the JSON property `candidates`
647
+ # @return [Array<Google::Apis::AiplatformV1::CloudAiNlLlmProtoServiceCandidate>]
648
+ attr_accessor :candidates
649
+
650
+ # Content filter results for a prompt sent in the request.
651
+ # Corresponds to the JSON property `promptFeedback`
652
+ # @return [Google::Apis::AiplatformV1::CloudAiNlLlmProtoServicePromptFeedback]
653
+ attr_accessor :prompt_feedback
654
+
655
+ # Billable prediction metrics.
656
+ # Corresponds to the JSON property `reportingMetrics`
657
+ # @return [Google::Apis::AiplatformV1::IntelligenceCloudAutomlXpsReportingMetrics]
658
+ attr_accessor :reporting_metrics
659
+
660
+ # Usage metadata about response(s).
661
+ # Corresponds to the JSON property `usageMetadata`
662
+ # @return [Google::Apis::AiplatformV1::CloudAiNlLlmProtoServiceUsageMetadata]
663
+ attr_accessor :usage_metadata
664
+
665
+ def initialize(**args)
666
+ update!(**args)
667
+ end
668
+
669
+ # Update properties of this object
670
+ def update!(**args)
671
+ @candidates = args[:candidates] if args.key?(:candidates)
672
+ @prompt_feedback = args[:prompt_feedback] if args.key?(:prompt_feedback)
673
+ @reporting_metrics = args[:reporting_metrics] if args.key?(:reporting_metrics)
674
+ @usage_metadata = args[:usage_metadata] if args.key?(:usage_metadata)
675
+ end
676
+ end
677
+
678
+ # A single part of a message.
679
+ class CloudAiNlLlmProtoServicePart
680
+ include Google::Apis::Core::Hashable
681
+
682
+ # Represents file data.
683
+ # Corresponds to the JSON property `fileData`
684
+ # @return [Google::Apis::AiplatformV1::CloudAiNlLlmProtoServicePartFileData]
685
+ attr_accessor :file_data
686
+
687
+ # Function call details.
688
+ # Corresponds to the JSON property `functionCall`
689
+ # @return [Google::Apis::AiplatformV1::CloudAiNlLlmProtoServiceFunctionCall]
690
+ attr_accessor :function_call
691
+
692
+ # Function response details.
693
+ # Corresponds to the JSON property `functionResponse`
694
+ # @return [Google::Apis::AiplatformV1::CloudAiNlLlmProtoServiceFunctionResponse]
695
+ attr_accessor :function_response
696
+
697
+ # Represents arbitrary blob data input.
698
+ # Corresponds to the JSON property `inlineData`
699
+ # @return [Google::Apis::AiplatformV1::CloudAiNlLlmProtoServicePartBlob]
700
+ attr_accessor :inline_data
701
+
702
+ # Text input.
703
+ # Corresponds to the JSON property `text`
704
+ # @return [String]
705
+ attr_accessor :text
706
+
707
+ # Metadata describes the input video content.
708
+ # Corresponds to the JSON property `videoMetadata`
709
+ # @return [Google::Apis::AiplatformV1::CloudAiNlLlmProtoServicePartVideoMetadata]
710
+ attr_accessor :video_metadata
711
+
712
+ def initialize(**args)
713
+ update!(**args)
714
+ end
715
+
716
+ # Update properties of this object
717
+ def update!(**args)
718
+ @file_data = args[:file_data] if args.key?(:file_data)
719
+ @function_call = args[:function_call] if args.key?(:function_call)
720
+ @function_response = args[:function_response] if args.key?(:function_response)
721
+ @inline_data = args[:inline_data] if args.key?(:inline_data)
722
+ @text = args[:text] if args.key?(:text)
723
+ @video_metadata = args[:video_metadata] if args.key?(:video_metadata)
724
+ end
725
+ end
726
+
727
+ # Represents arbitrary blob data input.
728
+ class CloudAiNlLlmProtoServicePartBlob
729
+ include Google::Apis::Core::Hashable
730
+
731
+ # Inline data.
732
+ # Corresponds to the JSON property `data`
733
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
734
+ # @return [String]
735
+ attr_accessor :data
736
+
737
+ # The mime type corresponding to this input.
738
+ # Corresponds to the JSON property `mimeType`
739
+ # @return [String]
740
+ attr_accessor :mime_type
741
+
742
+ # Represents file data.
743
+ # Corresponds to the JSON property `originalFileData`
744
+ # @return [Google::Apis::AiplatformV1::CloudAiNlLlmProtoServicePartFileData]
745
+ attr_accessor :original_file_data
746
+
747
+ def initialize(**args)
748
+ update!(**args)
749
+ end
750
+
751
+ # Update properties of this object
752
+ def update!(**args)
753
+ @data = args[:data] if args.key?(:data)
754
+ @mime_type = args[:mime_type] if args.key?(:mime_type)
755
+ @original_file_data = args[:original_file_data] if args.key?(:original_file_data)
756
+ end
757
+ end
758
+
759
+ # Represents file data.
760
+ class CloudAiNlLlmProtoServicePartFileData
761
+ include Google::Apis::Core::Hashable
762
+
763
+ # Inline data.
764
+ # Corresponds to the JSON property `fileUri`
765
+ # @return [String]
766
+ attr_accessor :file_uri
767
+
768
+ # The mime type corresponding to this input.
769
+ # Corresponds to the JSON property `mimeType`
770
+ # @return [String]
771
+ attr_accessor :mime_type
772
+
773
+ def initialize(**args)
774
+ update!(**args)
775
+ end
776
+
777
+ # Update properties of this object
778
+ def update!(**args)
779
+ @file_uri = args[:file_uri] if args.key?(:file_uri)
780
+ @mime_type = args[:mime_type] if args.key?(:mime_type)
781
+ end
782
+ end
783
+
784
+ # Metadata describes the input video content.
785
+ class CloudAiNlLlmProtoServicePartVideoMetadata
786
+ include Google::Apis::Core::Hashable
787
+
788
+ # The end offset of the video.
789
+ # Corresponds to the JSON property `endOffset`
790
+ # @return [String]
791
+ attr_accessor :end_offset
792
+
793
+ # The start offset of the video.
794
+ # Corresponds to the JSON property `startOffset`
795
+ # @return [String]
796
+ attr_accessor :start_offset
797
+
798
+ def initialize(**args)
799
+ update!(**args)
800
+ end
801
+
802
+ # Update properties of this object
803
+ def update!(**args)
804
+ @end_offset = args[:end_offset] if args.key?(:end_offset)
805
+ @start_offset = args[:start_offset] if args.key?(:start_offset)
806
+ end
807
+ end
808
+
809
+ # Content filter results for a prompt sent in the request.
810
+ class CloudAiNlLlmProtoServicePromptFeedback
811
+ include Google::Apis::Core::Hashable
812
+
813
+ # Blocked reason.
814
+ # Corresponds to the JSON property `blockReason`
815
+ # @return [String]
816
+ attr_accessor :block_reason
817
+
818
+ # A readable block reason message.
819
+ # Corresponds to the JSON property `blockReasonMessage`
820
+ # @return [String]
821
+ attr_accessor :block_reason_message
822
+
823
+ # Safety ratings.
824
+ # Corresponds to the JSON property `safetyRatings`
825
+ # @return [Array<Google::Apis::AiplatformV1::CloudAiNlLlmProtoServiceSafetyRating>]
826
+ attr_accessor :safety_ratings
827
+
828
+ def initialize(**args)
829
+ update!(**args)
830
+ end
831
+
832
+ # Update properties of this object
833
+ def update!(**args)
834
+ @block_reason = args[:block_reason] if args.key?(:block_reason)
835
+ @block_reason_message = args[:block_reason_message] if args.key?(:block_reason_message)
836
+ @safety_ratings = args[:safety_ratings] if args.key?(:safety_ratings)
837
+ end
838
+ end
839
+
840
+ # Safety rating corresponding to the generated content.
841
+ class CloudAiNlLlmProtoServiceSafetyRating
842
+ include Google::Apis::Core::Hashable
843
+
844
+ # Indicates whether the content was filtered out because of this rating.
845
+ # Corresponds to the JSON property `blocked`
846
+ # @return [Boolean]
847
+ attr_accessor :blocked
848
+ alias_method :blocked?, :blocked
849
+
850
+ # Harm category.
851
+ # Corresponds to the JSON property `category`
852
+ # @return [String]
853
+ attr_accessor :category
854
+
855
+ # Harm probability levels in the content.
856
+ # Corresponds to the JSON property `probability`
857
+ # @return [String]
858
+ attr_accessor :probability
859
+
860
+ def initialize(**args)
861
+ update!(**args)
862
+ end
863
+
864
+ # Update properties of this object
865
+ def update!(**args)
866
+ @blocked = args[:blocked] if args.key?(:blocked)
867
+ @category = args[:category] if args.key?(:category)
868
+ @probability = args[:probability] if args.key?(:probability)
869
+ end
870
+ end
871
+
872
+ # Usage metadata about response(s).
873
+ class CloudAiNlLlmProtoServiceUsageMetadata
874
+ include Google::Apis::Core::Hashable
875
+
876
+ # Number of tokens in the response(s).
877
+ # Corresponds to the JSON property `candidatesTokenCount`
878
+ # @return [Fixnum]
879
+ attr_accessor :candidates_token_count
880
+
881
+ # Number of tokens in the request.
882
+ # Corresponds to the JSON property `promptTokenCount`
883
+ # @return [Fixnum]
884
+ attr_accessor :prompt_token_count
885
+
886
+ #
887
+ # Corresponds to the JSON property `totalTokenCount`
888
+ # @return [Fixnum]
889
+ attr_accessor :total_token_count
890
+
891
+ def initialize(**args)
892
+ update!(**args)
893
+ end
894
+
895
+ # Update properties of this object
896
+ def update!(**args)
897
+ @candidates_token_count = args[:candidates_token_count] if args.key?(:candidates_token_count)
898
+ @prompt_token_count = args[:prompt_token_count] if args.key?(:prompt_token_count)
899
+ @total_token_count = args[:total_token_count] if args.key?(:total_token_count)
900
+ end
901
+ end
902
+
25
903
  # Message that represents an arbitrary HTTP body. It should only be used for
26
904
  # payload formats that can't be represented as JSON, such as raw binary or an
27
905
  # HTML page. This message can be used both in streaming and non-streaming API
@@ -1333,8 +2211,7 @@ module Google
1333
2211
  # Fields that will be excluded in the prediction instance that is sent to the
1334
2212
  # Model. Excluded will be attached to the batch prediction output if key_field
1335
2213
  # is not specified. When excluded_fields is populated, included_fields must be
1336
- # empty. The input must be JSONL with objects at each line, CSV, BigQuery or
1337
- # TfRecord.
2214
+ # empty. The input must be JSONL with objects at each line, BigQuery or TfRecord.
1338
2215
  # Corresponds to the JSON property `excludedFields`
1339
2216
  # @return [Array<String>]
1340
2217
  attr_accessor :excluded_fields
@@ -1343,7 +2220,7 @@ module Google
1343
2220
  # Model. If instance_type is `array`, the order of field names in
1344
2221
  # included_fields also determines the order of the values in the array. When
1345
2222
  # included_fields is populated, excluded_fields must be empty. The input must be
1346
- # JSONL with objects at each line, CSV, BigQuery or TfRecord.
2223
+ # JSONL with objects at each line, BigQuery or TfRecord.
1347
2224
  # Corresponds to the JSON property `includedFields`
1348
2225
  # @return [Array<String>]
1349
2226
  attr_accessor :included_fields
@@ -1672,6 +2549,32 @@ module Google
1672
2549
  end
1673
2550
  end
1674
2551
 
2552
+ # Raw media bytes. Text should not be sent as raw bytes, use the 'text' field.
2553
+ class GoogleCloudAiplatformV1Blob
2554
+ include Google::Apis::Core::Hashable
2555
+
2556
+ # Required. Raw bytes for media formats.
2557
+ # Corresponds to the JSON property `data`
2558
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
2559
+ # @return [String]
2560
+ attr_accessor :data
2561
+
2562
+ # Required. The IANA standard MIME type of the source data.
2563
+ # Corresponds to the JSON property `mimeType`
2564
+ # @return [String]
2565
+ attr_accessor :mime_type
2566
+
2567
+ def initialize(**args)
2568
+ update!(**args)
2569
+ end
2570
+
2571
+ # Update properties of this object
2572
+ def update!(**args)
2573
+ @data = args[:data] if args.key?(:data)
2574
+ @mime_type = args[:mime_type] if args.key?(:mime_type)
2575
+ end
2576
+ end
2577
+
1675
2578
  # Config for blur baseline. When enabled, a linear path from the maximally
1676
2579
  # blurred image to the input image is created. Using a blurred baseline instead
1677
2580
  # of zero (black image) is motivated by the BlurIG approach explained here:
@@ -2055,6 +2958,37 @@ module Google
2055
2958
  end
2056
2959
  end
2057
2960
 
2961
+ # The base structured datatype containing multi-part content of a message. A `
2962
+ # Content` includes a `role` field designating the producer of the `Content` and
2963
+ # a `parts` field containing multi-part data that contains the content of the
2964
+ # message turn.
2965
+ class GoogleCloudAiplatformV1Content
2966
+ include Google::Apis::Core::Hashable
2967
+
2968
+ # Required. Ordered `Parts` that constitute a single message. Parts may have
2969
+ # different IANA MIME types.
2970
+ # Corresponds to the JSON property `parts`
2971
+ # @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Part>]
2972
+ attr_accessor :parts
2973
+
2974
+ # Optional. The producer of the content. Must be either 'user' or 'model'.
2975
+ # Useful to set for multi-turn conversations, otherwise can be left blank or
2976
+ # unset.
2977
+ # Corresponds to the JSON property `role`
2978
+ # @return [String]
2979
+ attr_accessor :role
2980
+
2981
+ def initialize(**args)
2982
+ update!(**args)
2983
+ end
2984
+
2985
+ # Update properties of this object
2986
+ def update!(**args)
2987
+ @parts = args[:parts] if args.key?(:parts)
2988
+ @role = args[:role] if args.key?(:role)
2989
+ end
2990
+ end
2991
+
2058
2992
  # Instance of a general context.
2059
2993
  class GoogleCloudAiplatformV1Context
2060
2994
  include Google::Apis::Core::Hashable
@@ -2239,19 +3173,32 @@ module Google
2239
3173
  class GoogleCloudAiplatformV1CountTokensRequest
2240
3174
  include Google::Apis::Core::Hashable
2241
3175
 
3176
+ # Required. Input content.
3177
+ # Corresponds to the JSON property `contents`
3178
+ # @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Content>]
3179
+ attr_accessor :contents
3180
+
2242
3181
  # Required. The instances that are the input to token counting call. Schema is
2243
3182
  # identical to the prediction schema of the underlying model.
2244
3183
  # Corresponds to the JSON property `instances`
2245
3184
  # @return [Array<Object>]
2246
3185
  attr_accessor :instances
2247
3186
 
3187
+ # Required. The name of the publisher model requested to serve the prediction.
3188
+ # Format: `projects/`project`/locations/`location`/publishers/*/models/*`
3189
+ # Corresponds to the JSON property `model`
3190
+ # @return [String]
3191
+ attr_accessor :model
3192
+
2248
3193
  def initialize(**args)
2249
3194
  update!(**args)
2250
3195
  end
2251
3196
 
2252
3197
  # Update properties of this object
2253
3198
  def update!(**args)
3199
+ @contents = args[:contents] if args.key?(:contents)
2254
3200
  @instances = args[:instances] if args.key?(:instances)
3201
+ @model = args[:model] if args.key?(:model)
2255
3202
  end
2256
3203
  end
2257
3204
 
@@ -2972,6 +3919,19 @@ module Google
2972
3919
  # @return [String]
2973
3920
  attr_accessor :experiment_run
2974
3921
 
3922
+ # Optional. The name of the Model resources for which to generate a mapping to
3923
+ # artifact URIs. Applicable only to some of the Google-provided custom jobs.
3924
+ # Format: `projects/`project`/locations/`location`/models/`model`` In order to
3925
+ # retrieve a specific version of the model, also provide the version ID or
3926
+ # version alias. Example: `projects/`project`/locations/`location`/models/`model`
3927
+ # @2` or `projects/`project`/locations/`location`/models/`model`@golden` If no
3928
+ # version ID or alias is specified, the "default" version will be returned. The "
3929
+ # default" version alias is created for the first version of the model, and can
3930
+ # be moved to other versions later on. There will be exactly one default version.
3931
+ # Corresponds to the JSON property `models`
3932
+ # @return [Array<String>]
3933
+ attr_accessor :models
3934
+
2975
3935
  # Optional. The full name of the Compute Engine [network](/compute/docs/networks-
2976
3936
  # and-firewalls#networks) to which the Job should be peered. For example, `
2977
3937
  # projects/12345/global/networks/myVPC`. [Format](/compute/docs/reference/rest/
@@ -3038,6 +3998,7 @@ module Google
3038
3998
  @enable_web_access = args[:enable_web_access] if args.key?(:enable_web_access)
3039
3999
  @experiment = args[:experiment] if args.key?(:experiment)
3040
4000
  @experiment_run = args[:experiment_run] if args.key?(:experiment_run)
4001
+ @models = args[:models] if args.key?(:models)
3041
4002
  @network = args[:network] if args.key?(:network)
3042
4003
  @protected_artifact_location_id = args[:protected_artifact_location_id] if args.key?(:protected_artifact_location_id)
3043
4004
  @reserved_ip_ranges = args[:reserved_ip_ranges] if args.key?(:reserved_ip_ranges)
@@ -4076,6 +5037,11 @@ module Google
4076
5037
  # @return [String]
4077
5038
  attr_accessor :deployed_index_id
4078
5039
 
5040
+ # Output only. The display name of the DeployedIndex.
5041
+ # Corresponds to the JSON property `displayName`
5042
+ # @return [String]
5043
+ attr_accessor :display_name
5044
+
4079
5045
  # Immutable. A resource name of the IndexEndpoint.
4080
5046
  # Corresponds to the JSON property `indexEndpoint`
4081
5047
  # @return [String]
@@ -4088,6 +5054,7 @@ module Google
4088
5054
  # Update properties of this object
4089
5055
  def update!(**args)
4090
5056
  @deployed_index_id = args[:deployed_index_id] if args.key?(:deployed_index_id)
5057
+ @display_name = args[:display_name] if args.key?(:display_name)
4091
5058
  @index_endpoint = args[:index_endpoint] if args.key?(:index_endpoint)
4092
5059
  end
4093
5060
  end
@@ -4184,6 +5151,13 @@ module Google
4184
5151
  # @return [String]
4185
5152
  attr_accessor :service_account
4186
5153
 
5154
+ # The resource name of the shared DeploymentResourcePool to deploy on. Format: `
5155
+ # projects/`project`/locations/`location`/deploymentResourcePools/`
5156
+ # deployment_resource_pool``
5157
+ # Corresponds to the JSON property `sharedResources`
5158
+ # @return [String]
5159
+ attr_accessor :shared_resources
5160
+
4187
5161
  def initialize(**args)
4188
5162
  update!(**args)
4189
5163
  end
@@ -4202,6 +5176,7 @@ module Google
4202
5176
  @model_version_id = args[:model_version_id] if args.key?(:model_version_id)
4203
5177
  @private_endpoints = args[:private_endpoints] if args.key?(:private_endpoints)
4204
5178
  @service_account = args[:service_account] if args.key?(:service_account)
5179
+ @shared_resources = args[:shared_resources] if args.key?(:shared_resources)
4205
5180
  end
4206
5181
  end
4207
5182
 
@@ -4291,6 +5266,104 @@ module Google
4291
5266
  end
4292
5267
  end
4293
5268
 
5269
+ # Request message for PredictionService.DirectPredict.
5270
+ class GoogleCloudAiplatformV1DirectPredictRequest
5271
+ include Google::Apis::Core::Hashable
5272
+
5273
+ # The prediction input.
5274
+ # Corresponds to the JSON property `inputs`
5275
+ # @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Tensor>]
5276
+ attr_accessor :inputs
5277
+
5278
+ # A tensor value type.
5279
+ # Corresponds to the JSON property `parameters`
5280
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Tensor]
5281
+ attr_accessor :parameters
5282
+
5283
+ def initialize(**args)
5284
+ update!(**args)
5285
+ end
5286
+
5287
+ # Update properties of this object
5288
+ def update!(**args)
5289
+ @inputs = args[:inputs] if args.key?(:inputs)
5290
+ @parameters = args[:parameters] if args.key?(:parameters)
5291
+ end
5292
+ end
5293
+
5294
+ # Response message for PredictionService.DirectPredict.
5295
+ class GoogleCloudAiplatformV1DirectPredictResponse
5296
+ include Google::Apis::Core::Hashable
5297
+
5298
+ # The prediction output.
5299
+ # Corresponds to the JSON property `outputs`
5300
+ # @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Tensor>]
5301
+ attr_accessor :outputs
5302
+
5303
+ # A tensor value type.
5304
+ # Corresponds to the JSON property `parameters`
5305
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Tensor]
5306
+ attr_accessor :parameters
5307
+
5308
+ def initialize(**args)
5309
+ update!(**args)
5310
+ end
5311
+
5312
+ # Update properties of this object
5313
+ def update!(**args)
5314
+ @outputs = args[:outputs] if args.key?(:outputs)
5315
+ @parameters = args[:parameters] if args.key?(:parameters)
5316
+ end
5317
+ end
5318
+
5319
+ # Request message for PredictionService.DirectRawPredict.
5320
+ class GoogleCloudAiplatformV1DirectRawPredictRequest
5321
+ include Google::Apis::Core::Hashable
5322
+
5323
+ # The prediction input.
5324
+ # Corresponds to the JSON property `input`
5325
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
5326
+ # @return [String]
5327
+ attr_accessor :input
5328
+
5329
+ # Fully qualified name of the API method being invoked to perform predictions.
5330
+ # Format: `/namespace.Service/Method/` Example: `/tensorflow.serving.
5331
+ # PredictionService/Predict`
5332
+ # Corresponds to the JSON property `methodName`
5333
+ # @return [String]
5334
+ attr_accessor :method_name
5335
+
5336
+ def initialize(**args)
5337
+ update!(**args)
5338
+ end
5339
+
5340
+ # Update properties of this object
5341
+ def update!(**args)
5342
+ @input = args[:input] if args.key?(:input)
5343
+ @method_name = args[:method_name] if args.key?(:method_name)
5344
+ end
5345
+ end
5346
+
5347
+ # Response message for PredictionService.DirectRawPredict.
5348
+ class GoogleCloudAiplatformV1DirectRawPredictResponse
5349
+ include Google::Apis::Core::Hashable
5350
+
5351
+ # The prediction output.
5352
+ # Corresponds to the JSON property `output`
5353
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
5354
+ # @return [String]
5355
+ attr_accessor :output
5356
+
5357
+ def initialize(**args)
5358
+ update!(**args)
5359
+ end
5360
+
5361
+ # Update properties of this object
5362
+ def update!(**args)
5363
+ @output = args[:output] if args.key?(:output)
5364
+ end
5365
+ end
5366
+
4294
5367
  # Represents the spec of disk options.
4295
5368
  class GoogleCloudAiplatformV1DiskSpec
4296
5369
  include Google::Apis::Core::Hashable
@@ -5683,6 +6756,22 @@ module Google
5683
6756
  class GoogleCloudAiplatformV1ExportDataConfig
5684
6757
  include Google::Apis::Core::Hashable
5685
6758
 
6759
+ # The Cloud Storage URI that points to a YAML file describing the annotation
6760
+ # schema. The schema is defined as an OpenAPI 3.0.2 [Schema Object](https://
6761
+ # github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
6762
+ # The schema files that can be used here are found in gs://google-cloud-
6763
+ # aiplatform/schema/dataset/annotation/, note that the chosen schema must be
6764
+ # consistent with metadata of the Dataset specified by dataset_id. Only used for
6765
+ # custom training data export use cases. Only applicable to Datasets that have
6766
+ # DataItems and Annotations. Only Annotations that both match this schema and
6767
+ # belong to DataItems not ignored by the split method are used in respectively
6768
+ # training, validation or test role, depending on the role of the DataItem they
6769
+ # are on. When used in conjunction with annotations_filter, the Annotations used
6770
+ # for training are filtered by both annotations_filter and annotation_schema_uri.
6771
+ # Corresponds to the JSON property `annotationSchemaUri`
6772
+ # @return [String]
6773
+ attr_accessor :annotation_schema_uri
6774
+
5686
6775
  # An expression for filtering what part of the Dataset is to be exported. Only
5687
6776
  # Annotations that match this filter will be exported. The filter syntax is the
5688
6777
  # same as in ListAnnotations.
@@ -5690,6 +6779,20 @@ module Google
5690
6779
  # @return [String]
5691
6780
  attr_accessor :annotations_filter
5692
6781
 
6782
+ # Indicates the usage of the exported files.
6783
+ # Corresponds to the JSON property `exportUse`
6784
+ # @return [String]
6785
+ attr_accessor :export_use
6786
+
6787
+ # Assigns input data to training, validation, and test sets based on the given
6788
+ # filters, data pieces not matched by any filter are ignored. Currently only
6789
+ # supported for Datasets containing DataItems. If any of the filters in this
6790
+ # message are to match nothing, then they can be set as '-' (the minus sign).
6791
+ # Supported only for unstructured Datasets.
6792
+ # Corresponds to the JSON property `filterSplit`
6793
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExportFilterSplit]
6794
+ attr_accessor :filter_split
6795
+
5693
6796
  # Assigns the input data to training, validation, and test sets as per the given
5694
6797
  # fractions. Any of `training_fraction`, `validation_fraction` and `
5695
6798
  # test_fraction` may optionally be provided, they must sum to up to 1. If the
@@ -5705,15 +6808,32 @@ module Google
5705
6808
  # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GcsDestination]
5706
6809
  attr_accessor :gcs_destination
5707
6810
 
6811
+ # The ID of a SavedQuery (annotation set) under the Dataset specified by
6812
+ # dataset_id used for filtering Annotations for training. Only used for custom
6813
+ # training data export use cases. Only applicable to Datasets that have
6814
+ # SavedQueries. Only Annotations that are associated with this SavedQuery are
6815
+ # used in respectively training. When used in conjunction with
6816
+ # annotations_filter, the Annotations used for training are filtered by both
6817
+ # saved_query_id and annotations_filter. Only one of saved_query_id and
6818
+ # annotation_schema_uri should be specified as both of them represent the same
6819
+ # thing: problem type.
6820
+ # Corresponds to the JSON property `savedQueryId`
6821
+ # @return [String]
6822
+ attr_accessor :saved_query_id
6823
+
5708
6824
  def initialize(**args)
5709
6825
  update!(**args)
5710
6826
  end
5711
6827
 
5712
6828
  # Update properties of this object
5713
6829
  def update!(**args)
6830
+ @annotation_schema_uri = args[:annotation_schema_uri] if args.key?(:annotation_schema_uri)
5714
6831
  @annotations_filter = args[:annotations_filter] if args.key?(:annotations_filter)
6832
+ @export_use = args[:export_use] if args.key?(:export_use)
6833
+ @filter_split = args[:filter_split] if args.key?(:filter_split)
5715
6834
  @fraction_split = args[:fraction_split] if args.key?(:fraction_split)
5716
6835
  @gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination)
6836
+ @saved_query_id = args[:saved_query_id] if args.key?(:saved_query_id)
5717
6837
  end
5718
6838
  end
5719
6839
 
@@ -5767,7 +6887,14 @@ module Google
5767
6887
  class GoogleCloudAiplatformV1ExportDataResponse
5768
6888
  include Google::Apis::Core::Hashable
5769
6889
 
5770
- # All of the files that are exported in this export operation.
6890
+ # Stats of data used for train or evaluate the Model.
6891
+ # Corresponds to the JSON property `dataStats`
6892
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ModelDataStats]
6893
+ attr_accessor :data_stats
6894
+
6895
+ # All of the files that are exported in this export operation. For custom code
6896
+ # training export, only three (training, validation and test) GCS paths in
6897
+ # wildcard format are populated (e.g., gs://.../training-*).
5771
6898
  # Corresponds to the JSON property `exportedFiles`
5772
6899
  # @return [Array<String>]
5773
6900
  attr_accessor :exported_files
@@ -5778,6 +6905,7 @@ module Google
5778
6905
 
5779
6906
  # Update properties of this object
5780
6907
  def update!(**args)
6908
+ @data_stats = args[:data_stats] if args.key?(:data_stats)
5781
6909
  @exported_files = args[:exported_files] if args.key?(:exported_files)
5782
6910
  end
5783
6911
  end
@@ -5899,21 +7027,68 @@ module Google
5899
7027
 
5900
7028
  # Update properties of this object
5901
7029
  def update!(**args)
5902
- @snapshot_time = args[:snapshot_time] if args.key?(:snapshot_time)
5903
- @start_time = args[:start_time] if args.key?(:start_time)
7030
+ @snapshot_time = args[:snapshot_time] if args.key?(:snapshot_time)
7031
+ @start_time = args[:start_time] if args.key?(:start_time)
7032
+ end
7033
+ end
7034
+
7035
+ # Response message for FeaturestoreService.ExportFeatureValues.
7036
+ class GoogleCloudAiplatformV1ExportFeatureValuesResponse
7037
+ include Google::Apis::Core::Hashable
7038
+
7039
+ def initialize(**args)
7040
+ update!(**args)
7041
+ end
7042
+
7043
+ # Update properties of this object
7044
+ def update!(**args)
5904
7045
  end
5905
7046
  end
5906
7047
 
5907
- # Response message for FeaturestoreService.ExportFeatureValues.
5908
- class GoogleCloudAiplatformV1ExportFeatureValuesResponse
7048
+ # Assigns input data to training, validation, and test sets based on the given
7049
+ # filters, data pieces not matched by any filter are ignored. Currently only
7050
+ # supported for Datasets containing DataItems. If any of the filters in this
7051
+ # message are to match nothing, then they can be set as '-' (the minus sign).
7052
+ # Supported only for unstructured Datasets.
7053
+ class GoogleCloudAiplatformV1ExportFilterSplit
5909
7054
  include Google::Apis::Core::Hashable
5910
7055
 
7056
+ # Required. A filter on DataItems of the Dataset. DataItems that match this
7057
+ # filter are used to test the Model. A filter with same syntax as the one used
7058
+ # in DatasetService.ListDataItems may be used. If a single DataItem is matched
7059
+ # by more than one of the FilterSplit filters, then it is assigned to the first
7060
+ # set that applies to it in the training, validation, test order.
7061
+ # Corresponds to the JSON property `testFilter`
7062
+ # @return [String]
7063
+ attr_accessor :test_filter
7064
+
7065
+ # Required. A filter on DataItems of the Dataset. DataItems that match this
7066
+ # filter are used to train the Model. A filter with same syntax as the one used
7067
+ # in DatasetService.ListDataItems may be used. If a single DataItem is matched
7068
+ # by more than one of the FilterSplit filters, then it is assigned to the first
7069
+ # set that applies to it in the training, validation, test order.
7070
+ # Corresponds to the JSON property `trainingFilter`
7071
+ # @return [String]
7072
+ attr_accessor :training_filter
7073
+
7074
+ # Required. A filter on DataItems of the Dataset. DataItems that match this
7075
+ # filter are used to validate the Model. A filter with same syntax as the one
7076
+ # used in DatasetService.ListDataItems may be used. If a single DataItem is
7077
+ # matched by more than one of the FilterSplit filters, then it is assigned to
7078
+ # the first set that applies to it in the training, validation, test order.
7079
+ # Corresponds to the JSON property `validationFilter`
7080
+ # @return [String]
7081
+ attr_accessor :validation_filter
7082
+
5911
7083
  def initialize(**args)
5912
7084
  update!(**args)
5913
7085
  end
5914
7086
 
5915
7087
  # Update properties of this object
5916
7088
  def update!(**args)
7089
+ @test_filter = args[:test_filter] if args.key?(:test_filter)
7090
+ @training_filter = args[:training_filter] if args.key?(:training_filter)
7091
+ @validation_filter = args[:validation_filter] if args.key?(:validation_filter)
5917
7092
  end
5918
7093
  end
5919
7094
 
@@ -6276,7 +7451,7 @@ module Google
6276
7451
  # @return [Hash<String,String>]
6277
7452
  attr_accessor :labels
6278
7453
 
6279
- # Output only. Name of the FeatureGroup. Format: `projects/`project`/locations/`
7454
+ # Identifier. Name of the FeatureGroup. Format: `projects/`project`/locations/`
6280
7455
  # location`/featureGroups/`featureGroup``
6281
7456
  # Corresponds to the JSON property `name`
6282
7457
  # @return [String]
@@ -6447,7 +7622,7 @@ module Google
6447
7622
  # @return [Hash<String,String>]
6448
7623
  attr_accessor :labels
6449
7624
 
6450
- # Output only. Name of the FeatureOnlineStore. Format: `projects/`project`/
7625
+ # Identifier. Name of the FeatureOnlineStore. Format: `projects/`project`/
6451
7626
  # locations/`location`/featureOnlineStores/`featureOnlineStore``
6452
7627
  # Corresponds to the JSON property `name`
6453
7628
  # @return [String]
@@ -6825,16 +8000,14 @@ module Google
6825
8000
  # @return [Hash<String,String>]
6826
8001
  attr_accessor :labels
6827
8002
 
6828
- # Output only. Name of the FeatureView. Format: `projects/`project`/locations/`
8003
+ # Identifier. Name of the FeatureView. Format: `projects/`project`/locations/`
6829
8004
  # location`/featureOnlineStores/`feature_online_store`/featureViews/`
6830
8005
  # feature_view``
6831
8006
  # Corresponds to the JSON property `name`
6832
8007
  # @return [String]
6833
8008
  attr_accessor :name
6834
8009
 
6835
- # Configures when data is to be synced/updated for this FeatureView. At the end
6836
- # of the sync the latest featureValues for each entityId of this FeatureView are
6837
- # made ready for online serving.
8010
+ # Configuration for Sync. Only one option is set.
6838
8011
  # Corresponds to the JSON property `syncConfig`
6839
8012
  # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1FeatureViewSyncConfig]
6840
8013
  attr_accessor :sync_config
@@ -6974,8 +8147,8 @@ module Google
6974
8147
  # @return [Google::Apis::AiplatformV1::GoogleRpcStatus]
6975
8148
  attr_accessor :final_status
6976
8149
 
6977
- # Output only. Name of the FeatureViewSync. Format: `projects/`project`/
6978
- # locations/`location`/featureOnlineStores/`feature_online_store`/featureViews/`
8150
+ # Identifier. Name of the FeatureViewSync. Format: `projects/`project`/locations/
8151
+ # `location`/featureOnlineStores/`feature_online_store`/featureViews/`
6979
8152
  # feature_view`/featureViewSyncs/`feature_view_sync``
6980
8153
  # Corresponds to the JSON property `name`
6981
8154
  # @return [String]
@@ -7002,7 +8175,7 @@ module Google
7002
8175
  end
7003
8176
  end
7004
8177
 
7005
- #
8178
+ # Configuration for Sync. Only one option is set.
7006
8179
  class GoogleCloudAiplatformV1FeatureViewSyncConfig
7007
8180
  include Google::Apis::Core::Hashable
7008
8181
 
@@ -7415,6 +8588,31 @@ module Google
7415
8588
  end
7416
8589
  end
7417
8590
 
8591
+ # URI based data.
8592
+ class GoogleCloudAiplatformV1FileData
8593
+ include Google::Apis::Core::Hashable
8594
+
8595
+ # Required. URI.
8596
+ # Corresponds to the JSON property `fileUri`
8597
+ # @return [String]
8598
+ attr_accessor :file_uri
8599
+
8600
+ # Required. The IANA standard MIME type of the source data.
8601
+ # Corresponds to the JSON property `mimeType`
8602
+ # @return [String]
8603
+ attr_accessor :mime_type
8604
+
8605
+ def initialize(**args)
8606
+ update!(**args)
8607
+ end
8608
+
8609
+ # Update properties of this object
8610
+ def update!(**args)
8611
+ @file_uri = args[:file_uri] if args.key?(:file_uri)
8612
+ @mime_type = args[:mime_type] if args.key?(:mime_type)
8613
+ end
8614
+ end
8615
+
7418
8616
  # Assigns input data to training, validation, and test sets based on the given
7419
8617
  # filters, data pieces not matched by any filter are ignored. Currently only
7420
8618
  # supported for Datasets containing DataItems. If any of the filters in this
@@ -10832,6 +12030,11 @@ module Google
10832
12030
  # @return [String]
10833
12031
  attr_accessor :create_time
10834
12032
 
12033
+ # Stats of data used for train or evaluate the Model.
12034
+ # Corresponds to the JSON property `dataStats`
12035
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ModelDataStats]
12036
+ attr_accessor :data_stats
12037
+
10835
12038
  # Output only. The pointers to DeployedModels created from this Model. Note that
10836
12039
  # Model could have been deployed to Endpoints in different Locations.
10837
12040
  # Corresponds to the JSON property `deployedModels`
@@ -11038,6 +12241,7 @@ module Google
11038
12241
  @artifact_uri = args[:artifact_uri] if args.key?(:artifact_uri)
11039
12242
  @container_spec = args[:container_spec] if args.key?(:container_spec)
11040
12243
  @create_time = args[:create_time] if args.key?(:create_time)
12244
+ @data_stats = args[:data_stats] if args.key?(:data_stats)
11041
12245
  @deployed_models = args[:deployed_models] if args.key?(:deployed_models)
11042
12246
  @description = args[:description] if args.key?(:description)
11043
12247
  @display_name = args[:display_name] if args.key?(:display_name)
@@ -11136,8 +12340,7 @@ module Google
11136
12340
  # @return [Array<String>]
11137
12341
  attr_accessor :command
11138
12342
 
11139
- # Immutable. Deployment timeout. TODO (b/306244185): Revise documentation before
11140
- # exposing.
12343
+ # Immutable. Deployment timeout. Limit for deployment timeout is 2 hours.
11141
12344
  # Corresponds to the JSON property `deploymentTimeout`
11142
12345
  # @return [String]
11143
12346
  attr_accessor :deployment_timeout
@@ -11157,6 +12360,16 @@ module Google
11157
12360
  # @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EnvVar>]
11158
12361
  attr_accessor :env
11159
12362
 
12363
+ # Immutable. List of ports to expose from the container. Vertex AI sends gRPC
12364
+ # prediction requests that it receives to the first port on this list. Vertex AI
12365
+ # also sends liveness and health checks to this port. If you do not specify this
12366
+ # field, gRPC requests to the container will be disabled. Vertex AI does not use
12367
+ # ports other than the first one listed. This field corresponds to the `ports`
12368
+ # field of the Kubernetes Containers v1 core API.
12369
+ # Corresponds to the JSON property `grpcPorts`
12370
+ # @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Port>]
12371
+ attr_accessor :grpc_ports
12372
+
11160
12373
  # Probe describes a health check to be performed against a container to
11161
12374
  # determine whether it is alive or ready to receive traffic.
11162
12375
  # Corresponds to the JSON property `healthProbe`
@@ -11239,7 +12452,7 @@ module Google
11239
12452
  attr_accessor :predict_route
11240
12453
 
11241
12454
  # Immutable. The amount of the VM memory to reserve as the shared memory for the
11242
- # model in megabytes. TODO (b/306244185): Revise documentation before exposing.
12455
+ # model in megabytes.
11243
12456
  # Corresponds to the JSON property `sharedMemorySizeMb`
11244
12457
  # @return [Fixnum]
11245
12458
  attr_accessor :shared_memory_size_mb
@@ -11260,6 +12473,7 @@ module Google
11260
12473
  @command = args[:command] if args.key?(:command)
11261
12474
  @deployment_timeout = args[:deployment_timeout] if args.key?(:deployment_timeout)
11262
12475
  @env = args[:env] if args.key?(:env)
12476
+ @grpc_ports = args[:grpc_ports] if args.key?(:grpc_ports)
11263
12477
  @health_probe = args[:health_probe] if args.key?(:health_probe)
11264
12478
  @health_route = args[:health_route] if args.key?(:health_route)
11265
12479
  @image_uri = args[:image_uri] if args.key?(:image_uri)
@@ -11270,6 +12484,59 @@ module Google
11270
12484
  end
11271
12485
  end
11272
12486
 
12487
+ # Stats of data used for train or evaluate the Model.
12488
+ class GoogleCloudAiplatformV1ModelDataStats
12489
+ include Google::Apis::Core::Hashable
12490
+
12491
+ # Number of Annotations that are used for evaluating this Model. If the Model is
12492
+ # evaluated multiple times, this will be the number of test Annotations used by
12493
+ # the first evaluation. If the Model is not evaluated, the number is 0.
12494
+ # Corresponds to the JSON property `testAnnotationsCount`
12495
+ # @return [Fixnum]
12496
+ attr_accessor :test_annotations_count
12497
+
12498
+ # Number of DataItems that were used for evaluating this Model. If the Model is
12499
+ # evaluated multiple times, this will be the number of test DataItems used by
12500
+ # the first evaluation. If the Model is not evaluated, the number is 0.
12501
+ # Corresponds to the JSON property `testDataItemsCount`
12502
+ # @return [Fixnum]
12503
+ attr_accessor :test_data_items_count
12504
+
12505
+ # Number of Annotations that are used for training this Model.
12506
+ # Corresponds to the JSON property `trainingAnnotationsCount`
12507
+ # @return [Fixnum]
12508
+ attr_accessor :training_annotations_count
12509
+
12510
+ # Number of DataItems that were used for training this Model.
12511
+ # Corresponds to the JSON property `trainingDataItemsCount`
12512
+ # @return [Fixnum]
12513
+ attr_accessor :training_data_items_count
12514
+
12515
+ # Number of Annotations that are used for validating this Model during training.
12516
+ # Corresponds to the JSON property `validationAnnotationsCount`
12517
+ # @return [Fixnum]
12518
+ attr_accessor :validation_annotations_count
12519
+
12520
+ # Number of DataItems that were used for validating this Model during training.
12521
+ # Corresponds to the JSON property `validationDataItemsCount`
12522
+ # @return [Fixnum]
12523
+ attr_accessor :validation_data_items_count
12524
+
12525
+ def initialize(**args)
12526
+ update!(**args)
12527
+ end
12528
+
12529
+ # Update properties of this object
12530
+ def update!(**args)
12531
+ @test_annotations_count = args[:test_annotations_count] if args.key?(:test_annotations_count)
12532
+ @test_data_items_count = args[:test_data_items_count] if args.key?(:test_data_items_count)
12533
+ @training_annotations_count = args[:training_annotations_count] if args.key?(:training_annotations_count)
12534
+ @training_data_items_count = args[:training_data_items_count] if args.key?(:training_data_items_count)
12535
+ @validation_annotations_count = args[:validation_annotations_count] if args.key?(:validation_annotations_count)
12536
+ @validation_data_items_count = args[:validation_data_items_count] if args.key?(:validation_data_items_count)
12537
+ end
12538
+ end
12539
+
11273
12540
  # ModelDeploymentMonitoringBigQueryTable specifies the BigQuery table name as
11274
12541
  # well as some information of the logs stored in this table.
11275
12542
  class GoogleCloudAiplatformV1ModelDeploymentMonitoringBigQueryTable
@@ -13433,6 +14700,47 @@ module Google
13433
14700
  end
13434
14701
  end
13435
14702
 
14703
+ # A datatype containing media that is part of a multi-part `Content` message. A `
14704
+ # Part` consists of data which has an associated datatype. A `Part` can only
14705
+ # contain one of the accepted types in `Part.data`. A `Part` must have a fixed
14706
+ # IANA MIME type identifying the type and subtype of the media if `inline_data`
14707
+ # or `file_data` field is filled with raw bytes.
14708
+ class GoogleCloudAiplatformV1Part
14709
+ include Google::Apis::Core::Hashable
14710
+
14711
+ # URI based data.
14712
+ # Corresponds to the JSON property `fileData`
14713
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1FileData]
14714
+ attr_accessor :file_data
14715
+
14716
+ # Raw media bytes. Text should not be sent as raw bytes, use the 'text' field.
14717
+ # Corresponds to the JSON property `inlineData`
14718
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Blob]
14719
+ attr_accessor :inline_data
14720
+
14721
+ # Optional. Text part (can be code).
14722
+ # Corresponds to the JSON property `text`
14723
+ # @return [String]
14724
+ attr_accessor :text
14725
+
14726
+ # Metadata describes the input video content.
14727
+ # Corresponds to the JSON property `videoMetadata`
14728
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1VideoMetadata]
14729
+ attr_accessor :video_metadata
14730
+
14731
+ def initialize(**args)
14732
+ update!(**args)
14733
+ end
14734
+
14735
+ # Update properties of this object
14736
+ def update!(**args)
14737
+ @file_data = args[:file_data] if args.key?(:file_data)
14738
+ @inline_data = args[:inline_data] if args.key?(:inline_data)
14739
+ @text = args[:text] if args.key?(:text)
14740
+ @video_metadata = args[:video_metadata] if args.key?(:video_metadata)
14741
+ end
14742
+ end
14743
+
13436
14744
  # Request message for JobService.PauseModelDeploymentMonitoringJob.
13437
14745
  class GoogleCloudAiplatformV1PauseModelDeploymentMonitoringJobRequest
13438
14746
  include Google::Apis::Core::Hashable
@@ -14461,6 +15769,11 @@ module Google
14461
15769
  # @return [String]
14462
15770
  attr_accessor :version_id
14463
15771
 
15772
+ # Optional. Indicates the state of the model version.
15773
+ # Corresponds to the JSON property `versionState`
15774
+ # @return [String]
15775
+ attr_accessor :version_state
15776
+
14464
15777
  def initialize(**args)
14465
15778
  update!(**args)
14466
15779
  end
@@ -14475,6 +15788,7 @@ module Google
14475
15788
  @publisher_model_template = args[:publisher_model_template] if args.key?(:publisher_model_template)
14476
15789
  @supported_actions = args[:supported_actions] if args.key?(:supported_actions)
14477
15790
  @version_id = args[:version_id] if args.key?(:version_id)
15791
+ @version_state = args[:version_state] if args.key?(:version_state)
14478
15792
  end
14479
15793
  end
14480
15794
 
@@ -14602,6 +15916,11 @@ module Google
14602
15916
  # @return [String]
14603
15917
  attr_accessor :model_display_name
14604
15918
 
15919
+ # Optional. The signed URI for ephemeral Cloud Storage access to model artifact.
15920
+ # Corresponds to the JSON property `publicArtifactUri`
15921
+ # @return [String]
15922
+ attr_accessor :public_artifact_uri
15923
+
14605
15924
  # The resource name of the shared DeploymentResourcePool to deploy on. Format: `
14606
15925
  # projects/`project`/locations/`location`/deploymentResourcePools/`
14607
15926
  # deployment_resource_pool``
@@ -14626,6 +15945,7 @@ module Google
14626
15945
  @dedicated_resources = args[:dedicated_resources] if args.key?(:dedicated_resources)
14627
15946
  @large_model_reference = args[:large_model_reference] if args.key?(:large_model_reference)
14628
15947
  @model_display_name = args[:model_display_name] if args.key?(:model_display_name)
15948
+ @public_artifact_uri = args[:public_artifact_uri] if args.key?(:public_artifact_uri)
14629
15949
  @shared_resources = args[:shared_resources] if args.key?(:shared_resources)
14630
15950
  @title = args[:title] if args.key?(:title)
14631
15951
  end
@@ -14712,6 +16032,11 @@ module Google
14712
16032
  class GoogleCloudAiplatformV1PublisherModelResourceReference
14713
16033
  include Google::Apis::Core::Hashable
14714
16034
 
16035
+ # Description of the resource.
16036
+ # Corresponds to the JSON property `description`
16037
+ # @return [String]
16038
+ attr_accessor :description
16039
+
14715
16040
  # The resource name of the Google Cloud resource.
14716
16041
  # Corresponds to the JSON property `resourceName`
14717
16042
  # @return [String]
@@ -14722,14 +16047,21 @@ module Google
14722
16047
  # @return [String]
14723
16048
  attr_accessor :uri
14724
16049
 
16050
+ # Use case (CUJ) of the resource.
16051
+ # Corresponds to the JSON property `useCase`
16052
+ # @return [String]
16053
+ attr_accessor :use_case
16054
+
14725
16055
  def initialize(**args)
14726
16056
  update!(**args)
14727
16057
  end
14728
16058
 
14729
16059
  # Update properties of this object
14730
16060
  def update!(**args)
16061
+ @description = args[:description] if args.key?(:description)
14731
16062
  @resource_name = args[:resource_name] if args.key?(:resource_name)
14732
16063
  @uri = args[:uri] if args.key?(:uri)
16064
+ @use_case = args[:use_case] if args.key?(:use_case)
14733
16065
  end
14734
16066
  end
14735
16067
 
@@ -17645,6 +18977,12 @@ module Google
17645
18977
  # @return [String]
17646
18978
  attr_accessor :enterprise_datastore
17647
18979
 
18980
+ # The grounding text passed inline with the Predict API. It can support up to 1
18981
+ # million token context.
18982
+ # Corresponds to the JSON property `inlineContext`
18983
+ # @return [String]
18984
+ attr_accessor :inline_context
18985
+
17648
18986
  # The type of the grounding checking source.
17649
18987
  # Corresponds to the JSON property `type`
17650
18988
  # @return [String]
@@ -17662,6 +19000,7 @@ module Google
17662
19000
  # Update properties of this object
17663
19001
  def update!(**args)
17664
19002
  @enterprise_datastore = args[:enterprise_datastore] if args.key?(:enterprise_datastore)
19003
+ @inline_context = args[:inline_context] if args.key?(:inline_context)
17665
19004
  @type = args[:type] if args.key?(:type)
17666
19005
  @vertex_ai_search_datastore = args[:vertex_ai_search_datastore] if args.key?(:vertex_ai_search_datastore)
17667
19006
  end
@@ -18706,6 +20045,11 @@ module Google
18706
20045
  # @return [Fixnum]
18707
20046
  attr_accessor :max_output_tokens
18708
20047
 
20048
+ # User-created prompt note. Note size limit is 2KB.
20049
+ # Corresponds to the JSON property `note`
20050
+ # @return [String]
20051
+ attr_accessor :note
20052
+
18709
20053
  # Type of the prompt dataset.
18710
20054
  # Corresponds to the JSON property `promptType`
18711
20055
  # @return [String]
@@ -18750,6 +20094,7 @@ module Google
18750
20094
  @gcs_uri = args[:gcs_uri] if args.key?(:gcs_uri)
18751
20095
  @grounding_config = args[:grounding_config] if args.key?(:grounding_config)
18752
20096
  @max_output_tokens = args[:max_output_tokens] if args.key?(:max_output_tokens)
20097
+ @note = args[:note] if args.key?(:note)
18753
20098
  @prompt_type = args[:prompt_type] if args.key?(:prompt_type)
18754
20099
  @stop_sequences = args[:stop_sequences] if args.key?(:stop_sequences)
18755
20100
  @temperature = args[:temperature] if args.key?(:temperature)
@@ -24819,6 +26164,45 @@ module Google
24819
26164
  end
24820
26165
  end
24821
26166
 
26167
+ # Metadata information for NotebookService.UpgradeNotebookRuntime.
26168
+ class GoogleCloudAiplatformV1UpgradeNotebookRuntimeOperationMetadata
26169
+ include Google::Apis::Core::Hashable
26170
+
26171
+ # Generic Metadata shared by all operations.
26172
+ # Corresponds to the JSON property `genericMetadata`
26173
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenericOperationMetadata]
26174
+ attr_accessor :generic_metadata
26175
+
26176
+ # A human-readable message that shows the intermediate progress details of
26177
+ # NotebookRuntime.
26178
+ # Corresponds to the JSON property `progressMessage`
26179
+ # @return [String]
26180
+ attr_accessor :progress_message
26181
+
26182
+ def initialize(**args)
26183
+ update!(**args)
26184
+ end
26185
+
26186
+ # Update properties of this object
26187
+ def update!(**args)
26188
+ @generic_metadata = args[:generic_metadata] if args.key?(:generic_metadata)
26189
+ @progress_message = args[:progress_message] if args.key?(:progress_message)
26190
+ end
26191
+ end
26192
+
26193
+ # Request message for NotebookService.UpgradeNotebookRuntime.
26194
+ class GoogleCloudAiplatformV1UpgradeNotebookRuntimeRequest
26195
+ include Google::Apis::Core::Hashable
26196
+
26197
+ def initialize(**args)
26198
+ update!(**args)
26199
+ end
26200
+
26201
+ # Update properties of this object
26202
+ def update!(**args)
26203
+ end
26204
+ end
26205
+
24822
26206
  # Details of ModelService.UploadModel operation.
24823
26207
  class GoogleCloudAiplatformV1UploadModelOperationMetadata
24824
26208
  include Google::Apis::Core::Hashable
@@ -25011,6 +26395,31 @@ module Google
25011
26395
  end
25012
26396
  end
25013
26397
 
26398
+ # Metadata describes the input video content.
26399
+ class GoogleCloudAiplatformV1VideoMetadata
26400
+ include Google::Apis::Core::Hashable
26401
+
26402
+ # Optional. The end offset of the video.
26403
+ # Corresponds to the JSON property `endOffset`
26404
+ # @return [String]
26405
+ attr_accessor :end_offset
26406
+
26407
+ # Optional. The start offset of the video.
26408
+ # Corresponds to the JSON property `startOffset`
26409
+ # @return [String]
26410
+ attr_accessor :start_offset
26411
+
26412
+ def initialize(**args)
26413
+ update!(**args)
26414
+ end
26415
+
26416
+ # Update properties of this object
26417
+ def update!(**args)
26418
+ @end_offset = args[:end_offset] if args.key?(:end_offset)
26419
+ @start_offset = args[:start_offset] if args.key?(:start_offset)
26420
+ end
26421
+ end
26422
+
25014
26423
  # Represents the spec of a worker pool in a job.
25015
26424
  class GoogleCloudAiplatformV1WorkerPoolSpec
25016
26425
  include Google::Apis::Core::Hashable
@@ -25770,6 +27179,47 @@ module Google
25770
27179
  end
25771
27180
  end
25772
27181
 
27182
+ # Represents a whole or partial calendar date, such as a birthday. The time of
27183
+ # day and time zone are either specified elsewhere or are insignificant. The
27184
+ # date is relative to the Gregorian Calendar. This can represent one of the
27185
+ # following: * A full date, with non-zero year, month, and day values. * A month
27186
+ # and day, with a zero year (for example, an anniversary). * A year on its own,
27187
+ # with a zero month and a zero day. * A year and month, with a zero day (for
27188
+ # example, a credit card expiration date). Related types: * google.type.
27189
+ # TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
27190
+ class GoogleTypeDate
27191
+ include Google::Apis::Core::Hashable
27192
+
27193
+ # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to
27194
+ # specify a year by itself or a year and month where the day isn't significant.
27195
+ # Corresponds to the JSON property `day`
27196
+ # @return [Fixnum]
27197
+ attr_accessor :day
27198
+
27199
+ # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month
27200
+ # and day.
27201
+ # Corresponds to the JSON property `month`
27202
+ # @return [Fixnum]
27203
+ attr_accessor :month
27204
+
27205
+ # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a
27206
+ # year.
27207
+ # Corresponds to the JSON property `year`
27208
+ # @return [Fixnum]
27209
+ attr_accessor :year
27210
+
27211
+ def initialize(**args)
27212
+ update!(**args)
27213
+ end
27214
+
27215
+ # Update properties of this object
27216
+ def update!(**args)
27217
+ @day = args[:day] if args.key?(:day)
27218
+ @month = args[:month] if args.key?(:month)
27219
+ @year = args[:year] if args.key?(:year)
27220
+ end
27221
+ end
27222
+
25773
27223
  # Represents a textual expression in the Common Expression Language (CEL) syntax.
25774
27224
  # CEL is a C-like expression language. The syntax and semantics of CEL are
25775
27225
  # documented at https://github.com/google/cel-spec. Example (Comparison): title:
@@ -25889,6 +27339,102 @@ module Google
25889
27339
  @units = args[:units] if args.key?(:units)
25890
27340
  end
25891
27341
  end
27342
+
27343
+ #
27344
+ class IntelligenceCloudAutomlXpsMetricEntry
27345
+ include Google::Apis::Core::Hashable
27346
+
27347
+ # For billing metrics that are using legacy sku's, set the legacy billing metric
27348
+ # id here. This will be sent to Chemist as the "cloudbilling.googleapis.com/
27349
+ # argentum_metric_id" label. Otherwise leave empty.
27350
+ # Corresponds to the JSON property `argentumMetricId`
27351
+ # @return [String]
27352
+ attr_accessor :argentum_metric_id
27353
+
27354
+ # A double value.
27355
+ # Corresponds to the JSON property `doubleValue`
27356
+ # @return [Float]
27357
+ attr_accessor :double_value
27358
+
27359
+ # A signed 64-bit integer value.
27360
+ # Corresponds to the JSON property `int64Value`
27361
+ # @return [Fixnum]
27362
+ attr_accessor :int64_value
27363
+
27364
+ # The metric name defined in the service configuration.
27365
+ # Corresponds to the JSON property `metricName`
27366
+ # @return [String]
27367
+ attr_accessor :metric_name
27368
+
27369
+ # Billing system labels for this (metric, value) pair.
27370
+ # Corresponds to the JSON property `systemLabels`
27371
+ # @return [Array<Google::Apis::AiplatformV1::IntelligenceCloudAutomlXpsMetricEntryLabel>]
27372
+ attr_accessor :system_labels
27373
+
27374
+ def initialize(**args)
27375
+ update!(**args)
27376
+ end
27377
+
27378
+ # Update properties of this object
27379
+ def update!(**args)
27380
+ @argentum_metric_id = args[:argentum_metric_id] if args.key?(:argentum_metric_id)
27381
+ @double_value = args[:double_value] if args.key?(:double_value)
27382
+ @int64_value = args[:int64_value] if args.key?(:int64_value)
27383
+ @metric_name = args[:metric_name] if args.key?(:metric_name)
27384
+ @system_labels = args[:system_labels] if args.key?(:system_labels)
27385
+ end
27386
+ end
27387
+
27388
+ #
27389
+ class IntelligenceCloudAutomlXpsMetricEntryLabel
27390
+ include Google::Apis::Core::Hashable
27391
+
27392
+ # The name of the label.
27393
+ # Corresponds to the JSON property `labelName`
27394
+ # @return [String]
27395
+ attr_accessor :label_name
27396
+
27397
+ # The value of the label.
27398
+ # Corresponds to the JSON property `labelValue`
27399
+ # @return [String]
27400
+ attr_accessor :label_value
27401
+
27402
+ def initialize(**args)
27403
+ update!(**args)
27404
+ end
27405
+
27406
+ # Update properties of this object
27407
+ def update!(**args)
27408
+ @label_name = args[:label_name] if args.key?(:label_name)
27409
+ @label_value = args[:label_value] if args.key?(:label_value)
27410
+ end
27411
+ end
27412
+
27413
+ #
27414
+ class IntelligenceCloudAutomlXpsReportingMetrics
27415
+ include Google::Apis::Core::Hashable
27416
+
27417
+ # The effective time training used. If set, this is used for quota management
27418
+ # and billing. Deprecated. AutoML BE doesn't use this. Don't set.
27419
+ # Corresponds to the JSON property `effectiveTrainingDuration`
27420
+ # @return [String]
27421
+ attr_accessor :effective_training_duration
27422
+
27423
+ # One entry per metric name. The values must be aggregated per metric name.
27424
+ # Corresponds to the JSON property `metricEntries`
27425
+ # @return [Array<Google::Apis::AiplatformV1::IntelligenceCloudAutomlXpsMetricEntry>]
27426
+ attr_accessor :metric_entries
27427
+
27428
+ def initialize(**args)
27429
+ update!(**args)
27430
+ end
27431
+
27432
+ # Update properties of this object
27433
+ def update!(**args)
27434
+ @effective_training_duration = args[:effective_training_duration] if args.key?(:effective_training_duration)
27435
+ @metric_entries = args[:metric_entries] if args.key?(:metric_entries)
27436
+ end
27437
+ end
25892
27438
  end
25893
27439
  end
25894
27440
  end