google-apis-aiplatform_v1beta1 0.11.0 → 0.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -22,6 +22,884 @@ module Google
22
22
  module Apis
23
23
  module 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
@@ -705,6 +1583,27 @@ module Google
705
1583
  end
706
1584
  end
707
1585
 
1586
+ # Request message for PipelineService.BatchCancelPipelineJobs.
1587
+ class GoogleCloudAiplatformV1beta1BatchCancelPipelineJobsRequest
1588
+ include Google::Apis::Core::Hashable
1589
+
1590
+ # Required. The names of the PipelineJobs to cancel. A maximum of 32
1591
+ # PipelineJobs can be cancelled in a batch. Format: `projects/`project`/
1592
+ # locations/`location`/pipelineJobs/`pipelineJob``
1593
+ # Corresponds to the JSON property `names`
1594
+ # @return [Array<String>]
1595
+ attr_accessor :names
1596
+
1597
+ def initialize(**args)
1598
+ update!(**args)
1599
+ end
1600
+
1601
+ # Update properties of this object
1602
+ def update!(**args)
1603
+ @names = args[:names] if args.key?(:names)
1604
+ end
1605
+ end
1606
+
708
1607
  # Details of operations that perform batch create Features.
709
1608
  class GoogleCloudAiplatformV1beta1BatchCreateFeaturesOperationMetadata
710
1609
  include Google::Apis::Core::Hashable
@@ -1377,8 +2276,7 @@ module Google
1377
2276
  # Fields that will be excluded in the prediction instance that is sent to the
1378
2277
  # Model. Excluded will be attached to the batch prediction output if key_field
1379
2278
  # is not specified. When excluded_fields is populated, included_fields must be
1380
- # empty. The input must be JSONL with objects at each line, CSV, BigQuery or
1381
- # TfRecord.
2279
+ # empty. The input must be JSONL with objects at each line, BigQuery or TfRecord.
1382
2280
  # Corresponds to the JSON property `excludedFields`
1383
2281
  # @return [Array<String>]
1384
2282
  attr_accessor :excluded_fields
@@ -1387,7 +2285,7 @@ module Google
1387
2285
  # Model. If instance_type is `array`, the order of field names in
1388
2286
  # included_fields also determines the order of the values in the array. When
1389
2287
  # included_fields is populated, excluded_fields must be empty. The input must be
1390
- # JSONL with objects at each line, CSV, BigQuery or TfRecord.
2288
+ # JSONL with objects at each line, BigQuery or TfRecord.
1391
2289
  # Corresponds to the JSON property `includedFields`
1392
2290
  # @return [Array<String>]
1393
2291
  attr_accessor :included_fields
@@ -1716,6 +2614,32 @@ module Google
1716
2614
  end
1717
2615
  end
1718
2616
 
2617
+ # Raw media bytes. Text should not be sent as raw bytes, use the 'text' field.
2618
+ class GoogleCloudAiplatformV1beta1Blob
2619
+ include Google::Apis::Core::Hashable
2620
+
2621
+ # Required. Raw bytes for media formats.
2622
+ # Corresponds to the JSON property `data`
2623
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
2624
+ # @return [String]
2625
+ attr_accessor :data
2626
+
2627
+ # Required. The IANA standard MIME type of the source data.
2628
+ # Corresponds to the JSON property `mimeType`
2629
+ # @return [String]
2630
+ attr_accessor :mime_type
2631
+
2632
+ def initialize(**args)
2633
+ update!(**args)
2634
+ end
2635
+
2636
+ # Update properties of this object
2637
+ def update!(**args)
2638
+ @data = args[:data] if args.key?(:data)
2639
+ @mime_type = args[:mime_type] if args.key?(:mime_type)
2640
+ end
2641
+ end
2642
+
1719
2643
  # Config for blur baseline. When enabled, a linear path from the maximally
1720
2644
  # blurred image to the input image is created. Using a blurred baseline instead
1721
2645
  # of zero (black image) is motivated by the BlurIG approach explained here:
@@ -1850,6 +2774,61 @@ module Google
1850
2774
  end
1851
2775
  end
1852
2776
 
2777
+ # A response candidate generated from the model.
2778
+ class GoogleCloudAiplatformV1beta1Candidate
2779
+ include Google::Apis::Core::Hashable
2780
+
2781
+ # A collection of source attributions for a piece of content.
2782
+ # Corresponds to the JSON property `citationMetadata`
2783
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CitationMetadata]
2784
+ attr_accessor :citation_metadata
2785
+
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.
2790
+ # Corresponds to the JSON property `content`
2791
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Content]
2792
+ attr_accessor :content
2793
+
2794
+ # Output only. Describes the reason the mode stopped generating tokens in more
2795
+ # detail. This is only filled when `finish_reason` is set.
2796
+ # Corresponds to the JSON property `finishMessage`
2797
+ # @return [String]
2798
+ attr_accessor :finish_message
2799
+
2800
+ # Output only. The reason why the model stopped generating tokens. If empty, the
2801
+ # model has not stopped generating the tokens.
2802
+ # Corresponds to the JSON property `finishReason`
2803
+ # @return [String]
2804
+ attr_accessor :finish_reason
2805
+
2806
+ # Output only. Index of the candidate.
2807
+ # Corresponds to the JSON property `index`
2808
+ # @return [Fixnum]
2809
+ attr_accessor :index
2810
+
2811
+ # Output only. List of ratings for the safety of a response candidate. There is
2812
+ # at most one rating per category.
2813
+ # Corresponds to the JSON property `safetyRatings`
2814
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SafetyRating>]
2815
+ attr_accessor :safety_ratings
2816
+
2817
+ def initialize(**args)
2818
+ update!(**args)
2819
+ end
2820
+
2821
+ # Update properties of this object
2822
+ def update!(**args)
2823
+ @citation_metadata = args[:citation_metadata] if args.key?(:citation_metadata)
2824
+ @content = args[:content] if args.key?(:content)
2825
+ @finish_message = args[:finish_message] if args.key?(:finish_message)
2826
+ @finish_reason = args[:finish_reason] if args.key?(:finish_reason)
2827
+ @index = args[:index] if args.key?(:index)
2828
+ @safety_ratings = args[:safety_ratings] if args.key?(:safety_ratings)
2829
+ end
2830
+ end
2831
+
1853
2832
  # This message will be placed in the metadata field of a google.longrunning.
1854
2833
  # Operation associated with a CheckTrialEarlyStoppingState request.
1855
2834
  class GoogleCloudAiplatformV1beta1CheckTrialEarlyStoppingStateMetatdata
@@ -1915,6 +2894,81 @@ module Google
1915
2894
  end
1916
2895
  end
1917
2896
 
