google-apis-firebaseml_v2beta 0.6.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -22,8 +22,49 @@ module Google
22
22
  module Apis
23
23
  module FirebasemlV2beta
24
24
 
25
+ # Represents a whole or partial calendar date, such as a birthday. The time of
26
+ # day and time zone are either specified elsewhere or are insignificant. The
27
+ # date is relative to the Gregorian Calendar. This can represent one of the
28
+ # following: * A full date, with non-zero year, month, and day values. * A month
29
+ # and day, with a zero year (for example, an anniversary). * A year on its own,
30
+ # with a zero month and a zero day. * A year and month, with a zero day (for
31
+ # example, a credit card expiration date). Related types: * google.type.
32
+ # TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
33
+ class Date
34
+ include Google::Apis::Core::Hashable
35
+
36
+ # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to
37
+ # specify a year by itself or a year and month where the day isn't significant.
38
+ # Corresponds to the JSON property `day`
39
+ # @return [Fixnum]
40
+ attr_accessor :day
41
+
42
+ # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month
43
+ # and day.
44
+ # Corresponds to the JSON property `month`
45
+ # @return [Fixnum]
46
+ attr_accessor :month
47
+
48
+ # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a
49
+ # year.
50
+ # Corresponds to the JSON property `year`
51
+ # @return [Fixnum]
52
+ attr_accessor :year
53
+
54
+ def initialize(**args)
55
+ update!(**args)
56
+ end
57
+
58
+ # Update properties of this object
59
+ def update!(**args)
60
+ @day = args[:day] if args.key?(:day)
61
+ @month = args[:month] if args.key?(:month)
62
+ @year = args[:year] if args.key?(:year)
63
+ end
64
+ end
65
+
25
66
  # Content blob. It's preferred to send as text directly rather than raw bytes.
26
- class Blob
67
+ class GoogleCloudAiplatformV1beta1Blob
27
68
  include Google::Apis::Core::Hashable
28
69
 
29
70
  # Required. Raw bytes.
@@ -49,12 +90,12 @@ module Google
49
90
  end
50
91
 
51
92
  # A response candidate generated from the model.
52
- class Candidate
93
+ class GoogleCloudAiplatformV1beta1Candidate
53
94
  include Google::Apis::Core::Hashable
54
95
 
55
96
  # A collection of source attributions for a piece of content.
56
97
  # Corresponds to the JSON property `citationMetadata`
57
- # @return [Google::Apis::FirebasemlV2beta::CitationMetadata]
98
+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1CitationMetadata]
58
99
  attr_accessor :citation_metadata
59
100
 
60
101
  # The base structured datatype containing multi-part content of a message. A `
@@ -62,7 +103,7 @@ module Google
62
103
  # a `parts` field containing multi-part data that contains the content of the
63
104
  # message turn.
64
105
  # Corresponds to the JSON property `content`
65
- # @return [Google::Apis::FirebasemlV2beta::Content]
106
+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1Content]
66
107
  attr_accessor :content
67
108
 
68
109
  # Output only. Describes the reason the mode stopped generating tokens in more
@@ -79,7 +120,7 @@ module Google
79
120
 
80
121
  # Metadata returned to client when grounding is enabled.
81
122
  # Corresponds to the JSON property `groundingMetadata`
82
- # @return [Google::Apis::FirebasemlV2beta::GroundingMetadata]
123
+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GroundingMetadata]
83
124
  attr_accessor :grounding_metadata
84
125
 
85
126
  # Output only. Index of the candidate.
@@ -90,7 +131,7 @@ module Google
90
131
  # Output only. List of ratings for the safety of a response candidate. There is
91
132
  # at most one rating per category.
92
133
  # Corresponds to the JSON property `safetyRatings`
93
- # @return [Array<Google::Apis::FirebasemlV2beta::SafetyRating>]
134
+ # @return [Array<Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1SafetyRating>]
94
135
  attr_accessor :safety_ratings
95
136
 
96
137
  def initialize(**args)
@@ -110,7 +151,7 @@ module Google
110
151
  end
111
152
 
112
153
  # Source attributions for content.
113
- class Citation
154
+ class GoogleCloudAiplatformV1beta1Citation
114
155
  include Google::Apis::Core::Hashable
115
156
 
116
157
  # Output only. End index into the content.
@@ -166,12 +207,12 @@ module Google
166
207
  end
167
208
 
168
209
  # A collection of source attributions for a piece of content.
169
- class CitationMetadata
210
+ class GoogleCloudAiplatformV1beta1CitationMetadata
170
211
  include Google::Apis::Core::Hashable
171
212
 
172
213
  # Output only. List of citations.
173
214
  # Corresponds to the JSON property `citations`
174
- # @return [Array<Google::Apis::FirebasemlV2beta::Citation>]
215
+ # @return [Array<Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1Citation>]
175
216
  attr_accessor :citations
176
217
 
177
218
  def initialize(**args)
@@ -188,13 +229,13 @@ module Google
188
229
  # Content` includes a `role` field designating the producer of the `Content` and
189
230
  # a `parts` field containing multi-part data that contains the content of the
190
231
  # message turn.
191
- class Content
232
+ class GoogleCloudAiplatformV1beta1Content
192
233
  include Google::Apis::Core::Hashable
193
234
 
194
235
  # Required. Ordered `Parts` that constitute a single message. Parts may have
195
236
  # different IANA MIME types.
196
237
  # Corresponds to the JSON property `parts`
197
- # @return [Array<Google::Apis::FirebasemlV2beta::Part>]
238
+ # @return [Array<Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1Part>]
198
239
  attr_accessor :parts
199
240
 
200
241
  # Optional. The producer of the content. Must be either 'user' or 'model'.
@@ -216,12 +257,12 @@ module Google
216
257
  end
217
258
 
218
259
  # Request message for PredictionService.CountTokens.
219
- class CountTokensRequest
260
+ class GoogleCloudAiplatformV1beta1CountTokensRequest
220
261
  include Google::Apis::Core::Hashable
