google-apis-aiplatform_v1beta1 0.12.0 → 0.13.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -22,6 +22,884 @@ module Google
22
22
  module Apis
23
23
  module AiplatformV1beta1
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::AiplatformV1beta1::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::AiplatformV1beta1::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::AiplatformV1beta1::CloudAiLargeModelsVisionImageRaiScores]
136
+ attr_accessor :image_rai_scores
137
+
138
+ # RAI info for image
139
+ # Corresponds to the JSON property `raiInfo`
140
+ # @return [Google::Apis::AiplatformV1beta1::CloudAiLargeModelsVisionRaiInfo]
141
+ attr_accessor :rai_info
142
+
143
+ # Semantic filter info for image.
144
+ # Corresponds to the JSON property `semanticFilterResponse`
145
+ # @return [Google::Apis::AiplatformV1beta1::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::AiplatformV1beta1::CloudAiLargeModelsVisionImage]
194
+ attr_accessor :image
195
+
196
+ # Video
197
+ # Corresponds to the JSON property `video`
198
+ # @return [Google::Apis::AiplatformV1beta1::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::AiplatformV1beta1::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::AiplatformV1beta1::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::AiplatformV1beta1::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::AiplatformV1beta1::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::AiplatformV1beta1::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::AiplatformV1beta1::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::AiplatformV1beta1::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::AiplatformV1beta1::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::AiplatformV1beta1::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::AiplatformV1beta1::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::AiplatformV1beta1::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::AiplatformV1beta1::CloudAiNlLlmProtoServicePromptFeedback]
653
+ attr_accessor :prompt_feedback
654
+
655
+ # Billable prediction metrics.
656
+ # Corresponds to the JSON property `reportingMetrics`
657
+ # @return [Google::Apis::AiplatformV1beta1::IntelligenceCloudAutomlXpsReportingMetrics]
658
+ attr_accessor :reporting_metrics
659
+
660
+ # Usage metadata about response(s).
661
+ # Corresponds to the JSON property `usageMetadata`
662
+ # @return [Google::Apis::AiplatformV1beta1::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::AiplatformV1beta1::CloudAiNlLlmProtoServicePartFileData]
685
+ attr_accessor :file_data
686
+
687
+ # Function call details.
688
+ # Corresponds to the JSON property `functionCall`
689
+ # @return [Google::Apis::AiplatformV1beta1::CloudAiNlLlmProtoServiceFunctionCall]
690
+ attr_accessor :function_call
691
+
692
+ # Function response details.
693
+ # Corresponds to the JSON property `functionResponse`
694
+ # @return [Google::Apis::AiplatformV1beta1::CloudAiNlLlmProtoServiceFunctionResponse]
695
+ attr_accessor :function_response
696
+
697
+ # Represents arbitrary blob data input.
698
+ # Corresponds to the JSON property `inlineData`
699
+ # @return [Google::Apis::AiplatformV1beta1::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::AiplatformV1beta1::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::AiplatformV1beta1::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::AiplatformV1beta1::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
@@ -1398,8 +2276,7 @@ module Google
1398
2276
  # Fields that will be excluded in the prediction instance that is sent to the
1399
2277
  # Model. Excluded will be attached to the batch prediction output if key_field
1400
2278
  # is not specified. When excluded_fields is populated, included_fields must be
1401
- # empty. The input must be JSONL with objects at each line, CSV, BigQuery or
1402
- # TfRecord.
2279
+ # empty. The input must be JSONL with objects at each line, BigQuery or TfRecord.
1403
2280
  # Corresponds to the JSON property `excludedFields`
1404
2281
  # @return [Array<String>]
1405
2282
  attr_accessor :excluded_fields
@@ -1408,7 +2285,7 @@ module Google
1408
2285
  # Model. If instance_type is `array`, the order of field names in
1409
2286
  # included_fields also determines the order of the values in the array. When
1410
2287
  # included_fields is populated, excluded_fields must be empty. The input must be