2897
+ # Source attributions for content.
2898
+ class GoogleCloudAiplatformV1beta1Citation
2899
+ include Google::Apis::Core::Hashable
2900
+
2901
+ # Output only. End index into the content.
2902
+ # Corresponds to the JSON property `endIndex`
2903
+ # @return [Fixnum]
2904
+ attr_accessor :end_index
2905
+
2906
+ # Output only. License of the attribution.
2907
+ # Corresponds to the JSON property `license`
2908
+ # @return [String]
2909
+ attr_accessor :license
2910
+
2911
+ # Represents a whole or partial calendar date, such as a birthday. The time of
2912
+ # day and time zone are either specified elsewhere or are insignificant. The
2913
+ # date is relative to the Gregorian Calendar. This can represent one of the
2914
+ # following: * A full date, with non-zero year, month, and day values. * A month
2915
+ # and day, with a zero year (for example, an anniversary). * A year on its own,
2916
+ # with a zero month and a zero day. * A year and month, with a zero day (for
2917
+ # example, a credit card expiration date). Related types: * google.type.
2918
+ # TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
2919
+ # Corresponds to the JSON property `publicationDate`
2920
+ # @return [Google::Apis::AiplatformV1beta1::GoogleTypeDate]
2921
+ attr_accessor :publication_date
2922
+
2923
+ # Output only. Start index into the content.
2924
+ # Corresponds to the JSON property `startIndex`
2925
+ # @return [Fixnum]
2926
+ attr_accessor :start_index
2927
+
2928
+ # Output only. Title of the attribution.
2929
+ # Corresponds to the JSON property `title`
2930
+ # @return [String]
2931
+ attr_accessor :title
2932
+
2933
+ # Output only. Url reference of the attribution.
2934
+ # Corresponds to the JSON property `uri`
2935
+ # @return [String]
2936
+ attr_accessor :uri
2937
+
2938
+ def initialize(**args)
2939
+ update!(**args)
2940
+ end
2941
+
2942
+ # Update properties of this object
2943
+ def update!(**args)
2944
+ @end_index = args[:end_index] if args.key?(:end_index)
2945
+ @license = args[:license] if args.key?(:license)
2946
+ @publication_date = args[:publication_date] if args.key?(:publication_date)
2947
+ @start_index = args[:start_index] if args.key?(:start_index)
2948
+ @title = args[:title] if args.key?(:title)
2949
+ @uri = args[:uri] if args.key?(:uri)
2950
+ end
2951
+ end
2952
+
2953
+ # A collection of source attributions for a piece of content.
2954
+ class GoogleCloudAiplatformV1beta1CitationMetadata
2955
+ include Google::Apis::Core::Hashable
2956
+
2957
+ # Output only. List of citations.
2958
+ # Corresponds to the JSON property `citations`
2959
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Citation>]
2960
+ attr_accessor :citations
2961
+
2962
+ def initialize(**args)
2963
+ update!(**args)
2964
+ end
2965
+
2966
+ # Update properties of this object
2967
+ def update!(**args)
2968
+ @citations = args[:citations] if args.key?(:citations)
2969
+ end
2970
+ end
2971
+
1918
2972
  # Request message for VizierService.CompleteTrial.
1919
2973
  class GoogleCloudAiplatformV1beta1CompleteTrialRequest
1920
2974
  include Google::Apis::Core::Hashable
@@ -2099,6 +3153,37 @@ module Google
2099
3153
  end
2100
3154
  end
2101
3155
 
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.
3160
+ class GoogleCloudAiplatformV1beta1Content
3161
+ include Google::Apis::Core::Hashable
3162
+
3163
+ # Required. Ordered `Parts` that constitute a single message. Parts may have
3164
+ # different IANA MIME types.
3165
+ # Corresponds to the JSON property `parts`
3166
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Part>]
3167
+ attr_accessor :parts
3168
+
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.
3172
+ # Corresponds to the JSON property `role`
3173
+ # @return [String]
3174
+ attr_accessor :role
3175
+
3176
+ def initialize(**args)
3177
+ update!(**args)
3178
+ end
3179
+
3180
+ # Update properties of this object
3181
+ def update!(**args)
3182
+ @parts = args[:parts] if args.key?(:parts)
3183
+ @role = args[:role] if args.key?(:role)
3184
+ end
3185
+ end
3186
+
2102
3187
  # Instance of a general context.
2103
3188
  class GoogleCloudAiplatformV1beta1Context
2104
3189
  include Google::Apis::Core::Hashable
@@ -2283,19 +3368,32 @@ module Google
2283
3368
  class GoogleCloudAiplatformV1beta1CountTokensRequest
2284
3369
  include Google::Apis::Core::Hashable
2285
3370
 
3371
+ # Required. Input content.
3372
+ # Corresponds to the JSON property `contents`
3373
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Content>]
3374
+ attr_accessor :contents
3375
+
2286
3376
  # Required. The instances that are the input to token counting call. Schema is
2287
3377
  # identical to the prediction schema of the underlying model.
2288
3378
  # Corresponds to the JSON property `instances`
2289
3379
  # @return [Array<Object>]
2290
3380
  attr_accessor :instances
2291
3381
 
3382
+ # Required. The name of the publisher model requested to serve the prediction.
3383
+ # Format: `projects/`project`/locations/`location`/publishers/*/models/*`
3384
+ # Corresponds to the JSON property `model`
3385
+ # @return [String]
3386
+ attr_accessor :model
3387
+
2292
3388
  def initialize(**args)
2293
3389
  update!(**args)
2294
3390
  end
2295
3391
 
2296
3392
  # Update properties of this object
2297
3393
  def update!(**args)
3394
+ @contents = args[:contents] if args.key?(:contents)
2298
3395
  @instances = args[:instances] if args.key?(:instances)
3396
+ @model = args[:model] if args.key?(:model)
2299
3397
  end
2300
3398
  end
2301
3399
 
@@ -3118,6 +4216,19 @@ module Google
3118
4216
  # @return [String]
3119
4217
  attr_accessor :experiment_run
3120
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
+
3121
4232
  # Optional. The full name of the Compute Engine [network](/compute/docs/networks-
3122
4233
  # and-firewalls#networks) to which the Job should be peered. For example, `
3123
4234
  # projects/12345/global/networks/myVPC`. [Format](/compute/docs/reference/rest/
@@ -3193,6 +4304,7 @@ module Google
3193
4304
  @enable_web_access = args[:enable_web_access] if args.key?(:enable_web_access)
3194
4305
  @experiment = args[:experiment] if args.key?(:experiment)
3195
4306
  @experiment_run = args[:experiment_run] if args.key?(:experiment_run)
4307
+ @models = args[:models] if args.key?(:models)
3196
4308
  @network = args[:network] if args.key?(:network)
3197
4309
  @persistent_resource_id = args[:persistent_resource_id] if args.key?(:persistent_resource_id)
3198
4310
  @protected_artifact_location_id = args[:protected_artifact_location_id] if args.key?(:protected_artifact_location_id)
@@ -4251,6 +5363,11 @@ module Google
4251
5363
  # @return [String]
4252
5364
  attr_accessor :deployed_index_id
4253
5365
 
5366
+ # Output only. The display name of the DeployedIndex.
5367
+ # Corresponds to the JSON property `displayName`
5368
+ # @return [String]
5369
+ attr_accessor :display_name
5370
+
4254
5371
  # Immutable. A resource name of the IndexEndpoint.