221
262
 
222
263
  # Required. Input content.
223
264
  # Corresponds to the JSON property `contents`
224
- # @return [Array<Google::Apis::FirebasemlV2beta::Content>]
265
+ # @return [Array<Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1Content>]
225
266
  attr_accessor :contents
226
267
 
227
268
  # Required. The instances that are the input to token counting call. Schema is
@@ -249,7 +290,7 @@ module Google
249
290
  end
250
291
 
251
292
  # Response message for PredictionService.CountTokens.
252
- class CountTokensResponse
293
+ class GoogleCloudAiplatformV1beta1CountTokensResponse
253
294
  include Google::Apis::Core::Hashable
254
295
 
255
296
  # The total number of billable characters counted across all instances from the
@@ -274,49 +315,8 @@ module Google
274
315
  end
275
316
  end
276
317
 
277
- # Represents a whole or partial calendar date, such as a birthday. The time of
278
- # day and time zone are either specified elsewhere or are insignificant. The
279
- # date is relative to the Gregorian Calendar. This can represent one of the
280
- # following: * A full date, with non-zero year, month, and day values. * A month
281
- # and day, with a zero year (for example, an anniversary). * A year on its own,
282
- # with a zero month and a zero day. * A year and month, with a zero day (for
283
- # example, a credit card expiration date). Related types: * google.type.
284
- # TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
285
- class Date
286
- include Google::Apis::Core::Hashable
287
-
288
- # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to
289
- # specify a year by itself or a year and month where the day isn't significant.
290
- # Corresponds to the JSON property `day`
291
- # @return [Fixnum]
292
- attr_accessor :day
293
-
294
- # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month
295
- # and day.
296
- # Corresponds to the JSON property `month`
297
- # @return [Fixnum]
298
- attr_accessor :month
299
-
300
- # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a
301
- # year.
302
- # Corresponds to the JSON property `year`
303
- # @return [Fixnum]
304
- attr_accessor :year
305
-
306
- def initialize(**args)
307
- update!(**args)
308
- end
309
-
310
- # Update properties of this object
311
- def update!(**args)
312
- @day = args[:day] if args.key?(:day)
313
- @month = args[:month] if args.key?(:month)
314
- @year = args[:year] if args.key?(:year)
315
- end
316
- end
317
-
318
318
  # URI based data.
319
- class FileData
319
+ class GoogleCloudAiplatformV1beta1FileData
320
320
  include Google::Apis::Core::Hashable
321
321
 
322
322
  # Required. URI.
@@ -343,7 +343,7 @@ module Google
343
343
  # A predicted [FunctionCall] returned from the model that contains a string
344
344
  # representing the [FunctionDeclaration.name] and a structured JSON object
345
345
  # containing the parameters and their values.
346
- class FunctionCall
346
+ class GoogleCloudAiplatformV1beta1FunctionCall
347
347
  include Google::Apis::Core::Hashable
348
348
 
349
349
  # Optional. Required. The function parameters and values in JSON object format.
@@ -369,7 +369,7 @@ module Google
369
369
  end
370
370
 
371
371
  # Function calling config.
372
- class FunctionCallingConfig
372
+ class GoogleCloudAiplatformV1beta1FunctionCallingConfig
373
373
  include Google::Apis::Core::Hashable
374
374
 
375
375
  # Optional. Function names to call. Only set when the Mode is ANY. Function
@@ -400,7 +400,7 @@ module Google
400
400
  # declaration are the function name and parameters. This FunctionDeclaration is
401
401
  # a representation of a block of code that can be used as a `Tool` by the model
402
402
  # and executed by the client.
403
- class FunctionDeclaration
403
+ class GoogleCloudAiplatformV1beta1FunctionDeclaration
404
404
  include Google::Apis::Core::Hashable
405
405
 
406
406
  # Optional. Description and purpose of the function. Model uses it to decide how
@@ -420,14 +420,14 @@ module Google
420
420
  # subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#
421
421
  # schema). More fields may be added in the future as needed.
422
422
  # Corresponds to the JSON property `parameters`
423
- # @return [Google::Apis::FirebasemlV2beta::Schema]
423
+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1Schema]
424
424
  attr_accessor :parameters
425
425
 
426
426
  # Schema is used to define the format of input/output data. Represents a select
427
427
  # subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#
428
428
  # schema). More fields may be added in the future as needed.
429
429
  # Corresponds to the JSON property `response`
430
- # @return [Google::Apis::FirebasemlV2beta::Schema]
430
+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1Schema]
431
431
  attr_accessor :response
432
432
 
433
433
  def initialize(**args)
@@ -447,7 +447,7 @@ module Google
447
447
  # the [FunctionDeclaration.name] and a structured JSON object containing any
448
448
  # output from the function is used as context to the model. This should contain
449
449
  # the result of a [FunctionCall] made based on model prediction.
450
- class FunctionResponse
450
+ class GoogleCloudAiplatformV1beta1FunctionResponse
451
451
  include Google::Apis::Core::Hashable
452
452
 
453
453
  # Required. The name of the function to call. Matches [FunctionDeclaration.name]
@@ -473,7 +473,7 @@ module Google
473
473
  end
474
474
 
475
475
  # Request message for [PredictionService.GenerateContent].
476
- class GenerateContentRequest
476
+ class GoogleCloudAiplatformV1beta1GenerateContentRequest
477
477
  include Google::Apis::Core::Hashable
478
478
 
479
479
  # Optional. The name of the cached content used as context to serve the
@@ -489,18 +489,18 @@ module Google
489
489
  # turn queries, this is a single instance. For multi-turn queries, this is a
490
490
  # repeated field that contains conversation history + latest request.
491
491
  # Corresponds to the JSON property `contents`
492
- # @return [Array<Google::Apis::FirebasemlV2beta::Content>]
492
+ # @return [Array<Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1Content>]
493
493
  attr_accessor :contents