1411
- # JSONL with objects at each line, CSV, BigQuery or TfRecord.
2288
+ # JSONL with objects at each line, BigQuery or TfRecord.
1412
2289
  # Corresponds to the JSON property `includedFields`
1413
2290
  # @return [Array<String>]
1414
2291
  attr_accessor :included_fields
@@ -1737,17 +2614,17 @@ module Google
1737
2614
  end
1738
2615
  end
1739
2616
 
1740
- # Content blob.
2617
+ # Raw media bytes. Text should not be sent as raw bytes, use the 'text' field.
1741
2618
  class GoogleCloudAiplatformV1beta1Blob
1742
2619
  include Google::Apis::Core::Hashable
1743
2620
 
1744
- # Required. Data.
2621
+ # Required. Raw bytes for media formats.
1745
2622
  # Corresponds to the JSON property `data`
1746
2623
  # NOTE: Values are automatically base64 encoded/decoded in the client library.
1747
2624
  # @return [String]
1748
2625
  attr_accessor :data
1749
2626
 
1750
- # Required. Mime type of the data.
2627
+ # Required. The IANA standard MIME type of the source data.
1751
2628
  # Corresponds to the JSON property `mimeType`
1752
2629
  # @return [String]
1753
2630
  attr_accessor :mime_type
@@ -1897,7 +2774,7 @@ module Google
1897
2774
  end
1898
2775
  end
1899
2776
 
1900
- # Generated candidate.
2777
+ # A response candidate generated from the model.
1901
2778
  class GoogleCloudAiplatformV1beta1Candidate
1902
2779
  include Google::Apis::Core::Hashable
1903
2780
 
@@ -1906,18 +2783,22 @@ module Google
1906
2783
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CitationMetadata]
1907
2784
  attr_accessor :citation_metadata
1908
2785
 
1909
- # A single turn in a conversation with the model.
2786
+ # The base structured datatype containing multi-part content of a message. A `
2787
+ # Content` includes a `role` field designating the producer of the `Content` and
2788
+ # a `parts` field containing multi-part data that contains the content of the
2789
+ # message turn.
1910
2790
  # Corresponds to the JSON property `content`
1911
2791
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Content]
1912
2792
  attr_accessor :content
1913
2793
 
1914
- # Output only. A string that describes the filtering behavior in more detail.
1915
- # Only filled when reason is set.
2794
+ # Output only. Describes the reason the mode stopped generating tokens in more
2795
+ # detail. This is only filled when `finish_reason` is set.
1916
2796
  # Corresponds to the JSON property `finishMessage`
1917
2797
  # @return [String]
1918
2798
  attr_accessor :finish_message
1919
2799
 
1920
- # Output only. The reason why the model stopped generating tokens.
2800
+ # Output only. The reason why the model stopped generating tokens. If empty, the
2801
+ # model has not stopped generating the tokens.
1921
2802
  # Corresponds to the JSON property `finishReason`
1922
2803
  # @return [String]
1923
2804
  attr_accessor :finish_reason
@@ -1927,7 +2808,8 @@ module Google
1927
2808
  # @return [Fixnum]
1928
2809
  attr_accessor :index
1929
2810
 
1930
- # Output only. Safety ratings of the generated content.
2811
+ # Output only. List of ratings for the safety of a response candidate. There is
2812
+ # at most one rating per category.
1931
2813
  # Corresponds to the JSON property `safetyRatings`
1932
2814
  # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SafetyRating>]
1933
2815
  attr_accessor :safety_ratings
@@ -2271,19 +3153,22 @@ module Google
2271
3153
  end
2272
3154
  end
2273
3155
 
2274
- # A single turn in a conversation with the model.
3156
+ # The base structured datatype containing multi-part content of a message. A `
3157
+ # Content` includes a `role` field designating the producer of the `Content` and
3158
+ # a `parts` field containing multi-part data that contains the content of the
3159
+ # message turn.
2275
3160
  class GoogleCloudAiplatformV1beta1Content