4255
5372
  # Corresponds to the JSON property `indexEndpoint`
4256
5373
  # @return [String]
@@ -4263,6 +5380,7 @@ module Google
4263
5380
  # Update properties of this object
4264
5381
  def update!(**args)
4265
5382
  @deployed_index_id = args[:deployed_index_id] if args.key?(:deployed_index_id)
5383
+ @display_name = args[:display_name] if args.key?(:display_name)
4266
5384
  @index_endpoint = args[:index_endpoint] if args.key?(:index_endpoint)
4267
5385
  end
4268
5386
  end
@@ -4480,6 +5598,104 @@ module Google
4480
5598
  end
4481
5599
  end
4482
5600
 
5601
+ # Request message for PredictionService.DirectPredict.
5602
+ class GoogleCloudAiplatformV1beta1DirectPredictRequest
5603
+ include Google::Apis::Core::Hashable
5604
+
5605
+ # The prediction input.
5606
+ # Corresponds to the JSON property `inputs`
5607
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Tensor>]
5608
+ attr_accessor :inputs
5609
+
5610
+ # A tensor value type.
5611
+ # Corresponds to the JSON property `parameters`
5612
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Tensor]
5613
+ attr_accessor :parameters
5614
+
5615
+ def initialize(**args)
5616
+ update!(**args)
5617
+ end
5618
+
5619
+ # Update properties of this object
5620
+ def update!(**args)
5621
+ @inputs = args[:inputs] if args.key?(:inputs)
5622
+ @parameters = args[:parameters] if args.key?(:parameters)
5623
+ end
5624
+ end
5625
+
5626
+ # Response message for PredictionService.DirectPredict.
5627
+ class GoogleCloudAiplatformV1beta1DirectPredictResponse
5628
+ include Google::Apis::Core::Hashable
5629
+
5630
+ # The prediction output.
5631
+ # Corresponds to the JSON property `outputs`
5632
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Tensor>]
5633
+ attr_accessor :outputs
5634
+
5635
+ # A tensor value type.
5636
+ # Corresponds to the JSON property `parameters`
5637
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Tensor]
5638
+ attr_accessor :parameters
5639
+
5640
+ def initialize(**args)
5641
+ update!(**args)
5642
+ end
5643
+
5644
+ # Update properties of this object
5645
+ def update!(**args)
5646
+ @outputs = args[:outputs] if args.key?(:outputs)
5647
+ @parameters = args[:parameters] if args.key?(:parameters)
5648
+ end
5649
+ end
5650
+
5651
+ # Request message for PredictionService.DirectRawPredict.
5652
+ class GoogleCloudAiplatformV1beta1DirectRawPredictRequest
5653
+ include Google::Apis::Core::Hashable
5654
+
5655
+ # The prediction input.
5656
+ # Corresponds to the JSON property `input`
5657
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
5658
+ # @return [String]
5659
+ attr_accessor :input
5660
+
5661
+ # Fully qualified name of the API method being invoked to perform predictions.
5662
+ # Format: `/namespace.Service/Method/` Example: `/tensorflow.serving.
5663
+ # PredictionService/Predict`
5664
+ # Corresponds to the JSON property `methodName`
5665
+ # @return [String]
5666
+ attr_accessor :method_name
5667
+
5668
+ def initialize(**args)
5669
+ update!(**args)
5670
+ end
5671
+
5672
+ # Update properties of this object
5673
+ def update!(**args)
5674
+ @input = args[:input] if args.key?(:input)
5675
+ @method_name = args[:method_name] if args.key?(:method_name)
5676
+ end
5677
+ end
5678
+
5679
+ # Response message for PredictionService.DirectRawPredict.
5680
+ class GoogleCloudAiplatformV1beta1DirectRawPredictResponse
5681
+ include Google::Apis::Core::Hashable
5682
+
5683
+ # The prediction output.
5684
+ # Corresponds to the JSON property `output`
5685
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
5686
+ # @return [String]
5687
+ attr_accessor :output
5688
+
5689
+ def initialize(**args)
5690
+ update!(**args)
5691
+ end
5692
+
5693
+ # Update properties of this object
5694
+ def update!(**args)
5695
+ @output = args[:output] if args.key?(:output)
5696
+ end
5697
+ end
5698
+
4483
5699
  # Represents the spec of disk options.
4484
5700
  class GoogleCloudAiplatformV1beta1DiskSpec
4485
5701
  include Google::Apis::Core::Hashable
@@ -5999,7 +7215,9 @@ module Google
5999
7215
  class GoogleCloudAiplatformV1beta1ExportDataResponse
6000
7216
  include Google::Apis::Core::Hashable
6001
7217
 
6002
- # All of the files that are exported in this export operation.
7218
+ # All of the files that are exported in this export operation. For custom code
7219
+ # training export, only three (training, validation and test) GCS paths in
7220
+ # wildcard format are populated (e.g., gs://.../training-*).
6003
7221
  # Corresponds to the JSON property `exportedFiles`
6004
7222
  # @return [Array<String>]
6005
7223
  attr_accessor :exported_files
@@ -6579,7 +7797,7 @@ module Google
6579
7797
  # @return [Hash<String,String>]
6580
7798
  attr_accessor :labels
6581
7799
 
6582
- # Output only. Name of the FeatureGroup. Format: `projects/`project`/locations/`
7800
+ # Identifier. Name of the FeatureGroup. Format: `projects/`project`/locations/`
6583
7801
  # location`/featureGroups/`featureGroup``
6584
7802
  # Corresponds to the JSON property `name`
6585
7803
  # @return [String]
@@ -6762,7 +7980,7 @@ module Google
6762
7980
  # @return [Hash<String,String>]
6763
7981
  attr_accessor :labels
6764
7982
 
6765
- # Output only. Name of the FeatureOnlineStore. Format: `projects/`project`/
7983
+ # Identifier. Name of the FeatureOnlineStore. Format: `projects/`project`/
6766
7984
  # locations/`location`/featureOnlineStores/`featureOnlineStore``
6767
7985
  # Corresponds to the JSON property `name`
6768
7986
  # @return [String]
@@ -7218,16 +8436,14 @@ module Google
7218
8436
  # @return [Hash<String,String>]
7219
8437
  attr_accessor :labels
7220
8438
 
7221
- # Output only. Name of the FeatureView. Format: `projects/`project`/locations/`
8439
+ # Identifier. Name of the FeatureView. Format: `projects/`project`/locations/`
7222
8440
  # location`/featureOnlineStores/`feature_online_store`/featureViews/`
7223
8441
  # feature_view``
7224
8442
  # Corresponds to the JSON property `name`
7225
8443
  # @return [String]
7226
8444
  attr_accessor :name
7227
8445
 
7228
- # Configures when data is to be synced/updated for this FeatureView. At the end
7229
- # of the sync the latest featureValues for each entityId of this FeatureView are
7230
- # made ready for online serving.
8446
+ # Configuration for Sync. Only one option is set.
7231
8447
  # Corresponds to the JSON property `syncConfig`