494
494
 
495
495
  # Generation config.
496
496
  # Corresponds to the JSON property `generationConfig`
497
- # @return [Google::Apis::FirebasemlV2beta::GenerationConfig]
497
+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GenerationConfig]
498
498
  attr_accessor :generation_config
499
499
 
500
500
  # Optional. Per request settings for blocking unsafe content. Enforced on
501
501
  # GenerateContentResponse.candidates.
502
502
  # Corresponds to the JSON property `safetySettings`
503
- # @return [Array<Google::Apis::FirebasemlV2beta::SafetySetting>]
503
+ # @return [Array<Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1SafetySetting>]
504
504
  attr_accessor :safety_settings
505
505
 
506
506
  # The base structured datatype containing multi-part content of a message. A `
@@ -508,12 +508,12 @@ module Google
508
508
  # a `parts` field containing multi-part data that contains the content of the
509
509
  # message turn.
510
510
  # Corresponds to the JSON property `systemInstruction`
511
- # @return [Google::Apis::FirebasemlV2beta::Content]
511
+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1Content]
512
512
  attr_accessor :system_instruction
513
513
 
514
514
  # Tool config. This config is shared for all tools provided in the request.
515
515
  # Corresponds to the JSON property `toolConfig`
516
- # @return [Google::Apis::FirebasemlV2beta::ToolConfig]
516
+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1ToolConfig]
517
517
  attr_accessor :tool_config
518
518
 
519
519
  # Optional. A list of `Tools` the model may use to generate the next response. A
@@ -521,7 +521,7 @@ module Google
521
521
  # systems to perform an action, or set of actions, outside of knowledge and
522
522
  # scope of the model.
523
523
  # Corresponds to the JSON property `tools`
524
- # @return [Array<Google::Apis::FirebasemlV2beta::Tool>]
524
+ # @return [Array<Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1Tool>]
525
525
  attr_accessor :tools
526
526
 
527
527
  def initialize(**args)
@@ -541,22 +541,22 @@ module Google
541
541
  end
542
542
 
543
543
  # Response message for [PredictionService.GenerateContent].
544
- class GenerateContentResponse
544
+ class GoogleCloudAiplatformV1beta1GenerateContentResponse
545
545
  include Google::Apis::Core::Hashable
546
546
 
547
547
  # Output only. Generated candidates.
548
548
  # Corresponds to the JSON property `candidates`
549
- # @return [Array<Google::Apis::FirebasemlV2beta::Candidate>]
549
+ # @return [Array<Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1Candidate>]
550
550
  attr_accessor :candidates
551
551
 
552
552
  # Content filter results for a prompt sent in the request.
553
553
  # Corresponds to the JSON property `promptFeedback`
554
- # @return [Google::Apis::FirebasemlV2beta::PromptFeedback]
554
+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GenerateContentResponsePromptFeedback]
555
555
  attr_accessor :prompt_feedback
556
556
 
557
557
  # Usage metadata about response(s).
558
558
  # Corresponds to the JSON property `usageMetadata`
559
- # @return [Google::Apis::FirebasemlV2beta::UsageMetadata]
559
+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata]
560
560
  attr_accessor :usage_metadata
561
561
 
562
562
  def initialize(**args)
@@ -571,8 +571,70 @@ module Google
571
571
  end
572
572
  end
573
573
 
574
+ # Content filter results for a prompt sent in the request.
575
+ class GoogleCloudAiplatformV1beta1GenerateContentResponsePromptFeedback
576
+ include Google::Apis::Core::Hashable
577
+
578
+ # Output only. Blocked reason.
579
+ # Corresponds to the JSON property `blockReason`
580
+ # @return [String]
581
+ attr_accessor :block_reason
582
+
583
+ # Output only. A readable block reason message.
584
+ # Corresponds to the JSON property `blockReasonMessage`
585
+ # @return [String]
586
+ attr_accessor :block_reason_message
587
+
588
+ # Output only. Safety ratings.
589
+ # Corresponds to the JSON property `safetyRatings`
590
+ # @return [Array<Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1SafetyRating>]
591
+ attr_accessor :safety_ratings
592
+
593
+ def initialize(**args)
594
+ update!(**args)
595
+ end
596
+
597
+ # Update properties of this object
598
+ def update!(**args)
599
+ @block_reason = args[:block_reason] if args.key?(:block_reason)
600
+ @block_reason_message = args[:block_reason_message] if args.key?(:block_reason_message)
601
+ @safety_ratings = args[:safety_ratings] if args.key?(:safety_ratings)
602
+ end
603
+ end
604
+
605
+ # Usage metadata about response(s).
606
+ class GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata
607
+ include Google::Apis::Core::Hashable
608
+
609
+ # Number of tokens in the response(s).
610
+ # Corresponds to the JSON property `candidatesTokenCount`
611
+ # @return [Fixnum]
612
+ attr_accessor :candidates_token_count
613
+
614
+ # Number of tokens in the request.
615
+ # Corresponds to the JSON property `promptTokenCount`
616
+ # @return [Fixnum]
617
+ attr_accessor :prompt_token_count
618
+
619
+ #
620
+ # Corresponds to the JSON property `totalTokenCount`
621
+ # @return [Fixnum]
622
+ attr_accessor :total_token_count
623
+
624
+ def initialize(**args)
625
+ update!(**args)
626
+ end
627
+
628
+ # Update properties of this object
629
+ def update!(**args)
630
+ @candidates_token_count = args[:candidates_token_count] if args.key?(:candidates_token_count)
631
+ @prompt_token_count = args[:prompt_token_count] if args.key?(:prompt_token_count)
632
+ @total_token_count = args[:total_token_count] if args.key?(:total_token_count)
633
+ end
634
+ end
635
+
574
636
  # Generation config.
575
- class GenerationConfig
637
+ class GoogleCloudAiplatformV1beta1GenerationConfig
576
638
  include Google::Apis::Core::Hashable
577
639
 