2276
3161
  include Google::Apis::Core::Hashable
2277
3162
 
2278
- # Required. Ordered parts that make up a message. Parts may have different MIME
2279
- # types.
3163
+ # Required. Ordered `Parts` that constitute a single message. Parts may have
3164
+ # different IANA MIME types.
2280
3165
  # Corresponds to the JSON property `parts`
2281
3166
  # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Part>]
2282
3167
  attr_accessor :parts
2283
3168
 
2284
- # Optional. The role in a conversation associated with this content. Set it only
2285
- # if a content represents a turn in a conversations, otherwise no need to set
2286
- # role. Possible values: user, model.
3169
+ # Optional. The producer of the content. Must be either 'user' or 'model'.
3170
+ # Useful to set for multi-turn conversations, otherwise can be left blank or
3171
+ # unset.
2287
3172
  # Corresponds to the JSON property `role`
2288
3173
  # @return [String]
2289
3174
  attr_accessor :role
@@ -3331,6 +4216,19 @@ module Google
3331
4216
  # @return [String]
3332
4217
  attr_accessor :experiment_run
3333
4218
 
4219
+ # Optional. The name of the Model resources for which to generate a mapping to
4220
+ # artifact URIs. Applicable only to some of the Google-provided custom jobs.
4221
+ # Format: `projects/`project`/locations/`location`/models/`model`` In order to
4222
+ # retrieve a specific version of the model, also provide the version ID or
4223
+ # version alias. Example: `projects/`project`/locations/`location`/models/`model`
4224
+ # @2` or `projects/`project`/locations/`location`/models/`model`@golden` If no
4225
+ # version ID or alias is specified, the "default" version will be returned. The "
4226
+ # default" version alias is created for the first version of the model, and can
4227
+ # be moved to other versions later on. There will be exactly one default version.
4228
+ # Corresponds to the JSON property `models`
4229
+ # @return [Array<String>]
4230
+ attr_accessor :models
4231
+
3334
4232
  # Optional. The full name of the Compute Engine [network](/compute/docs/networks-
3335
4233
  # and-firewalls#networks) to which the Job should be peered. For example, `
3336
4234
  # projects/12345/global/networks/myVPC`. [Format](/compute/docs/reference/rest/
@@ -3406,6 +4304,7 @@ module Google
3406
4304
  @enable_web_access = args[:enable_web_access] if args.key?(:enable_web_access)
3407
4305
  @experiment = args[:experiment] if args.key?(:experiment)
3408
4306
  @experiment_run = args[:experiment_run] if args.key?(:experiment_run)
4307
+ @models = args[:models] if args.key?(:models)
3409
4308
  @network = args[:network] if args.key?(:network)
3410
4309
  @persistent_resource_id = args[:persistent_resource_id] if args.key?(:persistent_resource_id)
3411
4310
  @protected_artifact_location_id = args[:protected_artifact_location_id] if args.key?(:protected_artifact_location_id)
@@ -8260,7 +9159,7 @@ module Google
8260
9159
  # @return [String]
8261
9160
  attr_accessor :file_uri
8262
9161
 
8263
- # Required. Mime type of the data.
9162
+ # Required. The IANA standard MIME type of the source data.
8264
9163
  # Corresponds to the JSON property `mimeType`
8265
9164
  # @return [String]
8266
9165
  attr_accessor :mime_type
@@ -8552,7 +9451,11 @@ module Google
8552
9451
  end
8553
9452
  end
8554
9453
 
8555
- # Function declaration details.
9454
+ # Structured representation of a function declaration as defined by the [OpenAPI
9455
+ # 3.0 specification](https://spec.openapis.org/oas/v3.0.3). Included in this
9456
+ # declaration are the function name and parameters. This FunctionDeclaration is
9457
+ # a representation of a block of code that can be used as a `Tool` by the model
9458
+ # and executed by the client.
8556
9459
  class GoogleCloudAiplatformV1beta1FunctionDeclaration