7232
8448
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureViewSyncConfig]
7233
8449
  attr_accessor :sync_config
@@ -7373,8 +8589,8 @@ module Google
7373
8589
  # @return [Google::Apis::AiplatformV1beta1::GoogleRpcStatus]
7374
8590
  attr_accessor :final_status
7375
8591
 
7376
- # Output only. Name of the FeatureViewSync. Format: `projects/`project`/
7377
- # locations/`location`/featureOnlineStores/`feature_online_store`/featureViews/`
8592
+ # Identifier. Name of the FeatureViewSync. Format: `projects/`project`/locations/
8593
+ # `location`/featureOnlineStores/`feature_online_store`/featureViews/`
7378
8594
  # feature_view`/featureViewSyncs/`feature_view_sync``
7379
8595
  # Corresponds to the JSON property `name`
7380
8596
  # @return [String]
@@ -7401,7 +8617,7 @@ module Google
7401
8617
  end
7402
8618
  end
7403
8619
 
7404
- #
8620
+ # Configuration for Sync. Only one option is set.
7405
8621
  class GoogleCloudAiplatformV1beta1FeatureViewSyncConfig
7406
8622
  include Google::Apis::Core::Hashable
7407
8623
 
@@ -7934,6 +9150,31 @@ module Google
7934
9150
  end
7935
9151
  end
7936
9152
 
9153
+ # URI based data.
9154
+ class GoogleCloudAiplatformV1beta1FileData
9155
+ include Google::Apis::Core::Hashable
9156
+
9157
+ # Required. URI.
9158
+ # Corresponds to the JSON property `fileUri`
9159
+ # @return [String]
9160
+ attr_accessor :file_uri
9161
+
9162
+ # Required. The IANA standard MIME type of the source data.
9163
+ # Corresponds to the JSON property `mimeType`
9164
+ # @return [String]
9165
+ attr_accessor :mime_type
9166
+
9167
+ def initialize(**args)
9168
+ update!(**args)
9169
+ end
9170
+
9171
+ # Update properties of this object
9172
+ def update!(**args)
9173
+ @file_uri = args[:file_uri] if args.key?(:file_uri)
9174
+ @mime_type = args[:mime_type] if args.key?(:mime_type)
9175
+ end
9176
+ end
9177
+
7937
9178
  # Assigns input data to training, validation, and test sets based on the given
7938
9179
  # filters, data pieces not matched by any filter are ignored. Currently only
7939
9180
  # supported for Datasets containing DataItems. If any of the filters in this
@@ -8182,6 +9423,103 @@ module Google
8182
9423
  end
8183
9424
  end
8184
9425
 
9426
+ # A predicted [FunctionCall] returned from the model that contains a string
9427
+ # representing the [FunctionDeclaration.name] and a structured JSON object
9428
+ # containing the parameters and their values.
9429
+ class GoogleCloudAiplatformV1beta1FunctionCall
9430
+ include Google::Apis::Core::Hashable
9431
+
9432
+ # Optional. Required. The function parameters and values in JSON object format.
9433
+ # See [FunctionDeclaration.parameters] for parameter details.
9434
+ # Corresponds to the JSON property `args`
9435
+ # @return [Hash<String,Object>]
9436
+ attr_accessor :args
9437
+
9438
+ # Required. The name of the function to call. Matches [FunctionDeclaration.name].
9439
+ # Corresponds to the JSON property `name`
9440
+ # @return [String]
9441
+ attr_accessor :name
9442
+
9443
+ def initialize(**args)
9444
+ update!(**args)
9445
+ end
9446
+
9447
+ # Update properties of this object
9448
+ def update!(**args)
9449
+ @args = args[:args] if args.key?(:args)
9450
+ @name = args[:name] if args.key?(:name)
9451
+ end
9452
+ end
9453
+
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.
9459
+ class GoogleCloudAiplatformV1beta1FunctionDeclaration
9460
+ include Google::Apis::Core::Hashable
9461
+
9462
+ # Optional. Description and purpose of the function. Model uses it to decide how
9463
+ # and whether to call the function.
9464
+ # Corresponds to the JSON property `description`
9465
+ # @return [String]
9466
+ attr_accessor :description
9467
+
9468
+ # Required. The name of the function to call. Must start with a letter or an
9469
+ # underscore. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a
9470
+ # maximum length of 64.
9471
+ # Corresponds to the JSON property `name`
9472
+ # @return [String]
9473
+ attr_accessor :name
9474
+
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.
9478
+ # Corresponds to the JSON property `parameters`
9479
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Schema]
9480
+ attr_accessor :parameters
9481
+
9482
+ def initialize(**args)
9483
+ update!(**args)
9484
+ end
9485
+
9486
+ # Update properties of this object
9487
+ def update!(**args)
9488
+ @description = args[:description] if args.key?(:description)
9489
+ @name = args[:name] if args.key?(:name)
9490
+ @parameters = args[:parameters] if args.key?(:parameters)
9491
+ end
9492
+ end
9493
+
9494
+ # The result output from a [FunctionCall] that contains a string representing
9495
+ # the [FunctionDeclaration.name] and a structured JSON object containing any
9496
+ # output from the function is used as context to the model. This should contain
9497
+ # the result of a [FunctionCall] made based on model prediction.
9498
+ class GoogleCloudAiplatformV1beta1FunctionResponse
9499
+ include Google::Apis::Core::Hashable
9500
+
9501
+ # Required. The name of the function to call. Matches [FunctionDeclaration.name]
9502
+ # and [FunctionCall.name].
9503
+ # Corresponds to the JSON property `name`
9504
+ # @return [String]
9505
+ attr_accessor :name
9506
+
9507
+ # Required. The function response in JSON object format.
9508
+ # Corresponds to the JSON property `response`
9509
+ # @return [Hash<String,Object>]
9510
+ attr_accessor :response
9511
+
9512
+ def initialize(**args)
9513
+ update!(**args)
9514
+ end
9515
+
9516
+ # Update properties of this object
9517
+ def update!(**args)
9518
+ @name = args[:name] if args.key?(:name)
9519
+ @response = args[:response] if args.key?(:response)
9520
+ end
9521
+ end
9522
+
8185
9523
  # The Google Cloud Storage location where the output is to be written to.
8186
9524
  class GoogleCloudAiplatformV1beta1GcsDestination
8187
9525
  include Google::Apis::Core::Hashable
@@ -8284,6 +9622,198 @@ module Google
8284
9622
  end
8285
9623
  end
8286
9624
 
