google-apis-firebaseml_v2beta 0.1.0 → 0.3.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c35a6f591f86222454d50a3c9ac0a4ecfa72cb3b40943d755f19602a3b3f627b
4
- data.tar.gz: ca09635c44e4e2341eb35865ef9666ab77b9c786566fef4a7958480596fbfa80
3
+ metadata.gz: 1c22767810de43bdddf0f493037589d58aec28c708e6fa42a45f38dbb5ea2166
4
+ data.tar.gz: a4c821e394a98c4842c61dac957ec1cde4234801486b3f306214146b49d9025a
5
5
  SHA512:
6
- metadata.gz: 1ed943b36f7c880a574d5ce3346f1bd9507decef11fd36aa58b25c42a433852c46ca1dce3a1ce597e444f197040f05511e63798d6e2fd04dc139bcbc52cf4d50
7
- data.tar.gz: c8b543da9fab2bd38d98c27f441d031b7f4ffe16a154664284ca8eac8bf7162392f3e9bcb0c3f2fbbf7d1ad73bae68d096b9a5816e7d77d5be7bcacd82da2145
6
+ metadata.gz: b667e961f2ecb0baa0bd7d08bb24631efb6df95bded319e42186c130d133e972eccd8fe5ab433790069dfe1131122e8b0e2ca35a6e3630ae071cdaaf08bf638d
7
+ data.tar.gz: 6d4ce3162db8bce1bab993e8221679710a42ed2be4d76e6d98b3de5cabf59159f05888baf2617cb62a883ffe17258d0704de9633c16b96b451835358737a8e6c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-firebaseml_v2beta
2
2
 
3
+ ### v0.3.0 (2024-04-28)
4
+
5
+ * Regenerated from discovery document revision 20240425
6
+
7
+ ### v0.2.0 (2024-04-14)
8
+
9
+ * Regenerated from discovery document revision 20240405
10
+
3
11
  ### v0.1.0 (2024-04-07)
4
12
 
5
13
  * Regenerated from discovery document revision 20240404
@@ -632,58 +632,20 @@ module Google
632
632
  end
633
633
  end
634
634
 
635
- # Grounding attribution.
636
- class GroundingAttribution
637
- include Google::Apis::Core::Hashable
638
-
639
- # Optional. Output only. Confidence score of the attribution. Ranges from 0 to 1.
640
- # 1 is the most confident.
641
- # Corresponds to the JSON property `confidenceScore`
642
- # @return [Float]
643
- attr_accessor :confidence_score
644
-
645
- # Attribution from context retrieved by the retrieval tools.
646
- # Corresponds to the JSON property `retrievedContext`
647
- # @return [Google::Apis::FirebasemlV2beta::RetrievedContext]
648
- attr_accessor :retrieved_context
649
-
650
- # Segment of the content.
651
- # Corresponds to the JSON property `segment`
652
- # @return [Google::Apis::FirebasemlV2beta::Segment]
653
- attr_accessor :segment
654
-
655
- # Attribution from the web.
656
- # Corresponds to the JSON property `web`
657
- # @return [Google::Apis::FirebasemlV2beta::Web]
658
- attr_accessor :web
659
-
660
- def initialize(**args)
661
- update!(**args)
662
- end
663
-
664
- # Update properties of this object
665
- def update!(**args)
666
- @confidence_score = args[:confidence_score] if args.key?(:confidence_score)
667
- @retrieved_context = args[:retrieved_context] if args.key?(:retrieved_context)
668
- @segment = args[:segment] if args.key?(:segment)
669
- @web = args[:web] if args.key?(:web)
670
- end
671
- end
672
-
673
635
  # Metadata returned to client when grounding is enabled.
674
636
  class GroundingMetadata
675
637
  include Google::Apis::Core::Hashable
676
638
 