8557
9460
  include Google::Apis::Core::Hashable
8558
9461
 
@@ -8569,10 +9472,9 @@ module Google
8569
9472
  # @return [String]
8570
9473
  attr_accessor :name
8571
9474
 
8572
- # Represents a select subset of an OpenAPI 3.0 Schema object. Schema is used to
8573
- # define the format of input/output data. More fields may be added in the future
8574
- # as needed. https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.
8575
- # 0.2.md#schemaObject
9475
+ # Schema is used to define the format of input/output data. Represents a select
9476
+ # subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#
9477
+ # schema). More fields may be added in the future as needed.
8576
9478
  # Corresponds to the JSON property `parameters`
8577
9479
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Schema]
8578
9480
  attr_accessor :parameters
@@ -8724,7 +9626,9 @@ module Google
8724
9626
  class GoogleCloudAiplatformV1beta1GenerateContentRequest
8725
9627
  include Google::Apis::Core::Hashable
8726
9628
 
8727
- # Required. Input content.
9629
+ # Required. The content of the current conversation with the model. For single-
9630
+ # turn queries, this is a single instance. For multi-turn queries, this is a
9631
+ # repeated field that contains conversation history + latest request.
8728
9632
  # Corresponds to the JSON property `contents`
8729
9633
  # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Content>]
8730
9634
  attr_accessor :contents
@@ -8746,7 +9650,10 @@ module Google
8746
9650
  # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SafetySetting>]
8747
9651
  attr_accessor :safety_settings
8748
9652
 
8749
- # Optional. Tools that the model may use to generate response.
9653
+ # Optional. A list of `Tools` the model may use to generate the next response. A
9654
+ # `Tool` is a piece of code that enables the system to interact with external
9655
+ # systems to perform an action, or set of actions, outside of knowledge and
9656
+ # scope of the model. The only supported tool is currently `Function`
8750
9657
  # Corresponds to the JSON property `tools`
8751
9658
  # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Tool>]
8752
9659
  attr_accessor :tools
@@ -8867,37 +9774,11 @@ module Google
8867
9774
  # @return [Fixnum]
8868
9775
  attr_accessor :candidate_count
8869
9776
 
8870
- # Optional. Echo.
8871
- # Corresponds to the JSON property `echo`
8872
- # @return [Boolean]
8873
- attr_accessor :echo
8874
- alias_method :echo?, :echo
8875
-
8876
- # Optional. Frequency penalties.
8877
- # Corresponds to the JSON property `frequencyPenalty`
8878
- # @return [Float]
8879
- attr_accessor :frequency_penalty
8880
-
8881
- # Optional. Logit bias.
8882
- # Corresponds to the JSON property `logitBias`
8883
- # @return [Hash<String,Float>]
8884
- attr_accessor :logit_bias
8885
-
8886
- # Optional. Logit probabilities.
8887
- # Corresponds to the JSON property `logprobs`
8888
- # @return [Fixnum]
8889
- attr_accessor :logprobs
8890
-
8891
9777
  # Optional. The maximum number of output tokens to generate per message.
8892
9778
  # Corresponds to the JSON property `maxOutputTokens`
8893
9779
  # @return [Fixnum]
8894
9780
  attr_accessor :max_output_tokens
8895
9781
 
8896
- # Optional. Positive penalties.
8897
- # Corresponds to the JSON property `presencePenalty`
8898
- # @return [Float]
8899
- attr_accessor :presence_penalty
8900
-
8901
9782
  # Optional. Stop sequences.
8902
9783
  # Corresponds to the JSON property `stopSequences`
8903
9784
  # @return [Array<String>]
@@ -8925,12 +9806,7 @@ module Google
8925
9806
  # Update properties of this object
8926
9807
  def update!(**args)
8927
9808
  @candidate_count = args[:candidate_count] if args.key?(:candidate_count)