9625
+ # Request message for [PredictionService.GenerateContent].
9626
+ class GoogleCloudAiplatformV1beta1GenerateContentRequest
9627
+ include Google::Apis::Core::Hashable
9628
+
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.
9632
+ # Corresponds to the JSON property `contents`
9633
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Content>]
9634
+ attr_accessor :contents
9635
+
9636
+ # Required. The name of the Endpoint requested to serve the prediction. Format: `
9637
+ # projects/`project`/locations/`location`/endpoints/`endpoint``
9638
+ # Corresponds to the JSON property `endpoint`
9639
+ # @return [String]
9640
+ attr_accessor :endpoint
9641
+
9642
+ # Generation config.
9643
+ # Corresponds to the JSON property `generationConfig`
9644
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerationConfig]
9645
+ attr_accessor :generation_config
9646
+
9647
+ # Optional. Per request settings for blocking unsafe content. Enforced on
9648
+ # GenerateContentResponse.candidates.
9649
+ # Corresponds to the JSON property `safetySettings`
9650
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SafetySetting>]
9651
+ attr_accessor :safety_settings
9652
+
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`
9657
+ # Corresponds to the JSON property `tools`
9658
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Tool>]
9659
+ attr_accessor :tools
9660
+
9661
+ def initialize(**args)
9662
+ update!(**args)
9663
+ end
9664
+
9665
+ # Update properties of this object
9666
+ def update!(**args)
9667
+ @contents = args[:contents] if args.key?(:contents)
9668
+ @endpoint = args[:endpoint] if args.key?(:endpoint)
9669
+ @generation_config = args[:generation_config] if args.key?(:generation_config)
9670
+ @safety_settings = args[:safety_settings] if args.key?(:safety_settings)
9671
+ @tools = args[:tools] if args.key?(:tools)
9672
+ end
9673
+ end
9674
+
9675
+ # Response message for [PredictionService.GenerateContent].
9676
+ class GoogleCloudAiplatformV1beta1GenerateContentResponse
9677
+ include Google::Apis::Core::Hashable
9678
+
9679
+ # Output only. Generated candidates.
9680
+ # Corresponds to the JSON property `candidates`
9681
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Candidate>]
9682
+ attr_accessor :candidates
9683
+
9684
+ # Content filter results for a prompt sent in the request.
9685
+ # Corresponds to the JSON property `promptFeedback`
9686
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponsePromptFeedback]
9687
+ attr_accessor :prompt_feedback
9688
+
9689
+ # Usage metadata about response(s).
9690
+ # Corresponds to the JSON property `usageMetadata`
9691
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata]
9692
+ attr_accessor :usage_metadata
9693
+
9694
+ def initialize(**args)
9695
+ update!(**args)
9696
+ end
9697
+
9698
+ # Update properties of this object
9699
+ def update!(**args)
9700
+ @candidates = args[:candidates] if args.key?(:candidates)
9701
+ @prompt_feedback = args[:prompt_feedback] if args.key?(:prompt_feedback)
9702
+ @usage_metadata = args[:usage_metadata] if args.key?(:usage_metadata)
9703
+ end
9704
+ end
9705
+
9706
+ # Content filter results for a prompt sent in the request.
9707
+ class GoogleCloudAiplatformV1beta1GenerateContentResponsePromptFeedback
9708
+ include Google::Apis::Core::Hashable
9709
+
9710
+ # Output only. Blocked reason.
9711
+ # Corresponds to the JSON property `blockReason`
9712
+ # @return [String]
9713
+ attr_accessor :block_reason
9714
+
9715
+ # Output only. A readable block reason message.
9716
+ # Corresponds to the JSON property `blockReasonMessage`
9717
+ # @return [String]
9718
+ attr_accessor :block_reason_message
9719
+
9720
+ # Output only. Safety ratings.
9721
+ # Corresponds to the JSON property `safetyRatings`
9722
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SafetyRating>]
9723
+ attr_accessor :safety_ratings
9724
+
9725
+ def initialize(**args)
9726
+ update!(**args)
9727
+ end
9728
+
9729
+ # Update properties of this object
9730
+ def update!(**args)
9731
+ @block_reason = args[:block_reason] if args.key?(:block_reason)
9732
+ @block_reason_message = args[:block_reason_message] if args.key?(:block_reason_message)
9733
+ @safety_ratings = args[:safety_ratings] if args.key?(:safety_ratings)
9734
+ end
9735
+ end
9736
+
9737
+ # Usage metadata about response(s).
9738
+ class GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata
9739
+ include Google::Apis::Core::Hashable
9740
+
9741
+ # Number of tokens in the response(s).
9742
+ # Corresponds to the JSON property `candidatesTokenCount`
9743
+ # @return [Fixnum]
9744
+ attr_accessor :candidates_token_count
9745
+
9746
+ # Number of tokens in the request.
9747
+ # Corresponds to the JSON property `promptTokenCount`
9748
+ # @return [Fixnum]
9749
+ attr_accessor :prompt_token_count
9750
+
9751
+ #
9752
+ # Corresponds to the JSON property `totalTokenCount`
9753
+ # @return [Fixnum]
9754
+ attr_accessor :total_token_count
9755
+
9756
+ def initialize(**args)
9757
+ update!(**args)
9758
+ end
9759
+
9760
+ # Update properties of this object
9761
+ def update!(**args)
9762
+ @candidates_token_count = args[:candidates_token_count] if args.key?(:candidates_token_count)
9763
+ @prompt_token_count = args[:prompt_token_count] if args.key?(:prompt_token_count)
9764
+ @total_token_count = args[:total_token_count] if args.key?(:total_token_count)
9765
+ end
9766
+ end
9767
+
9768
+ # Generation config.
9769
+ class GoogleCloudAiplatformV1beta1GenerationConfig
9770
+ include Google::Apis::Core::Hashable
9771
+
9772
+ # Optional. Number of candidates to generate.
9773
+ # Corresponds to the JSON property `candidateCount`
9774
+ # @return [Fixnum]
9775
+ attr_accessor :candidate_count
9776
+
9777
+ # Optional. The maximum number of output tokens to generate per message.
9778
+ # Corresponds to the JSON property `maxOutputTokens`
9779
+ # @return [Fixnum]
9780
+ attr_accessor :max_output_tokens
9781
+
9782
+ # Optional. Stop sequences.
9783
+ # Corresponds to the JSON property `stopSequences`
9784
+ # @return [Array<String>]
9785
+ attr_accessor :stop_sequences
9786
+
9787
+ # Optional. Controls the randomness of predictions.
9788
+ # Corresponds to the JSON property `temperature`
9789
+ # @return [Float]
9790
+ attr_accessor :temperature
9791
+
9792
+ # Optional. If specified, top-k sampling will be used.
9793
+ # Corresponds to the JSON property `topK`
9794
+ # @return [Float]
9795
+ attr_accessor :top_k
9796
+
9797
+ # Optional. If specified, nucleus sampling will be used.
9798
+ # Corresponds to the JSON property `topP`
9799
+ # @return [Float]
9800
+ attr_accessor :top_p
9801
+
9802
+ def initialize(**args)
9803
+ update!(**args)
9804
+ end
9805
+
9806
+ # Update properties of this object
9807
+ def update!(**args)
9808
+ @candidate_count = args[:candidate_count] if args.key?(:candidate_count)
9809
+ @max_output_tokens = args[:max_output_tokens] if args.key?(:max_output_tokens)
9810
+ @stop_sequences = args[:stop_sequences] if args.key?(:stop_sequences)
9811
+ @temperature = args[:temperature] if args.key?(:temperature)
9812
+ @top_k = args[:top_k] if args.key?(:top_k)
9813
+ @top_p = args[:top_p] if args.key?(:top_p)
9814
+ end
9815
+ end
9816
+
8287
9817
  # Generic Metadata shared by all operations.
8288
9818
  class GoogleCloudAiplatformV1beta1GenericOperationMetadata
8289
9819
  include Google::Apis::Core::Hashable
@@ -11780,8 +13310,7 @@ module Google
11780
13310
  # @return [Array<String>]
11781
13311
  attr_accessor :command
11782
13312
 
11783
- # Immutable. Deployment timeout. TODO (b/306244185): Revise documentation before
11784
- # exposing.
13313
+ # Immutable. Deployment timeout. Limit for deployment timeout is 2 hours.
11785
13314
  # Corresponds to the JSON property `deploymentTimeout`
11786
13315
  # @return [String]
11787
13316
  attr_accessor :deployment_timeout
@@ -11801,6 +13330,16 @@ module Google
11801
13330
  # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EnvVar>]
11802
13331
  attr_accessor :env
11803
13332
 
13333
+ # Immutable. List of ports to expose from the container. Vertex AI sends gRPC
13334
+ # prediction requests that it receives to the first port on this list. Vertex AI
13335
+ # also sends liveness and health checks to this port. If you do not specify this
13336
+ # field, gRPC requests to the container will be disabled. Vertex AI does not use
13337
+ # ports other than the first one listed. This field corresponds to the `ports`
13338
+ # field of the Kubernetes Containers v1 core API.
13339
+ # Corresponds to the JSON property `grpcPorts`
13340
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Port>]
13341
+ attr_accessor :grpc_ports
13342
+
11804
13343
  # Probe describes a health check to be performed against a container to
11805
13344
  # determine whether it is alive or ready to receive traffic.
11806
13345
  # Corresponds to the JSON property `healthProbe`
@@ -11883,7 +13422,7 @@ module Google
11883
13422
  attr_accessor :predict_route
11884
13423
 
11885
13424
  # Immutable. The amount of the VM memory to reserve as the shared memory for the
11886
- # model in megabytes. TODO (b/306244185): Revise documentation before exposing.
13425
+ # model in megabytes.
11887
13426
  # Corresponds to the JSON property `sharedMemorySizeMb`
11888
13427
  # @return [Fixnum]
11889
13428
  attr_accessor :shared_memory_size_mb
@@ -11904,6 +13443,7 @@ module Google
11904
13443
  @command = args[:command] if args.key?(:command)
11905
13444
  @deployment_timeout = args[:deployment_timeout] if args.key?(:deployment_timeout)
11906
13445
  @env = args[:env] if args.key?(:env)
13446
+ @grpc_ports = args[:grpc_ports] if args.key?(:grpc_ports)
11907
13447
  @health_probe = args[:health_probe] if args.key?(:health_probe)
11908
13448
  @health_route = args[:health_route] if args.key?(:health_route)
11909
13449
  @image_uri = args[:image_uri] if args.key?(:image_uri)
@@ -14316,6 +15856,64 @@ module Google
14316
15856
  end
14317
15857
  end
14318
15858
 
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.
15864
+ class GoogleCloudAiplatformV1beta1Part
15865
+ include Google::Apis::Core::Hashable
15866
+
15867
+ # URI based data.
15868
+ # Corresponds to the JSON property `fileData`
15869
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FileData]
15870
+ attr_accessor :file_data
15871
+
15872
+ # A predicted [FunctionCall] returned from the model that contains a string
15873
+ # representing the [FunctionDeclaration.name] and a structured JSON object
15874
+ # containing the parameters and their values.
15875
+ # Corresponds to the JSON property `functionCall`
15876
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FunctionCall]
15877
+ attr_accessor :function_call
15878
+
15879
+ # The result output from a [FunctionCall] that contains a string representing
15880
+ # the [FunctionDeclaration.name] and a structured JSON object containing any
15881
+ # output from the function is used as context to the model. This should contain
15882
+ # the result of a [FunctionCall] made based on model prediction.
15883
+ # Corresponds to the JSON property `functionResponse`
15884
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FunctionResponse]
15885
+ attr_accessor :function_response
15886
+
15887
+ # Raw media bytes. Text should not be sent as raw bytes, use the 'text' field.
15888
+ # Corresponds to the JSON property `inlineData`
15889
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Blob]
15890
+ attr_accessor :inline_data
15891
+
15892
+ # Optional. Text part (can be code).
15893
+ # Corresponds to the JSON property `text`
15894
+ # @return [String]
15895
+ attr_accessor :text
15896
+
15897
+ # Metadata describes the input video content.
15898
+ # Corresponds to the JSON property `videoMetadata`
15899
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1VideoMetadata]
15900
+ attr_accessor :video_metadata
15901
+
15902
+ def initialize(**args)
15903
+ update!(**args)
15904
+ end
15905
+
15906
+ # Update properties of this object
15907
+ def update!(**args)
15908
+ @file_data = args[:file_data] if args.key?(:file_data)
15909
+ @function_call = args[:function_call] if args.key?(:function_call)
15910
+ @function_response = args[:function_response] if args.key?(:function_response)
15911
+ @inline_data = args[:inline_data] if args.key?(:inline_data)
15912
+ @text = args[:text] if args.key?(:text)
15913
+ @video_metadata = args[:video_metadata] if args.key?(:video_metadata)
15914
+ end
15915
+ end
15916
+
14319
15917
  # Request message for JobService.PauseModelDeploymentMonitoringJob.
14320
15918
  class GoogleCloudAiplatformV1beta1PauseModelDeploymentMonitoringJobRequest
14321
15919
  include Google::Apis::Core::Hashable
@@ -15474,6 +17072,11 @@ module Google
15474
17072
  # @return [String]
15475
17073
  attr_accessor :version_id
15476
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
+
15477
17080
  def initialize(**args)
15478
17081
  update!(**args)
15479
17082
  end
@@ -15489,6 +17092,7 @@ module Google
15489
17092
  @publisher_model_template = args[:publisher_model_template] if args.key?(:publisher_model_template)
15490
17093
  @supported_actions = args[:supported_actions] if args.key?(:supported_actions)
15491
17094
  @version_id = args[:version_id] if args.key?(:version_id)
17095
+ @version_state = args[:version_state] if args.key?(:version_state)
15492
17096
  end
15493
17097
  end
15494
17098
 
@@ -15616,6 +17220,11 @@ module Google
15616
17220
  # @return [String]
15617
17221
  attr_accessor :model_display_name
15618
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
+
15619
17228
  # The resource name of the shared DeploymentResourcePool to deploy on. Format: `