677
- # Optional. List of grounding attributions.
678
- # Corresponds to the JSON property `groundingAttributions`
679
- # @return [Array<Google::Apis::FirebasemlV2beta::GroundingAttribution>]
680
- attr_accessor :grounding_attributions
681
-
682
639
  # Optional. Queries executed by the retrieval tools.
683
640
  # Corresponds to the JSON property `retrievalQueries`
684
641
  # @return [Array<String>]
685
642
  attr_accessor :retrieval_queries
686
643
 
644
+ # Google search entry point.
645
+ # Corresponds to the JSON property `searchEntryPoint`
646
+ # @return [Google::Apis::FirebasemlV2beta::SearchEntryPoint]
647
+ attr_accessor :search_entry_point
648
+
687
649
  # Optional. Web search queries for the following-up web search.
688
650
  # Corresponds to the JSON property `webSearchQueries`
689
651
  # @return [Array<String>]
@@ -695,8 +657,8 @@ module Google
695
657
 
696
658
  # Update properties of this object
697
659
  def update!(**args)
698
- @grounding_attributions = args[:grounding_attributions] if args.key?(:grounding_attributions)
699
660
  @retrieval_queries = args[:retrieval_queries] if args.key?(:retrieval_queries)
661
+ @search_entry_point = args[:search_entry_point] if args.key?(:search_entry_point)
700
662
  @web_search_queries = args[:web_search_queries] if args.key?(:web_search_queries)
701
663
  end
702
664
  end
@@ -816,6 +778,33 @@ module Google
816
778
  end
817
779
  end
818
780
 
781
+ # The definition of the Rag resource.
782
+ class RagResource
783
+ include Google::Apis::Core::Hashable
784
+
785
+ # Optional. RagCorpora resource name. Format: `projects/`project`/locations/`
786
+ # location`/ragCorpora/`rag_corpus``
787
+ # Corresponds to the JSON property `ragCorpus`
788
+ # @return [String]
789
+ attr_accessor :rag_corpus
790
+
791
+ # Optional. rag_file_id. The files should be in the same rag_corpus set in
792
+ # rag_corpus field.
793
+ # Corresponds to the JSON property `ragFileIds`
794
+ # @return [Array<String>]
795
+ attr_accessor :rag_file_ids
796
+
797
+ def initialize(**args)
798
+ update!(**args)
799
+ end
800
+
801
+ # Update properties of this object
802
+ def update!(**args)
803
+ @rag_corpus = args[:rag_corpus] if args.key?(:rag_corpus)
804
+ @rag_file_ids = args[:rag_file_ids] if args.key?(:rag_file_ids)
805
+ end
806
+ end
807
+
819
808
  # Defines a retrieval tool that model can call to access external knowledge.
820
809
  class Retrieval
821
810
  include Google::Apis::Core::Hashable
@@ -851,31 +840,6 @@ module Google
851
840
  end
852
841
  end
853
842
 
854
- # Attribution from context retrieved by the retrieval tools.
855
- class RetrievedContext
856
- include Google::Apis::Core::Hashable
857
-
858
- # Output only. Title of the attribution.
859
- # Corresponds to the JSON property `title`
860
- # @return [String]
861
- attr_accessor :title
862
-
863
- # Output only. URI reference of the attribution.
864
- # Corresponds to the JSON property `uri`
865
- # @return [String]
866
- attr_accessor :uri
867
-
868
- def initialize(**args)
869
- update!(**args)
870
- end
871
-
872
- # Update properties of this object
873
- def update!(**args)
874
- @title = args[:title] if args.key?(:title)
875
- @uri = args[:uri] if args.key?(:uri)
876
- end
877
- end
878
-
879
843
  # Safety rating corresponding to the generated content.
880
844
  class SafetyRating
881
845
  include Google::Apis::Core::Hashable
@@ -1104,26 +1068,21 @@ module Google
1104
1068
  end
1105
1069
  end
1106
1070
 