8928
- @echo = args[:echo] if args.key?(:echo)
8929
- @frequency_penalty = args[:frequency_penalty] if args.key?(:frequency_penalty)
8930
- @logit_bias = args[:logit_bias] if args.key?(:logit_bias)
8931
- @logprobs = args[:logprobs] if args.key?(:logprobs)
8932
9809
  @max_output_tokens = args[:max_output_tokens] if args.key?(:max_output_tokens)
8933
- @presence_penalty = args[:presence_penalty] if args.key?(:presence_penalty)
8934
9810
  @stop_sequences = args[:stop_sequences] if args.key?(:stop_sequences)
8935
9811
  @temperature = args[:temperature] if args.key?(:temperature)
8936
9812
  @top_k = args[:top_k] if args.key?(:top_k)
@@ -14980,7 +15856,11 @@ module Google
14980
15856
  end
14981
15857
  end
14982
15858
 
14983
- # Content part.
15859
+ # A datatype containing media that is part of a multi-part `Content` message. A `
15860
+ # Part` consists of data which has an associated datatype. A `Part` can only
15861
+ # contain one of the accepted types in `Part.data`. A `Part` must have a fixed
15862
+ # IANA MIME type identifying the type and subtype of the media if `inline_data`
15863
+ # or `file_data` field is filled with raw bytes.
14984
15864
  class GoogleCloudAiplatformV1beta1Part
14985
15865
  include Google::Apis::Core::Hashable
14986
15866
 
@@ -15004,7 +15884,7 @@ module Google
15004
15884
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FunctionResponse]
15005
15885
  attr_accessor :function_response
15006
15886
 
15007
- # Content blob.
15887
+ # Raw media bytes. Text should not be sent as raw bytes, use the 'text' field.
15008
15888
  # Corresponds to the JSON property `inlineData`
15009
15889
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Blob]
15010
15890
  attr_accessor :inline_data
@@ -16192,6 +17072,11 @@ module Google
16192
17072
  # @return [String]
16193
17073
  attr_accessor :version_id
16194
17074
 
17075
+ # Optional. Indicates the state of the model version.
17076
+ # Corresponds to the JSON property `versionState`
17077
+ # @return [String]
17078
+ attr_accessor :version_state
17079
+
16195
17080
  def initialize(**args)
16196
17081
  update!(**args)
16197
17082
  end
@@ -16207,6 +17092,7 @@ module Google
16207
17092
  @publisher_model_template = args[:publisher_model_template] if args.key?(:publisher_model_template)
16208
17093
  @supported_actions = args[:supported_actions] if args.key?(:supported_actions)
16209
17094
  @version_id = args[:version_id] if args.key?(:version_id)
17095
+ @version_state = args[:version_state] if args.key?(:version_state)
16210
17096
  end
16211
17097
  end
16212
17098
 
@@ -16334,6 +17220,11 @@ module Google
16334
17220
  # @return [String]
16335
17221
  attr_accessor :model_display_name
16336
17222
 
17223
+ # Optional. The signed URI for ephemeral Cloud Storage access to model artifact.
17224
+ # Corresponds to the JSON property `publicArtifactUri`
17225
+ # @return [String]
17226
+ attr_accessor :public_artifact_uri
17227
+
16337
17228
  # The resource name of the shared DeploymentResourcePool to deploy on. Format: `
16338
17229
  # projects/`project`/locations/`location`/deploymentResourcePools/`
16339
17230
  # deployment_resource_pool``
@@ -16358,6 +17249,7 @@ module Google
16358
17249
  @dedicated_resources = args[:dedicated_resources] if args.key?(:dedicated_resources)
16359
17250
  @large_model_reference = args[:large_model_reference] if args.key?(:large_model_reference)
16360
17251
  @model_display_name = args[:model_display_name] if args.key?(:model_display_name)
17252
+ @public_artifact_uri = args[:public_artifact_uri] if args.key?(:public_artifact_uri)
16361
17253
  @shared_resources = args[:shared_resources] if args.key?(:shared_resources)