578
640
  # Optional. Number of candidates to generate.
@@ -608,7 +670,7 @@ module Google
608
670
  # subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#
609
671
  # schema). More fields may be added in the future as needed.
610
672
  # Corresponds to the JSON property `responseSchema`
611
- # @return [Google::Apis::FirebasemlV2beta::Schema]
673
+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1Schema]
612
674
  attr_accessor :response_schema
613
675
 
614
676
  # Optional. Stop sequences.
@@ -651,22 +713,200 @@ module Google
651
713
  end
652
714
 
653
715
  # Tool to retrieve public web data for grounding, powered by Google.
654
- class GoogleSearchRetrieval
716
+ class GoogleCloudAiplatformV1beta1GoogleSearchRetrieval
717
+ include Google::Apis::Core::Hashable
718
+
719
+ def initialize(**args)
720
+ update!(**args)
721
+ end
722
+
723
+ # Update properties of this object
724
+ def update!(**args)
725
+ end
726
+ end
727
+
728
+ # Grounding attribution.
729
+ class GoogleCloudAiplatformV1beta1GroundingAttribution
730
+ include Google::Apis::Core::Hashable
731
+
732
+ # Optional. Output only. Confidence score of the attribution. Ranges from 0 to 1.
733
+ # 1 is the most confident.
734
+ # Corresponds to the JSON property `confidenceScore`
735
+ # @return [Float]
736
+ attr_accessor :confidence_score
737
+
738
+ # Attribution from context retrieved by the retrieval tools.
739
+ # Corresponds to the JSON property `retrievedContext`
740
+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GroundingAttributionRetrievedContext]
741
+ attr_accessor :retrieved_context
742
+
743
+ # Segment of the content.
744
+ # Corresponds to the JSON property `segment`
745
+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1Segment]
746
+ attr_accessor :segment
747
+
748
+ # Attribution from the web.
749
+ # Corresponds to the JSON property `web`
750
+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GroundingAttributionWeb]
751
+ attr_accessor :web
752
+
753
+ def initialize(**args)
754
+ update!(**args)
755
+ end
756
+
757
+ # Update properties of this object
758
+ def update!(**args)
759
+ @confidence_score = args[:confidence_score] if args.key?(:confidence_score)
760
+ @retrieved_context = args[:retrieved_context] if args.key?(:retrieved_context)
761
+ @segment = args[:segment] if args.key?(:segment)
762
+ @web = args[:web] if args.key?(:web)
763
+ end
764
+ end
765
+
766
+ # Attribution from context retrieved by the retrieval tools.
767
+ class GoogleCloudAiplatformV1beta1GroundingAttributionRetrievedContext
768
+ include Google::Apis::Core::Hashable
769
+
770
+ # Output only. Title of the attribution.
771
+ # Corresponds to the JSON property `title`
772
+ # @return [String]
773
+ attr_accessor :title
774
+
775
+ # Output only. URI reference of the attribution.
776
+ # Corresponds to the JSON property `uri`
777
+ # @return [String]
778
+ attr_accessor :uri
779
+
780
+ def initialize(**args)
781
+ update!(**args)
782
+ end
783
+
784
+ # Update properties of this object
785
+ def update!(**args)
786
+ @title = args[:title] if args.key?(:title)
787
+ @uri = args[:uri] if args.key?(:uri)
788
+ end
789
+ end
790
+
791
+ # Attribution from the web.
792
+ class GoogleCloudAiplatformV1beta1GroundingAttributionWeb
793
+ include Google::Apis::Core::Hashable
794
+
795
+ # Output only. Title of the attribution.
796
+ # Corresponds to the JSON property `title`
797
+ # @return [String]
798
+ attr_accessor :title
799
+
800
+ # Output only. URI reference of the attribution.
801
+ # Corresponds to the JSON property `uri`
802
+ # @return [String]
803
+ attr_accessor :uri
804
+
805
+ def initialize(**args)
806
+ update!(**args)
807
+ end
808
+
809
+ # Update properties of this object
810
+ def update!(**args)
811
+ @title = args[:title] if args.key?(:title)
812
+ @uri = args[:uri] if args.key?(:uri)
813
+ end
814
+ end
815
+
816
+ # Grounding chunk.
817
+ class GoogleCloudAiplatformV1beta1GroundingChunk
818
+ include Google::Apis::Core::Hashable
819
+
820
+ # Chunk from context retrieved by the retrieval tools.
821
+ # Corresponds to the JSON property `retrievedContext`
822
+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GroundingChunkRetrievedContext]
823
+ attr_accessor :retrieved_context
824
+
825
+ # Chunk from the web.
826
+ # Corresponds to the JSON property `web`
827
+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GroundingChunkWeb]
828
+ attr_accessor :web
829
+
830
+ def initialize(**args)
831
+ update!(**args)
832
+ end
833
+
834
+ # Update properties of this object
835
+ def update!(**args)
836
+ @retrieved_context = args[:retrieved_context] if args.key?(:retrieved_context)
837
+ @web = args[:web] if args.key?(:web)
838
+ end
839
+ end
840
+
841
+ # Chunk from context retrieved by the retrieval tools.
842
+ class GoogleCloudAiplatformV1beta1GroundingChunkRetrievedContext
655
843
  include Google::Apis::Core::Hashable
656
844
 
845
+ # Title of the attribution.
846
+ # Corresponds to the JSON property `title`
847
+ # @return [String]
848
+ attr_accessor :title
849
+
850
+ # URI reference of the attribution.
851
+ # Corresponds to the JSON property `uri`
852
+ # @return [String]
853
+ attr_accessor :uri
854
+
657
855
  def initialize(**args)
658
856
  update!(**args)
659
857
  end
660
858
 
661
859
  # Update properties of this object
662
860
  def update!(**args)