1107
- # Segment of the content.
1108
- class Segment
1071
+ # Google search entry point.
1072
+ class SearchEntryPoint
1109
1073
  include Google::Apis::Core::Hashable
1110
1074
 
1111
- # Output only. End index in the given Part, measured in bytes. Offset from the
1112
- # start of the Part, exclusive, starting at zero.
1113
- # Corresponds to the JSON property `endIndex`
1114
- # @return [Fixnum]
1115
- attr_accessor :end_index
1116
-
1117
- # Output only. The index of a Part object within its parent Content object.
1118
- # Corresponds to the JSON property `partIndex`
1119
- # @return [Fixnum]
1120
- attr_accessor :part_index
1075
+ # Optional. Web content snippet that can be embedded in a web page or an app
1076
+ # webview.
1077
+ # Corresponds to the JSON property `renderedContent`
1078
+ # @return [String]
1079
+ attr_accessor :rendered_content
1121
1080
 
1122
- # Output only. Start index in the given Part, measured in bytes. Offset from the
1123
- # start of the Part, inclusive, starting at zero.
1124
- # Corresponds to the JSON property `startIndex`
1125
- # @return [Fixnum]
1126
- attr_accessor :start_index
1081
+ # Optional. Base64 encoded JSON representing array of tuple.
1082
+ # Corresponds to the JSON property `sdkBlob`
1083
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
1084
+ # @return [String]
1085
+ attr_accessor :sdk_blob
1127
1086
 
1128
1087
  def initialize(**args)
1129
1088
  update!(**args)
@@ -1131,9 +1090,8 @@ module Google
1131
1090
 
1132
1091
  # Update properties of this object
1133
1092
  def update!(**args)
1134
- @end_index = args[:end_index] if args.key?(:end_index)
1135
- @part_index = args[:part_index] if args.key?(:part_index)
1136
- @start_index = args[:start_index] if args.key?(:start_index)
1093
+ @rendered_content = args[:rendered_content] if args.key?(:rendered_content)
1094
+ @sdk_blob = args[:sdk_blob] if args.key?(:sdk_blob)
1137
1095
  end
1138
1096
  end
1139
1097
 
@@ -1247,14 +1205,18 @@ module Google
1247
1205
  class VertexRagStore
1248
1206
  include Google::Apis::Core::Hashable
1249
1207
 
1250
- # Required. Vertex RAG Store corpus resource name: `projects/`project`/locations/
1251
- # `location`/ragCorpora/`ragCorpus`` Currently only one corpus is allowed. In
1252
- # the future we may open up multiple corpora support. However, they should be
1253
- # from the same project and location.
1208
+ # Optional. Deprecated. Please use rag_resources instead.
1254
1209
  # Corresponds to the JSON property `ragCorpora`
1255
1210
  # @return [Array<String>]
1256
1211
  attr_accessor :rag_corpora
1257
1212
 
1213
+ # Optional. The representation of the rag source. It can be used to specify
1214
+ # corpus only or ragfiles. Currently only support one corpus or multiple files
1215
+ # from one corpus. In the future we may open up multiple corpora support.
1216
+ # Corresponds to the JSON property `ragResources`
1217
+ # @return [Array<Google::Apis::FirebasemlV2beta::RagResource>]
1218
+ attr_accessor :rag_resources
1219
+
1258
1220
  # Optional. Number of top k results to return from the selected corpora.
1259
1221
  # Corresponds to the JSON property `similarityTopK`
1260
1222
  # @return [Fixnum]
@@ -1272,6 +1234,7 @@ module Google
1272
1234
  # Update properties of this object
1273
1235
  def update!(**args)
1274
1236
  @rag_corpora = args[:rag_corpora] if args.key?(:rag_corpora)
1237
+ @rag_resources = args[:rag_resources] if args.key?(:rag_resources)
1275
1238
  @similarity_top_k = args[:similarity_top_k] if args.key?(:similarity_top_k)
