Skip to content

Commit 5c3b836

Browse files
feat: Automated regeneration of developerknowledge v1 client (googleapis#27326)
Auto-created at 2026-07-12 11:33:52 +0000 using the toys pull request generator.
1 parent b10d519 commit 5c3b836

6 files changed

Lines changed: 38 additions & 24 deletions

File tree

api_names_out.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187468,6 +187468,7 @@
187468187468
"/developerknowledge:v1/BatchGetDocumentsResponse/documents/document": document
187469187469
"/developerknowledge:v1/Document": document
187470187470
"/developerknowledge:v1/Document/content": content
187471+
"/developerknowledge:v1/Document/contentLengthBytes": content_length_bytes
187471187472
"/developerknowledge:v1/Document/dataSource": data_source
187472187473
"/developerknowledge:v1/Document/description": description
187473187474
"/developerknowledge:v1/Document/name": name

generated/google-apis-developerknowledge_v1/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-developerknowledge_v1
22

3+
### v0.5.0 (2026-07-12)
4+
5+
* Regenerated from discovery document revision 20260705
6+
37
### v0.4.0 (2026-06-14)
48

59
* Regenerated using generator version 0.19.0

generated/google-apis-developerknowledge_v1/lib/google/apis/developerknowledge_v1/classes.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ class Document
5050
# @return [String]
5151
attr_accessor :content
5252

53+
# Output only. The length of the `content` field in bytes.
54+
# Corresponds to the JSON property `contentLengthBytes`
55+
# @return [Fixnum]
56+
attr_accessor :content_length_bytes
57+
5358
# Output only. Specifies the data source of the document. Example data source: `
5459
# firebase.google.com`
5560
# Corresponds to the JSON property `dataSource`
@@ -97,6 +102,7 @@ def initialize(**args)
97102
# Update properties of this object
98103
def update!(**args)
99104
@content = args[:content] if args.key?(:content)
105+
@content_length_bytes = args[:content_length_bytes] if args.key?(:content_length_bytes)
100106
@data_source = args[:data_source] if args.key?(:data_source)
101107
@description = args[:description] if args.key?(:description)
102108
@name = args[:name] if args.key?(:name)

generated/google-apis-developerknowledge_v1/lib/google/apis/developerknowledge_v1/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module DeveloperknowledgeV1
1818
# Version of the google-apis-developerknowledge_v1 gem
19-
GEM_VERSION = "0.4.0"
19+
GEM_VERSION = "0.5.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.19.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20260524"
25+
REVISION = "20260705"
2626
end
2727
end
2828
end

generated/google-apis-developerknowledge_v1/lib/google/apis/developerknowledge_v1/representations.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ class Document
5858
# @private
5959
class Representation < Google::Apis::Core::JsonRepresentation
6060
property :content, as: 'content'
61+
property :content_length_bytes, as: 'contentLengthBytes'
6162
property :data_source, as: 'dataSource'
6263
property :description, as: 'description'
6364
property :name, as: 'name'

generated/google-apis-developerknowledge_v1/lib/google/apis/developerknowledge_v1/service.rb

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -133,31 +133,33 @@ def get_document(name, view: nil, fields: nil, quota_user: nil, options: nil, &b
133133
# Optional. Applies a strict filter to the search results. The expression
134134
# supports a subset of the syntax described at https://google.aip.dev/160. While
135135
# `SearchDocumentChunks` returns DocumentChunks, the filter is applied to `
136-
# DocumentChunk.document` fields. Supported fields for filtering: * `data_source`
137-
# (STRING): The source of the document, e.g. `docs.cloud.google.com`. See https:
138-
# //developers.google.com/knowledge/reference/corpus-reference for the complete
139-
# list of data sources in the corpus. * `update_time` (TIMESTAMP): The timestamp
140-
# of when the document was last meaningfully updated. A meaningful update is one
141-
# that changes document's markdown content or metadata. * `uri` (STRING): The
142-
# document URI, e.g. `https://docs.cloud.google.com/bigquery/docs/tables`.
143-
# STRING fields support `=` (equals) and `!=` (not equals) operators for **exact
144-
# match** on the whole string. Partial match, prefix match, and regexp match are
145-
# not supported. TIMESTAMP fields support `=`, `<`, `<=`, `>`, and `>=`
146-
# operators. Timestamps must be in RFC-3339 format, e.g., `"2025-01-01T00:00:00Z"
147-
# `. You can combine expressions using `AND`, `OR`, and `NOT` (or `-`) logical
148-
# operators. `OR` has higher precedence than `AND`. Use parentheses for explicit
149-
# precedence grouping. Examples: * `data_source = "docs.cloud.google.com" OR
150-
# data_source = "firebase.google.com"` * `data_source != "firebase.google.com"` *
151-
# `update_time < "2024-01-01T00:00:00Z"` * `update_time >= "2025-01-22T00:00:
152-
# 00Z" AND (data_source = "developer.chrome.com" OR data_source = "web.dev")` * `
153-
# uri = "https://docs.cloud.google.com/release-notes"` The `filter` string must
154-
# not exceed 500 characters; values longer than 500 characters will result in an
155-
# `INVALID_ARGUMENT` error.
136+
# DocumentChunk.document` fields. Supported fields for filtering: * `
137+
# content_length_bytes` (INTEGER): The length of the `Document.content` field in
138+
# bytes. * `data_source` (STRING): The source of the document, e.g. `docs.cloud.
139+
# google.com`. See https://developers.google.com/knowledge/reference/corpus-
140+
# reference for the complete list of data sources in the corpus. * `update_time`
141+
# (TIMESTAMP): The timestamp of when the document was last meaningfully updated.
142+
# A meaningful update is one that changes document's markdown content or
143+
# metadata. * `uri` (STRING): The document URI, e.g. `https://docs.cloud.google.
144+
# com/bigquery/docs/tables`. INTEGER fields support `=`, `<`, `<=`, `>`, and `>=`
145+
# operators. STRING fields support `=` (equals) and `!=` (not equals) operators
146+
# for **exact match** on the whole string. Partial match, prefix match, and
147+
# regexp match are not supported. TIMESTAMP fields support `=`, `<`, `<=`, `>`,
148+
# and `>=` operators. Timestamps must be in RFC-3339 format, e.g., `"2025-01-
149+
# 01T00:00:00Z"`. You can combine expressions using `AND`, `OR`, and `NOT` (or `-
150+
# `) logical operators. `OR` has higher precedence than `AND`. Use parentheses
151+
# for explicit precedence grouping. Examples: * Filter by `Document.
152+
# content_length_bytes`: `content_length_bytes < 50000` * `data_source = "docs.
153+
# cloud.google.com" OR data_source = "firebase.google.com"` * `data_source != "
154+
# firebase.google.com"` * `update_time < "2024-01-01T00:00:00Z"` * `update_time >
155+
# = "2025-01-22T00:00:00Z" AND (data_source = "developer.chrome.com" OR
156+
# data_source = "web.dev")` * `uri = "https://docs.cloud.google.com/release-
157+
# notes"` The `filter` string must not exceed 500 characters; values longer than
158+
# 500 characters will result in an `INVALID_ARGUMENT` error.
156159
# @param [Fixnum] page_size
157160
# Optional. Specifies the maximum number of results to return. The service may
158161
# return fewer than this value. If unspecified, at most 5 results will be
159-
# returned. The maximum value is 20; values above 20 will result in an
160-
# INVALID_ARGUMENT error.
162+
# returned. The maximum value is 100; values above 100 will be coerced to 100.
161163
# @param [String] page_token
162164
# Optional. Contains a page token, received from a previous `
163165
# SearchDocumentChunks` call. Provide this to retrieve the subsequent page.

0 commit comments

Comments
 (0)