861
+ @title = args[:title] if args.key?(:title)
862
+ @uri = args[:uri] if args.key?(:uri)
863
+ end
864
+ end
865
+
866
+ # Chunk from the web.
867
+ class GoogleCloudAiplatformV1beta1GroundingChunkWeb
868
+ include Google::Apis::Core::Hashable
869
+
870
+ # Title of the chunk.
871
+ # Corresponds to the JSON property `title`
872
+ # @return [String]
873
+ attr_accessor :title
874
+
875
+ # URI reference of the chunk.
876
+ # Corresponds to the JSON property `uri`
877
+ # @return [String]
878
+ attr_accessor :uri
879
+
880
+ def initialize(**args)
881
+ update!(**args)
882
+ end
883
+
884
+ # Update properties of this object
885
+ def update!(**args)
886
+ @title = args[:title] if args.key?(:title)
887
+ @uri = args[:uri] if args.key?(:uri)
663
888
  end
664
889
  end
665
890
 
666
891
  # Metadata returned to client when grounding is enabled.
667
- class GroundingMetadata
892
+ class GoogleCloudAiplatformV1beta1GroundingMetadata
668
893
  include Google::Apis::Core::Hashable
669
894
 
895
+ # Optional. List of grounding attributions.
896
+ # Corresponds to the JSON property `groundingAttributions`
897
+ # @return [Array<Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GroundingAttribution>]
898
+ attr_accessor :grounding_attributions
899
+
900
+ # List of supporting references retrieved from specified grounding source.
901
+ # Corresponds to the JSON property `groundingChunks`
902
+ # @return [Array<Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GroundingChunk>]
903
+ attr_accessor :grounding_chunks
904
+
905
+ # Optional. List of grounding support.
906
+ # Corresponds to the JSON property `groundingSupports`
907
+ # @return [Array<Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GroundingSupport>]
908
+ attr_accessor :grounding_supports
909
+
670
910
  # Optional. Queries executed by the retrieval tools.
671
911
  # Corresponds to the JSON property `retrievalQueries`
672
912
  # @return [Array<String>]
@@ -674,7 +914,7 @@ module Google
674
914
 
675
915
  # Google search entry point.
676
916
  # Corresponds to the JSON property `searchEntryPoint`
677
- # @return [Google::Apis::FirebasemlV2beta::SearchEntryPoint]
917
+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1SearchEntryPoint]
678
918
  attr_accessor :search_entry_point
679
919
 
680
920
  # Optional. Web search queries for the following-up web search.
@@ -688,26 +928,37 @@ module Google
688
928
 
689
929
  # Update properties of this object
690
930
  def update!(**args)
931
+ @grounding_attributions = args[:grounding_attributions] if args.key?(:grounding_attributions)
932
+ @grounding_chunks = args[:grounding_chunks] if args.key?(:grounding_chunks)
933
+ @grounding_supports = args[:grounding_supports] if args.key?(:grounding_supports)
691
934
  @retrieval_queries = args[:retrieval_queries] if args.key?(:retrieval_queries)
692
935
  @search_entry_point = args[:search_entry_point] if args.key?(:search_entry_point)
693
936
  @web_search_queries = args[:web_search_queries] if args.key?(:web_search_queries)
694
937
  end
695
938
  end
696
939
 
697
- # This is returned in the longrunning operations for create/update.
698
- class ModelOperationMetadata
940
+ # Grounding support.
941
+ class GoogleCloudAiplatformV1beta1GroundingSupport
699
942
  include Google::Apis::Core::Hashable
700
943
 
701
- #
702
- # Corresponds to the JSON property `basicOperationStatus`
703
- # @return [String]
704
- attr_accessor :basic_operation_status
705
-
706
- # The name of the model we are creating/updating The name must have the form `
707
- # projects/`project_id`/models/`model_id``
708
- # Corresponds to the JSON property `name`
709
- # @return [String]
710
- attr_accessor :name
944
+ # Confidence score of the support references. Ranges from 0 to 1. 1 is the most
945
+ # confident. This list must have the same size as the grounding_chunk_indices.
946
+ # Corresponds to the JSON property `confidenceScores`
947
+ # @return [Array<Float>]
948
+ attr_accessor :confidence_scores
949
+
950
+ # A list of indices (into 'grounding_chunk') specifying the citations associated
951
+ # with the claim. For instance [1,3,4] means that grounding_chunk[1],
952
+ # grounding_chunk[3], grounding_chunk[4] are the retrieved content attributed to
953
+ # the claim.
954
+ # Corresponds to the JSON property `groundingChunkIndices`
955
+ # @return [Array<Fixnum>]
956
+ attr_accessor :grounding_chunk_indices
957
+
958
+ # Segment of the content.
959
+ # Corresponds to the JSON property `segment`
960
+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1Segment]
961
+ attr_accessor :segment
711
962
 
712
963
  def initialize(**args)
713
964
  update!(**args)
@@ -715,8 +966,9 @@ module Google
715
966
 
716
967
  # Update properties of this object
717
968
  def update!(**args)
718
- @basic_operation_status = args[:basic_operation_status] if args.key?(:basic_operation_status)
719
- @name = args[:name] if args.key?(:name)
969
+ @confidence_scores = args[:confidence_scores] if args.key?(:confidence_scores)
970
+ @grounding_chunk_indices = args[:grounding_chunk_indices] if args.key?(:grounding_chunk_indices)
971
+ @segment = args[:segment] if args.key?(:segment)
720
972
  end
721
973
  end
722
974
 
@@ -725,19 +977,19 @@ module Google
725
977
  # contain one of the accepted types in `Part.data`. A `Part` must have a fixed
726
978
  # IANA MIME type identifying the type and subtype of the media if `inline_data`
727
979
  # or `file_data` field is filled with raw bytes.
728
- class Part
980
+ class GoogleCloudAiplatformV1beta1Part
729
981
  include Google::Apis::Core::Hashable
730
982
 
731
983
  # URI based data.
732
984
  # Corresponds to the JSON property `fileData`