16362
17254
  @title = args[:title] if args.key?(:title)
16363
17255
  end
@@ -16470,6 +17362,11 @@ module Google
16470
17362
  class GoogleCloudAiplatformV1beta1PublisherModelResourceReference
16471
17363
  include Google::Apis::Core::Hashable
16472
17364
 
17365
+ # Description of the resource.
17366
+ # Corresponds to the JSON property `description`
17367
+ # @return [String]
17368
+ attr_accessor :description
17369
+
16473
17370
  # The resource name of the Google Cloud resource.
16474
17371
  # Corresponds to the JSON property `resourceName`
16475
17372
  # @return [String]
@@ -16480,14 +17377,21 @@ module Google
16480
17377
  # @return [String]
16481
17378
  attr_accessor :uri
16482
17379
 
17380
+ # Use case (CUJ) of the resource.
17381
+ # Corresponds to the JSON property `useCase`
17382
+ # @return [String]
17383
+ attr_accessor :use_case
17384
+
16483
17385
  def initialize(**args)
16484
17386
  update!(**args)
16485
17387
  end
16486
17388
 
16487
17389
  # Update properties of this object
16488
17390
  def update!(**args)
17391
+ @description = args[:description] if args.key?(:description)
16489
17392
  @resource_name = args[:resource_name] if args.key?(:resource_name)
16490
17393
  @uri = args[:uri] if args.key?(:uri)
17394
+ @use_case = args[:use_case] if args.key?(:use_case)
16491
17395
  end
16492
17396
  end
16493
17397
 
@@ -18071,10 +18975,9 @@ module Google
18071
18975
  end
18072
18976
  end
18073
18977
 
18074
- # Represents a select subset of an OpenAPI 3.0 Schema object. Schema is used to
18075
- # define the format of input/output data. More fields may be added in the future
18076
- # as needed. https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.
18077
- # 0.2.md#schemaObject
18978
+ # Schema is used to define the format of input/output data. Represents a select
18979
+ # subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#
18980
+ # schema). More fields may be added in the future as needed.
18078
18981
  class GoogleCloudAiplatformV1beta1Schema
18079
18982
  include Google::Apis::Core::Hashable
18080
18983
 
@@ -18102,10 +19005,9 @@ module Google
18102
19005
  # @return [String]
18103
19006
  attr_accessor :format
18104
19007
 
18105
- # Represents a select subset of an OpenAPI 3.0 Schema object. Schema is used to
18106
- # define the format of input/output data. More fields may be added in the future
18107
- # as needed. https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.
18108
- # 0.2.md#schemaObject
19008
+ # Schema is used to define the format of input/output data. Represents a select
19009
+ # subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#
19010
+ # schema). More fields may be added in the future as needed.
18109
19011
  # Corresponds to the JSON property `items`
18110
19012
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Schema]
18111
19013
  attr_accessor :items
@@ -26326,7 +27228,9 @@ module Google
26326
27228
  end
26327
27229
  end
26328
27230
 
26329
- # Tool details that the model may use to generate response.
27231
+ # Tool details that the model may use to generate response. A `Tool` is a piece
27232
+ # of code that enables the system to interact with external systems to perform
27233
+ # an action, or set of actions, outside of knowledge and scope of the model.
26330
27234
  class GoogleCloudAiplatformV1beta1Tool
26331
27235
  include Google::Apis::Core::Hashable
26332
27236
 
@@ -28374,6 +29278,102 @@ module Google
28374
29278
  @units = args[:units] if args.key?(:units)
28375
29279
  end
28376
29280
  end