1276
1239
  @vector_distance_threshold = args[:vector_distance_threshold] if args.key?(:vector_distance_threshold)
1277
1240
  end
@@ -1301,31 +1264,6 @@ module Google
1301
1264
  @start_offset = args[:start_offset] if args.key?(:start_offset)
1302
1265
  end
1303
1266
  end
1304
-
1305
- # Attribution from the web.
1306
- class Web
1307
- include Google::Apis::Core::Hashable
1308
-
1309
- # Output only. Title of the attribution.
1310
- # Corresponds to the JSON property `title`
1311
- # @return [String]
1312
- attr_accessor :title
1313
-
1314
- # Output only. URI reference of the attribution.
1315
- # Corresponds to the JSON property `uri`
1316
- # @return [String]
1317
- attr_accessor :uri
1318
-
1319
- def initialize(**args)
1320
- update!(**args)
1321
- end
1322
-
1323
- # Update properties of this object
1324
- def update!(**args)
1325
- @title = args[:title] if args.key?(:title)
1326
- @uri = args[:uri] if args.key?(:uri)
1327
- end
1328
- end
1329
1267
  end
1330
1268
  end
1331
1269
  end
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module FirebasemlV2beta
18
18
  # Version of the google-apis-firebaseml_v2beta gem
19
- GEM_VERSION = "0.1.0"
19
+ GEM_VERSION = "0.3.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.14.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240404"
25
+ REVISION = "20240425"
26
26
  end
27
27
  end
28
28
  end
@@ -118,12 +118,6 @@ module Google
118
118
  include Google::Apis::Core::JsonObjectSupport
119
119
  end
120
120
 
121
- class GroundingAttribution
122
- class Representation < Google::Apis::Core::JsonRepresentation; end
123
-
124
- include Google::Apis::Core::JsonObjectSupport
125
- end
126
-
127
121
  class GroundingMetadata
128
122
  class Representation < Google::Apis::Core::JsonRepresentation; end
129
123
 
@@ -148,13 +142,13 @@ module Google
148
142
  include Google::Apis::Core::JsonObjectSupport
149
143
  end
150
144
 
151
- class Retrieval
145
+ class RagResource
152
146
  class Representation < Google::Apis::Core::JsonRepresentation; end
153
147
 
154
148
  include Google::Apis::Core::JsonObjectSupport
155
149
  end
156
150
 
157
- class RetrievedContext
151
+ class Retrieval
158
152
  class Representation < Google::Apis::Core::JsonRepresentation; end
159
153
 
160
154
  include Google::Apis::Core::JsonObjectSupport
@@ -178,7 +172,7 @@ module Google
178
172
  include Google::Apis::Core::JsonObjectSupport
179
173
  end
180
174
 
181
- class Segment
175
+ class SearchEntryPoint
182
176
  class Representation < Google::Apis::Core::JsonRepresentation; end
183
177
 
184
178
  include Google::Apis::Core::JsonObjectSupport
@@ -220,12 +214,6 @@ module Google
220
214
  include Google::Apis::Core::JsonObjectSupport
221
215
  end
222
216
 
223
- class Web
224
- class Representation < Google::Apis::Core::JsonRepresentation; end
225
-
226
- include Google::Apis::Core::JsonObjectSupport
227
- end
228
-
229
217
  class Blob
230
218
  # @private
231
219
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -397,25 +385,12 @@ module Google
397
385
  end
398
386
  end
399
387
 
400
- class GroundingAttribution
401
- # @private
402
- class Representation < Google::Apis::Core::JsonRepresentation
403
- property :confidence_score, as: 'confidenceScore'
404
- property :retrieved_context, as: 'retrievedContext', class: Google::Apis::FirebasemlV2beta::RetrievedContext, decorator: Google::Apis::FirebasemlV2beta::RetrievedContext::Representation
405
-
406
- property :segment, as: 'segment', class: Google::Apis::FirebasemlV2beta::Segment, decorator: Google::Apis::FirebasemlV2beta::Segment::Representation
407
-
408
- property :web, as: 'web', class: Google::Apis::FirebasemlV2beta::Web, decorator: Google::Apis::FirebasemlV2beta::Web::Representation
409
-
410
- end
411
- end
412
-
413
388
  class GroundingMetadata