733
- # @return [Google::Apis::FirebasemlV2beta::FileData]
985
+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1FileData]
734
986
  attr_accessor :file_data
735
987
 
736
988
  # A predicted [FunctionCall] returned from the model that contains a string
737
989
  # representing the [FunctionDeclaration.name] and a structured JSON object
738
990
  # containing the parameters and their values.
739
991
  # Corresponds to the JSON property `functionCall`
740
- # @return [Google::Apis::FirebasemlV2beta::FunctionCall]
992
+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1FunctionCall]
741
993
  attr_accessor :function_call
742
994
 
743
995
  # The result output from a [FunctionCall] that contains a string representing
@@ -745,12 +997,12 @@ module Google
745
997
  # output from the function is used as context to the model. This should contain
746
998
  # the result of a [FunctionCall] made based on model prediction.
747
999
  # Corresponds to the JSON property `functionResponse`
748
- # @return [Google::Apis::FirebasemlV2beta::FunctionResponse]
1000
+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1FunctionResponse]
749
1001
  attr_accessor :function_response
750
1002
 
751
1003
  # Content blob. It's preferred to send as text directly rather than raw bytes.
752
1004
  # Corresponds to the JSON property `inlineData`
753
- # @return [Google::Apis::FirebasemlV2beta::Blob]
1005
+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1Blob]
754
1006
  attr_accessor :inline_data
755
1007
 
756
1008
  # Optional. Text part (can be code).
@@ -760,7 +1012,7 @@ module Google
760
1012
 
761
1013
  # Metadata describes the input video content.
762
1014
  # Corresponds to the JSON property `videoMetadata`
763
- # @return [Google::Apis::FirebasemlV2beta::VideoMetadata]
1015
+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1VideoMetadata]
764
1016
  attr_accessor :video_metadata
765
1017
 
766
1018
  def initialize(**args)
@@ -778,66 +1030,8 @@ module Google
778
1030
  end
779
1031
  end
780
1032
 
781
- # Content filter results for a prompt sent in the request.
782
- class PromptFeedback
783
- include Google::Apis::Core::Hashable
784
-
785
- # Output only. Blocked reason.
786
- # Corresponds to the JSON property `blockReason`
787
- # @return [String]
788
- attr_accessor :block_reason
789
-
790
- # Output only. A readable block reason message.
791
- # Corresponds to the JSON property `blockReasonMessage`
792
- # @return [String]
793
- attr_accessor :block_reason_message
794
-
795
- # Output only. Safety ratings.
796
- # Corresponds to the JSON property `safetyRatings`
797
- # @return [Array<Google::Apis::FirebasemlV2beta::SafetyRating>]
798
- attr_accessor :safety_ratings
799
-
800
- def initialize(**args)
801
- update!(**args)
802
- end
803
-
804
- # Update properties of this object
805
- def update!(**args)
806
- @block_reason = args[:block_reason] if args.key?(:block_reason)
807
- @block_reason_message = args[:block_reason_message] if args.key?(:block_reason_message)
808
- @safety_ratings = args[:safety_ratings] if args.key?(:safety_ratings)
809
- end
810
- end
811
-
812
- # The definition of the Rag resource.
813
- class RagResource
814
- include Google::Apis::Core::Hashable
815
-
816
- # Optional. RagCorpora resource name. Format: `projects/`project`/locations/`
817
- # location`/ragCorpora/`rag_corpus``
818
- # Corresponds to the JSON property `ragCorpus`
819
- # @return [String]
820
- attr_accessor :rag_corpus
821
-
822
- # Optional. rag_file_id. The files should be in the same rag_corpus set in
823
- # rag_corpus field.
824
- # Corresponds to the JSON property `ragFileIds`
825
- # @return [Array<String>]
826
- attr_accessor :rag_file_ids
827
-
828
- def initialize(**args)
829
- update!(**args)
830
- end
831
-
832
- # Update properties of this object
833
- def update!(**args)
834
- @rag_corpus = args[:rag_corpus] if args.key?(:rag_corpus)
835
- @rag_file_ids = args[:rag_file_ids] if args.key?(:rag_file_ids)
836
- end
837
- end
838
-
839
1033
  # Defines a retrieval tool that model can call to access external knowledge.
840
- class Retrieval
1034
+ class GoogleCloudAiplatformV1beta1Retrieval
841
1035
  include Google::Apis::Core::Hashable
842
1036
 
843
1037
  # Optional. Disable using the result from this tool in detecting grounding
@@ -851,12 +1045,12 @@ module Google
851
1045
  # Retrieve from Vertex AI Search datastore for grounding. See https://cloud.
852
1046
  # google.com/vertex-ai-search-and-conversation
853
1047
  # Corresponds to the JSON property `vertexAiSearch`
854
- # @return [Google::Apis::FirebasemlV2beta::VertexAiSearch]
1048
+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1VertexAiSearch]
855
1049
  attr_accessor :vertex_ai_search
856
1050
 
857
1051
  # Retrieve from Vertex RAG Store for grounding.
858
1052
  # Corresponds to the JSON property `vertexRagStore`
859
- # @return [Google::Apis::FirebasemlV2beta::VertexRagStore]
1053
+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1VertexRagStore]
860
1054
  attr_accessor :vertex_rag_store
861
1055
 
862
1056
  def initialize(**args)
@@ -872,7 +1066,7 @@ module Google
872
1066
  end
873
1067
 
874
1068
  # Safety rating corresponding to the generated content.
875
- class SafetyRating
1069
+ class GoogleCloudAiplatformV1beta1SafetyRating
876
1070
  include Google::Apis::Core::Hashable
877
1071
 
878
1072
  # Output only. Indicates whether the content was filtered out because of this
@@ -923,7 +1117,7 @@ module Google
923
1117
  end
924
1118
 
925
1119
  # Safety settings.
926
- class SafetySetting
1120
+ class GoogleCloudAiplatformV1beta1SafetySetting
927
1121
  include Google::Apis::Core::Hashable
928
1122
 
