Skip to content

Commit 9ad9241

Browse files
feat: Automated regeneration of discoveryengine v1 client (#22510)
Auto-created at 2025-04-20 10:54:16 +0000 using the toys pull request generator.
1 parent b28e03a commit 9ad9241

File tree

5 files changed

+68
-9
lines changed

5 files changed

+68
-9
lines changed

api_names_out.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193223,8 +193223,12 @@
193223193223
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1CheckGroundingSpec": google_cloud_discoveryengine_v1_check_grounding_spec
193224193224
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1CheckGroundingSpec/citationThreshold": citation_threshold
193225193225
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1Chunk": google_cloud_discoveryengine_v1_chunk
193226+
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1Chunk/annotationContents": annotation_contents
193227+
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1Chunk/annotationContents/annotation_content": annotation_content
193226193228
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1Chunk/chunkMetadata": chunk_metadata
193227193229
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1Chunk/content": content
193230+
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1Chunk/dataUrls": data_urls
193231+
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1Chunk/dataUrls/data_url": data_url
193228193232
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1Chunk/derivedStructData": derived_struct_data
193229193233
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1Chunk/derivedStructData/derived_struct_datum": derived_struct_datum
193230193234
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1Chunk/documentMetadata": document_metadata
@@ -194012,6 +194016,7 @@
194012194016
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1SearchInfo/searchQuery": search_query
194013194017
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1SearchLinkPromotion": google_cloud_discoveryengine_v1_search_link_promotion
194014194018
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1SearchLinkPromotion/description": description
194019+
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1SearchLinkPromotion/document": document
194015194020
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1SearchLinkPromotion/enabled": enabled
194016194021
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1SearchLinkPromotion/imageUri": image_uri
194017194022
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1SearchLinkPromotion/title": title
@@ -195130,6 +195135,7 @@
195130195135
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1alphaSchema/structSchema/struct_schema": struct_schema
195131195136
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1alphaSearchLinkPromotion": google_cloud_discoveryengine_v1alpha_search_link_promotion
195132195137
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1alphaSearchLinkPromotion/description": description
195138+
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1alphaSearchLinkPromotion/document": document
195133195139
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1alphaSearchLinkPromotion/enabled": enabled
195134195140
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1alphaSearchLinkPromotion/imageUri": image_uri
195135195141
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1alphaSearchLinkPromotion/title": title
@@ -195756,6 +195762,7 @@
195756195762
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1betaSchema/structSchema/struct_schema": struct_schema
195757195763
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1betaSearchLinkPromotion": google_cloud_discoveryengine_v1beta_search_link_promotion
195758195764
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1betaSearchLinkPromotion/description": description
195765+
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1betaSearchLinkPromotion/document": document
195759195766
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1betaSearchLinkPromotion/enabled": enabled
195760195767
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1betaSearchLinkPromotion/imageUri": image_uri
195761195768
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1betaSearchLinkPromotion/title": title

generated/google-apis-discoveryengine_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-discoveryengine_v1
22

3+
### v0.34.0 (2025-04-20)
4+
5+
* Regenerated from discovery document revision 20250410
6+
37
### v0.33.0 (2025-04-06)
48

59
* Regenerated from discovery document revision 20250331

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

Lines changed: 50 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3015,6 +3015,11 @@ def update!(**args)
30153015
class GoogleCloudDiscoveryengineV1Chunk
30163016
include Google::Apis::Core::Hashable
30173017

3018+
# Output only. Annotation contents if the current chunk contains annotations.
3019+
# Corresponds to the JSON property `annotationContents`
3020+
# @return [Array<String>]
3021+
attr_accessor :annotation_contents
3022+
30183023
# Metadata of the current chunk. This field is only populated on SearchService.
30193024
# Search API.
30203025
# Corresponds to the JSON property `chunkMetadata`
@@ -3026,6 +3031,13 @@ class GoogleCloudDiscoveryengineV1Chunk
30263031
# @return [String]
30273032
attr_accessor :content
30283033

3034+
# Output only. Image Data URLs if the current chunk contains images. Data URLs
3035+
# are composed of four parts: a prefix (data:), a MIME type indicating the type
3036+
# of data, an optional base64 token if non-textual, and the data itself: data:,
3037+
# Corresponds to the JSON property `dataUrls`
3038+
# @return [Array<String>]
3039+
attr_accessor :data_urls
3040+
30293041
# Output only. This field is OUTPUT_ONLY. It contains derived data that are not
30303042
# in the original input document.
30313043
# Corresponds to the JSON property `derivedStructData`
@@ -3069,8 +3081,10 @@ def initialize(**args)
30693081

30703082
# Update properties of this object
30713083
def update!(**args)
3084+
@annotation_contents = args[:annotation_contents] if args.key?(:annotation_contents)
30723085
@chunk_metadata = args[:chunk_metadata] if args.key?(:chunk_metadata)
30733086
@content = args[:content] if args.key?(:content)
3087+
@data_urls = args[:data_urls] if args.key?(:data_urls)
30743088
@derived_struct_data = args[:derived_struct_data] if args.key?(:derived_struct_data)
30753089
@document_metadata = args[:document_metadata] if args.key?(:document_metadata)
30763090
@id = args[:id] if args.key?(:id)
@@ -3446,7 +3460,8 @@ class GoogleCloudDiscoveryengineV1Condition
34463460
attr_accessor :active_time_range
34473461

34483462
# Optional. Query regex to match the whole search query. Cannot be set when
3449-
# Condition.query_terms is set. This is currently supporting promotion use case.
3463+
# Condition.query_terms is set. Only supported for Basic Site Search promotion
3464+
# serving controls.
34503465
# Corresponds to the JSON property `queryRegex`
34513466
# @return [String]
34523467
attr_accessor :query_regex
@@ -4952,10 +4967,15 @@ class GoogleCloudDiscoveryengineV1DocumentContent
49524967
include Google::Apis::Core::Hashable
49534968

49544969
# The MIME type of the content. Supported types: * `application/pdf` (PDF, only
4955-
# native PDFs are supported for now) * `text/html` (HTML) * `application/vnd.
4956-
# openxmlformats-officedocument.wordprocessingml.document` (DOCX) * `application/
4957-
# vnd.openxmlformats-officedocument.presentationml.presentation` (PPTX) * `text/
4958-
# plain` (TXT) See https://www.iana.org/assignments/media-types/media-types.
4970+
# native PDFs are supported for now) * `text/html` (HTML) * `text/plain` (TXT) *
4971+
# `text/xml` (XML) * `application/json` (JSON) * `application/vnd.openxmlformats-
4972+
# officedocument.wordprocessingml.document` (DOCX) * `application/vnd.
4973+
# openxmlformats-officedocument.presentationml.presentation` (PPTX) * `
4974+
# application/vnd.openxmlformats-officedocument.spreadsheetml.sheet` (XLSX) * `
4975+
# application/vnd.ms-excel.sheet.macroenabled.12` (XLSM) The following types are
4976+
# supported only if layout parser is enabled in the data store: * `image/bmp` (
4977+
# BMP) * `image/gif` (GIF) * `image/jpeg` (JPEG) * `image/png` (PNG) * `image/
4978+
# tiff` (TIFF) See https://www.iana.org/assignments/media-types/media-types.
49594979
# xhtml.
49604980
# Corresponds to the JSON property `mimeType`
49614981
# @return [String]
@@ -8225,6 +8245,12 @@ class GoogleCloudDiscoveryengineV1SearchLinkPromotion
82258245
# @return [String]
82268246
attr_accessor :description
82278247

8248+
# Optional. The Document the user wants to promote. For site search, leave unset
8249+
# and only populate uri. Can be set along with uri.
8250+
# Corresponds to the JSON property `document`
8251+
# @return [String]
8252+
attr_accessor :document
8253+
82288254
# Optional. The enabled promotion will be returned for any serving configs
82298255
# associated with the parent of the control this promotion is attached to. This
82308256
# flag is used for basic site search only.
@@ -8256,6 +8282,7 @@ def initialize(**args)
82568282
# Update properties of this object
82578283
def update!(**args)
82588284
@description = args[:description] if args.key?(:description)
8285+
@document = args[:document] if args.key?(:document)
82598286
@enabled = args[:enabled] if args.key?(:enabled)
82608287
@image_uri = args[:image_uri] if args.key?(:image_uri)
82618288
@title = args[:title] if args.key?(:title)
@@ -12255,7 +12282,8 @@ class GoogleCloudDiscoveryengineV1alphaCondition
1225512282
attr_accessor :active_time_range
1225612283

1225712284
# Optional. Query regex to match the whole search query. Cannot be set when
12258-
# Condition.query_terms is set. This is currently supporting promotion use case.
12285+
# Condition.query_terms is set. Only supported for Basic Site Search promotion
12286+
# serving controls.
1225912287
# Corresponds to the JSON property `queryRegex`
1226012288
# @return [String]
1226112289
attr_accessor :query_regex
@@ -16564,6 +16592,12 @@ class GoogleCloudDiscoveryengineV1alphaSearchLinkPromotion
1656416592
# @return [String]
1656516593
attr_accessor :description
1656616594

16595+
# Optional. The Document the user wants to promote. For site search, leave unset
16596+
# and only populate uri. Can be set along with uri.
16597+
# Corresponds to the JSON property `document`
16598+
# @return [String]
16599+
attr_accessor :document
16600+
1656716601
# Optional. The enabled promotion will be returned for any serving configs
1656816602
# associated with the parent of the control this promotion is attached to. This
1656916603
# flag is used for basic site search only.
@@ -16595,6 +16629,7 @@ def initialize(**args)
1659516629
# Update properties of this object
1659616630
def update!(**args)
1659716631
@description = args[:description] if args.key?(:description)
16632+
@document = args[:document] if args.key?(:document)
1659816633
@enabled = args[:enabled] if args.key?(:enabled)
1659916634
@image_uri = args[:image_uri] if args.key?(:image_uri)
1660016635
@title = args[:title] if args.key?(:title)
@@ -18817,7 +18852,8 @@ class GoogleCloudDiscoveryengineV1betaCondition
1881718852
attr_accessor :active_time_range
1881818853

1881918854
# Optional. Query regex to match the whole search query. Cannot be set when
18820-
# Condition.query_terms is set. This is currently supporting promotion use case.
18855+
# Condition.query_terms is set. Only supported for Basic Site Search promotion
18856+
# serving controls.
1882118857
# Corresponds to the JSON property `queryRegex`
1882218858
# @return [String]
1882318859
attr_accessor :query_regex
@@ -21518,6 +21554,12 @@ class GoogleCloudDiscoveryengineV1betaSearchLinkPromotion
2151821554
# @return [String]
2151921555
attr_accessor :description
2152021556

21557+
# Optional. The Document the user wants to promote. For site search, leave unset
21558+
# and only populate uri. Can be set along with uri.
21559+
# Corresponds to the JSON property `document`
21560+
# @return [String]
21561+
attr_accessor :document
21562+
2152121563
# Optional. The enabled promotion will be returned for any serving configs
2152221564
# associated with the parent of the control this promotion is attached to. This
2152321565
# flag is used for basic site search only.
@@ -21549,6 +21591,7 @@ def initialize(**args)
2154921591
# Update properties of this object
2155021592
def update!(**args)
2155121593
@description = args[:description] if args.key?(:description)
21594+
@document = args[:document] if args.key?(:document)
2155221595
@enabled = args[:enabled] if args.key?(:enabled)
2155321596
@image_uri = args[:image_uri] if args.key?(:image_uri)
2155421597
@title = args[:title] if args.key?(:title)

generated/google-apis-discoveryengine_v1/lib/google/apis/discoveryengine_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 DiscoveryengineV1
1818
# Version of the google-apis-discoveryengine_v1 gem
19-
GEM_VERSION = "0.33.0"
19+
GEM_VERSION = "0.34.0"
2020

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

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

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4643,9 +4643,11 @@ class Representation < Google::Apis::Core::JsonRepresentation
46434643
class GoogleCloudDiscoveryengineV1Chunk
46444644
# @private
46454645
class Representation < Google::Apis::Core::JsonRepresentation
4646+
collection :annotation_contents, as: 'annotationContents'
46464647
property :chunk_metadata, as: 'chunkMetadata', class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ChunkChunkMetadata, decorator: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ChunkChunkMetadata::Representation
46474648

46484649
property :content, as: 'content'
4650+
collection :data_urls, as: 'dataUrls'
46494651
hash :derived_struct_data, as: 'derivedStructData'
46504652
property :document_metadata, as: 'documentMetadata', class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ChunkDocumentMetadata, decorator: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ChunkDocumentMetadata::Representation
46514653

@@ -6099,6 +6101,7 @@ class GoogleCloudDiscoveryengineV1SearchLinkPromotion
60996101
# @private
61006102
class Representation < Google::Apis::Core::JsonRepresentation
61016103
property :description, as: 'description'
6104+
property :document, as: 'document'
61026105
property :enabled, as: 'enabled'
61036106
property :image_uri, as: 'imageUri'
61046107
property :title, as: 'title'
@@ -8286,6 +8289,7 @@ class GoogleCloudDiscoveryengineV1alphaSearchLinkPromotion
82868289
# @private
82878290
class Representation < Google::Apis::Core::JsonRepresentation
82888291
property :description, as: 'description'
8292+
property :document, as: 'document'
82898293
property :enabled, as: 'enabled'
82908294
property :image_uri, as: 'imageUri'
82918295
property :title, as: 'title'
@@ -9620,6 +9624,7 @@ class GoogleCloudDiscoveryengineV1betaSearchLinkPromotion
96209624
# @private
96219625
class Representation < Google::Apis::Core::JsonRepresentation
96229626
property :description, as: 'description'
9627+
property :document, as: 'document'
96239628
property :enabled, as: 'enabled'
96249629
property :image_uri, as: 'imageUri'
96259630
property :title, as: 'title'

0 commit comments

Comments
 (0)