google-apis-aiplatform_v1 0.8.0 → 0.9.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 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,17 +2549,17 @@ module Google
1672
2549
  end
1673
2550
  end
1674
2551
 
1675
- # Content blob.
2552
+ # Raw media bytes. Text should not be sent as raw bytes, use the 'text' field.
1676
2553
  class GoogleCloudAiplatformV1Blob
1677
2554
  include Google::Apis::Core::Hashable
1678
2555
 
1679
- # Required. Data.
2556
+ # Required. Raw bytes for media formats.
1680
2557
  # Corresponds to the JSON property `data`
1681
2558
  # NOTE: Values are automatically base64 encoded/decoded in the client library.
1682
2559
  # @return [String]
1683
2560
  attr_accessor :data
1684
2561
 
1685
- # Required. Mime type of the data.
2562
+ # Required. The IANA standard MIME type of the source data.
1686
2563
  # Corresponds to the JSON property `mimeType`
1687
2564
  # @return [String]
1688
2565
  attr_accessor :mime_type
@@ -2081,19 +2958,22 @@ module Google
2081
2958
  end
2082
2959
  end
2083
2960
 
2084
- # A single turn in a conversation with the model.
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.
2085
2965
  class GoogleCloudAiplatformV1Content
2086
2966
  include Google::Apis::Core::Hashable
2087
2967
 
2088
- # Required. Ordered parts that make up a message. Parts may have different MIME
2089
- # types.
2968
+ # Required. Ordered `Parts` that constitute a single message. Parts may have
2969
+ # different IANA MIME types.
2090
2970
  # Corresponds to the JSON property `parts`
2091
2971
  # @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Part>]
2092
2972
  attr_accessor :parts
2093
2973
 
2094
- # Optional. The role in a conversation associated with this content. Set it only
2095
- # if a content represents a turn in a conversations, otherwise no need to set
2096
- # role. Possible values: user, model.
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.
2097
2977
  # Corresponds to the JSON property `role`
2098
2978
  # @return [String]
2099
2979
  attr_accessor :role
@@ -3039,6 +3919,19 @@ module Google
3039
3919
  # @return [String]
3040
3920
  attr_accessor :experiment_run
3041
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
+
3042
3935
  # Optional. The full name of the Compute Engine [network](/compute/docs/networks-
3043
3936
  # and-firewalls#networks) to which the Job should be peered. For example, `
3044
3937
  # projects/12345/global/networks/myVPC`. [Format](/compute/docs/reference/rest/
@@ -3105,6 +3998,7 @@ module Google
3105
3998
  @enable_web_access = args[:enable_web_access] if args.key?(:enable_web_access)
3106
3999
  @experiment = args[:experiment] if args.key?(:experiment)
3107
4000
  @experiment_run = args[:experiment_run] if args.key?(:experiment_run)
4001
+ @models = args[:models] if args.key?(:models)
3108
4002
  @network = args[:network] if args.key?(:network)
3109
4003
  @protected_artifact_location_id = args[:protected_artifact_location_id] if args.key?(:protected_artifact_location_id)
3110
4004
  @reserved_ip_ranges = args[:reserved_ip_ranges] if args.key?(:reserved_ip_ranges)
@@ -5862,14 +6756,14 @@ module Google
5862
6756
  class GoogleCloudAiplatformV1ExportDataConfig
5863
6757
  include Google::Apis::Core::Hashable
5864
6758
 
5865
- # Only used for custom training data export use cases. Only applicable to
5866
- # Datasets that have DataItems and Annotations. Cloud Storage URI that points to
5867
- # a YAML file describing the annotation schema. The schema is defined as an
5868
- # OpenAPI 3.0.2 [Schema Object](https://github.com/OAI/OpenAPI-Specification/
5869
- # blob/main/versions/3.0.2.md#schemaObject). The schema files that can be used
5870
- # here are found in gs://google-cloud-aiplatform/schema/dataset/annotation/,
5871
- # note that the chosen schema must be consistent with metadata of the Dataset
5872
- # specified by dataset_id. Only Annotations that both match this schema and
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
5873
6767
  # belong to DataItems not ignored by the split method are used in respectively
5874
6768
  # training, validation or test role, depending on the role of the DataItem they
5875
6769
  # are on. When used in conjunction with annotations_filter, the Annotations used
@@ -5914,14 +6808,15 @@ module Google
5914
6808
  # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GcsDestination]
5915
6809
  attr_accessor :gcs_destination
5916
6810
 