929
1123
  # Required. Harm category.
@@ -957,7 +1151,7 @@ module Google
957
1151
  # Schema is used to define the format of input/output data. Represents a select
958
1152
  # subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#
959
1153
  # schema). More fields may be added in the future as needed.
960
- class Schema
1154
+ class GoogleCloudAiplatformV1beta1Schema
961
1155
  include Google::Apis::Core::Hashable
962
1156
 
963
1157
  # Optional. Default value of the data.
@@ -994,7 +1188,7 @@ module Google
994
1188
  # subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#
995
1189
  # schema). More fields may be added in the future as needed.
996
1190
  # Corresponds to the JSON property `items`
997
- # @return [Google::Apis::FirebasemlV2beta::Schema]
1191
+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1Schema]
998
1192
  attr_accessor :items
999
1193
 
1000
1194
  # Optional. Maximum number of the elements for Type.ARRAY.
@@ -1052,7 +1246,7 @@ module Google
1052
1246
 
1053
1247
  # Optional. SCHEMA FIELDS FOR TYPE OBJECT Properties of Type.OBJECT.
1054
1248
  # Corresponds to the JSON property `properties`
1055
- # @return [Hash<String,Google::Apis::FirebasemlV2beta::Schema>]
1249
+ # @return [Hash<String,Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1Schema>]
1056
1250
  attr_accessor :properties
1057
1251
 
1058
1252
  # Optional. Required properties of Type.OBJECT.
@@ -1100,7 +1294,7 @@ module Google
1100
1294
  end
1101
1295
 
1102
1296
  # Google search entry point.
1103
- class SearchEntryPoint
1297
+ class GoogleCloudAiplatformV1beta1SearchEntryPoint
1104
1298
  include Google::Apis::Core::Hashable
1105
1299
 
1106
1300
  # Optional. Web content snippet that can be embedded in a web page or an app
@@ -1126,12 +1320,51 @@ module Google
1126
1320
  end
1127
1321
  end
1128
1322
 
1323
+ # Segment of the content.
1324
+ class GoogleCloudAiplatformV1beta1Segment
1325
+ include Google::Apis::Core::Hashable
1326
+
1327
+ # Output only. End index in the given Part, measured in bytes. Offset from the
1328
+ # start of the Part, exclusive, starting at zero.
1329
+ # Corresponds to the JSON property `endIndex`
1330
+ # @return [Fixnum]
1331
+ attr_accessor :end_index
1332
+
1333
+ # Output only. The index of a Part object within its parent Content object.
1334
+ # Corresponds to the JSON property `partIndex`
1335
+ # @return [Fixnum]
1336
+ attr_accessor :part_index
1337
+
1338
+ # Output only. Start index in the given Part, measured in bytes. Offset from the
1339
+ # start of the Part, inclusive, starting at zero.
1340
+ # Corresponds to the JSON property `startIndex`
1341
+ # @return [Fixnum]
1342
+ attr_accessor :start_index
1343
+
1344
+ # Output only. The text corresponding to the segment from the response.
1345
+ # Corresponds to the JSON property `text`
1346
+ # @return [String]
1347
+ attr_accessor :text
1348
+
1349
+ def initialize(**args)
1350
+ update!(**args)
1351
+ end
1352
+
1353
+ # Update properties of this object
1354
+ def update!(**args)
1355
+ @end_index = args[:end_index] if args.key?(:end_index)
1356
+ @part_index = args[:part_index] if args.key?(:part_index)
1357
+ @start_index = args[:start_index] if args.key?(:start_index)
1358
+ @text = args[:text] if args.key?(:text)
1359
+ end
1360
+ end
1361
+
1129
1362
  # Tool details that the model may use to generate response. A `Tool` is a piece
1130
1363
  # of code that enables the system to interact with external systems to perform
1131
1364
  # an action, or set of actions, outside of knowledge and scope of the model. A
1132
1365
  # Tool object should contain exactly one type of Tool (e.g FunctionDeclaration,
1133
1366
  # Retrieval or GoogleSearchRetrieval).
1134
- class Tool
1367
+ class GoogleCloudAiplatformV1beta1Tool
1135
1368
  include Google::Apis::Core::Hashable
1136
1369
 
1137
1370
  # Optional. Function tool type. One or more function declarations to be passed
@@ -1141,17 +1374,17 @@ module Google
1141
1374
  # Based on the function responses, Model will generate the final response back
1142
1375
  # to the user. Maximum 64 function declarations can be provided.
1143
1376
  # Corresponds to the JSON property `functionDeclarations`
1144
- # @return [Array<Google::Apis::FirebasemlV2beta::FunctionDeclaration>]
1377
+ # @return [Array<Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1FunctionDeclaration>]
1145
1378
  attr_accessor :function_declarations
1146
1379
 
1147
1380
  # Tool to retrieve public web data for grounding, powered by Google.
1148
1381
  # Corresponds to the JSON property `googleSearchRetrieval`
1149
- # @return [Google::Apis::FirebasemlV2beta::GoogleSearchRetrieval]
1382
+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GoogleSearchRetrieval]
1150
1383
  attr_accessor :google_search_retrieval
1151
1384
 
1152
1385
  # Defines a retrieval tool that model can call to access external knowledge.
1153
1386
  # Corresponds to the JSON property `retrieval`
1154
- # @return [Google::Apis::FirebasemlV2beta::Retrieval]
1387
+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1Retrieval]
1155
1388
  attr_accessor :retrieval
1156
1389
 
1157
1390
  def initialize(**args)
@@ -1167,12 +1400,12 @@ module Google
1167
1400
  end
1168
1401
 
1169
1402
  # Tool config. This config is shared for all tools provided in the request.
1170
- class ToolConfig
1403
+ class GoogleCloudAiplatformV1beta1ToolConfig
1171
1404
  include Google::Apis::Core::Hashable
1172
1405
 
1173
1406
  # Function calling config.