15620
17229
  # projects/`project`/locations/`location`/deploymentResourcePools/`
15621
17230
  # deployment_resource_pool``
@@ -15640,6 +17249,7 @@ module Google
15640
17249
  @dedicated_resources = args[:dedicated_resources] if args.key?(:dedicated_resources)
15641
17250
  @large_model_reference = args[:large_model_reference] if args.key?(:large_model_reference)
15642
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)
15643
17253
  @shared_resources = args[:shared_resources] if args.key?(:shared_resources)
15644
17254
  @title = args[:title] if args.key?(:title)
15645
17255
  end
@@ -15752,6 +17362,11 @@ module Google
15752
17362
  class GoogleCloudAiplatformV1beta1PublisherModelResourceReference
15753
17363
  include Google::Apis::Core::Hashable
15754
17364
 
17365
+ # Description of the resource.
17366
+ # Corresponds to the JSON property `description`
17367
+ # @return [String]
17368
+ attr_accessor :description
17369
+
15755
17370
  # The resource name of the Google Cloud resource.
15756
17371
  # Corresponds to the JSON property `resourceName`
15757
17372
  # @return [String]
@@ -15762,14 +17377,21 @@ module Google
15762
17377
  # @return [String]
15763
17378
  attr_accessor :uri
15764
17379
 
