google-apis-firebaseml_v2beta 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c35a6f591f86222454d50a3c9ac0a4ecfa72cb3b40943d755f19602a3b3f627b
4
- data.tar.gz: ca09635c44e4e2341eb35865ef9666ab77b9c786566fef4a7958480596fbfa80
3
+ metadata.gz: 576488f51ebb1dceaf8a772647ea7d12267ee00f9172ba80a46da2b34e2c6ff0
4
+ data.tar.gz: d887195a0a96977a2a7022f3d6c87894c037fb0ff7dc90e6a9842ac5bf604f8e
5
5
  SHA512:
6
- metadata.gz: 1ed943b36f7c880a574d5ce3346f1bd9507decef11fd36aa58b25c42a433852c46ca1dce3a1ce597e444f197040f05511e63798d6e2fd04dc139bcbc52cf4d50
7
- data.tar.gz: c8b543da9fab2bd38d98c27f441d031b7f4ffe16a154664284ca8eac8bf7162392f3e9bcb0c3f2fbbf7d1ad73bae68d096b9a5816e7d77d5be7bcacd82da2145
6
+ metadata.gz: 34b70c2216e159bebb83ecbbce9ac9b839381d220d6db29d4ffebe39cb6ce732b18c2ad158dee85ec39fdfa84d9b0b8a70e1a6cd9d8508e1b929e72529655c6d
7
+ data.tar.gz: 2bb21a0f69eda58d90a88b509b5145408fef91e10ce6ab03b125ac1556cb8f4e4d6db399290724acc282a88cbce7311382d4b26330eb1eff4f02f156e0d940a9
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-firebaseml_v2beta
2
2
 
3
+ ### v0.2.0 (2024-04-14)
4
+
5
+ * Regenerated from discovery document revision 20240405
6
+
3
7
  ### v0.1.0 (2024-04-07)
4
8
 
5
9
  * Regenerated from discovery document revision 20240404
@@ -632,53 +632,10 @@ 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>]
@@ -695,7 +652,6 @@ module Google
695
652
 
696
653
  # Update properties of this object
697
654
  def update!(**args)
698
- @grounding_attributions = args[:grounding_attributions] if args.key?(:grounding_attributions)
699
655
  @retrieval_queries = args[:retrieval_queries] if args.key?(:retrieval_queries)
700
656
  @web_search_queries = args[:web_search_queries] if args.key?(:web_search_queries)
701
657
  end
@@ -851,31 +807,6 @@ module Google
851
807
  end
852
808
  end
853
809
 
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
810
  # Safety rating corresponding to the generated content.
880
811
  class SafetyRating
881
812
  include Google::Apis::Core::Hashable
@@ -1104,39 +1035,6 @@ module Google
1104
1035
  end
1105
1036
  end
1106
1037
 
1107
- # Segment of the content.
1108
- class Segment
1109
- include Google::Apis::Core::Hashable
1110
-
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
1121
-
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
1127
-
1128
- def initialize(**args)
1129
- update!(**args)
1130
- end
1131
-
1132
- # Update properties of this object
1133
- 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)
1137
- end
1138
- end
1139
-
1140
1038
  # Tool details that the model may use to generate response. A `Tool` is a piece
1141
1039
  # of code that enables the system to interact with external systems to perform
1142
1040
  # an action, or set of actions, outside of knowledge and scope of the model. A
@@ -1301,31 +1199,6 @@ module Google
1301
1199
  @start_offset = args[:start_offset] if args.key?(:start_offset)
1302
1200
  end
1303
1201
  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
1202
  end
1330
1203
  end
1331
1204
  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.2.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 = "20240405"
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
 
@@ -154,12 +148,6 @@ module Google
154
148
  include Google::Apis::Core::JsonObjectSupport
155
149
  end
156
150
 
157
- class RetrievedContext
158
- class Representation < Google::Apis::Core::JsonRepresentation; end
159
-
160
- include Google::Apis::Core::JsonObjectSupport
161
- end
162
-
163
151
  class SafetyRating
164
152
  class Representation < Google::Apis::Core::JsonRepresentation; end
165
153
 
@@ -178,12 +166,6 @@ module Google
178
166
  include Google::Apis::Core::JsonObjectSupport
179
167
  end
180
168
 
181
- class Segment
182
- class Representation < Google::Apis::Core::JsonRepresentation; end
183
-
184
- include Google::Apis::Core::JsonObjectSupport
185
- end
186
-
187
169
  class Tool
188
170
  class Representation < Google::Apis::Core::JsonRepresentation; end
189
171
 
@@ -220,12 +202,6 @@ module Google
220
202
  include Google::Apis::Core::JsonObjectSupport
221
203
  end
222
204
 
223
- class Web
224
- class Representation < Google::Apis::Core::JsonRepresentation; end
225
-
226
- include Google::Apis::Core::JsonObjectSupport
227
- end
228
-
229
205
  class Blob
230
206
  # @private
231
207
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -397,24 +373,9 @@ module Google
397
373
  end
398
374
  end
399
375
 
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
376
  class GroundingMetadata
414
377
  # @private
415
378
  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
379
  collection :retrieval_queries, as: 'retrievalQueries'
419
380
  collection :web_search_queries, as: 'webSearchQueries'
420
381
  end
@@ -466,14 +427,6 @@ module Google
466
427
  end
467
428
  end
468
429
 
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
430
  class SafetyRating
478
431
  # @private
479
432
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -523,15 +476,6 @@ module Google
523
476
  end
524
477
  end
525
478
 
526
- class Segment
527
- # @private
528
- class Representation < Google::Apis::Core::JsonRepresentation
529
- property :end_index, as: 'endIndex'
530
- property :part_index, as: 'partIndex'
531
- property :start_index, as: 'startIndex'
532
- end
533
- end
534
-
535
479
  class Tool
536
480
  # @private
537
481
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -582,14 +526,6 @@ module Google
582
526
  property :start_offset, as: 'startOffset'
583
527
  end
584
528
  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
529
  end
594
530
  end
595
531
  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.2.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-14 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.2.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: []