google-apis-developerknowledge_v1alpha 0.6.0 → 0.7.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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/developerknowledge_v1alpha/classes.rb +46 -4
- data/lib/google/apis/developerknowledge_v1alpha/gem_version.rb +2 -2
- data/lib/google/apis/developerknowledge_v1alpha/representations.rb +2 -0
- data/lib/google/apis/developerknowledge_v1alpha/service.rb +7 -3
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f2bcf64c409e29b133914ba92a40cb9de98f342af7e512b6c9bf26cbd15e4530
|
|
4
|
+
data.tar.gz: a4ab080595c500af04bb44f7f86f5e3626ed780382b8f8eb9fa33166accac1b3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b2097680bd65c87dd2eaa59a9d855c195adaa57cf8fe1e0113226b3e0f52d256e68ec55f84f70079713ae6d27595be8f5f391346a8f83825c53b725c2859ff59
|
|
7
|
+
data.tar.gz: a35beea29595c734d375ccbe079db4758bbba33e90349157e98388c8908f4bdde5e134b9c4afacfac1d3535108ad22fd3f912a4157eb75216d31cee302177e46
|
data/CHANGELOG.md
CHANGED
|
@@ -92,6 +92,35 @@ module Google
|
|
|
92
92
|
class AnswerQueryRequest
|
|
93
93
|
include Google::Apis::Core::Hashable
|
|
94
94
|
|
|
95
|
+
# Optional. Applies a strict filter to the search results used to ground the
|
|
96
|
+
# answer. The expression supports a subset of the syntax described at https://
|
|
97
|
+
# google.aip.dev/160. Supported fields for filtering: * `content_length_bytes` (
|
|
98
|
+
# INTEGER): The length of the `Document.content` field in bytes. * `data_source`
|
|
99
|
+
# (STRING): The source of the document, e.g. `docs.cloud.google.com`. See https:/
|
|
100
|
+
# /developers.google.com/knowledge/reference/corpus-reference for the complete
|
|
101
|
+
# list of data sources in the corpus. * `update_time` (TIMESTAMP): The timestamp
|
|
102
|
+
# of when the document was last meaningfully updated. A meaningful update is one
|
|
103
|
+
# that changes document's markdown content or metadata. * `uri` (STRING): The
|
|
104
|
+
# document URI, e.g. `https://docs.cloud.google.com/bigquery/docs/tables`.
|
|
105
|
+
# INTEGER fields support `=`, `<`, `<=`, `>`, and `>=` operators. STRING fields
|
|
106
|
+
# support `=` (equals) and `!=` (not equals) operators for **exact match** on
|
|
107
|
+
# the whole string. Partial match, prefix match, and regexp match are not
|
|
108
|
+
# supported. TIMESTAMP fields support `=`, `<`, `<=`, `>`, and `>=` operators.
|
|
109
|
+
# Timestamps must be in RFC-3339 format, e.g., `"2025-01-01T00:00:00Z"`. You can
|
|
110
|
+
# combine expressions using `AND`, `OR`, and `NOT` (or `-`) logical operators. `
|
|
111
|
+
# OR` has higher precedence than `AND`. Use parentheses for explicit precedence
|
|
112
|
+
# grouping. Examples: * Filter by `Document.content_length_bytes`: `
|
|
113
|
+
# content_length_bytes < 50000` * `data_source = "docs.cloud.google.com" OR
|
|
114
|
+
# data_source = "firebase.google.com"` * `data_source != "firebase.google.com"` *
|
|
115
|
+
# `update_time < "2024-01-01T00:00:00Z"` * `update_time >= "2025-01-22T00:00:
|
|
116
|
+
# 00Z" AND (data_source = "developer.chrome.com" OR data_source = "web.dev")` * `
|
|
117
|
+
# uri = "https://docs.cloud.google.com/release-notes"` The `filter` string must
|
|
118
|
+
# not exceed 500 characters; values longer than 500 characters will result in an
|
|
119
|
+
# `INVALID_ARGUMENT` error.
|
|
120
|
+
# Corresponds to the JSON property `filter`
|
|
121
|
+
# @return [String]
|
|
122
|
+
attr_accessor :filter
|
|
123
|
+
|
|
95
124
|
# Required. The query to answer.
|
|
96
125
|
# Corresponds to the JSON property `query`
|
|
97
126
|
# @return [String]
|
|
@@ -103,6 +132,7 @@ module Google
|
|
|
103
132
|
|
|
104
133
|
# Update properties of this object
|
|
105
134
|
def update!(**args)
|
|
135
|
+
@filter = args[:filter] if args.key?(:filter)
|
|
106
136
|
@query = args[:query] if args.key?(:query)
|
|
107
137
|
end
|
|
108
138
|
end
|
|
@@ -184,7 +214,9 @@ module Google
|
|
|
184
214
|
end
|
|
185
215
|
end
|
|
186
216
|
|
|
187
|
-
# A Document represents a
|
|
217
|
+
# A Document represents a page of documentation in the Developer Knowledge
|
|
218
|
+
# corpus, like the page at https://docs.cloud.google.com/storage/docs/creating-
|
|
219
|
+
# buckets.
|
|
188
220
|
class Document
|
|
189
221
|
include Google::Apis::Core::Hashable
|
|
190
222
|
|
|
@@ -268,7 +300,9 @@ module Google
|
|
|
268
300
|
# @return [String]
|
|
269
301
|
attr_accessor :content
|
|
270
302
|
|
|
271
|
-
# A Document represents a
|
|
303
|
+
# A Document represents a page of documentation in the Developer Knowledge
|
|
304
|
+
# corpus, like the page at https://docs.cloud.google.com/storage/docs/creating-
|
|
305
|
+
# buckets.
|
|
272
306
|
# Corresponds to the JSON property `document`
|
|
273
307
|
# @return [Google::Apis::DeveloperknowledgeV1alpha::Document]
|
|
274
308
|
attr_accessor :document
|
|
@@ -287,6 +321,13 @@ module Google
|
|
|
287
321
|
# @return [String]
|
|
288
322
|
attr_accessor :parent
|
|
289
323
|
|
|
324
|
+
# Output only. Represents the relevance score of the chunk to the search query.
|
|
325
|
+
# Higher score indicates higher chunk relevance. The score is in range [0.0, 1.0]
|
|
326
|
+
# .
|
|
327
|
+
# Corresponds to the JSON property `relevanceScore`
|
|
328
|
+
# @return [Float]
|
|
329
|
+
attr_accessor :relevance_score
|
|
330
|
+
|
|
290
331
|
def initialize(**args)
|
|
291
332
|
update!(**args)
|
|
292
333
|
end
|
|
@@ -297,6 +338,7 @@ module Google
|
|
|
297
338
|
@document = args[:document] if args.key?(:document)
|
|
298
339
|
@id = args[:id] if args.key?(:id)
|
|
299
340
|
@parent = args[:parent] if args.key?(:parent)
|
|
341
|
+
@relevance_score = args[:relevance_score] if args.key?(:relevance_score)
|
|
300
342
|
end
|
|
301
343
|
end
|
|
302
344
|
|
|
@@ -326,8 +368,8 @@ module Google
|
|
|
326
368
|
class SearchDocumentChunksResponse
|
|
327
369
|
include Google::Apis::Core::Hashable
|
|
328
370
|
|
|
329
|
-
#
|
|
330
|
-
#
|
|
371
|
+
# Provides a token that can be sent as `page_token` to retrieve the next page.
|
|
372
|
+
# If this field is omitted, there are no subsequent pages.
|
|
331
373
|
# Corresponds to the JSON property `nextPageToken`
|
|
332
374
|
# @return [String]
|
|
333
375
|
attr_accessor :next_page_token
|
|
@@ -16,13 +16,13 @@ module Google
|
|
|
16
16
|
module Apis
|
|
17
17
|
module DeveloperknowledgeV1alpha
|
|
18
18
|
# Version of the google-apis-developerknowledge_v1alpha gem
|
|
19
|
-
GEM_VERSION = "0.
|
|
19
|
+
GEM_VERSION = "0.7.0"
|
|
20
20
|
|
|
21
21
|
# Version of the code generator used to generate this client
|
|
22
22
|
GENERATOR_VERSION = "0.19.0"
|
|
23
23
|
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
|
25
|
-
REVISION = "
|
|
25
|
+
REVISION = "20260802"
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
end
|
|
@@ -112,6 +112,7 @@ module Google
|
|
|
112
112
|
class AnswerQueryRequest
|
|
113
113
|
# @private
|
|
114
114
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
115
|
+
property :filter, as: 'filter'
|
|
115
116
|
property :query, as: 'query'
|
|
116
117
|
end
|
|
117
118
|
end
|
|
@@ -170,6 +171,7 @@ module Google
|
|
|
170
171
|
|
|
171
172
|
property :id, as: 'id'
|
|
172
173
|
property :parent, as: 'parent'
|
|
174
|
+
property :relevance_score, as: 'relevanceScore'
|
|
173
175
|
end
|
|
174
176
|
end
|
|
175
177
|
|
|
@@ -56,7 +56,9 @@ module Google
|
|
|
56
56
|
# Required. Specifies the names of the documents to retrieve. A maximum of 20
|
|
57
57
|
# documents can be retrieved in a batch. The documents are returned in the same
|
|
58
58
|
# order as the `names` in the request. Format: `documents/`uri_without_scheme``
|
|
59
|
-
# Example: `documents/docs.cloud.google.com/storage/docs/creating-buckets`
|
|
59
|
+
# Example: `documents/docs.cloud.google.com/storage/docs/creating-buckets` Each
|
|
60
|
+
# name must not exceed 500 characters; values longer than 500 characters will
|
|
61
|
+
# result in an `INVALID_ARGUMENT` error.
|
|
60
62
|
# @param [String] view
|
|
61
63
|
# Optional. Specifies the DocumentView of the document. If unspecified,
|
|
62
64
|
# DeveloperKnowledge.BatchGetDocuments defaults to `DOCUMENT_VIEW_CONTENT`.
|
|
@@ -92,7 +94,8 @@ module Google
|
|
|
92
94
|
# @param [String] name
|
|
93
95
|
# Required. Specifies the name of the document to retrieve. Format: `documents/`
|
|
94
96
|
# uri_without_scheme`` Example: `documents/docs.cloud.google.com/storage/docs/
|
|
95
|
-
# creating-buckets`
|
|
97
|
+
# creating-buckets` The name must not exceed 500 characters; values longer than
|
|
98
|
+
# 500 characters will result in an `INVALID_ARGUMENT` error.
|
|
96
99
|
# @param [String] view
|
|
97
100
|
# Optional. Specifies the DocumentView of the document. If unspecified,
|
|
98
101
|
# DeveloperKnowledge.GetDocument defaults to `DOCUMENT_VIEW_CONTENT`.
|
|
@@ -165,7 +168,8 @@ module Google
|
|
|
165
168
|
# SearchDocumentChunks` call. Provide this to retrieve the subsequent page.
|
|
166
169
|
# @param [String] query
|
|
167
170
|
# Required. Provides the raw query string provided by the user, such as "How to
|
|
168
|
-
# create a Cloud Storage bucket?".
|
|
171
|
+
# create a Cloud Storage bucket?". The query must not exceed 500 characters;
|
|
172
|
+
# values longer than 500 characters will result in an `INVALID_ARGUMENT` error.
|
|
169
173
|
# @param [String] fields
|
|
170
174
|
# Selector specifying which fields to include in a partial response.
|
|
171
175
|
# @param [String] quota_user
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-apis-developerknowledge_v1alpha
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.7.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
@@ -57,7 +57,7 @@ licenses:
|
|
|
57
57
|
metadata:
|
|
58
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
|
59
59
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-developerknowledge_v1alpha/CHANGELOG.md
|
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-developerknowledge_v1alpha/v0.
|
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-developerknowledge_v1alpha/v0.7.0
|
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-developerknowledge_v1alpha
|
|
62
62
|
rdoc_options: []
|
|
63
63
|
require_paths:
|