29281
+
29282
+ #
29283
+ class IntelligenceCloudAutomlXpsMetricEntry
29284
+ include Google::Apis::Core::Hashable
29285
+
29286
+ # For billing metrics that are using legacy sku's, set the legacy billing metric
29287
+ # id here. This will be sent to Chemist as the "cloudbilling.googleapis.com/
29288
+ # argentum_metric_id" label. Otherwise leave empty.
29289
+ # Corresponds to the JSON property `argentumMetricId`
29290
+ # @return [String]
29291
+ attr_accessor :argentum_metric_id
29292
+
29293
+ # A double value.
29294
+ # Corresponds to the JSON property `doubleValue`
29295
+ # @return [Float]
29296
+ attr_accessor :double_value
29297
+
29298
+ # A signed 64-bit integer value.
29299
+ # Corresponds to the JSON property `int64Value`
29300
+ # @return [Fixnum]
29301
+ attr_accessor :int64_value
29302
+
29303
+ # The metric name defined in the service configuration.
29304
+ # Corresponds to the JSON property `metricName`
29305
+ # @return [String]
29306
+ attr_accessor :metric_name
29307
+
29308
+ # Billing system labels for this (metric, value) pair.
29309
+ # Corresponds to the JSON property `systemLabels`
29310
+ # @return [Array<Google::Apis::AiplatformV1beta1::IntelligenceCloudAutomlXpsMetricEntryLabel>]
29311
+ attr_accessor :system_labels
29312
+
29313
+ def initialize(**args)
29314
+ update!(**args)
29315
+ end
29316
+
29317
+ # Update properties of this object
29318
+ def update!(**args)
29319
+ @argentum_metric_id = args[:argentum_metric_id] if args.key?(:argentum_metric_id)
29320
+ @double_value = args[:double_value] if args.key?(:double_value)
29321
+ @int64_value = args[:int64_value] if args.key?(:int64_value)
29322
+ @metric_name = args[:metric_name] if args.key?(:metric_name)
29323
+ @system_labels = args[:system_labels] if args.key?(:system_labels)
29324
+ end
29325
+ end
29326
+
29327
+ #
29328
+ class IntelligenceCloudAutomlXpsMetricEntryLabel
29329
+ include Google::Apis::Core::Hashable
29330
+
29331
+ # The name of the label.
29332
+ # Corresponds to the JSON property `labelName`
29333
+ # @return [String]
29334
+ attr_accessor :label_name
29335
+
29336
+ # The value of the label.
29337
+ # Corresponds to the JSON property `labelValue`
29338
+ # @return [String]
29339
+ attr_accessor :label_value
29340
+
29341
+ def initialize(**args)
29342
+ update!(**args)
29343
+ end
29344
+
29345
+ # Update properties of this object
29346
+ def update!(**args)
29347
+ @label_name = args[:label_name] if args.key?(:label_name)
29348
+ @label_value = args[:label_value] if args.key?(:label_value)
29349
+ end
29350
+ end
29351
+
29352
+ #
29353
+ class IntelligenceCloudAutomlXpsReportingMetrics
29354
+ include Google::Apis::Core::Hashable
29355
+
29356
+ # The effective time training used. If set, this is used for quota management
29357
+ # and billing. Deprecated. AutoML BE doesn't use this. Don't set.
29358
+ # Corresponds to the JSON property `effectiveTrainingDuration`
29359
+ # @return [String]
29360
+ attr_accessor :effective_training_duration
29361
+
29362
+ # One entry per metric name. The values must be aggregated per metric name.
29363
+ # Corresponds to the JSON property `metricEntries`
29364
+ # @return [Array<Google::Apis::AiplatformV1beta1::IntelligenceCloudAutomlXpsMetricEntry>]
29365
+ attr_accessor :metric_entries
29366
+
29367
+ def initialize(**args)
29368
+ update!(**args)
29369
+ end
29370
+
29371
+ # Update properties of this object
29372
+ def update!(**args)
29373
+ @effective_training_duration = args[:effective_training_duration] if args.key?(:effective_training_duration)
29374
+ @metric_entries = args[:metric_entries] if args.key?(:metric_entries)
29375
+ end
29376
+ end
28377
29377
  end
28378
29378
  end
28379
29379
  end