5917
- # Only used for custom training data export use cases. Only applicable to
5918
- # Datasets that have SavedQueries. The ID of a SavedQuery (annotation set) under
5919
- # the Dataset specified by dataset_id used for filtering Annotations for
5920
- # training. Only Annotations that are associated with this SavedQuery are used
5921
- # in respectively training. When used in conjunction with annotations_filter,
5922
- # the Annotations used for training are filtered by both saved_query_id and
5923
- # annotations_filter. Only one of saved_query_id and annotation_schema_uri
5924
- # should be specified as both of them represent the same thing: problem type.
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.
5925
6820
  # Corresponds to the JSON property `savedQueryId`
5926
6821
  # @return [String]
5927
6822
  attr_accessor :saved_query_id
@@ -7702,7 +8597,7 @@ module Google
7702
8597
  # @return [String]
7703
8598
  attr_accessor :file_uri
7704
8599
 
7705
- # Required. Mime type of the data.
8600
+ # Required. The IANA standard MIME type of the source data.
7706
8601
  # Corresponds to the JSON property `mimeType`
7707
8602
  # @return [String]
7708
8603
  attr_accessor :mime_type
@@ -7966,63 +8861,6 @@ module Google
7966
8861
  end
7967
8862
  end
7968
8863
 
7969
- # A predicted [FunctionCall] returned from the model that contains a string
7970
- # representing the [FunctionDeclaration.name] and a structured JSON object
7971
- # containing the parameters and their values.
7972
- class GoogleCloudAiplatformV1FunctionCall
7973
- include Google::Apis::Core::Hashable
7974
-
7975
- # Optional. Required. The function parameters and values in JSON object format.
7976
- # See [FunctionDeclaration.parameters] for parameter details.
7977
- # Corresponds to the JSON property `args`
7978
- # @return [Hash<String,Object>]
7979
- attr_accessor :args
7980
-
7981
- # Required. The name of the function to call. Matches [FunctionDeclaration.name].
7982
- # Corresponds to the JSON property `name`
7983
- # @return [String]
7984
- attr_accessor :name
7985
-
7986
- def initialize(**args)
7987
- update!(**args)
7988
- end
7989
-
7990
- # Update properties of this object
7991
- def update!(**args)
7992
- @args = args[:args] if args.key?(:args)
7993
- @name = args[:name] if args.key?(:name)
7994
- end
7995
- end
7996
-
7997
- # The result output from a [FunctionCall] that contains a string representing
7998
- # the [FunctionDeclaration.name] and a structured JSON object containing any
7999
- # output from the function is used as context to the model. This should contain
8000
- # the result of a [FunctionCall] made based on model prediction.
8001
- class GoogleCloudAiplatformV1FunctionResponse
8002
- include Google::Apis::Core::Hashable
8003
-
8004
- # Required. The name of the function to call. Matches [FunctionDeclaration.name]
8005
- # and [FunctionCall.name].
8006
- # Corresponds to the JSON property `name`
8007
- # @return [String]
8008
- attr_accessor :name
8009
-
8010
- # Required. The function response in JSON object format.
8011
- # Corresponds to the JSON property `response`
8012
- # @return [Hash<String,Object>]
8013
- attr_accessor :response
8014
-
8015
- def initialize(**args)
8016
- update!(**args)
8017
- end
8018
-
8019
- # Update properties of this object
8020
- def update!(**args)
8021
- @name = args[:name] if args.key?(:name)
8022
- @response = args[:response] if args.key?(:response)
8023
- end
8024
- end
8025
-
8026
8864
  # The Google Cloud Storage location where the output is to be written to.
8027
8865
  class GoogleCloudAiplatformV1GcsDestination
8028
8866
  include Google::Apis::Core::Hashable
@@ -13862,7 +14700,11 @@ module Google
13862
14700
  end
13863
14701
  end
13864
14702
 
13865
- # Content part.
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.
13866
14708
  class GoogleCloudAiplatformV1Part
13867
14709
  include Google::Apis::Core::Hashable
13868
14710
 
@@ -13871,22 +14713,7 @@ module Google
13871
14713
  # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1FileData]
13872
14714
  attr_accessor :file_data
13873
14715
 
13874
- # A predicted [FunctionCall] returned from the model that contains a string
13875
- # representing the [FunctionDeclaration.name] and a structured JSON object
13876
- # containing the parameters and their values.
13877
- # Corresponds to the JSON property `functionCall`
13878
- # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1FunctionCall]
13879
- attr_accessor :function_call
13880
-
13881
- # The result output from a [FunctionCall] that contains a string representing
13882
- # the [FunctionDeclaration.name] and a structured JSON object containing any
13883
- # output from the function is used as context to the model. This should contain
13884
- # the result of a [FunctionCall] made based on model prediction.
13885
- # Corresponds to the JSON property `functionResponse`
13886
- # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1FunctionResponse]
13887
- attr_accessor :function_response
13888
-
13889
- # Content blob.
14716
+ # Raw media bytes. Text should not be sent as raw bytes, use the 'text' field.
13890
14717
  # Corresponds to the JSON property `inlineData`