1174
1407
  # Corresponds to the JSON property `functionCallingConfig`
1175
- # @return [Google::Apis::FirebasemlV2beta::FunctionCallingConfig]
1408
+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1FunctionCallingConfig]
1176
1409
  attr_accessor :function_calling_config
1177
1410
 
1178
1411
  def initialize(**args)
@@ -1185,40 +1418,9 @@ module Google
1185
1418
  end
1186
1419
  end
1187
1420
 
1188
- # Usage metadata about response(s).
1189
- class UsageMetadata
1190
- include Google::Apis::Core::Hashable
1191
-
1192
- # Number of tokens in the response(s).
1193
- # Corresponds to the JSON property `candidatesTokenCount`
1194
- # @return [Fixnum]
1195
- attr_accessor :candidates_token_count
1196
-
1197
- # Number of tokens in the request.
1198
- # Corresponds to the JSON property `promptTokenCount`
1199
- # @return [Fixnum]
1200
- attr_accessor :prompt_token_count
1201
-
1202
- #
1203
- # Corresponds to the JSON property `totalTokenCount`
1204
- # @return [Fixnum]
1205
- attr_accessor :total_token_count
1206
-
1207
- def initialize(**args)
1208
- update!(**args)
1209
- end
1210
-
1211
- # Update properties of this object
1212
- def update!(**args)
1213
- @candidates_token_count = args[:candidates_token_count] if args.key?(:candidates_token_count)
1214
- @prompt_token_count = args[:prompt_token_count] if args.key?(:prompt_token_count)
1215
- @total_token_count = args[:total_token_count] if args.key?(:total_token_count)
1216
- end
1217
- end
1218
-
1219
1421
  # Retrieve from Vertex AI Search datastore for grounding. See https://cloud.
1220
1422
  # google.com/vertex-ai-search-and-conversation
1221
- class VertexAiSearch
1423
+ class GoogleCloudAiplatformV1beta1VertexAiSearch
1222
1424
  include Google::Apis::Core::Hashable
1223
1425
 
1224
1426
  # Required. Fully-qualified Vertex AI Search's datastore resource ID. Format: `
@@ -1239,7 +1441,7 @@ module Google
1239
1441
  end
1240
1442
 
1241
1443
  # Retrieve from Vertex RAG Store for grounding.
1242
- class VertexRagStore
1444
+ class GoogleCloudAiplatformV1beta1VertexRagStore
1243
1445
  include Google::Apis::Core::Hashable
1244
1446
 
1245
1447
  # Optional. Deprecated. Please use rag_resources instead.
@@ -1251,7 +1453,7 @@ module Google
1251
1453
  # corpus only or ragfiles. Currently only support one corpus or multiple files
1252
1454
  # from one corpus. In the future we may open up multiple corpora support.
1253
1455
  # Corresponds to the JSON property `ragResources`
1254
- # @return [Array<Google::Apis::FirebasemlV2beta::RagResource>]
1456
+ # @return [Array<Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1VertexRagStoreRagResource>]
1255
1457
  attr_accessor :rag_resources
1256
1458
 
1257
1459
  # Optional. Number of top k results to return from the selected corpora.
@@ -1277,8 +1479,35 @@ module Google
1277
1479
  end
1278
1480
  end
1279
1481
 
1482
+ # The definition of the Rag resource.
1483
+ class GoogleCloudAiplatformV1beta1VertexRagStoreRagResource
1484
+ include Google::Apis::Core::Hashable
1485
+
1486
+ # Optional. RagCorpora resource name. Format: `projects/`project`/locations/`
1487
+ # location`/ragCorpora/`rag_corpus``
1488
+ # Corresponds to the JSON property `ragCorpus`
1489
+ # @return [String]
1490
+ attr_accessor :rag_corpus
1491
+
1492
+ # Optional. rag_file_id. The files should be in the same rag_corpus set in
1493
+ # rag_corpus field.
1494
+ # Corresponds to the JSON property `ragFileIds`
1495
+ # @return [Array<String>]
1496
+ attr_accessor :rag_file_ids
1497
+
1498
+ def initialize(**args)
1499
+ update!(**args)
1500
+ end
1501
+
1502
+ # Update properties of this object
1503
+ def update!(**args)
1504
+ @rag_corpus = args[:rag_corpus] if args.key?(:rag_corpus)
1505
+ @rag_file_ids = args[:rag_file_ids] if args.key?(:rag_file_ids)
1506
+ end
1507
+ end
1508
+
1280
1509
  # Metadata describes the input video content.
1281
- class VideoMetadata
1510
+ class GoogleCloudAiplatformV1beta1VideoMetadata
1282
1511
  include Google::Apis::Core::Hashable
1283
1512
 
1284
1513
  # Optional. The end offset of the video.
@@ -1301,6 +1530,32 @@ module Google
1301
1530
  @start_offset = args[:start_offset] if args.key?(:start_offset)
1302
1531
  end
1303
1532
  end
1533
+
1534
+ # This is returned in the longrunning operations for create/update.
1535
+ class ModelOperationMetadata
1536
+ include Google::Apis::Core::Hashable
1537
+
1538
+ #
1539
+ # Corresponds to the JSON property `basicOperationStatus`
1540
+ # @return [String]
1541
+ attr_accessor :basic_operation_status
1542
+
1543
+ # The name of the model we are creating/updating The name must have the form `
1544
+ # projects/`project_id`/models/`model_id``
1545
+ # Corresponds to the JSON property `name`
1546
+ # @return [String]
1547
+ attr_accessor :name
1548
+
1549
+ def initialize(**args)
1550
+ update!(**args)
1551
+ end
1552
+
1553
+ # Update properties of this object
1554
+ def update!(**args)
1555
+ @basic_operation_status = args[:basic_operation_status] if args.key?(:basic_operation_status)
1556
+ @name = args[:name] if args.key?(:name)
1557
+ end
1558
+ end
1304
1559
  end
1305
1560
  end
1306
1561
  end