google-apis-aiplatform_v1 0.8.0 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/google/apis/aiplatform_v1/classes.rb +1768 -53
- data/lib/google/apis/aiplatform_v1/gem_version.rb +2 -2
- data/lib/google/apis/aiplatform_v1/representations.rb +829 -54
- data/lib/google/apis/aiplatform_v1/service.rb +147 -85
- metadata +3 -3
@@ -22,6 +22,884 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module AiplatformV1
|
24
24
|
|
25
|
+
# Video embedding response.
|
26
|
+
class CloudAiLargeModelsVisionEmbedVideoResponse
|
27
|
+
include Google::Apis::Core::Hashable
|
28
|
+
|
29
|
+
# The embedding vector for the video.
|
30
|
+
# Corresponds to the JSON property `videoEmbeddings`
|
31
|
+
# @return [Array<Object>]
|
32
|
+
attr_accessor :video_embeddings
|
33
|
+
|
34
|
+
def initialize(**args)
|
35
|
+
update!(**args)
|
36
|
+
end
|
37
|
+
|
38
|
+
# Update properties of this object
|
39
|
+
def update!(**args)
|
40
|
+
@video_embeddings = args[:video_embeddings] if args.key?(:video_embeddings)
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
# Details for filtered input text.
|
45
|
+
class CloudAiLargeModelsVisionFilteredText
|
46
|
+
include Google::Apis::Core::Hashable
|
47
|
+
|
48
|
+
# Confidence level
|
49
|
+
# Corresponds to the JSON property `category`
|
50
|
+
# @return [String]
|
51
|
+
attr_accessor :category
|
52
|
+
|
53
|
+
# Filtered category
|
54
|
+
# Corresponds to the JSON property `confidence`
|
55
|
+
# @return [String]
|
56
|
+
attr_accessor :confidence
|
57
|
+
|
58
|
+
# Input prompt
|
59
|
+
# Corresponds to the JSON property `prompt`
|
60
|
+
# @return [String]
|
61
|
+
attr_accessor :prompt
|
62
|
+
|
63
|
+
# Score for category
|
64
|
+
# Corresponds to the JSON property `score`
|
65
|
+
# @return [Float]
|
66
|
+
attr_accessor :score
|
67
|
+
|
68
|
+
def initialize(**args)
|
69
|
+
update!(**args)
|
70
|
+
end
|
71
|
+
|
72
|
+
# Update properties of this object
|
73
|
+
def update!(**args)
|
74
|
+
@category = args[:category] if args.key?(:category)
|
75
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
76
|
+
@prompt = args[:prompt] if args.key?(:prompt)
|
77
|
+
@score = args[:score] if args.key?(:score)
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
81
|
+
# Generate video response.
|
82
|
+
class CloudAiLargeModelsVisionGenerateVideoResponse
|
83
|
+
include Google::Apis::Core::Hashable
|
84
|
+
|
85
|
+
# The generates samples.
|
86
|
+
# Corresponds to the JSON property `generatedSamples`
|
87
|
+
# @return [Array<Google::Apis::AiplatformV1::CloudAiLargeModelsVisionMedia>]
|
88
|
+
attr_accessor :generated_samples
|
89
|
+
|
90
|
+
# Returns if any videos were filtered due to RAI policies.
|
91
|
+
# Corresponds to the JSON property `raiMediaFilteredCount`
|
92
|
+
# @return [Fixnum]
|
93
|
+
attr_accessor :rai_media_filtered_count
|
94
|
+
|
95
|
+
# Returns rai failure reasons if any.
|
96
|
+
# Corresponds to the JSON property `raiMediaFilteredReasons`
|
97
|
+
# @return [Array<String>]
|
98
|
+
attr_accessor :rai_media_filtered_reasons
|
99
|
+
|
100
|
+
# Details for filtered input text.
|
101
|
+
# Corresponds to the JSON property `raiTextFilteredReason`
|
102
|
+
# @return [Google::Apis::AiplatformV1::CloudAiLargeModelsVisionFilteredText]
|
103
|
+
attr_accessor :rai_text_filtered_reason
|
104
|
+
|
105
|
+
def initialize(**args)
|
106
|
+
update!(**args)
|
107
|
+
end
|
108
|
+
|
109
|
+
# Update properties of this object
|
110
|
+
def update!(**args)
|
111
|
+
@generated_samples = args[:generated_samples] if args.key?(:generated_samples)
|
112
|
+
@rai_media_filtered_count = args[:rai_media_filtered_count] if args.key?(:rai_media_filtered_count)
|
113
|
+
@rai_media_filtered_reasons = args[:rai_media_filtered_reasons] if args.key?(:rai_media_filtered_reasons)
|
114
|
+
@rai_text_filtered_reason = args[:rai_text_filtered_reason] if args.key?(:rai_text_filtered_reason)
|
115
|
+
end
|
116
|
+
end
|
117
|
+
|
118
|
+
# Image.
|
119
|
+
class CloudAiLargeModelsVisionImage
|
120
|
+
include Google::Apis::Core::Hashable
|
121
|
+
|
122
|
+
# Image encoding, encoded as "image/png" or "image/jpg".
|
123
|
+
# Corresponds to the JSON property `encoding`
|
124
|
+
# @return [String]
|
125
|
+
attr_accessor :encoding
|
126
|
+
|
127
|
+
# Raw bytes.
|
128
|
+
# Corresponds to the JSON property `image`
|
129
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
130
|
+
# @return [String]
|
131
|
+
attr_accessor :image
|
132
|
+
|
133
|
+
# RAI scores for generated image returned.
|
134
|
+
# Corresponds to the JSON property `imageRaiScores`
|
135
|
+
# @return [Google::Apis::AiplatformV1::CloudAiLargeModelsVisionImageRaiScores]
|
136
|
+
attr_accessor :image_rai_scores
|
137
|
+
|
138
|
+
# RAI info for image
|
139
|
+
# Corresponds to the JSON property `raiInfo`
|
140
|
+
# @return [Google::Apis::AiplatformV1::CloudAiLargeModelsVisionRaiInfo]
|
141
|
+
attr_accessor :rai_info
|
142
|
+
|
143
|
+
# Semantic filter info for image.
|
144
|
+
# Corresponds to the JSON property `semanticFilterResponse`
|
145
|
+
# @return [Google::Apis::AiplatformV1::CloudAiLargeModelsVisionSemanticFilterResponse]
|
146
|
+
attr_accessor :semantic_filter_response
|
147
|
+
|
148
|
+
# Path to another storage (typically Google Cloud Storage).
|
149
|
+
# Corresponds to the JSON property `uri`
|
150
|
+
# @return [String]
|
151
|
+
attr_accessor :uri
|
152
|
+
|
153
|
+
def initialize(**args)
|
154
|
+
update!(**args)
|
155
|
+
end
|
156
|
+
|
157
|
+
# Update properties of this object
|
158
|
+
def update!(**args)
|
159
|
+
@encoding = args[:encoding] if args.key?(:encoding)
|
160
|
+
@image = args[:image] if args.key?(:image)
|
161
|
+
@image_rai_scores = args[:image_rai_scores] if args.key?(:image_rai_scores)
|
162
|
+
@rai_info = args[:rai_info] if args.key?(:rai_info)
|
163
|
+
@semantic_filter_response = args[:semantic_filter_response] if args.key?(:semantic_filter_response)
|
164
|
+
@uri = args[:uri] if args.key?(:uri)
|
165
|
+
end
|
166
|
+
end
|
167
|
+
|
168
|
+
# RAI scores for generated image returned.
|
169
|
+
class CloudAiLargeModelsVisionImageRaiScores
|
170
|
+
include Google::Apis::Core::Hashable
|
171
|
+
|
172
|
+
# Agile watermark score for image.
|
173
|
+
# Corresponds to the JSON property `agileWatermarkDetectionScore`
|
174
|
+
# @return [Float]
|
175
|
+
attr_accessor :agile_watermark_detection_score
|
176
|
+
|
177
|
+
def initialize(**args)
|
178
|
+
update!(**args)
|
179
|
+
end
|
180
|
+
|
181
|
+
# Update properties of this object
|
182
|
+
def update!(**args)
|
183
|
+
@agile_watermark_detection_score = args[:agile_watermark_detection_score] if args.key?(:agile_watermark_detection_score)
|
184
|
+
end
|
185
|
+
end
|
186
|
+
|
187
|
+
# Media.
|
188
|
+
class CloudAiLargeModelsVisionMedia
|
189
|
+
include Google::Apis::Core::Hashable
|
190
|
+
|
191
|
+
# Image.
|
192
|
+
# Corresponds to the JSON property `image`
|
193
|
+
# @return [Google::Apis::AiplatformV1::CloudAiLargeModelsVisionImage]
|
194
|
+
attr_accessor :image
|
195
|
+
|
196
|
+
# Video
|
197
|
+
# Corresponds to the JSON property `video`
|
198
|
+
# @return [Google::Apis::AiplatformV1::CloudAiLargeModelsVisionVideo]
|
199
|
+
attr_accessor :video
|
200
|
+
|
201
|
+
def initialize(**args)
|
202
|
+
update!(**args)
|
203
|
+
end
|
204
|
+
|
205
|
+
# Update properties of this object
|
206
|
+
def update!(**args)
|
207
|
+
@image = args[:image] if args.key?(:image)
|
208
|
+
@video = args[:video] if args.key?(:video)
|
209
|
+
end
|
210
|
+
end
|
211
|
+
|
212
|
+
# Generate media content response
|
213
|
+
class CloudAiLargeModelsVisionMediaGenerateContentResponse
|
214
|
+
include Google::Apis::Core::Hashable
|
215
|
+
|
216
|
+
# Response to the user's request.
|
217
|
+
# Corresponds to the JSON property `response`
|
218
|
+
# @return [Google::Apis::AiplatformV1::CloudAiNlLlmProtoServiceGenerateMultiModalResponse]
|
219
|
+
attr_accessor :response
|
220
|
+
|
221
|
+
def initialize(**args)
|
222
|
+
update!(**args)
|
223
|
+
end
|
224
|
+
|
225
|
+
# Update properties of this object
|
226
|
+
def update!(**args)
|
227
|
+
@response = args[:response] if args.key?(:response)
|
228
|
+
end
|
229
|
+
end
|
230
|
+
|
231
|
+
#
|
232
|
+
class CloudAiLargeModelsVisionNamedBoundingBox
|
233
|
+
include Google::Apis::Core::Hashable
|
234
|
+
|
235
|
+
#
|
236
|
+
# Corresponds to the JSON property `classes`
|
237
|
+
# @return [Array<String>]
|
238
|
+
attr_accessor :classes
|
239
|
+
|
240
|
+
#
|
241
|
+
# Corresponds to the JSON property `entities`
|
242
|
+
# @return [Array<String>]
|
243
|
+
attr_accessor :entities
|
244
|
+
|
245
|
+
#
|
246
|
+
# Corresponds to the JSON property `scores`
|
247
|
+
# @return [Array<Float>]
|
248
|
+
attr_accessor :scores
|
249
|
+
|
250
|
+
#
|
251
|
+
# Corresponds to the JSON property `x1`
|
252
|
+
# @return [Float]
|
253
|
+
attr_accessor :x1
|
254
|
+
|
255
|
+
#
|
256
|
+
# Corresponds to the JSON property `x2`
|
257
|
+
# @return [Float]
|
258
|
+
attr_accessor :x2
|
259
|
+
|
260
|
+
#
|
261
|
+
# Corresponds to the JSON property `y1`
|
262
|
+
# @return [Float]
|
263
|
+
attr_accessor :y1
|
264
|
+
|
265
|
+
#
|
266
|
+
# Corresponds to the JSON property `y2`
|
267
|
+
# @return [Float]
|
268
|
+
attr_accessor :y2
|
269
|
+
|
270
|
+
def initialize(**args)
|
271
|
+
update!(**args)
|
272
|
+
end
|
273
|
+
|
274
|
+
# Update properties of this object
|
275
|
+
def update!(**args)
|
276
|
+
@classes = args[:classes] if args.key?(:classes)
|
277
|
+
@entities = args[:entities] if args.key?(:entities)
|
278
|
+
@scores = args[:scores] if args.key?(:scores)
|
279
|
+
@x1 = args[:x1] if args.key?(:x1)
|
280
|
+
@x2 = args[:x2] if args.key?(:x2)
|
281
|
+
@y1 = args[:y1] if args.key?(:y1)
|
282
|
+
@y2 = args[:y2] if args.key?(:y2)
|
283
|
+
end
|
284
|
+
end
|
285
|
+
|
286
|
+
#
|
287
|
+
class CloudAiLargeModelsVisionRaiInfo
|
288
|
+
include Google::Apis::Core::Hashable
|
289
|
+
|
290
|
+
# List of rai categories' information to return
|
291
|
+
# Corresponds to the JSON property `raiCategories`
|
292
|
+
# @return [Array<String>]
|
293
|
+
attr_accessor :rai_categories
|
294
|
+
|
295
|
+
# List of rai scores mapping to the rai categories. Rounded to 1 decimal place.
|
296
|
+
# Corresponds to the JSON property `scores`
|
297
|
+
# @return [Array<Float>]
|
298
|
+
attr_accessor :scores
|
299
|
+
|
300
|
+
def initialize(**args)
|
301
|
+
update!(**args)
|
302
|
+
end
|
303
|
+
|
304
|
+
# Update properties of this object
|
305
|
+
def update!(**args)
|
306
|
+
@rai_categories = args[:rai_categories] if args.key?(:rai_categories)
|
307
|
+
@scores = args[:scores] if args.key?(:scores)
|
308
|
+
end
|
309
|
+
end
|
310
|
+
|
311
|
+
# Video reasoning response.
|
312
|
+
class CloudAiLargeModelsVisionReasonVideoResponse
|
313
|
+
include Google::Apis::Core::Hashable
|
314
|
+
|
315
|
+
# Generated text responses. The generated responses for different segments
|
316
|
+
# within the same video.
|
317
|
+
# Corresponds to the JSON property `responses`
|
318
|
+
# @return [Array<Google::Apis::AiplatformV1::CloudAiLargeModelsVisionReasonVideoResponseTextResponse>]
|
319
|
+
attr_accessor :responses
|
320
|
+
|
321
|
+
def initialize(**args)
|
322
|
+
update!(**args)
|
323
|
+
end
|
324
|
+
|
325
|
+
# Update properties of this object
|
326
|
+
def update!(**args)
|
327
|
+
@responses = args[:responses] if args.key?(:responses)
|
328
|
+
end
|
329
|
+
end
|
330
|
+
|
331
|
+
# Contains text that is the response of the video captioning.
|
332
|
+
class CloudAiLargeModelsVisionReasonVideoResponseTextResponse
|
333
|
+
include Google::Apis::Core::Hashable
|
334
|
+
|
335
|
+
# For ease of use, assume that the start_offset is inclusive and the end_offset
|
336
|
+
# is exclusive. In mathematical terms, the partition would be written as [
|
337
|
+
# start_offset, end_offset).
|
338
|
+
# Corresponds to the JSON property `relativeTemporalPartition`
|
339
|
+
# @return [Google::Apis::AiplatformV1::CloudAiLargeModelsVisionRelativeTemporalPartition]
|
340
|
+
attr_accessor :relative_temporal_partition
|
341
|
+
|
342
|
+
# Text information
|
343
|
+
# Corresponds to the JSON property `text`
|
344
|
+
# @return [String]
|
345
|
+
attr_accessor :text
|
346
|
+
|
347
|
+
def initialize(**args)
|
348
|
+
update!(**args)
|
349
|
+
end
|
350
|
+
|
351
|
+
# Update properties of this object
|
352
|
+
def update!(**args)
|
353
|
+
@relative_temporal_partition = args[:relative_temporal_partition] if args.key?(:relative_temporal_partition)
|
354
|
+
@text = args[:text] if args.key?(:text)
|
355
|
+
end
|
356
|
+
end
|
357
|
+
|
358
|
+
# For ease of use, assume that the start_offset is inclusive and the end_offset
|
359
|
+
# is exclusive. In mathematical terms, the partition would be written as [
|
360
|
+
# start_offset, end_offset).
|
361
|
+
class CloudAiLargeModelsVisionRelativeTemporalPartition
|
362
|
+
include Google::Apis::Core::Hashable
|
363
|
+
|
364
|
+
# End time offset of the partition.
|
365
|
+
# Corresponds to the JSON property `endOffset`
|
366
|
+
# @return [String]
|
367
|
+
attr_accessor :end_offset
|
368
|
+
|
369
|
+
# Start time offset of the partition.
|
370
|
+
# Corresponds to the JSON property `startOffset`
|
371
|
+
# @return [String]
|
372
|
+
attr_accessor :start_offset
|
373
|
+
|
374
|
+
def initialize(**args)
|
375
|
+
update!(**args)
|
376
|
+
end
|
377
|
+
|
378
|
+
# Update properties of this object
|
379
|
+
def update!(**args)
|
380
|
+
@end_offset = args[:end_offset] if args.key?(:end_offset)
|
381
|
+
@start_offset = args[:start_offset] if args.key?(:start_offset)
|
382
|
+
end
|
383
|
+
end
|
384
|
+
|
385
|
+
#
|
386
|
+
class CloudAiLargeModelsVisionSemanticFilterResponse
|
387
|
+
include Google::Apis::Core::Hashable
|
388
|
+
|
389
|
+
# Class labels of the bounding boxes that failed the semantic filtering.
|
390
|
+
# Bounding box coordinates.
|
391
|
+
# Corresponds to the JSON property `namedBoundingBoxes`
|
392
|
+
# @return [Array<Google::Apis::AiplatformV1::CloudAiLargeModelsVisionNamedBoundingBox>]
|
393
|
+
attr_accessor :named_bounding_boxes
|
394
|
+
|
395
|
+
# This response is added when semantic filter config is turned on in EditConfig.
|
396
|
+
# It reports if this image is passed semantic filter response. If
|
397
|
+
# passed_semantic_filter is false, the bounding box information will be
|
398
|
+
# populated for user to check what caused the semantic filter to fail.
|
399
|
+
# Corresponds to the JSON property `passedSemanticFilter`
|
400
|
+
# @return [Boolean]
|
401
|
+
attr_accessor :passed_semantic_filter
|
402
|
+
alias_method :passed_semantic_filter?, :passed_semantic_filter
|
403
|
+
|
404
|
+
def initialize(**args)
|
405
|
+
update!(**args)
|
406
|
+
end
|
407
|
+
|
408
|
+
# Update properties of this object
|
409
|
+
def update!(**args)
|
410
|
+
@named_bounding_boxes = args[:named_bounding_boxes] if args.key?(:named_bounding_boxes)
|
411
|
+
@passed_semantic_filter = args[:passed_semantic_filter] if args.key?(:passed_semantic_filter)
|
412
|
+
end
|
413
|
+
end
|
414
|
+
|
415
|
+
# Video
|
416
|
+
class CloudAiLargeModelsVisionVideo
|
417
|
+
include Google::Apis::Core::Hashable
|
418
|
+
|
419
|
+
# Path to another storage (typically Google Cloud Storage).
|
420
|
+
# Corresponds to the JSON property `uri`
|
421
|
+
# @return [String]
|
422
|
+
attr_accessor :uri
|
423
|
+
|
424
|
+
# Raw bytes.
|
425
|
+
# Corresponds to the JSON property `video`
|
426
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
427
|
+
# @return [String]
|
428
|
+
attr_accessor :video
|
429
|
+
|
430
|
+
def initialize(**args)
|
431
|
+
update!(**args)
|
432
|
+
end
|
433
|
+
|
434
|
+
# Update properties of this object
|
435
|
+
def update!(**args)
|
436
|
+
@uri = args[:uri] if args.key?(:uri)
|
437
|
+
@video = args[:video] if args.key?(:video)
|
438
|
+
end
|
439
|
+
end
|
440
|
+
|
441
|
+
#
|
442
|
+
class CloudAiNlLlmProtoServiceCandidate
|
443
|
+
include Google::Apis::Core::Hashable
|
444
|
+
|
445
|
+
# A collection of source attributions for a piece of content.
|
446
|
+
# Corresponds to the JSON property `citationMetadata`
|
447
|
+
# @return [Google::Apis::AiplatformV1::CloudAiNlLlmProtoServiceCitationMetadata]
|
448
|
+
attr_accessor :citation_metadata
|
449
|
+
|
450
|
+
# The content of a single message from a participant.
|
451
|
+
# Corresponds to the JSON property `content`
|
452
|
+
# @return [Google::Apis::AiplatformV1::CloudAiNlLlmProtoServiceContent]
|
453
|
+
attr_accessor :content
|
454
|
+
|
455
|
+
# A string that describes the filtering behavior in more detail. Only filled
|
456
|
+
# when reason is set.
|
457
|
+
# Corresponds to the JSON property `finishMessage`
|
458
|
+
# @return [String]
|
459
|
+
attr_accessor :finish_message
|
460
|
+
|
461
|
+
# The reason why the model stopped generating tokens.
|
462
|
+
# Corresponds to the JSON property `finishReason`
|
463
|
+
# @return [String]
|
464
|
+
attr_accessor :finish_reason
|
465
|
+
|
466
|
+
# Index of the candidate.
|
467
|
+
# Corresponds to the JSON property `index`
|
468
|
+
# @return [Fixnum]
|
469
|
+
attr_accessor :index
|
470
|
+
|
471
|
+
# Safety ratings of the generated content.
|
472
|
+
# Corresponds to the JSON property `safetyRatings`
|
473
|
+
# @return [Array<Google::Apis::AiplatformV1::CloudAiNlLlmProtoServiceSafetyRating>]
|
474
|
+
attr_accessor :safety_ratings
|
475
|
+
|
476
|
+
def initialize(**args)
|
477
|
+
update!(**args)
|
478
|
+
end
|
479
|
+
|
480
|
+
# Update properties of this object
|
481
|
+
def update!(**args)
|
482
|
+
@citation_metadata = args[:citation_metadata] if args.key?(:citation_metadata)
|
483
|
+
@content = args[:content] if args.key?(:content)
|
484
|
+
@finish_message = args[:finish_message] if args.key?(:finish_message)
|
485
|
+
@finish_reason = args[:finish_reason] if args.key?(:finish_reason)
|
486
|
+
@index = args[:index] if args.key?(:index)
|
487
|
+
@safety_ratings = args[:safety_ratings] if args.key?(:safety_ratings)
|
488
|
+
end
|
489
|
+
end
|
490
|
+
|
491
|
+
# Source attributions for content.
|
492
|
+
class CloudAiNlLlmProtoServiceCitation
|
493
|
+
include Google::Apis::Core::Hashable
|
494
|
+
|
495
|
+
# End index into the content.
|
496
|
+
# Corresponds to the JSON property `endIndex`
|
497
|
+
# @return [Fixnum]
|
498
|
+
attr_accessor :end_index
|
499
|
+
|
500
|
+
# License of the attribution.
|
501
|
+
# Corresponds to the JSON property `license`
|
502
|
+
# @return [String]
|
503
|
+
attr_accessor :license
|
504
|
+
|
505
|
+
# Represents a whole or partial calendar date, such as a birthday. The time of
|
506
|
+
# day and time zone are either specified elsewhere or are insignificant. The
|
507
|
+
# date is relative to the Gregorian Calendar. This can represent one of the
|
508
|
+
# following: * A full date, with non-zero year, month, and day values. * A month
|
509
|
+
# and day, with a zero year (for example, an anniversary). * A year on its own,
|
510
|
+
# with a zero month and a zero day. * A year and month, with a zero day (for
|
511
|
+
# example, a credit card expiration date). Related types: * google.type.
|
512
|
+
# TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
|
513
|
+
# Corresponds to the JSON property `publicationDate`
|
514
|
+
# @return [Google::Apis::AiplatformV1::GoogleTypeDate]
|
515
|
+
attr_accessor :publication_date
|
516
|
+
|
517
|
+
# Start index into the content.
|
518
|
+
# Corresponds to the JSON property `startIndex`
|
519
|
+
# @return [Fixnum]
|
520
|
+
attr_accessor :start_index
|
521
|
+
|
522
|
+
# Title of the attribution.
|
523
|
+
# Corresponds to the JSON property `title`
|
524
|
+
# @return [String]
|
525
|
+
attr_accessor :title
|
526
|
+
|
527
|
+
# Url reference of the attribution.
|
528
|
+
# Corresponds to the JSON property `uri`
|
529
|
+
# @return [String]
|
530
|
+
attr_accessor :uri
|
531
|
+
|
532
|
+
def initialize(**args)
|
533
|
+
update!(**args)
|
534
|
+
end
|
535
|
+
|
536
|
+
# Update properties of this object
|
537
|
+
def update!(**args)
|
538
|
+
@end_index = args[:end_index] if args.key?(:end_index)
|
539
|
+
@license = args[:license] if args.key?(:license)
|
540
|
+
@publication_date = args[:publication_date] if args.key?(:publication_date)
|
541
|
+
@start_index = args[:start_index] if args.key?(:start_index)
|
542
|
+
@title = args[:title] if args.key?(:title)
|
543
|
+
@uri = args[:uri] if args.key?(:uri)
|
544
|
+
end
|
545
|
+
end
|
546
|
+
|
547
|
+
# A collection of source attributions for a piece of content.
|
548
|
+
class CloudAiNlLlmProtoServiceCitationMetadata
|
549
|
+
include Google::Apis::Core::Hashable
|
550
|
+
|
551
|
+
# List of citations.
|
552
|
+
# Corresponds to the JSON property `citations`
|
553
|
+
# @return [Array<Google::Apis::AiplatformV1::CloudAiNlLlmProtoServiceCitation>]
|
554
|
+
attr_accessor :citations
|
555
|
+
|
556
|
+
def initialize(**args)
|
557
|
+
update!(**args)
|
558
|
+
end
|
559
|
+
|
560
|
+
# Update properties of this object
|
561
|
+
def update!(**args)
|
562
|
+
@citations = args[:citations] if args.key?(:citations)
|
563
|
+
end
|
564
|
+
end
|
565
|
+
|
566
|
+
# The content of a single message from a participant.
|
567
|
+
class CloudAiNlLlmProtoServiceContent
|
568
|
+
include Google::Apis::Core::Hashable
|
569
|
+
|
570
|
+
# The parts of the message.
|
571
|
+
# Corresponds to the JSON property `parts`
|
572
|
+
# @return [Array<Google::Apis::AiplatformV1::CloudAiNlLlmProtoServicePart>]
|
573
|
+
attr_accessor :parts
|
574
|
+
|
575
|
+
# The role of the current conversation participant.
|
576
|
+
# Corresponds to the JSON property `role`
|
577
|
+
# @return [String]
|
578
|
+
attr_accessor :role
|
579
|
+
|
580
|
+
def initialize(**args)
|
581
|
+
update!(**args)
|
582
|
+
end
|
583
|
+
|
584
|
+
# Update properties of this object
|
585
|
+
def update!(**args)
|
586
|
+
@parts = args[:parts] if args.key?(:parts)
|
587
|
+
@role = args[:role] if args.key?(:role)
|
588
|
+
end
|
589
|
+
end
|
590
|
+
|
591
|
+
# Function call details.
|
592
|
+
class CloudAiNlLlmProtoServiceFunctionCall
|
593
|
+
include Google::Apis::Core::Hashable
|
594
|
+
|
595
|
+
# The function parameters and values in JSON format.
|
596
|
+
# Corresponds to the JSON property `args`
|
597
|
+
# @return [Hash<String,Object>]
|
598
|
+
attr_accessor :args
|
599
|
+
|
600
|
+
# Required. The name of the function to call.
|
601
|
+
# Corresponds to the JSON property `name`
|
602
|
+
# @return [String]
|
603
|
+
attr_accessor :name
|
604
|
+
|
605
|
+
def initialize(**args)
|
606
|
+
update!(**args)
|
607
|
+
end
|
608
|
+
|
609
|
+
# Update properties of this object
|
610
|
+
def update!(**args)
|
611
|
+
@args = args[:args] if args.key?(:args)
|
612
|
+
@name = args[:name] if args.key?(:name)
|
613
|
+
end
|
614
|
+
end
|
615
|
+
|
616
|
+
# Function response details.
|
617
|
+
class CloudAiNlLlmProtoServiceFunctionResponse
|
618
|
+
include Google::Apis::Core::Hashable
|
619
|
+
|
620
|
+
# Required. The name of the function to call.
|
621
|
+
# Corresponds to the JSON property `name`
|
622
|
+
# @return [String]
|
623
|
+
attr_accessor :name
|
624
|
+
|
625
|
+
# Required. The function response in JSON object format.
|
626
|
+
# Corresponds to the JSON property `response`
|
627
|
+
# @return [Hash<String,Object>]
|
628
|
+
attr_accessor :response
|
629
|
+
|
630
|
+
def initialize(**args)
|
631
|
+
update!(**args)
|
632
|
+
end
|
633
|
+
|
634
|
+
# Update properties of this object
|
635
|
+
def update!(**args)
|
636
|
+
@name = args[:name] if args.key?(:name)
|
637
|
+
@response = args[:response] if args.key?(:response)
|
638
|
+
end
|
639
|
+
end
|
640
|
+
|
641
|
+
#
|
642
|
+
class CloudAiNlLlmProtoServiceGenerateMultiModalResponse
|
643
|
+
include Google::Apis::Core::Hashable
|
644
|
+
|
645
|
+
# Possible candidate responses to the conversation up until this point.
|
646
|
+
# Corresponds to the JSON property `candidates`
|
647
|
+
# @return [Array<Google::Apis::AiplatformV1::CloudAiNlLlmProtoServiceCandidate>]
|
648
|
+
attr_accessor :candidates
|
649
|
+
|
650
|
+
# Content filter results for a prompt sent in the request.
|
651
|
+
# Corresponds to the JSON property `promptFeedback`
|
652
|
+
# @return [Google::Apis::AiplatformV1::CloudAiNlLlmProtoServicePromptFeedback]
|
653
|
+
attr_accessor :prompt_feedback
|
654
|
+
|
655
|
+
# Billable prediction metrics.
|
656
|
+
# Corresponds to the JSON property `reportingMetrics`
|
657
|
+
# @return [Google::Apis::AiplatformV1::IntelligenceCloudAutomlXpsReportingMetrics]
|
658
|
+
attr_accessor :reporting_metrics
|
659
|
+
|
660
|
+
# Usage metadata about response(s).
|
661
|
+
# Corresponds to the JSON property `usageMetadata`
|
662
|
+
# @return [Google::Apis::AiplatformV1::CloudAiNlLlmProtoServiceUsageMetadata]
|
663
|
+
attr_accessor :usage_metadata
|
664
|
+
|
665
|
+
def initialize(**args)
|
666
|
+
update!(**args)
|
667
|
+
end
|
668
|
+
|
669
|
+
# Update properties of this object
|
670
|
+
def update!(**args)
|
671
|
+
@candidates = args[:candidates] if args.key?(:candidates)
|
672
|
+
@prompt_feedback = args[:prompt_feedback] if args.key?(:prompt_feedback)
|
673
|
+
@reporting_metrics = args[:reporting_metrics] if args.key?(:reporting_metrics)
|
674
|
+
@usage_metadata = args[:usage_metadata] if args.key?(:usage_metadata)
|
675
|
+
end
|
676
|
+
end
|
677
|
+
|
678
|
+
# A single part of a message.
|
679
|
+
class CloudAiNlLlmProtoServicePart
|
680
|
+
include Google::Apis::Core::Hashable
|
681
|
+
|
682
|
+
# Represents file data.
|
683
|
+
# Corresponds to the JSON property `fileData`
|
684
|
+
# @return [Google::Apis::AiplatformV1::CloudAiNlLlmProtoServicePartFileData]
|
685
|
+
attr_accessor :file_data
|
686
|
+
|
687
|
+
# Function call details.
|
688
|
+
# Corresponds to the JSON property `functionCall`
|
689
|
+
# @return [Google::Apis::AiplatformV1::CloudAiNlLlmProtoServiceFunctionCall]
|
690
|
+
attr_accessor :function_call
|
691
|
+
|
692
|
+
# Function response details.
|
693
|
+
# Corresponds to the JSON property `functionResponse`
|
694
|
+
# @return [Google::Apis::AiplatformV1::CloudAiNlLlmProtoServiceFunctionResponse]
|
695
|
+
attr_accessor :function_response
|
696
|
+
|
697
|
+
# Represents arbitrary blob data input.
|
698
|
+
# Corresponds to the JSON property `inlineData`
|
699
|
+
# @return [Google::Apis::AiplatformV1::CloudAiNlLlmProtoServicePartBlob]
|
700
|
+
attr_accessor :inline_data
|
701
|
+
|
702
|
+
# Text input.
|
703
|
+
# Corresponds to the JSON property `text`
|
704
|
+
# @return [String]
|
705
|
+
attr_accessor :text
|
706
|
+
|
707
|
+
# Metadata describes the input video content.
|
708
|
+
# Corresponds to the JSON property `videoMetadata`
|
709
|
+
# @return [Google::Apis::AiplatformV1::CloudAiNlLlmProtoServicePartVideoMetadata]
|
710
|
+
attr_accessor :video_metadata
|
711
|
+
|
712
|
+
def initialize(**args)
|
713
|
+
update!(**args)
|
714
|
+
end
|
715
|
+
|
716
|
+
# Update properties of this object
|
717
|
+
def update!(**args)
|
718
|
+
@file_data = args[:file_data] if args.key?(:file_data)
|
719
|
+
@function_call = args[:function_call] if args.key?(:function_call)
|
720
|
+
@function_response = args[:function_response] if args.key?(:function_response)
|
721
|
+
@inline_data = args[:inline_data] if args.key?(:inline_data)
|
722
|
+
@text = args[:text] if args.key?(:text)
|
723
|
+
@video_metadata = args[:video_metadata] if args.key?(:video_metadata)
|
724
|
+
end
|
725
|
+
end
|
726
|
+
|
727
|
+
# Represents arbitrary blob data input.
|
728
|
+
class CloudAiNlLlmProtoServicePartBlob
|
729
|
+
include Google::Apis::Core::Hashable
|
730
|
+
|
731
|
+
# Inline data.
|
732
|
+
# Corresponds to the JSON property `data`
|
733
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
734
|
+
# @return [String]
|
735
|
+
attr_accessor :data
|
736
|
+
|
737
|
+
# The mime type corresponding to this input.
|
738
|
+
# Corresponds to the JSON property `mimeType`
|
739
|
+
# @return [String]
|
740
|
+
attr_accessor :mime_type
|
741
|
+
|
742
|
+
# Represents file data.
|
743
|
+
# Corresponds to the JSON property `originalFileData`
|
744
|
+
# @return [Google::Apis::AiplatformV1::CloudAiNlLlmProtoServicePartFileData]
|
745
|
+
attr_accessor :original_file_data
|
746
|
+
|
747
|
+
def initialize(**args)
|
748
|
+
update!(**args)
|
749
|
+
end
|
750
|
+
|
751
|
+
# Update properties of this object
|
752
|
+
def update!(**args)
|
753
|
+
@data = args[:data] if args.key?(:data)
|
754
|
+
@mime_type = args[:mime_type] if args.key?(:mime_type)
|
755
|
+
@original_file_data = args[:original_file_data] if args.key?(:original_file_data)
|
756
|
+
end
|
757
|
+
end
|
758
|
+
|
759
|
+
# Represents file data.
|
760
|
+
class CloudAiNlLlmProtoServicePartFileData
|
761
|
+
include Google::Apis::Core::Hashable
|
762
|
+
|
763
|
+
# Inline data.
|
764
|
+
# Corresponds to the JSON property `fileUri`
|
765
|
+
# @return [String]
|
766
|
+
attr_accessor :file_uri
|
767
|
+
|
768
|
+
# The mime type corresponding to this input.
|
769
|
+
# Corresponds to the JSON property `mimeType`
|
770
|
+
# @return [String]
|
771
|
+
attr_accessor :mime_type
|
772
|
+
|
773
|
+
def initialize(**args)
|
774
|
+
update!(**args)
|
775
|
+
end
|
776
|
+
|
777
|
+
# Update properties of this object
|
778
|
+
def update!(**args)
|
779
|
+
@file_uri = args[:file_uri] if args.key?(:file_uri)
|
780
|
+
@mime_type = args[:mime_type] if args.key?(:mime_type)
|
781
|
+
end
|
782
|
+
end
|
783
|
+
|
784
|
+
# Metadata describes the input video content.
|
785
|
+
class CloudAiNlLlmProtoServicePartVideoMetadata
|
786
|
+
include Google::Apis::Core::Hashable
|
787
|
+
|
788
|
+
# The end offset of the video.
|
789
|
+
# Corresponds to the JSON property `endOffset`
|
790
|
+
# @return [String]
|
791
|
+
attr_accessor :end_offset
|
792
|
+
|
793
|
+
# The start offset of the video.
|
794
|
+
# Corresponds to the JSON property `startOffset`
|
795
|
+
# @return [String]
|
796
|
+
attr_accessor :start_offset
|
797
|
+
|
798
|
+
def initialize(**args)
|
799
|
+
update!(**args)
|
800
|
+
end
|
801
|
+
|
802
|
+
# Update properties of this object
|
803
|
+
def update!(**args)
|
804
|
+
@end_offset = args[:end_offset] if args.key?(:end_offset)
|
805
|
+
@start_offset = args[:start_offset] if args.key?(:start_offset)
|
806
|
+
end
|
807
|
+
end
|
808
|
+
|
809
|
+
# Content filter results for a prompt sent in the request.
|
810
|
+
class CloudAiNlLlmProtoServicePromptFeedback
|
811
|
+
include Google::Apis::Core::Hashable
|
812
|
+
|
813
|
+
# Blocked reason.
|
814
|
+
# Corresponds to the JSON property `blockReason`
|
815
|
+
# @return [String]
|
816
|
+
attr_accessor :block_reason
|
817
|
+
|
818
|
+
# A readable block reason message.
|
819
|
+
# Corresponds to the JSON property `blockReasonMessage`
|
820
|
+
# @return [String]
|
821
|
+
attr_accessor :block_reason_message
|
822
|
+
|
823
|
+
# Safety ratings.
|
824
|
+
# Corresponds to the JSON property `safetyRatings`
|
825
|
+
# @return [Array<Google::Apis::AiplatformV1::CloudAiNlLlmProtoServiceSafetyRating>]
|
826
|
+
attr_accessor :safety_ratings
|
827
|
+
|
828
|
+
def initialize(**args)
|
829
|
+
update!(**args)
|
830
|
+
end
|
831
|
+
|
832
|
+
# Update properties of this object
|
833
|
+
def update!(**args)
|
834
|
+
@block_reason = args[:block_reason] if args.key?(:block_reason)
|
835
|
+
@block_reason_message = args[:block_reason_message] if args.key?(:block_reason_message)
|
836
|
+
@safety_ratings = args[:safety_ratings] if args.key?(:safety_ratings)
|
837
|
+
end
|
838
|
+
end
|
839
|
+
|
840
|
+
# Safety rating corresponding to the generated content.
|
841
|
+
class CloudAiNlLlmProtoServiceSafetyRating
|
842
|
+
include Google::Apis::Core::Hashable
|
843
|
+
|
844
|
+
# Indicates whether the content was filtered out because of this rating.
|
845
|
+
# Corresponds to the JSON property `blocked`
|
846
|
+
# @return [Boolean]
|
847
|
+
attr_accessor :blocked
|
848
|
+
alias_method :blocked?, :blocked
|
849
|
+
|
850
|
+
# Harm category.
|
851
|
+
# Corresponds to the JSON property `category`
|
852
|
+
# @return [String]
|
853
|
+
attr_accessor :category
|
854
|
+
|
855
|
+
# Harm probability levels in the content.
|
856
|
+
# Corresponds to the JSON property `probability`
|
857
|
+
# @return [String]
|
858
|
+
attr_accessor :probability
|
859
|
+
|
860
|
+
def initialize(**args)
|
861
|
+
update!(**args)
|
862
|
+
end
|
863
|
+
|
864
|
+
# Update properties of this object
|
865
|
+
def update!(**args)
|
866
|
+
@blocked = args[:blocked] if args.key?(:blocked)
|
867
|
+
@category = args[:category] if args.key?(:category)
|
868
|
+
@probability = args[:probability] if args.key?(:probability)
|
869
|
+
end
|
870
|
+
end
|
871
|
+
|
872
|
+
# Usage metadata about response(s).
|
873
|
+
class CloudAiNlLlmProtoServiceUsageMetadata
|
874
|
+
include Google::Apis::Core::Hashable
|
875
|
+
|
876
|
+
# Number of tokens in the response(s).
|
877
|
+
# Corresponds to the JSON property `candidatesTokenCount`
|
878
|
+
# @return [Fixnum]
|
879
|
+
attr_accessor :candidates_token_count
|
880
|
+
|
881
|
+
# Number of tokens in the request.
|
882
|
+
# Corresponds to the JSON property `promptTokenCount`
|
883
|
+
# @return [Fixnum]
|
884
|
+
attr_accessor :prompt_token_count
|
885
|
+
|
886
|
+
#
|
887
|
+
# Corresponds to the JSON property `totalTokenCount`
|
888
|
+
# @return [Fixnum]
|
889
|
+
attr_accessor :total_token_count
|
890
|
+
|
891
|
+
def initialize(**args)
|
892
|
+
update!(**args)
|
893
|
+
end
|
894
|
+
|
895
|
+
# Update properties of this object
|
896
|
+
def update!(**args)
|
897
|
+
@candidates_token_count = args[:candidates_token_count] if args.key?(:candidates_token_count)
|
898
|
+
@prompt_token_count = args[:prompt_token_count] if args.key?(:prompt_token_count)
|
899
|
+
@total_token_count = args[:total_token_count] if args.key?(:total_token_count)
|
900
|
+
end
|
901
|
+
end
|
902
|
+
|
25
903
|
# Message that represents an arbitrary HTTP body. It should only be used for
|
26
904
|
# payload formats that can't be represented as JSON, such as raw binary or an
|
27
905
|
# HTML page. This message can be used both in streaming and non-streaming API
|
@@ -1333,8 +2211,7 @@ module Google
|
|
1333
2211
|
# Fields that will be excluded in the prediction instance that is sent to the
|
1334
2212
|
# Model. Excluded will be attached to the batch prediction output if key_field
|
1335
2213
|
# is not specified. When excluded_fields is populated, included_fields must be
|
1336
|
-
# empty. The input must be JSONL with objects at each line,
|
1337
|
-
# TfRecord.
|
2214
|
+
# empty. The input must be JSONL with objects at each line, BigQuery or TfRecord.
|
1338
2215
|
# Corresponds to the JSON property `excludedFields`
|
1339
2216
|
# @return [Array<String>]
|
1340
2217
|
attr_accessor :excluded_fields
|
@@ -1343,7 +2220,7 @@ module Google
|
|
1343
2220
|
# Model. If instance_type is `array`, the order of field names in
|
1344
2221
|
# included_fields also determines the order of the values in the array. When
|
1345
2222
|
# included_fields is populated, excluded_fields must be empty. The input must be
|
1346
|
-
# JSONL with objects at each line,
|
2223
|
+
# JSONL with objects at each line, BigQuery or TfRecord.
|
1347
2224
|
# Corresponds to the JSON property `includedFields`
|
1348
2225
|
# @return [Array<String>]
|
1349
2226
|
attr_accessor :included_fields
|
@@ -1672,17 +2549,17 @@ module Google
|
|
1672
2549
|
end
|
1673
2550
|
end
|
1674
2551
|
|
1675
|
-
#
|
2552
|
+
# Raw media bytes. Text should not be sent as raw bytes, use the 'text' field.
|
1676
2553
|
class GoogleCloudAiplatformV1Blob
|
1677
2554
|
include Google::Apis::Core::Hashable
|
1678
2555
|
|
1679
|
-
# Required.
|
2556
|
+
# Required. Raw bytes for media formats.
|
1680
2557
|
# Corresponds to the JSON property `data`
|
1681
2558
|
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
1682
2559
|
# @return [String]
|
1683
2560
|
attr_accessor :data
|
1684
2561
|
|
1685
|
-
# Required.
|
2562
|
+
# Required. The IANA standard MIME type of the source data.
|
1686
2563
|
# Corresponds to the JSON property `mimeType`
|
1687
2564
|
# @return [String]
|
1688
2565
|
attr_accessor :mime_type
|
@@ -1832,6 +2709,61 @@ module Google
|
|
1832
2709
|
end
|
1833
2710
|
end
|
1834
2711
|
|
2712
|
+
# A response candidate generated from the model.
|
2713
|
+
class GoogleCloudAiplatformV1Candidate
|
2714
|
+
include Google::Apis::Core::Hashable
|
2715
|
+
|
2716
|
+
# A collection of source attributions for a piece of content.
|
2717
|
+
# Corresponds to the JSON property `citationMetadata`
|
2718
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CitationMetadata]
|
2719
|
+
attr_accessor :citation_metadata
|
2720
|
+
|
2721
|
+
# The base structured datatype containing multi-part content of a message. A `
|
2722
|
+
# Content` includes a `role` field designating the producer of the `Content` and
|
2723
|
+
# a `parts` field containing multi-part data that contains the content of the
|
2724
|
+
# message turn.
|
2725
|
+
# Corresponds to the JSON property `content`
|
2726
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Content]
|
2727
|
+
attr_accessor :content
|
2728
|
+
|
2729
|
+
# Output only. Describes the reason the mode stopped generating tokens in more
|
2730
|
+
# detail. This is only filled when `finish_reason` is set.
|
2731
|
+
# Corresponds to the JSON property `finishMessage`
|
2732
|
+
# @return [String]
|
2733
|
+
attr_accessor :finish_message
|
2734
|
+
|
2735
|
+
# Output only. The reason why the model stopped generating tokens. If empty, the
|
2736
|
+
# model has not stopped generating the tokens.
|
2737
|
+
# Corresponds to the JSON property `finishReason`
|
2738
|
+
# @return [String]
|
2739
|
+
attr_accessor :finish_reason
|
2740
|
+
|
2741
|
+
# Output only. Index of the candidate.
|
2742
|
+
# Corresponds to the JSON property `index`
|
2743
|
+
# @return [Fixnum]
|
2744
|
+
attr_accessor :index
|
2745
|
+
|
2746
|
+
# Output only. List of ratings for the safety of a response candidate. There is
|
2747
|
+
# at most one rating per category.
|
2748
|
+
# Corresponds to the JSON property `safetyRatings`
|
2749
|
+
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SafetyRating>]
|
2750
|
+
attr_accessor :safety_ratings
|
2751
|
+
|
2752
|
+
def initialize(**args)
|
2753
|
+
update!(**args)
|
2754
|
+
end
|
2755
|
+
|
2756
|
+
# Update properties of this object
|
2757
|
+
def update!(**args)
|
2758
|
+
@citation_metadata = args[:citation_metadata] if args.key?(:citation_metadata)
|
2759
|
+
@content = args[:content] if args.key?(:content)
|
2760
|
+
@finish_message = args[:finish_message] if args.key?(:finish_message)
|
2761
|
+
@finish_reason = args[:finish_reason] if args.key?(:finish_reason)
|
2762
|
+
@index = args[:index] if args.key?(:index)
|
2763
|
+
@safety_ratings = args[:safety_ratings] if args.key?(:safety_ratings)
|
2764
|
+
end
|
2765
|
+
end
|
2766
|
+
|
1835
2767
|
# This message will be placed in the metadata field of a google.longrunning.
|
1836
2768
|
# Operation associated with a CheckTrialEarlyStoppingState request.
|
1837
2769
|
class GoogleCloudAiplatformV1CheckTrialEarlyStoppingStateMetatdata
|
@@ -1897,6 +2829,81 @@ module Google
|
|
1897
2829
|
end
|
1898
2830
|
end
|
1899
2831
|
|
2832
|
+
# Source attributions for content.
|
2833
|
+
class GoogleCloudAiplatformV1Citation
|
2834
|
+
include Google::Apis::Core::Hashable
|
2835
|
+
|
2836
|
+
# Output only. End index into the content.
|
2837
|
+
# Corresponds to the JSON property `endIndex`
|
2838
|
+
# @return [Fixnum]
|
2839
|
+
attr_accessor :end_index
|
2840
|
+
|
2841
|
+
# Output only. License of the attribution.
|
2842
|
+
# Corresponds to the JSON property `license`
|
2843
|
+
# @return [String]
|
2844
|
+
attr_accessor :license
|
2845
|
+
|
2846
|
+
# Represents a whole or partial calendar date, such as a birthday. The time of
|
2847
|
+
# day and time zone are either specified elsewhere or are insignificant. The
|
2848
|
+
# date is relative to the Gregorian Calendar. This can represent one of the
|
2849
|
+
# following: * A full date, with non-zero year, month, and day values. * A month
|
2850
|
+
# and day, with a zero year (for example, an anniversary). * A year on its own,
|
2851
|
+
# with a zero month and a zero day. * A year and month, with a zero day (for
|
2852
|
+
# example, a credit card expiration date). Related types: * google.type.
|
2853
|
+
# TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
|
2854
|
+
# Corresponds to the JSON property `publicationDate`
|
2855
|
+
# @return [Google::Apis::AiplatformV1::GoogleTypeDate]
|
2856
|
+
attr_accessor :publication_date
|
2857
|
+
|
2858
|
+
# Output only. Start index into the content.
|
2859
|
+
# Corresponds to the JSON property `startIndex`
|
2860
|
+
# @return [Fixnum]
|
2861
|
+
attr_accessor :start_index
|
2862
|
+
|
2863
|
+
# Output only. Title of the attribution.
|
2864
|
+
# Corresponds to the JSON property `title`
|
2865
|
+
# @return [String]
|
2866
|
+
attr_accessor :title
|
2867
|
+
|
2868
|
+
# Output only. Url reference of the attribution.
|
2869
|
+
# Corresponds to the JSON property `uri`
|
2870
|
+
# @return [String]
|
2871
|
+
attr_accessor :uri
|
2872
|
+
|
2873
|
+
def initialize(**args)
|
2874
|
+
update!(**args)
|
2875
|
+
end
|
2876
|
+
|
2877
|
+
# Update properties of this object
|
2878
|
+
def update!(**args)
|
2879
|
+
@end_index = args[:end_index] if args.key?(:end_index)
|
2880
|
+
@license = args[:license] if args.key?(:license)
|
2881
|
+
@publication_date = args[:publication_date] if args.key?(:publication_date)
|
2882
|
+
@start_index = args[:start_index] if args.key?(:start_index)
|
2883
|
+
@title = args[:title] if args.key?(:title)
|
2884
|
+
@uri = args[:uri] if args.key?(:uri)
|
2885
|
+
end
|
2886
|
+
end
|
2887
|
+
|
2888
|
+
# A collection of source attributions for a piece of content.
|
2889
|
+
class GoogleCloudAiplatformV1CitationMetadata
|
2890
|
+
include Google::Apis::Core::Hashable
|
2891
|
+
|
2892
|
+
# Output only. List of citations.
|
2893
|
+
# Corresponds to the JSON property `citations`
|
2894
|
+
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Citation>]
|
2895
|
+
attr_accessor :citations
|
2896
|
+
|
2897
|
+
def initialize(**args)
|
2898
|
+
update!(**args)
|
2899
|
+
end
|
2900
|
+
|
2901
|
+
# Update properties of this object
|
2902
|
+
def update!(**args)
|
2903
|
+
@citations = args[:citations] if args.key?(:citations)
|
2904
|
+
end
|
2905
|
+
end
|
2906
|
+
|
1900
2907
|
# Request message for VizierService.CompleteTrial.
|
1901
2908
|
class GoogleCloudAiplatformV1CompleteTrialRequest
|
1902
2909
|
include Google::Apis::Core::Hashable
|
@@ -2081,19 +3088,22 @@ module Google
|
|
2081
3088
|
end
|
2082
3089
|
end
|
2083
3090
|
|
2084
|
-
#
|
3091
|
+
# The base structured datatype containing multi-part content of a message. A `
|
3092
|
+
# Content` includes a `role` field designating the producer of the `Content` and
|
3093
|
+
# a `parts` field containing multi-part data that contains the content of the
|
3094
|
+
# message turn.
|
2085
3095
|
class GoogleCloudAiplatformV1Content
|
2086
3096
|
include Google::Apis::Core::Hashable
|
2087
3097
|
|
2088
|
-
# Required. Ordered
|
2089
|
-
# types.
|
3098
|
+
# Required. Ordered `Parts` that constitute a single message. Parts may have
|
3099
|
+
# different IANA MIME types.
|
2090
3100
|
# Corresponds to the JSON property `parts`
|
2091
3101
|
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Part>]
|
2092
3102
|
attr_accessor :parts
|
2093
3103
|
|
2094
|
-
# Optional. The
|
2095
|
-
#
|
2096
|
-
#
|
3104
|
+
# Optional. The producer of the content. Must be either 'user' or 'model'.
|
3105
|
+
# Useful to set for multi-turn conversations, otherwise can be left blank or
|
3106
|
+
# unset.
|
2097
3107
|
# Corresponds to the JSON property `role`
|
2098
3108
|
# @return [String]
|
2099
3109
|
attr_accessor :role
|
@@ -3039,6 +4049,19 @@ module Google
|
|
3039
4049
|
# @return [String]
|
3040
4050
|
attr_accessor :experiment_run
|
3041
4051
|
|
4052
|
+
# Optional. The name of the Model resources for which to generate a mapping to
|
4053
|
+
# artifact URIs. Applicable only to some of the Google-provided custom jobs.
|
4054
|
+
# Format: `projects/`project`/locations/`location`/models/`model`` In order to
|
4055
|
+
# retrieve a specific version of the model, also provide the version ID or
|
4056
|
+
# version alias. Example: `projects/`project`/locations/`location`/models/`model`
|
4057
|
+
# @2` or `projects/`project`/locations/`location`/models/`model`@golden` If no
|
4058
|
+
# version ID or alias is specified, the "default" version will be returned. The "
|
4059
|
+
# default" version alias is created for the first version of the model, and can
|
4060
|
+
# be moved to other versions later on. There will be exactly one default version.
|
4061
|
+
# Corresponds to the JSON property `models`
|
4062
|
+
# @return [Array<String>]
|
4063
|
+
attr_accessor :models
|
4064
|
+
|
3042
4065
|
# Optional. The full name of the Compute Engine [network](/compute/docs/networks-
|
3043
4066
|
# and-firewalls#networks) to which the Job should be peered. For example, `
|
3044
4067
|
# projects/12345/global/networks/myVPC`. [Format](/compute/docs/reference/rest/
|
@@ -3105,6 +4128,7 @@ module Google
|
|
3105
4128
|
@enable_web_access = args[:enable_web_access] if args.key?(:enable_web_access)
|
3106
4129
|
@experiment = args[:experiment] if args.key?(:experiment)
|
3107
4130
|
@experiment_run = args[:experiment_run] if args.key?(:experiment_run)
|
4131
|
+
@models = args[:models] if args.key?(:models)
|
3108
4132
|
@network = args[:network] if args.key?(:network)
|
3109
4133
|
@protected_artifact_location_id = args[:protected_artifact_location_id] if args.key?(:protected_artifact_location_id)
|
3110
4134
|
@reserved_ip_ranges = args[:reserved_ip_ranges] if args.key?(:reserved_ip_ranges)
|
@@ -5862,14 +6886,14 @@ module Google
|
|
5862
6886
|
class GoogleCloudAiplatformV1ExportDataConfig
|
5863
6887
|
include Google::Apis::Core::Hashable
|
5864
6888
|
|
5865
|
-
#
|
5866
|
-
#
|
5867
|
-
#
|
5868
|
-
#
|
5869
|
-
#
|
5870
|
-
#
|
5871
|
-
#
|
5872
|
-
#
|
6889
|
+
# The Cloud Storage URI that points to a YAML file describing the annotation
|
6890
|
+
# schema. The schema is defined as an OpenAPI 3.0.2 [Schema Object](https://
|
6891
|
+
# github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).
|
6892
|
+
# The schema files that can be used here are found in gs://google-cloud-
|
6893
|
+
# aiplatform/schema/dataset/annotation/, note that the chosen schema must be
|
6894
|
+
# consistent with metadata of the Dataset specified by dataset_id. Only used for
|
6895
|
+
# custom training data export use cases. Only applicable to Datasets that have
|
6896
|
+
# DataItems and Annotations. Only Annotations that both match this schema and
|
5873
6897
|
# belong to DataItems not ignored by the split method are used in respectively
|
5874
6898
|
# training, validation or test role, depending on the role of the DataItem they
|
5875
6899
|
# are on. When used in conjunction with annotations_filter, the Annotations used
|
@@ -5914,14 +6938,15 @@ module Google
|
|
5914
6938
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GcsDestination]
|
5915
6939
|
attr_accessor :gcs_destination
|
5916
6940
|
|
5917
|
-
#
|
5918
|
-
#
|
5919
|
-
#
|
5920
|
-
#
|
5921
|
-
# in respectively training. When used in conjunction with
|
5922
|
-
# the Annotations used for training are filtered by both
|
5923
|
-
# annotations_filter. Only one of saved_query_id and
|
5924
|
-
# should be specified as both of them represent the same
|
6941
|
+
# The ID of a SavedQuery (annotation set) under the Dataset specified by
|
6942
|
+
# dataset_id used for filtering Annotations for training. Only used for custom
|
6943
|
+
# training data export use cases. Only applicable to Datasets that have
|
6944
|
+
# SavedQueries. Only Annotations that are associated with this SavedQuery are
|
6945
|
+
# used in respectively training. When used in conjunction with
|
6946
|
+
# annotations_filter, the Annotations used for training are filtered by both
|
6947
|
+
# saved_query_id and annotations_filter. Only one of saved_query_id and
|
6948
|
+
# annotation_schema_uri should be specified as both of them represent the same
|
6949
|
+
# thing: problem type.
|
5925
6950
|
# Corresponds to the JSON property `savedQueryId`
|
5926
6951
|
# @return [String]
|
5927
6952
|
attr_accessor :saved_query_id
|
@@ -5998,8 +7023,8 @@ module Google
|
|
5998
7023
|
attr_accessor :data_stats
|
5999
7024
|
|
6000
7025
|
# All of the files that are exported in this export operation. For custom code
|
6001
|
-
# training export, only three (training, validation and test)
|
6002
|
-
# wildcard format are populated (
|
7026
|
+
# training export, only three (training, validation and test) Cloud Storage
|
7027
|
+
# paths in wildcard format are populated (for example, gs://.../training-*).
|
6003
7028
|
# Corresponds to the JSON property `exportedFiles`
|
6004
7029
|
# @return [Array<String>]
|
6005
7030
|
attr_accessor :exported_files
|
@@ -6495,7 +7520,7 @@ module Google
|
|
6495
7520
|
attr_accessor :value_type
|
6496
7521
|
|
6497
7522
|
# Only applicable for Vertex AI Feature Store. The name of the BigQuery Table/
|
6498
|
-
# View
|
7523
|
+
# View column hosting data for this version. If no value is provided, will use
|
6499
7524
|
# feature_id.
|
6500
7525
|
# Corresponds to the JSON property `versionColumnName`
|
6501
7526
|
# @return [String]
|
@@ -7702,7 +8727,7 @@ module Google
|
|
7702
8727
|
# @return [String]
|
7703
8728
|
attr_accessor :file_uri
|
7704
8729
|
|
7705
|
-
# Required.
|
8730
|
+
# Required. The IANA standard MIME type of the source data.
|
7706
8731
|
# Corresponds to the JSON property `mimeType`
|
7707
8732
|
# @return [String]
|
7708
8733
|
attr_accessor :mime_type
|
@@ -7994,6 +9019,46 @@ module Google
|
|
7994
9019
|
end
|
7995
9020
|
end
|
7996
9021
|
|
9022
|
+
# Structured representation of a function declaration as defined by the [OpenAPI
|
9023
|
+
# 3.0 specification](https://spec.openapis.org/oas/v3.0.3). Included in this
|
9024
|
+
# declaration are the function name and parameters. This FunctionDeclaration is
|
9025
|
+
# a representation of a block of code that can be used as a `Tool` by the model
|
9026
|
+
# and executed by the client.
|
9027
|
+
class GoogleCloudAiplatformV1FunctionDeclaration
|
9028
|
+
include Google::Apis::Core::Hashable
|
9029
|
+
|
9030
|
+
# Optional. Description and purpose of the function. Model uses it to decide how
|
9031
|
+
# and whether to call the function.
|
9032
|
+
# Corresponds to the JSON property `description`
|
9033
|
+
# @return [String]
|
9034
|
+
attr_accessor :description
|
9035
|
+
|
9036
|
+
# Required. The name of the function to call. Must start with a letter or an
|
9037
|
+
# underscore. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a
|
9038
|
+
# maximum length of 64.
|
9039
|
+
# Corresponds to the JSON property `name`
|
9040
|
+
# @return [String]
|
9041
|
+
attr_accessor :name
|
9042
|
+
|
9043
|
+
# Schema is used to define the format of input/output data. Represents a select
|
9044
|
+
# subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#
|
9045
|
+
# schema). More fields may be added in the future as needed.
|
9046
|
+
# Corresponds to the JSON property `parameters`
|
9047
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Schema]
|
9048
|
+
attr_accessor :parameters
|
9049
|
+
|
9050
|
+
def initialize(**args)
|
9051
|
+
update!(**args)
|
9052
|
+
end
|
9053
|
+
|
9054
|
+
# Update properties of this object
|
9055
|
+
def update!(**args)
|
9056
|
+
@description = args[:description] if args.key?(:description)
|
9057
|
+
@name = args[:name] if args.key?(:name)
|
9058
|
+
@parameters = args[:parameters] if args.key?(:parameters)
|
9059
|
+
end
|
9060
|
+
end
|
9061
|
+
|
7997
9062
|
# The result output from a [FunctionCall] that contains a string representing
|
7998
9063
|
# the [FunctionDeclaration.name] and a structured JSON object containing any
|
7999
9064
|
# output from the function is used as context to the model. This should contain
|
@@ -8040,20 +9105,207 @@ module Google
|
|
8040
9105
|
|
8041
9106
|
# Update properties of this object
|
8042
9107
|
def update!(**args)
|
8043
|
-
@output_uri_prefix = args[:output_uri_prefix] if args.key?(:output_uri_prefix)
|
9108
|
+
@output_uri_prefix = args[:output_uri_prefix] if args.key?(:output_uri_prefix)
|
9109
|
+
end
|
9110
|
+
end
|
9111
|
+
|
9112
|
+
# The Google Cloud Storage location for the input content.
|
9113
|
+
class GoogleCloudAiplatformV1GcsSource
|
9114
|
+
include Google::Apis::Core::Hashable
|
9115
|
+
|
9116
|
+
# Required. Google Cloud Storage URI(-s) to the input file(s). May contain
|
9117
|
+
# wildcards. For more information on wildcards, see https://cloud.google.com/
|
9118
|
+
# storage/docs/gsutil/addlhelp/WildcardNames.
|
9119
|
+
# Corresponds to the JSON property `uris`
|
9120
|
+
# @return [Array<String>]
|
9121
|
+
attr_accessor :uris
|
9122
|
+
|
9123
|
+
def initialize(**args)
|
9124
|
+
update!(**args)
|
9125
|
+
end
|
9126
|
+
|
9127
|
+
# Update properties of this object
|
9128
|
+
def update!(**args)
|
9129
|
+
@uris = args[:uris] if args.key?(:uris)
|
9130
|
+
end
|
9131
|
+
end
|
9132
|
+
|
9133
|
+
# Request message for [PredictionService.GenerateContent].
|
9134
|
+
class GoogleCloudAiplatformV1GenerateContentRequest
|
9135
|
+
include Google::Apis::Core::Hashable
|
9136
|
+
|
9137
|
+
# Required. The content of the current conversation with the model. For single-
|
9138
|
+
# turn queries, this is a single instance. For multi-turn queries, this is a
|
9139
|
+
# repeated field that contains conversation history + latest request.
|
9140
|
+
# Corresponds to the JSON property `contents`
|
9141
|
+
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Content>]
|
9142
|
+
attr_accessor :contents
|
9143
|
+
|
9144
|
+
# Required. The name of the Endpoint requested to serve the prediction. Format: `
|
9145
|
+
# projects/`project`/locations/`location`/endpoints/`endpoint``
|
9146
|
+
# Corresponds to the JSON property `endpoint`
|
9147
|
+
# @return [String]
|
9148
|
+
attr_accessor :endpoint
|
9149
|
+
|
9150
|
+
# Generation config.
|
9151
|
+
# Corresponds to the JSON property `generationConfig`
|
9152
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerationConfig]
|
9153
|
+
attr_accessor :generation_config
|
9154
|
+
|
9155
|
+
# Optional. Per request settings for blocking unsafe content. Enforced on
|
9156
|
+
# GenerateContentResponse.candidates.
|
9157
|
+
# Corresponds to the JSON property `safetySettings`
|
9158
|
+
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SafetySetting>]
|
9159
|
+
attr_accessor :safety_settings
|
9160
|
+
|
9161
|
+
# Optional. A list of `Tools` the model may use to generate the next response. A
|
9162
|
+
# `Tool` is a piece of code that enables the system to interact with external
|
9163
|
+
# systems to perform an action, or set of actions, outside of knowledge and
|
9164
|
+
# scope of the model. The only supported tool is currently `Function`
|
9165
|
+
# Corresponds to the JSON property `tools`
|
9166
|
+
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Tool>]
|
9167
|
+
attr_accessor :tools
|
9168
|
+
|
9169
|
+
def initialize(**args)
|
9170
|
+
update!(**args)
|
9171
|
+
end
|
9172
|
+
|
9173
|
+
# Update properties of this object
|
9174
|
+
def update!(**args)
|
9175
|
+
@contents = args[:contents] if args.key?(:contents)
|
9176
|
+
@endpoint = args[:endpoint] if args.key?(:endpoint)
|
9177
|
+
@generation_config = args[:generation_config] if args.key?(:generation_config)
|
9178
|
+
@safety_settings = args[:safety_settings] if args.key?(:safety_settings)
|
9179
|
+
@tools = args[:tools] if args.key?(:tools)
|
9180
|
+
end
|
9181
|
+
end
|
9182
|
+
|
9183
|
+
# Response message for [PredictionService.GenerateContent].
|
9184
|
+
class GoogleCloudAiplatformV1GenerateContentResponse
|
9185
|
+
include Google::Apis::Core::Hashable
|
9186
|
+
|
9187
|
+
# Output only. Generated candidates.
|
9188
|
+
# Corresponds to the JSON property `candidates`
|
9189
|
+
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Candidate>]
|
9190
|
+
attr_accessor :candidates
|
9191
|
+
|
9192
|
+
# Content filter results for a prompt sent in the request.
|
9193
|
+
# Corresponds to the JSON property `promptFeedback`
|
9194
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentResponsePromptFeedback]
|
9195
|
+
attr_accessor :prompt_feedback
|
9196
|
+
|
9197
|
+
# Usage metadata about response(s).
|
9198
|
+
# Corresponds to the JSON property `usageMetadata`
|
9199
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentResponseUsageMetadata]
|
9200
|
+
attr_accessor :usage_metadata
|
9201
|
+
|
9202
|
+
def initialize(**args)
|
9203
|
+
update!(**args)
|
9204
|
+
end
|
9205
|
+
|
9206
|
+
# Update properties of this object
|
9207
|
+
def update!(**args)
|
9208
|
+
@candidates = args[:candidates] if args.key?(:candidates)
|
9209
|
+
@prompt_feedback = args[:prompt_feedback] if args.key?(:prompt_feedback)
|
9210
|
+
@usage_metadata = args[:usage_metadata] if args.key?(:usage_metadata)
|
9211
|
+
end
|
9212
|
+
end
|
9213
|
+
|
9214
|
+
# Content filter results for a prompt sent in the request.
|
9215
|
+
class GoogleCloudAiplatformV1GenerateContentResponsePromptFeedback
|
9216
|
+
include Google::Apis::Core::Hashable
|
9217
|
+
|
9218
|
+
# Output only. Blocked reason.
|
9219
|
+
# Corresponds to the JSON property `blockReason`
|
9220
|
+
# @return [String]
|
9221
|
+
attr_accessor :block_reason
|
9222
|
+
|
9223
|
+
# Output only. A readable block reason message.
|
9224
|
+
# Corresponds to the JSON property `blockReasonMessage`
|
9225
|
+
# @return [String]
|
9226
|
+
attr_accessor :block_reason_message
|
9227
|
+
|
9228
|
+
# Output only. Safety ratings.
|
9229
|
+
# Corresponds to the JSON property `safetyRatings`
|
9230
|
+
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SafetyRating>]
|
9231
|
+
attr_accessor :safety_ratings
|
9232
|
+
|
9233
|
+
def initialize(**args)
|
9234
|
+
update!(**args)
|
9235
|
+
end
|
9236
|
+
|
9237
|
+
# Update properties of this object
|
9238
|
+
def update!(**args)
|
9239
|
+
@block_reason = args[:block_reason] if args.key?(:block_reason)
|
9240
|
+
@block_reason_message = args[:block_reason_message] if args.key?(:block_reason_message)
|
9241
|
+
@safety_ratings = args[:safety_ratings] if args.key?(:safety_ratings)
|
9242
|
+
end
|
9243
|
+
end
|
9244
|
+
|
9245
|
+
# Usage metadata about response(s).
|
9246
|
+
class GoogleCloudAiplatformV1GenerateContentResponseUsageMetadata
|
9247
|
+
include Google::Apis::Core::Hashable
|
9248
|
+
|
9249
|
+
# Number of tokens in the response(s).
|
9250
|
+
# Corresponds to the JSON property `candidatesTokenCount`
|
9251
|
+
# @return [Fixnum]
|
9252
|
+
attr_accessor :candidates_token_count
|
9253
|
+
|
9254
|
+
# Number of tokens in the request.
|
9255
|
+
# Corresponds to the JSON property `promptTokenCount`
|
9256
|
+
# @return [Fixnum]
|
9257
|
+
attr_accessor :prompt_token_count
|
9258
|
+
|
9259
|
+
#
|
9260
|
+
# Corresponds to the JSON property `totalTokenCount`
|
9261
|
+
# @return [Fixnum]
|
9262
|
+
attr_accessor :total_token_count
|
9263
|
+
|
9264
|
+
def initialize(**args)
|
9265
|
+
update!(**args)
|
9266
|
+
end
|
9267
|
+
|
9268
|
+
# Update properties of this object
|
9269
|
+
def update!(**args)
|
9270
|
+
@candidates_token_count = args[:candidates_token_count] if args.key?(:candidates_token_count)
|
9271
|
+
@prompt_token_count = args[:prompt_token_count] if args.key?(:prompt_token_count)
|
9272
|
+
@total_token_count = args[:total_token_count] if args.key?(:total_token_count)
|
8044
9273
|
end
|
8045
9274
|
end
|
8046
9275
|
|
8047
|
-
#
|
8048
|
-
class
|
9276
|
+
# Generation config.
|
9277
|
+
class GoogleCloudAiplatformV1GenerationConfig
|
8049
9278
|
include Google::Apis::Core::Hashable
|
8050
9279
|
|
8051
|
-
#
|
8052
|
-
#
|
8053
|
-
#
|
8054
|
-
|
9280
|
+
# Optional. Number of candidates to generate.
|
9281
|
+
# Corresponds to the JSON property `candidateCount`
|
9282
|
+
# @return [Fixnum]
|
9283
|
+
attr_accessor :candidate_count
|
9284
|
+
|
9285
|
+
# Optional. The maximum number of output tokens to generate per message.
|
9286
|
+
# Corresponds to the JSON property `maxOutputTokens`
|
9287
|
+
# @return [Fixnum]
|
9288
|
+
attr_accessor :max_output_tokens
|
9289
|
+
|
9290
|
+
# Optional. Stop sequences.
|
9291
|
+
# Corresponds to the JSON property `stopSequences`
|
8055
9292
|
# @return [Array<String>]
|
8056
|
-
attr_accessor :
|
9293
|
+
attr_accessor :stop_sequences
|
9294
|
+
|
9295
|
+
# Optional. Controls the randomness of predictions.
|
9296
|
+
# Corresponds to the JSON property `temperature`
|
9297
|
+
# @return [Float]
|
9298
|
+
attr_accessor :temperature
|
9299
|
+
|
9300
|
+
# Optional. If specified, top-k sampling will be used.
|
9301
|
+
# Corresponds to the JSON property `topK`
|
9302
|
+
# @return [Float]
|
9303
|
+
attr_accessor :top_k
|
9304
|
+
|
9305
|
+
# Optional. If specified, nucleus sampling will be used.
|
9306
|
+
# Corresponds to the JSON property `topP`
|
9307
|
+
# @return [Float]
|
9308
|
+
attr_accessor :top_p
|
8057
9309
|
|
8058
9310
|
def initialize(**args)
|
8059
9311
|
update!(**args)
|
@@ -8061,7 +9313,12 @@ module Google
|
|
8061
9313
|
|
8062
9314
|
# Update properties of this object
|
8063
9315
|
def update!(**args)
|
8064
|
-
@
|
9316
|
+
@candidate_count = args[:candidate_count] if args.key?(:candidate_count)
|
9317
|
+
@max_output_tokens = args[:max_output_tokens] if args.key?(:max_output_tokens)
|
9318
|
+
@stop_sequences = args[:stop_sequences] if args.key?(:stop_sequences)
|
9319
|
+
@temperature = args[:temperature] if args.key?(:temperature)
|
9320
|
+
@top_k = args[:top_k] if args.key?(:top_k)
|
9321
|
+
@top_p = args[:top_p] if args.key?(:top_p)
|
8065
9322
|
end
|
8066
9323
|
end
|
8067
9324
|
|
@@ -12058,7 +13315,8 @@ module Google
|
|
12058
13315
|
|
12059
13316
|
# The metadata of the ModelEvaluation. For the ModelEvaluation uploaded from
|
12060
13317
|
# Managed Pipeline, metadata contains a structured value with keys of "
|
12061
|
-
# pipeline_job_id", "evaluation_dataset_type", "evaluation_dataset_path"
|
13318
|
+
# pipeline_job_id", "evaluation_dataset_type", "evaluation_dataset_path", "
|
13319
|
+
# row_based_metrics_path".
|
12062
13320
|
# Corresponds to the JSON property `metadata`
|
12063
13321
|
# @return [Object]
|
12064
13322
|
attr_accessor :metadata
|
@@ -13604,6 +14862,42 @@ module Google
|
|
13604
14862
|
end
|
13605
14863
|
end
|
13606
14864
|
|
14865
|
+
# Notebook Reservation Affinity for consuming Zonal reservation.
|
14866
|
+
class GoogleCloudAiplatformV1NotebookReservationAffinity
|
14867
|
+
include Google::Apis::Core::Hashable
|
14868
|
+
|
14869
|
+
# Required. Specifies the type of reservation from which this instance can
|
14870
|
+
# consume resources: RESERVATION_ANY (default), RESERVATION_SPECIFIC, or
|
14871
|
+
# RESERVATION_NONE. See Consuming reserved instances for examples.
|
14872
|
+
# Corresponds to the JSON property `consumeReservationType`
|
14873
|
+
# @return [String]
|
14874
|
+
attr_accessor :consume_reservation_type
|
14875
|
+
|
14876
|
+
# Optional. Corresponds to the label key of a reservation resource. To target a
|
14877
|
+
# RESERVATION_SPECIFIC by name, use compute.googleapis.com/reservation-name as
|
14878
|
+
# the key and specify the name of your reservation as its value.
|
14879
|
+
# Corresponds to the JSON property `key`
|
14880
|
+
# @return [String]
|
14881
|
+
attr_accessor :key
|
14882
|
+
|
14883
|
+
# Optional. Corresponds to the label values of a reservation resource. This must
|
14884
|
+
# be the full path name of Reservation.
|
14885
|
+
# Corresponds to the JSON property `values`
|
14886
|
+
# @return [Array<String>]
|
14887
|
+
attr_accessor :values
|
14888
|
+
|
14889
|
+
def initialize(**args)
|
14890
|
+
update!(**args)
|
14891
|
+
end
|
14892
|
+
|
14893
|
+
# Update properties of this object
|
14894
|
+
def update!(**args)
|
14895
|
+
@consume_reservation_type = args[:consume_reservation_type] if args.key?(:consume_reservation_type)
|
14896
|
+
@key = args[:key] if args.key?(:key)
|
14897
|
+
@values = args[:values] if args.key?(:values)
|
14898
|
+
end
|
14899
|
+
end
|
14900
|
+
|
13607
14901
|
# A runtime is a virtual machine allocated to a particular user for a particular
|
13608
14902
|
# Notebook file on temporary basis with lifetime limited to 24 hours.
|
13609
14903
|
class GoogleCloudAiplatformV1NotebookRuntime
|
@@ -13639,6 +14933,12 @@ module Google
|
|
13639
14933
|
# @return [String]
|
13640
14934
|
attr_accessor :health_state
|
13641
14935
|
|
14936
|
+
# Output only. Whether NotebookRuntime is upgradable.
|
14937
|
+
# Corresponds to the JSON property `isUpgradable`
|
14938
|
+
# @return [Boolean]
|
14939
|
+
attr_accessor :is_upgradable
|
14940
|
+
alias_method :is_upgradable?, :is_upgradable
|
14941
|
+
|
13642
14942
|
# The labels with user-defined metadata to organize your NotebookRuntime. Label
|
13643
14943
|
# keys and values can be no longer than 64 characters (Unicode codepoints), can
|
13644
14944
|
# only contain lowercase letters, numeric characters, underscores and dashes.
|
@@ -13661,6 +14961,12 @@ module Google
|
|
13661
14961
|
# @return [String]
|
13662
14962
|
attr_accessor :name
|
13663
14963
|
|
14964
|
+
# Optional. The Compute Engine tags to add to runtime (see [Tagging instances](
|
14965
|
+
# https://cloud.google.com/vpc/docs/add-remove-network-tags)).
|
14966
|
+
# Corresponds to the JSON property `networkTags`
|
14967
|
+
# @return [Array<String>]
|
14968
|
+
attr_accessor :network_tags
|
14969
|
+
|
13664
14970
|
# Points to a NotebookRuntimeTemplateRef.
|
13665
14971
|
# Corresponds to the JSON property `notebookRuntimeTemplateRef`
|
13666
14972
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1NotebookRuntimeTemplateRef]
|
@@ -13676,6 +14982,11 @@ module Google
|
|
13676
14982
|
# @return [String]
|
13677
14983
|
attr_accessor :proxy_uri
|
13678
14984
|
|
14985
|
+
# Notebook Reservation Affinity for consuming Zonal reservation.
|
14986
|
+
# Corresponds to the JSON property `reservationAffinity`
|
14987
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1NotebookReservationAffinity]
|
14988
|
+
attr_accessor :reservation_affinity
|
14989
|
+
|
13679
14990
|
# Output only. The runtime (instance) state of the NotebookRuntime.
|
13680
14991
|
# Corresponds to the JSON property `runtimeState`
|
13681
14992
|
# @return [String]
|
@@ -13712,11 +15023,14 @@ module Google
|
|
13712
15023
|
@display_name = args[:display_name] if args.key?(:display_name)
|
13713
15024
|
@expiration_time = args[:expiration_time] if args.key?(:expiration_time)
|
13714
15025
|
@health_state = args[:health_state] if args.key?(:health_state)
|
15026
|
+
@is_upgradable = args[:is_upgradable] if args.key?(:is_upgradable)
|
13715
15027
|
@labels = args[:labels] if args.key?(:labels)
|
13716
15028
|
@name = args[:name] if args.key?(:name)
|
15029
|
+
@network_tags = args[:network_tags] if args.key?(:network_tags)
|
13717
15030
|
@notebook_runtime_template_ref = args[:notebook_runtime_template_ref] if args.key?(:notebook_runtime_template_ref)
|
13718
15031
|
@notebook_runtime_type = args[:notebook_runtime_type] if args.key?(:notebook_runtime_type)
|
13719
15032
|
@proxy_uri = args[:proxy_uri] if args.key?(:proxy_uri)
|
15033
|
+
@reservation_affinity = args[:reservation_affinity] if args.key?(:reservation_affinity)
|
13720
15034
|
@runtime_state = args[:runtime_state] if args.key?(:runtime_state)
|
13721
15035
|
@runtime_user = args[:runtime_user] if args.key?(:runtime_user)
|
13722
15036
|
@service_account = args[:service_account] if args.key?(:service_account)
|
@@ -13799,11 +15113,22 @@ module Google
|
|
13799
15113
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1NetworkSpec]
|
13800
15114
|
attr_accessor :network_spec
|
13801
15115
|
|
15116
|
+
# Optional. The Compute Engine tags to add to runtime (see [Tagging instances](
|
15117
|
+
# https://cloud.google.com/vpc/docs/add-remove-network-tags)).
|
15118
|
+
# Corresponds to the JSON property `networkTags`
|
15119
|
+
# @return [Array<String>]
|
15120
|
+
attr_accessor :network_tags
|
15121
|
+
|
13802
15122
|
# Optional. Immutable. The type of the notebook runtime template.
|
13803
15123
|
# Corresponds to the JSON property `notebookRuntimeType`
|
13804
15124
|
# @return [String]
|
13805
15125
|
attr_accessor :notebook_runtime_type
|
13806
15126
|
|
15127
|
+
# Notebook Reservation Affinity for consuming Zonal reservation.
|
15128
|
+
# Corresponds to the JSON property `reservationAffinity`
|
15129
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1NotebookReservationAffinity]
|
15130
|
+
attr_accessor :reservation_affinity
|
15131
|
+
|
13807
15132
|
# The service account that the runtime workload runs as. You can use any service
|
13808
15133
|
# account within the same project, but you must have the service account user
|
13809
15134
|
# permission to use the instance. If not specified, the [Compute Engine default
|
@@ -13813,6 +15138,13 @@ module Google
|
|
13813
15138
|
# @return [String]
|
13814
15139
|
attr_accessor :service_account
|
13815
15140
|
|
15141
|
+
# A set of Shielded Instance options. See [Images using supported Shielded VM
|
15142
|
+
# features](https://cloud.google.com/compute/docs/instances/modifying-shielded-
|
15143
|
+
# vm).
|
15144
|
+
# Corresponds to the JSON property `shieldedVmConfig`
|
15145
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ShieldedVmConfig]
|
15146
|
+
attr_accessor :shielded_vm_config
|
15147
|
+
|
13816
15148
|
# Output only. Timestamp when this NotebookRuntimeTemplate was most recently
|
13817
15149
|
# updated.
|
13818
15150
|
# Corresponds to the JSON property `updateTime`
|
@@ -13837,8 +15169,11 @@ module Google
|
|
13837
15169
|
@machine_spec = args[:machine_spec] if args.key?(:machine_spec)
|
13838
15170
|
@name = args[:name] if args.key?(:name)
|
13839
15171
|
@network_spec = args[:network_spec] if args.key?(:network_spec)
|
15172
|
+
@network_tags = args[:network_tags] if args.key?(:network_tags)
|
13840
15173
|
@notebook_runtime_type = args[:notebook_runtime_type] if args.key?(:notebook_runtime_type)
|
15174
|
+
@reservation_affinity = args[:reservation_affinity] if args.key?(:reservation_affinity)
|
13841
15175
|
@service_account = args[:service_account] if args.key?(:service_account)
|
15176
|
+
@shielded_vm_config = args[:shielded_vm_config] if args.key?(:shielded_vm_config)
|
13842
15177
|
@update_time = args[:update_time] if args.key?(:update_time)
|
13843
15178
|
end
|
13844
15179
|
end
|
@@ -13862,7 +15197,11 @@ module Google
|
|
13862
15197
|
end
|
13863
15198
|
end
|
13864
15199
|
|
13865
|
-
# Content
|
15200
|
+
# A datatype containing media that is part of a multi-part `Content` message. A `
|
15201
|
+
# Part` consists of data which has an associated datatype. A `Part` can only
|
15202
|
+
# contain one of the accepted types in `Part.data`. A `Part` must have a fixed
|
15203
|
+
# IANA MIME type identifying the type and subtype of the media if `inline_data`
|
15204
|
+
# or `file_data` field is filled with raw bytes.
|
13866
15205
|
class GoogleCloudAiplatformV1Part
|
13867
15206
|
include Google::Apis::Core::Hashable
|
13868
15207
|
|
@@ -13886,7 +15225,7 @@ module Google
|
|
13886
15225
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1FunctionResponse]
|
13887
15226
|
attr_accessor :function_response
|
13888
15227
|
|
13889
|
-
#
|
15228
|
+
# Raw media bytes. Text should not be sent as raw bytes, use the 'text' field.
|
13890
15229
|
# Corresponds to the JSON property `inlineData`
|
13891
15230
|
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Blob]
|
13892
15231
|
attr_accessor :inline_data
|
@@ -14944,6 +16283,11 @@ module Google
|
|
14944
16283
|
# @return [String]
|
14945
16284
|
attr_accessor :version_id
|
14946
16285
|
|
16286
|
+
# Optional. Indicates the state of the model version.
|
16287
|
+
# Corresponds to the JSON property `versionState`
|
16288
|
+
# @return [String]
|
16289
|
+
attr_accessor :version_state
|
16290
|
+
|
14947
16291
|
def initialize(**args)
|
14948
16292
|
update!(**args)
|
14949
16293
|
end
|
@@ -14958,6 +16302,7 @@ module Google
|
|
14958
16302
|
@publisher_model_template = args[:publisher_model_template] if args.key?(:publisher_model_template)
|
14959
16303
|
@supported_actions = args[:supported_actions] if args.key?(:supported_actions)
|
14960
16304
|
@version_id = args[:version_id] if args.key?(:version_id)
|
16305
|
+
@version_state = args[:version_state] if args.key?(:version_state)
|
14961
16306
|
end
|
14962
16307
|
end
|
14963
16308
|
|
@@ -15085,6 +16430,11 @@ module Google
|
|
15085
16430
|
# @return [String]
|
15086
16431
|
attr_accessor :model_display_name
|
15087
16432
|
|
16433
|
+
# Optional. The signed URI for ephemeral Cloud Storage access to model artifact.
|
16434
|
+
# Corresponds to the JSON property `publicArtifactUri`
|
16435
|
+
# @return [String]
|
16436
|
+
attr_accessor :public_artifact_uri
|
16437
|
+
|
15088
16438
|
# The resource name of the shared DeploymentResourcePool to deploy on. Format: `
|
15089
16439
|
# projects/`project`/locations/`location`/deploymentResourcePools/`
|
15090
16440
|
# deployment_resource_pool``
|
@@ -15109,6 +16459,7 @@ module Google
|
|
15109
16459
|
@dedicated_resources = args[:dedicated_resources] if args.key?(:dedicated_resources)
|
15110
16460
|
@large_model_reference = args[:large_model_reference] if args.key?(:large_model_reference)
|
15111
16461
|
@model_display_name = args[:model_display_name] if args.key?(:model_display_name)
|
16462
|
+
@public_artifact_uri = args[:public_artifact_uri] if args.key?(:public_artifact_uri)
|
15112
16463
|
@shared_resources = args[:shared_resources] if args.key?(:shared_resources)
|
15113
16464
|
@title = args[:title] if args.key?(:title)
|
15114
16465
|
end
|
@@ -15195,6 +16546,11 @@ module Google
|
|
15195
16546
|
class GoogleCloudAiplatformV1PublisherModelResourceReference
|
15196
16547
|
include Google::Apis::Core::Hashable
|
15197
16548
|
|
16549
|
+
# Description of the resource.
|
16550
|
+
# Corresponds to the JSON property `description`
|
16551
|
+
# @return [String]
|
16552
|
+
attr_accessor :description
|
16553
|
+
|
15198
16554
|
# The resource name of the Google Cloud resource.
|
15199
16555
|
# Corresponds to the JSON property `resourceName`
|
15200
16556
|
# @return [String]
|
@@ -15205,14 +16561,21 @@ module Google
|
|
15205
16561
|
# @return [String]
|
15206
16562
|
attr_accessor :uri
|
15207
16563
|
|
16564
|
+
# Use case (CUJ) of the resource.
|
16565
|
+
# Corresponds to the JSON property `useCase`
|
16566
|
+
# @return [String]
|
16567
|
+
attr_accessor :use_case
|
16568
|
+
|
15208
16569
|
def initialize(**args)
|
15209
16570
|
update!(**args)
|
15210
16571
|
end
|
15211
16572
|
|
15212
16573
|
# Update properties of this object
|
15213
16574
|
def update!(**args)
|
16575
|
+
@description = args[:description] if args.key?(:description)
|
15214
16576
|
@resource_name = args[:resource_name] if args.key?(:resource_name)
|
15215
16577
|
@uri = args[:uri] if args.key?(:uri)
|
16578
|
+
@use_case = args[:use_case] if args.key?(:use_case)
|
15216
16579
|
end
|
15217
16580
|
end
|
15218
16581
|
|
@@ -16029,6 +17392,64 @@ module Google
|
|
16029
17392
|
end
|
16030
17393
|
end
|
16031
17394
|
|
17395
|
+
# Safety rating corresponding to the generated content.
|
17396
|
+
class GoogleCloudAiplatformV1SafetyRating
|
17397
|
+
include Google::Apis::Core::Hashable
|
17398
|
+
|
17399
|
+
# Output only. Indicates whether the content was filtered out because of this
|
17400
|
+
# rating.
|
17401
|
+
# Corresponds to the JSON property `blocked`
|
17402
|
+
# @return [Boolean]
|
17403
|
+
attr_accessor :blocked
|
17404
|
+
alias_method :blocked?, :blocked
|
17405
|
+
|
17406
|
+
# Output only. Harm category.
|
17407
|
+
# Corresponds to the JSON property `category`
|
17408
|
+
# @return [String]
|
17409
|
+
attr_accessor :category
|
17410
|
+
|
17411
|
+
# Output only. Harm probability levels in the content.
|
17412
|
+
# Corresponds to the JSON property `probability`
|
17413
|
+
# @return [String]
|
17414
|
+
attr_accessor :probability
|
17415
|
+
|
17416
|
+
def initialize(**args)
|
17417
|
+
update!(**args)
|
17418
|
+
end
|
17419
|
+
|
17420
|
+
# Update properties of this object
|
17421
|
+
def update!(**args)
|
17422
|
+
@blocked = args[:blocked] if args.key?(:blocked)
|
17423
|
+
@category = args[:category] if args.key?(:category)
|
17424
|
+
@probability = args[:probability] if args.key?(:probability)
|
17425
|
+
end
|
17426
|
+
end
|
17427
|
+
|
17428
|
+
# Safety settings.
|
17429
|
+
class GoogleCloudAiplatformV1SafetySetting
|
17430
|
+
include Google::Apis::Core::Hashable
|
17431
|
+
|
17432
|
+
# Required. Harm category.
|
17433
|
+
# Corresponds to the JSON property `category`
|
17434
|
+
# @return [String]
|
17435
|
+
attr_accessor :category
|
17436
|
+
|
17437
|
+
# Required. The harm block threshold.
|
17438
|
+
# Corresponds to the JSON property `threshold`
|
17439
|
+
# @return [String]
|
17440
|
+
attr_accessor :threshold
|
17441
|
+
|
17442
|
+
def initialize(**args)
|
17443
|
+
update!(**args)
|
17444
|
+
end
|
17445
|
+
|
17446
|
+
# Update properties of this object
|
17447
|
+
def update!(**args)
|
17448
|
+
@category = args[:category] if args.key?(:category)
|
17449
|
+
@threshold = args[:threshold] if args.key?(:threshold)
|
17450
|
+
end
|
17451
|
+
end
|
17452
|
+
|
16032
17453
|
# Active learning data sampling config. For every active learning labeling
|
16033
17454
|
# iteration, it will select a batch of data based on the sampling strategy.
|
16034
17455
|
class GoogleCloudAiplatformV1SampleConfig
|
@@ -16408,6 +17829,12 @@ module Google
|
|
16408
17829
|
attr_accessor :disable_retries
|
16409
17830
|
alias_method :disable_retries?, :disable_retries
|
16410
17831
|
|
17832
|
+
# Optional. This is the maximum time a user will wait in the QRM queue for
|
17833
|
+
# resources. Default is 1 day
|
17834
|
+
# Corresponds to the JSON property `maxWaitDuration`
|
17835
|
+
# @return [String]
|
17836
|
+
attr_accessor :max_wait_duration
|
17837
|
+
|
16411
17838
|
# Restarts the entire CustomJob if a worker gets restarted. This feature can be
|
16412
17839
|
# used by distributed training jobs that are not resilient to workers leaving
|
16413
17840
|
# and joining a job.
|
@@ -16428,11 +17855,88 @@ module Google
|
|
16428
17855
|
# Update properties of this object
|
16429
17856
|
def update!(**args)
|
16430
17857
|
@disable_retries = args[:disable_retries] if args.key?(:disable_retries)
|
17858
|
+
@max_wait_duration = args[:max_wait_duration] if args.key?(:max_wait_duration)
|
16431
17859
|
@restart_job_on_worker_restart = args[:restart_job_on_worker_restart] if args.key?(:restart_job_on_worker_restart)
|
16432
17860
|
@timeout = args[:timeout] if args.key?(:timeout)
|
16433
17861
|
end
|
16434
17862
|
end
|
16435
17863
|
|
17864
|
+
# Schema is used to define the format of input/output data. Represents a select
|
17865
|
+
# subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#
|
17866
|
+
# schema). More fields may be added in the future as needed.
|
17867
|
+
class GoogleCloudAiplatformV1Schema
|
17868
|
+
include Google::Apis::Core::Hashable
|
17869
|
+
|
17870
|
+
# Optional. The description of the data.
|
17871
|
+
# Corresponds to the JSON property `description`
|
17872
|
+
# @return [String]
|
17873
|
+
attr_accessor :description
|
17874
|
+
|
17875
|
+
# Optional. Possible values of the element of Type.STRING with enum format. For
|
17876
|
+
# example we can define an Enum Direction as : `type:STRING, format:enum, enum:["
|
17877
|
+
# EAST", NORTH", "SOUTH", "WEST"]`
|
17878
|
+
# Corresponds to the JSON property `enum`
|
17879
|
+
# @return [Array<String>]
|
17880
|
+
attr_accessor :enum
|
17881
|
+
|
17882
|
+
# Optional. Example of the object. Will only populated when the object is the
|
17883
|
+
# root.
|
17884
|
+
# Corresponds to the JSON property `example`
|
17885
|
+
# @return [Object]
|
17886
|
+
attr_accessor :example
|
17887
|
+
|
17888
|
+
# Optional. The format of the data. Supported formats: for NUMBER type: float,
|
17889
|
+
# double for INTEGER type: int32, int64
|
17890
|
+
# Corresponds to the JSON property `format`
|
17891
|
+
# @return [String]
|
17892
|
+
attr_accessor :format
|
17893
|
+
|
17894
|
+
# Schema is used to define the format of input/output data. Represents a select
|
17895
|
+
# subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#
|
17896
|
+
# schema). More fields may be added in the future as needed.
|
17897
|
+
# Corresponds to the JSON property `items`
|
17898
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Schema]
|
17899
|
+
attr_accessor :items
|
17900
|
+
|
17901
|
+
# Optional. Indicates if the value may be null.
|
17902
|
+
# Corresponds to the JSON property `nullable`
|
17903
|
+
# @return [Boolean]
|
17904
|
+
attr_accessor :nullable
|
17905
|
+
alias_method :nullable?, :nullable
|
17906
|
+
|
17907
|
+
# Optional. Properties of Type.OBJECT.
|
17908
|
+
# Corresponds to the JSON property `properties`
|
17909
|
+
# @return [Hash<String,Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Schema>]
|
17910
|
+
attr_accessor :properties
|
17911
|
+
|
17912
|
+
# Optional. Required properties of Type.OBJECT.
|
17913
|
+
# Corresponds to the JSON property `required`
|
17914
|
+
# @return [Array<String>]
|
17915
|
+
attr_accessor :required
|
17916
|
+
|
17917
|
+
# Optional. The type of the data.
|
17918
|
+
# Corresponds to the JSON property `type`
|
17919
|
+
# @return [String]
|
17920
|
+
attr_accessor :type
|
17921
|
+
|
17922
|
+
def initialize(**args)
|
17923
|
+
update!(**args)
|
17924
|
+
end
|
17925
|
+
|
17926
|
+
# Update properties of this object
|
17927
|
+
def update!(**args)
|
17928
|
+
@description = args[:description] if args.key?(:description)
|
17929
|
+
@enum = args[:enum] if args.key?(:enum)
|
17930
|
+
@example = args[:example] if args.key?(:example)
|
17931
|
+
@format = args[:format] if args.key?(:format)
|
17932
|
+
@items = args[:items] if args.key?(:items)
|
17933
|
+
@nullable = args[:nullable] if args.key?(:nullable)
|
17934
|
+
@properties = args[:properties] if args.key?(:properties)
|
17935
|
+
@required = args[:required] if args.key?(:required)
|
17936
|
+
@type = args[:type] if args.key?(:type)
|
17937
|
+
end
|
17938
|
+
end
|
17939
|
+
|
16436
17940
|
# An entry of mapping between color and AnnotationSpec. The mapping is used in
|
16437
17941
|
# segmentation mask.
|
16438
17942
|
class GoogleCloudAiplatformV1SchemaAnnotationSpecColor
|
@@ -22692,6 +24196,32 @@ module Google
|
|
22692
24196
|
end
|
22693
24197
|
end
|
22694
24198
|
|
24199
|
+
# A set of Shielded Instance options. See [Images using supported Shielded VM
|
24200
|
+
# features](https://cloud.google.com/compute/docs/instances/modifying-shielded-
|
24201
|
+
# vm).
|
24202
|
+
class GoogleCloudAiplatformV1ShieldedVmConfig
|
24203
|
+
include Google::Apis::Core::Hashable
|
24204
|
+
|
24205
|
+
# Defines whether the instance has [Secure Boot](https://cloud.google.com/
|
24206
|
+
# compute/shielded-vm/docs/shielded-vm#secure-boot) enabled. Secure Boot helps
|
24207
|
+
# ensure that the system only runs authentic software by verifying the digital
|
24208
|
+
# signature of all boot components, and halting the boot process if signature
|
24209
|
+
# verification fails.
|
24210
|
+
# Corresponds to the JSON property `enableSecureBoot`
|
24211
|
+
# @return [Boolean]
|
24212
|
+
attr_accessor :enable_secure_boot
|
24213
|
+
alias_method :enable_secure_boot?, :enable_secure_boot
|
24214
|
+
|
24215
|
+
def initialize(**args)
|
24216
|
+
update!(**args)
|
24217
|
+
end
|
24218
|
+
|
24219
|
+
# Update properties of this object
|
24220
|
+
def update!(**args)
|
24221
|
+
@enable_secure_boot = args[:enable_secure_boot] if args.key?(:enable_secure_boot)
|
24222
|
+
end
|
24223
|
+
end
|
24224
|
+
|
22695
24225
|
# Config for SmoothGrad approximation of gradients. When enabled, the gradients
|
22696
24226
|
# are approximated by averaging the gradients from noisy samples in the vicinity
|
22697
24227
|
# of the inputs. Adding noise can help improve the computed gradients. Refer to
|
@@ -24572,6 +26102,32 @@ module Google
|
|
24572
26102
|
end
|
24573
26103
|
end
|
24574
26104
|
|
26105
|
+
# Tool details that the model may use to generate response. A `Tool` is a piece
|
26106
|
+
# of code that enables the system to interact with external systems to perform
|
26107
|
+
# an action, or set of actions, outside of knowledge and scope of the model.
|
26108
|
+
class GoogleCloudAiplatformV1Tool
|
26109
|
+
include Google::Apis::Core::Hashable
|
26110
|
+
|
26111
|
+
# Optional. One or more function declarations to be passed to the model along
|
26112
|
+
# with the current user query. Model may decide to call a subset of these
|
26113
|
+
# functions by populating FunctionCall in the response. User should provide a
|
26114
|
+
# FunctionResponse for each function call in the next turn. Based on the
|
26115
|
+
# function responses, Model will generate the final response back to the user.
|
26116
|
+
# Maximum 64 function declarations can be provided.
|
26117
|
+
# Corresponds to the JSON property `functionDeclarations`
|
26118
|
+
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1FunctionDeclaration>]
|
26119
|
+
attr_accessor :function_declarations
|
26120
|
+
|
26121
|
+
def initialize(**args)
|
26122
|
+
update!(**args)
|
26123
|
+
end
|
26124
|
+
|
26125
|
+
# Update properties of this object
|
26126
|
+
def update!(**args)
|
26127
|
+
@function_declarations = args[:function_declarations] if args.key?(:function_declarations)
|
26128
|
+
end
|
26129
|
+
end
|
26130
|
+
|
24575
26131
|
# CMLE training config. For every active learning labeling iteration, system
|
24576
26132
|
# will train a machine learning model on CMLE. The trained model will be used by
|
24577
26133
|
# data sampling algorithm to select DataItems.
|
@@ -25910,21 +27466,43 @@ module Google
|
|
25910
27466
|
# project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:`emailid``: An
|
25911
27467
|
# email address that represents a Google group. For example, `admins@example.com`
|
25912
27468
|
# . * `domain:`domain``: The G Suite domain (primary) that represents all the
|
25913
|
-
# users of that domain. For example, `google.com` or `example.com`. * `
|
25914
|
-
#
|
25915
|
-
#
|
25916
|
-
#
|
25917
|
-
#
|
25918
|
-
#
|
25919
|
-
#
|
25920
|
-
#
|
27469
|
+
# users of that domain. For example, `google.com` or `example.com`. * `principal:
|
27470
|
+
# //iam.googleapis.com/locations/global/workforcePools/`pool_id`/subject/`
|
27471
|
+
# subject_attribute_value``: A single identity in a workforce identity pool. * `
|
27472
|
+
# principalSet://iam.googleapis.com/locations/global/workforcePools/`pool_id`/
|
27473
|
+
# group/`group_id``: All workforce identities in a group. * `principalSet://iam.
|
27474
|
+
# googleapis.com/locations/global/workforcePools/`pool_id`/attribute.`
|
27475
|
+
# attribute_name`/`attribute_value``: All workforce identities with a specific
|
27476
|
+
# attribute value. * `principalSet://iam.googleapis.com/locations/global/
|
27477
|
+
# workforcePools/`pool_id`/*`: All identities in a workforce identity pool. * `
|
27478
|
+
# principal://iam.googleapis.com/projects/`project_number`/locations/global/
|
27479
|
+
# workloadIdentityPools/`pool_id`/subject/`subject_attribute_value``: A single
|
27480
|
+
# identity in a workload identity pool. * `principalSet://iam.googleapis.com/
|
27481
|
+
# projects/`project_number`/locations/global/workloadIdentityPools/`pool_id`/
|
27482
|
+
# group/`group_id``: A workload identity pool group. * `principalSet://iam.
|
27483
|
+
# googleapis.com/projects/`project_number`/locations/global/
|
27484
|
+
# workloadIdentityPools/`pool_id`/attribute.`attribute_name`/`attribute_value``:
|
27485
|
+
# All identities in a workload identity pool with a certain attribute. * `
|
27486
|
+
# principalSet://iam.googleapis.com/projects/`project_number`/locations/global/
|
27487
|
+
# workloadIdentityPools/`pool_id`/*`: All identities in a workload identity pool.
|
27488
|
+
# * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique
|
27489
|
+
# identifier) representing a user that has been recently deleted. For example, `
|
27490
|
+
# alice@example.com?uid=123456789012345678901`. If the user is recovered, this
|
27491
|
+
# value reverts to `user:`emailid`` and the recovered user retains the role in
|
27492
|
+
# the binding. * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email
|
27493
|
+
# address (plus unique identifier) representing a service account that has been
|
27494
|
+
# recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=
|
25921
27495
|
# 123456789012345678901`. If the service account is undeleted, this value
|
25922
27496
|
# reverts to `serviceAccount:`emailid`` and the undeleted service account
|
25923
27497
|
# retains the role in the binding. * `deleted:group:`emailid`?uid=`uniqueid``:
|
25924
27498
|
# An email address (plus unique identifier) representing a Google group that has
|
25925
27499
|
# been recently deleted. For example, `admins@example.com?uid=
|
25926
27500
|
# 123456789012345678901`. If the group is recovered, this value reverts to `
|
25927
|
-
# group:`emailid`` and the recovered group retains the role in the binding.
|
27501
|
+
# group:`emailid`` and the recovered group retains the role in the binding. * `
|
27502
|
+
# deleted:principal://iam.googleapis.com/locations/global/workforcePools/`
|
27503
|
+
# pool_id`/subject/`subject_attribute_value``: Deleted single identity in a
|
27504
|
+
# workforce identity pool. For example, `deleted:principal://iam.googleapis.com/
|
27505
|
+
# locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`.
|
25928
27506
|
# Corresponds to the JSON property `members`
|
25929
27507
|
# @return [Array<String>]
|
25930
27508
|
attr_accessor :members
|
@@ -26330,6 +27908,47 @@ module Google
|
|
26330
27908
|
end
|
26331
27909
|
end
|
26332
27910
|
|
27911
|
+
# Represents a whole or partial calendar date, such as a birthday. The time of
|
27912
|
+
# day and time zone are either specified elsewhere or are insignificant. The
|
27913
|
+
# date is relative to the Gregorian Calendar. This can represent one of the
|
27914
|
+
# following: * A full date, with non-zero year, month, and day values. * A month
|
27915
|
+
# and day, with a zero year (for example, an anniversary). * A year on its own,
|
27916
|
+
# with a zero month and a zero day. * A year and month, with a zero day (for
|
27917
|
+
# example, a credit card expiration date). Related types: * google.type.
|
27918
|
+
# TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
|
27919
|
+
class GoogleTypeDate
|
27920
|
+
include Google::Apis::Core::Hashable
|
27921
|
+
|
27922
|
+
# Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to
|
27923
|
+
# specify a year by itself or a year and month where the day isn't significant.
|
27924
|
+
# Corresponds to the JSON property `day`
|
27925
|
+
# @return [Fixnum]
|
27926
|
+
attr_accessor :day
|
27927
|
+
|
27928
|
+
# Month of a year. Must be from 1 to 12, or 0 to specify a year without a month
|
27929
|
+
# and day.
|
27930
|
+
# Corresponds to the JSON property `month`
|
27931
|
+
# @return [Fixnum]
|
27932
|
+
attr_accessor :month
|
27933
|
+
|
27934
|
+
# Year of the date. Must be from 1 to 9999, or 0 to specify a date without a
|
27935
|
+
# year.
|
27936
|
+
# Corresponds to the JSON property `year`
|
27937
|
+
# @return [Fixnum]
|
27938
|
+
attr_accessor :year
|
27939
|
+
|
27940
|
+
def initialize(**args)
|
27941
|
+
update!(**args)
|
27942
|
+
end
|
27943
|
+
|
27944
|
+
# Update properties of this object
|
27945
|
+
def update!(**args)
|
27946
|
+
@day = args[:day] if args.key?(:day)
|
27947
|
+
@month = args[:month] if args.key?(:month)
|
27948
|
+
@year = args[:year] if args.key?(:year)
|
27949
|
+
end
|
27950
|
+
end
|
27951
|
+
|
26333
27952
|
# Represents a textual expression in the Common Expression Language (CEL) syntax.
|
26334
27953
|
# CEL is a C-like expression language. The syntax and semantics of CEL are
|
26335
27954
|
# documented at https://github.com/google/cel-spec. Example (Comparison): title:
|
@@ -26449,6 +28068,102 @@ module Google
|
|
26449
28068
|
@units = args[:units] if args.key?(:units)
|
26450
28069
|
end
|
26451
28070
|
end
|
28071
|
+
|
28072
|
+
#
|
28073
|
+
class IntelligenceCloudAutomlXpsMetricEntry
|
28074
|
+
include Google::Apis::Core::Hashable
|
28075
|
+
|
28076
|
+
# For billing metrics that are using legacy sku's, set the legacy billing metric
|
28077
|
+
# id here. This will be sent to Chemist as the "cloudbilling.googleapis.com/
|
28078
|
+
# argentum_metric_id" label. Otherwise leave empty.
|
28079
|
+
# Corresponds to the JSON property `argentumMetricId`
|
28080
|
+
# @return [String]
|
28081
|
+
attr_accessor :argentum_metric_id
|
28082
|
+
|
28083
|
+
# A double value.
|
28084
|
+
# Corresponds to the JSON property `doubleValue`
|
28085
|
+
# @return [Float]
|
28086
|
+
attr_accessor :double_value
|
28087
|
+
|
28088
|
+
# A signed 64-bit integer value.
|
28089
|
+
# Corresponds to the JSON property `int64Value`
|
28090
|
+
# @return [Fixnum]
|
28091
|
+
attr_accessor :int64_value
|
28092
|
+
|
28093
|
+
# The metric name defined in the service configuration.
|
28094
|
+
# Corresponds to the JSON property `metricName`
|
28095
|
+
# @return [String]
|
28096
|
+
attr_accessor :metric_name
|
28097
|
+
|
28098
|
+
# Billing system labels for this (metric, value) pair.
|
28099
|
+
# Corresponds to the JSON property `systemLabels`
|
28100
|
+
# @return [Array<Google::Apis::AiplatformV1::IntelligenceCloudAutomlXpsMetricEntryLabel>]
|
28101
|
+
attr_accessor :system_labels
|
28102
|
+
|
28103
|
+
def initialize(**args)
|
28104
|
+
update!(**args)
|
28105
|
+
end
|
28106
|
+
|
28107
|
+
# Update properties of this object
|
28108
|
+
def update!(**args)
|
28109
|
+
@argentum_metric_id = args[:argentum_metric_id] if args.key?(:argentum_metric_id)
|
28110
|
+
@double_value = args[:double_value] if args.key?(:double_value)
|
28111
|
+
@int64_value = args[:int64_value] if args.key?(:int64_value)
|
28112
|
+
@metric_name = args[:metric_name] if args.key?(:metric_name)
|
28113
|
+
@system_labels = args[:system_labels] if args.key?(:system_labels)
|
28114
|
+
end
|
28115
|
+
end
|
28116
|
+
|
28117
|
+
#
|
28118
|
+
class IntelligenceCloudAutomlXpsMetricEntryLabel
|
28119
|
+
include Google::Apis::Core::Hashable
|
28120
|
+
|
28121
|
+
# The name of the label.
|
28122
|
+
# Corresponds to the JSON property `labelName`
|
28123
|
+
# @return [String]
|
28124
|
+
attr_accessor :label_name
|
28125
|
+
|
28126
|
+
# The value of the label.
|
28127
|
+
# Corresponds to the JSON property `labelValue`
|
28128
|
+
# @return [String]
|
28129
|
+
attr_accessor :label_value
|
28130
|
+
|
28131
|
+
def initialize(**args)
|
28132
|
+
update!(**args)
|
28133
|
+
end
|
28134
|
+
|
28135
|
+
# Update properties of this object
|
28136
|
+
def update!(**args)
|
28137
|
+
@label_name = args[:label_name] if args.key?(:label_name)
|
28138
|
+
@label_value = args[:label_value] if args.key?(:label_value)
|
28139
|
+
end
|
28140
|
+
end
|
28141
|
+
|
28142
|
+
#
|
28143
|
+
class IntelligenceCloudAutomlXpsReportingMetrics
|
28144
|
+
include Google::Apis::Core::Hashable
|
28145
|
+
|
28146
|
+
# The effective time training used. If set, this is used for quota management
|
28147
|
+
# and billing. Deprecated. AutoML BE doesn't use this. Don't set.
|
28148
|
+
# Corresponds to the JSON property `effectiveTrainingDuration`
|
28149
|
+
# @return [String]
|
28150
|
+
attr_accessor :effective_training_duration
|
28151
|
+
|
28152
|
+
# One entry per metric name. The values must be aggregated per metric name.
|
28153
|
+
# Corresponds to the JSON property `metricEntries`
|
28154
|
+
# @return [Array<Google::Apis::AiplatformV1::IntelligenceCloudAutomlXpsMetricEntry>]
|
28155
|
+
attr_accessor :metric_entries
|
28156
|
+
|
28157
|
+
def initialize(**args)
|
28158
|
+
update!(**args)
|
28159
|
+
end
|
28160
|
+
|
28161
|
+
# Update properties of this object
|
28162
|
+
def update!(**args)
|
28163
|
+
@effective_training_duration = args[:effective_training_duration] if args.key?(:effective_training_duration)
|
28164
|
+
@metric_entries = args[:metric_entries] if args.key?(:metric_entries)
|
28165
|
+
end
|
28166
|
+
end
|
26452
28167
|
end
|
26453
28168
|
end
|
26454
28169
|
end
|