13891
14718
  # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Blob]
13892
14719
  attr_accessor :inline_data
@@ -13908,8 +14735,6 @@ module Google
13908
14735
  # Update properties of this object
13909
14736
  def update!(**args)
13910
14737
  @file_data = args[:file_data] if args.key?(:file_data)
13911
- @function_call = args[:function_call] if args.key?(:function_call)
13912
- @function_response = args[:function_response] if args.key?(:function_response)
13913
14738
  @inline_data = args[:inline_data] if args.key?(:inline_data)
13914
14739
  @text = args[:text] if args.key?(:text)
13915
14740
  @video_metadata = args[:video_metadata] if args.key?(:video_metadata)
@@ -14944,6 +15769,11 @@ module Google
14944
15769
  # @return [String]
14945
15770
  attr_accessor :version_id
14946
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
+
14947
15777
  def initialize(**args)
14948
15778
  update!(**args)
14949
15779
  end
@@ -14958,6 +15788,7 @@ module Google
14958
15788
  @publisher_model_template = args[:publisher_model_template] if args.key?(:publisher_model_template)
14959
15789
  @supported_actions = args[:supported_actions] if args.key?(:supported_actions)
14960
15790
  @version_id = args[:version_id] if args.key?(:version_id)
15791
+ @version_state = args[:version_state] if args.key?(:version_state)
14961
15792
  end
14962
15793
  end
14963
15794
 
@@ -15085,6 +15916,11 @@ module Google
15085
15916
  # @return [String]
15086
15917
  attr_accessor :model_display_name
15087
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
+
15088
15924
  # The resource name of the shared DeploymentResourcePool to deploy on. Format: `
15089
15925
  # projects/`project`/locations/`location`/deploymentResourcePools/`
15090
15926
  # deployment_resource_pool``
@@ -15109,6 +15945,7 @@ module Google
15109
15945
  @dedicated_resources = args[:dedicated_resources] if args.key?(:dedicated_resources)
15110
15946
  @large_model_reference = args[:large_model_reference] if args.key?(:large_model_reference)
15111
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)
15112
15949
  @shared_resources = args[:shared_resources] if args.key?(:shared_resources)
15113
15950
  @title = args[:title] if args.key?(:title)
15114
15951
  end
@@ -15195,6 +16032,11 @@ module Google
15195
16032
  class GoogleCloudAiplatformV1PublisherModelResourceReference
15196
16033
  include Google::Apis::Core::Hashable
15197
16034
 
16035
+ # Description of the resource.
16036
+ # Corresponds to the JSON property `description`
16037
+ # @return [String]
16038
+ attr_accessor :description
16039
+
15198
16040
  # The resource name of the Google Cloud resource.
15199
16041
  # Corresponds to the JSON property `resourceName`
15200
16042
  # @return [String]
@@ -15205,14 +16047,21 @@ module Google
15205
16047
  # @return [String]
15206
16048
  attr_accessor :uri
15207
16049
 
16050
+ # Use case (CUJ) of the resource.
16051
+ # Corresponds to the JSON property `useCase`
16052
+ # @return [String]
16053
+ attr_accessor :use_case
16054
+
15208
16055
  def initialize(**args)
15209
16056
  update!(**args)
15210
16057
  end
15211
16058
 
15212
16059
  # Update properties of this object
15213
16060
  def update!(**args)
16061
+ @description = args[:description] if args.key?(:description)
15214
16062
  @resource_name = args[:resource_name] if args.key?(:resource_name)
15215
16063
  @uri = args[:uri] if args.key?(:uri)
16064
+ @use_case = args[:use_case] if args.key?(:use_case)
15216
16065
  end
15217
16066
  end
15218
16067
 
@@ -26330,6 +27179,47 @@ module Google
26330
27179
  end
26331
27180
  end
26332
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
+
26333
27223
  # Represents a textual expression in the Common Expression Language (CEL) syntax.
26334
27224
  # CEL is a C-like expression language. The syntax and semantics of CEL are
26335
27225
  # documented at https://github.com/google/cel-spec. Example (Comparison): title:
@@ -26449,6 +27339,102 @@ module Google
26449
27339
  @units = args[:units] if args.key?(:units)
26450
27340
  end
26451
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
26452
27438
  end
26453
27439
  end
26454
27440
  end