17380
+ # Use case (CUJ) of the resource.
17381
+ # Corresponds to the JSON property `useCase`
17382
+ # @return [String]
17383
+ attr_accessor :use_case
17384
+
15765
17385
  def initialize(**args)
15766
17386
  update!(**args)
15767
17387
  end
15768
17388
 
15769
17389
  # Update properties of this object
15770
17390
  def update!(**args)
17391
+ @description = args[:description] if args.key?(:description)
15771
17392
  @resource_name = args[:resource_name] if args.key?(:resource_name)
15772
17393
  @uri = args[:uri] if args.key?(:uri)
17394
+ @use_case = args[:use_case] if args.key?(:use_case)
15773
17395
  end
15774
17396
  end
15775
17397
 
@@ -16891,6 +18513,64 @@ module Google
16891
18513
  end
16892
18514
  end
16893
18515
 
18516
+ # Safety rating corresponding to the generated content.
18517
+ class GoogleCloudAiplatformV1beta1SafetyRating
18518
+ include Google::Apis::Core::Hashable
18519
+
18520
+ # Output only. Indicates whether the content was filtered out because of this
18521
+ # rating.
18522
+ # Corresponds to the JSON property `blocked`
18523
+ # @return [Boolean]
18524
+ attr_accessor :blocked
18525
+ alias_method :blocked?, :blocked
18526
+
18527
+ # Output only. Harm category.
18528
+ # Corresponds to the JSON property `category`
18529
+ # @return [String]
18530
+ attr_accessor :category
18531
+
18532
+ # Output only. Harm probability levels in the content.
18533
+ # Corresponds to the JSON property `probability`
18534
+ # @return [String]
18535
+ attr_accessor :probability
18536
+
18537
+ def initialize(**args)
18538
+ update!(**args)
18539
+ end
18540
+
18541
+ # Update properties of this object
18542
+ def update!(**args)
18543
+ @blocked = args[:blocked] if args.key?(:blocked)
18544
+ @category = args[:category] if args.key?(:category)
18545
+ @probability = args[:probability] if args.key?(:probability)
18546
+ end
18547
+ end
18548
+
18549
+ # Safety settings.
18550
+ class GoogleCloudAiplatformV1beta1SafetySetting
18551
+ include Google::Apis::Core::Hashable
18552
+
18553
+ # Required. Harm category.
18554
+ # Corresponds to the JSON property `category`
18555
+ # @return [String]
18556
+ attr_accessor :category
18557
+
18558
+ # Required. The harm block threshold.
18559
+ # Corresponds to the JSON property `threshold`
18560
+ # @return [String]
18561
+ attr_accessor :threshold
18562
+
18563
+ def initialize(**args)
18564
+ update!(**args)
18565
+ end
18566
+
18567
+ # Update properties of this object
18568
+ def update!(**args)
18569
+ @category = args[:category] if args.key?(:category)
18570
+ @threshold = args[:threshold] if args.key?(:threshold)
18571
+ end
18572
+ end
18573
+
16894
18574
  # Active learning data sampling config. For every active learning labeling
16895
18575
  # iteration, it will select a batch of data based on the sampling strategy.
16896
18576
  class GoogleCloudAiplatformV1beta1SampleConfig
@@ -17295,6 +18975,82 @@ module Google
17295
18975
  end
17296
18976
  end
17297
18977
 
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.
18981
+ class GoogleCloudAiplatformV1beta1Schema
18982
+ include Google::Apis::Core::Hashable
18983
+
18984
+ # Optional. The description of the data.
18985
+ # Corresponds to the JSON property `description`
18986
+ # @return [String]
18987
+ attr_accessor :description
18988
+
18989
+ # Optional. Possible values of the element of Type.STRING with enum format. For
18990
+ # example we can define an Enum Direction as : `type:STRING, format:enum, enum:["
18991
+ # EAST", NORTH", "SOUTH", "WEST"]`
18992
+ # Corresponds to the JSON property `enum`
18993
+ # @return [Array<String>]
18994
+ attr_accessor :enum
18995
+
18996
+ # Optional. Example of the object. Will only populated when the object is the
18997
+ # root.
18998
+ # Corresponds to the JSON property `example`
18999
+ # @return [Object]
19000
+ attr_accessor :example
19001
+
19002
+ # Optional. The format of the data. Supported formats: for NUMBER type: float,
19003
+ # double for INTEGER type: int32, int64
19004
+ # Corresponds to the JSON property `format`
19005
+ # @return [String]
19006
+ attr_accessor :format
19007
+
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.
19011
+ # Corresponds to the JSON property `items`
19012
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Schema]
19013
+ attr_accessor :items
19014
+
19015
+ # Optional. Indicates if the value may be null.
19016
+ # Corresponds to the JSON property `nullable`
19017
+ # @return [Boolean]
19018
+ attr_accessor :nullable
19019
+ alias_method :nullable?, :nullable
19020
+
19021
+ # Optional. Properties of Type.OBJECT.
19022
+ # Corresponds to the JSON property `properties`
19023
+ # @return [Hash<String,Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Schema>]
19024
+ attr_accessor :properties
19025
+
19026
+ # Optional. Required properties of Type.OBJECT.
19027
+ # Corresponds to the JSON property `required`
19028
+ # @return [Array<String>]
19029
+ attr_accessor :required
19030
+
19031
+ # Optional. The type of the data.
19032
+ # Corresponds to the JSON property `type`
19033
+ # @return [String]
19034
+ attr_accessor :type
19035
+
19036
+ def initialize(**args)
19037
+ update!(**args)
19038
+ end
19039
+
19040
+ # Update properties of this object
19041
+ def update!(**args)
19042
+ @description = args[:description] if args.key?(:description)
19043
+ @enum = args[:enum] if args.key?(:enum)
19044
+ @example = args[:example] if args.key?(:example)
19045
+ @format = args[:format] if args.key?(:format)
19046
+ @items = args[:items] if args.key?(:items)
19047
+ @nullable = args[:nullable] if args.key?(:nullable)
19048
+ @properties = args[:properties] if args.key?(:properties)
19049
+ @required = args[:required] if args.key?(:required)
19050
+ @type = args[:type] if args.key?(:type)
19051
+ end
19052
+ end
19053
+
17298
19054
  # An entry of mapping between color and AnnotationSpec. The mapping is used in