414
389
  # @private
415
390
  class Representation < Google::Apis::Core::JsonRepresentation
416
- collection :grounding_attributions, as: 'groundingAttributions', class: Google::Apis::FirebasemlV2beta::GroundingAttribution, decorator: Google::Apis::FirebasemlV2beta::GroundingAttribution::Representation
417
-
418
391
  collection :retrieval_queries, as: 'retrievalQueries'
392
+ property :search_entry_point, as: 'searchEntryPoint', class: Google::Apis::FirebasemlV2beta::SearchEntryPoint, decorator: Google::Apis::FirebasemlV2beta::SearchEntryPoint::Representation
393
+
419
394
  collection :web_search_queries, as: 'webSearchQueries'
420
395
  end
421
396
  end
@@ -455,6 +430,14 @@ module Google
455
430
  end
456
431
  end
457
432
 
433
+ class RagResource
434
+ # @private
435
+ class Representation < Google::Apis::Core::JsonRepresentation
436
+ property :rag_corpus, as: 'ragCorpus'
437
+ collection :rag_file_ids, as: 'ragFileIds'
438
+ end
439
+ end
440
+
458
441
  class Retrieval
459
442
  # @private
460
443
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -466,14 +449,6 @@ module Google
466
449
  end
467
450
  end
468
451
 
469
- class RetrievedContext
470
- # @private
471
- class Representation < Google::Apis::Core::JsonRepresentation
472
- property :title, as: 'title'
473
- property :uri, as: 'uri'
474
- end
475
- end
476
-
477
452
  class SafetyRating
478
453
  # @private
479
454
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -523,12 +498,11 @@ module Google
523
498
  end
524
499
  end
525
500
 
526
- class Segment
501
+ class SearchEntryPoint
527
502
  # @private
528
503
  class Representation < Google::Apis::Core::JsonRepresentation
529
- property :end_index, as: 'endIndex'
530
- property :part_index, as: 'partIndex'
531
- property :start_index, as: 'startIndex'
504
+ property :rendered_content, as: 'renderedContent'
505
+ property :sdk_blob, :base64 => true, as: 'sdkBlob'
532
506
  end
533
507
  end
534
508
 
@@ -570,6 +544,8 @@ module Google
570
544
  # @private
571
545
  class Representation < Google::Apis::Core::JsonRepresentation
572
546
  collection :rag_corpora, as: 'ragCorpora'
547
+ collection :rag_resources, as: 'ragResources', class: Google::Apis::FirebasemlV2beta::RagResource, decorator: Google::Apis::FirebasemlV2beta::RagResource::Representation
548
+
573
549
  property :similarity_top_k, as: 'similarityTopK'
574
550
  property :vector_distance_threshold, as: 'vectorDistanceThreshold'
575
551
  end
@@ -582,14 +558,6 @@ module Google
582
558
  property :start_offset, as: 'startOffset'
583
559
  end
584
560
  end
585
-
586
- class Web
587
- # @private
588
- class Representation < Google::Apis::Core::JsonRepresentation
589
- property :title, as: 'title'
590
- property :uri, as: 'uri'
591
- end
592
- end
593
561
  end
594
562
  end
595
563
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-firebaseml_v2beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-07 00:00:00.000000000 Z
11
+ date: 2024-04-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-firebaseml_v2beta/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-firebaseml_v2beta/v0.1.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-firebaseml_v2beta/v0.3.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-firebaseml_v2beta
63
63
  post_install_message:
64
64
  rdoc_options: []