17299
19055
  # segmentation mask.
17300
19056
  class GoogleCloudAiplatformV1beta1SchemaAnnotationSpecColor
@@ -25472,6 +27228,32 @@ module Google
25472
27228
  end
25473
27229
  end
25474
27230
 
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.
27234
+ class GoogleCloudAiplatformV1beta1Tool
27235
+ include Google::Apis::Core::Hashable
27236
+
27237
+ # Optional. One or more function declarations to be passed to the model along
27238
+ # with the current user query. Model may decide to call a subset of these
27239
+ # functions by populating FunctionCall in the response. User should provide a
27240
+ # FunctionResponse for each function call in the next turn. Based on the
27241
+ # function responses, Model will generate the final response back to the user.
27242
+ # Maximum 64 function declarations can be provided.
27243
+ # Corresponds to the JSON property `functionDeclarations`
27244
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FunctionDeclaration>]
27245
+ attr_accessor :function_declarations
27246
+
27247
+ def initialize(**args)
27248
+ update!(**args)
27249
+ end
27250
+
27251
+ # Update properties of this object
27252
+ def update!(**args)
27253
+ @function_declarations = args[:function_declarations] if args.key?(:function_declarations)
27254
+ end
27255
+ end
27256
+
25475
27257
  # CMLE training config. For every active learning labeling iteration, system
25476
27258
  # will train a machine learning model on CMLE. The trained model will be used by
25477
27259
  # data sampling algorithm to select DataItems.
@@ -26253,6 +28035,45 @@ module Google
26253
28035
  end
26254
28036
  end
26255
28037
 
28038
+ # Metadata information for NotebookService.UpgradeNotebookRuntime.
28039
+ class GoogleCloudAiplatformV1beta1UpgradeNotebookRuntimeOperationMetadata
28040
+ include Google::Apis::Core::Hashable
28041
+
28042
+ # Generic Metadata shared by all operations.
28043
+ # Corresponds to the JSON property `genericMetadata`
28044
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenericOperationMetadata]
28045
+ attr_accessor :generic_metadata
28046
+
28047
+ # A human-readable message that shows the intermediate progress details of
28048
+ # NotebookRuntime.
28049
+ # Corresponds to the JSON property `progressMessage`
28050
+ # @return [String]
28051
+ attr_accessor :progress_message
28052
+
28053
+ def initialize(**args)
28054
+ update!(**args)
28055
+ end
28056
+
28057
+ # Update properties of this object
28058
+ def update!(**args)
28059
+ @generic_metadata = args[:generic_metadata] if args.key?(:generic_metadata)
28060
+ @progress_message = args[:progress_message] if args.key?(:progress_message)
28061
+ end
28062
+ end
28063
+
28064
+ # Request message for NotebookService.UpgradeNotebookRuntime.
28065
+ class GoogleCloudAiplatformV1beta1UpgradeNotebookRuntimeRequest
28066
+ include Google::Apis::Core::Hashable
28067
+
28068
+ def initialize(**args)
28069
+ update!(**args)
28070
+ end
28071
+
28072
+ # Update properties of this object
28073
+ def update!(**args)
28074
+ end
28075
+ end
28076
+
26256
28077
  # Details of ModelService.UploadModel operation.
26257
28078
  class GoogleCloudAiplatformV1beta1UploadModelOperationMetadata
26258
28079
  include Google::Apis::Core::Hashable
@@ -26445,6 +28266,31 @@ module Google
26445
28266
  end
26446
28267
  end
26447
28268
 
28269
+ # Metadata describes the input video content.
28270
+ class GoogleCloudAiplatformV1beta1VideoMetadata
28271
+ include Google::Apis::Core::Hashable
28272
+
28273
+ # Optional. The end offset of the video.
28274
+ # Corresponds to the JSON property `endOffset`
28275
+ # @return [String]
28276
+ attr_accessor :end_offset
28277
+
28278
+ # Optional. The start offset of the video.
28279
+ # Corresponds to the JSON property `startOffset`
28280
+ # @return [String]
28281
+ attr_accessor :start_offset
28282
+
28283
+ def initialize(**args)
28284
+ update!(**args)
28285
+ end
28286
+
28287
+ # Update properties of this object
28288
+ def update!(**args)
28289
+ @end_offset = args[:end_offset] if args.key?(:end_offset)
28290
+ @start_offset = args[:start_offset] if args.key?(:start_offset)
28291
+ end
28292
+ end
28293
+
26448
28294
  # Represents the spec of a worker pool in a job.
26449
28295
  class GoogleCloudAiplatformV1beta1WorkerPoolSpec
26450
28296
  include Google::Apis::Core::Hashable
@@ -27272,6 +29118,47 @@ module Google
27272
29118
  end
27273
29119
  end
27274
29120
 
29121
+ # Represents a whole or partial calendar date, such as a birthday. The time of
29122
+ # day and time zone are either specified elsewhere or are insignificant. The
29123
+ # date is relative to the Gregorian Calendar. This can represent one of the
29124
+ # following: * A full date, with non-zero year, month, and day values. * A month
29125
+ # and day, with a zero year (for example, an anniversary). * A year on its own,
29126
+ # with a zero month and a zero day. * A year and month, with a zero day (for
29127
+ # example, a credit card expiration date). Related types: * google.type.
29128
+ # TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
29129
+ class GoogleTypeDate
29130
+ include Google::Apis::Core::Hashable
29131
+
29132
+ # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to
29133
+ # specify a year by itself or a year and month where the day isn't significant.
29134
+ # Corresponds to the JSON property `day`
29135
+ # @return [Fixnum]
29136
+ attr_accessor :day
29137
+
29138
+ # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month
29139
+ # and day.
29140
+ # Corresponds to the JSON property `month`
29141
+ # @return [Fixnum]
29142
+ attr_accessor :month
29143
+
29144
+ # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a
29145
+ # year.
29146
+ # Corresponds to the JSON property `year`
29147
+ # @return [Fixnum]
29148
+ attr_accessor :year
29149
+
29150
+ def initialize(**args)
29151
+ update!(**args)
29152
+ end
29153
+
29154
+ # Update properties of this object
29155
+ def update!(**args)
29156
+ @day = args[:day] if args.key?(:day)
29157
+ @month = args[:month] if args.key?(:month)
29158
+ @year = args[:year] if args.key?(:year)
29159
+ end
29160
+ end
29161
+
27275
29162
  # Represents a textual expression in the Common Expression Language (CEL) syntax.
27276
29163
  # CEL is a C-like expression language. The syntax and semantics of CEL are
27277
29164
  # documented at https://github.com/google/cel-spec. Example (Comparison): title:
@@ -27391,6 +29278,102 @@ module Google
27391
29278
  @units = args[:units] if args.key?(:units)
27392
29279
  end
27393
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
27394
29377
  end
27395
29378
  end
27396
29379
  end