Skip to content

Commit 60b1b04

Browse files
feat: Automated regeneration of discoveryengine v1 client (googleapis#20557)
Co-authored-by: Yoshi Automation Bot <[email protected]>
1 parent 8f24284 commit 60b1b04

File tree

6 files changed

+100
-120
lines changed

6 files changed

+100
-120
lines changed

api_names_out.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183189,6 +183189,7 @@
183189183189
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1AnswerQueryRequestAnswerGenerationSpecPromptSpec": google_cloud_discoveryengine_v1_answer_query_request_answer_generation_spec_prompt_spec
183190183190
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1AnswerQueryRequestAnswerGenerationSpecPromptSpec/preamble": preamble
183191183191
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1AnswerQueryRequestGroundingSpec": google_cloud_discoveryengine_v1_answer_query_request_grounding_spec
183192+
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1AnswerQueryRequestGroundingSpec/filteringLevel": filtering_level
183192183193
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1AnswerQueryRequestGroundingSpec/includeGroundingSupports": include_grounding_supports
183193183194
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1AnswerQueryRequestQueryUnderstandingSpec": google_cloud_discoveryengine_v1_answer_query_request_query_understanding_spec
183194183195
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1AnswerQueryRequestQueryUnderstandingSpec/queryClassificationSpec": query_classification_spec
@@ -183643,6 +183644,7 @@
183643183644
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1DocumentIndexStatus/errorSamples/error_sample": error_sample
183644183645
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1DocumentIndexStatus/indexTime": index_time
183645183646
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1DocumentInfo": google_cloud_discoveryengine_v1_document_info
183647+
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1DocumentInfo/conversionValue": conversion_value
183646183648
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1DocumentInfo/id": id
183647183649
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1DocumentInfo/joined": joined
183648183650
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1DocumentInfo/name": name
@@ -184189,6 +184191,7 @@
184189184191
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1Session/userPseudoId": user_pseudo_id
184190184192
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1SessionTurn": google_cloud_discoveryengine_v1_session_turn
184191184193
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1SessionTurn/answer": answer
184194+
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1SessionTurn/detailedAnswer": detailed_answer
184192184195
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1SessionTurn/query": query
184193184196
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1SiteSearchEngine": google_cloud_discoveryengine_v1_site_search_engine
184194184197
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1SiteSearchEngine/name": name
@@ -184264,6 +184267,7 @@
184264184267
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1UserEvent/attributes/attribute": attribute
184265184268
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1UserEvent/attributionToken": attribution_token
184266184269
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1UserEvent/completionInfo": completion_info
184270+
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1UserEvent/conversionType": conversion_type
184267184271
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1UserEvent/dataStore": data_store
184268184272
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1UserEvent/directUserRequest": direct_user_request
184269184273
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1UserEvent/documents": documents
@@ -184987,6 +184991,7 @@
184987184991
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1alphaSession/userPseudoId": user_pseudo_id
184988184992
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1alphaSessionTurn": google_cloud_discoveryengine_v1alpha_session_turn
184989184993
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1alphaSessionTurn/answer": answer
184994+
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1alphaSessionTurn/detailedAnswer": detailed_answer
184990184995
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1alphaSessionTurn/query": query
184991184996
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1alphaSetUriPatternDocumentDataMetadata": google_cloud_discoveryengine_v1alpha_set_uri_pattern_document_data_metadata
184992184997
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1alphaSetUriPatternDocumentDataMetadata/createTime": create_time
@@ -186130,6 +186135,8 @@
186130186135
"/discoveryengine:v1/discoveryengine.projects.locations.userEvents.collect/parent": parent
186131186136
"/discoveryengine:v1/discoveryengine.projects.locations.userEvents.collect/uri": uri
186132186137
"/discoveryengine:v1/discoveryengine.projects.locations.userEvents.collect/userEvent": user_event
186138+
"/discoveryengine:v1/discoveryengine.projects.locations.userEvents.import": import_project_location_user_event
186139+
"/discoveryengine:v1/discoveryengine.projects.locations.userEvents.import/parent": parent
186133186140
"/discoveryengine:v1/discoveryengine.projects.locations.userEvents.write": write_project_location_user_event
186134186141
"/discoveryengine:v1/discoveryengine.projects.locations.userEvents.write/parent": parent
186135186142
"/discoveryengine:v1/discoveryengine.projects.locations.userEvents.write/writeAsync": write_async

generated/google-apis-discoveryengine_v1/CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Release history for google-apis-discoveryengine_v1
22

3-
### v0.22.0 (2024-11-10)
3+
### v0.22.0 (2024-11-17)
44

5-
* Regenerated from discovery document revision 20241031
5+
* Regenerated from discovery document revision 20241110
66

77
### v0.21.0 (2024-11-03)
88

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

Lines changed: 45 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -1129,6 +1129,12 @@ def update!(**args)
11291129
class GoogleCloudDiscoveryengineV1AnswerQueryRequestGroundingSpec
11301130
include Google::Apis::Core::Hashable
11311131

1132+
# Optional. Specifies whether to enable the filtering based on grounding score
1133+
# and at what level.
1134+
# Corresponds to the JSON property `filteringLevel`
1135+
# @return [String]
1136+
attr_accessor :filtering_level
1137+
11321138
# Optional. Specifies whether to include grounding_supports in the answer. The
11331139
# default value is `false`. When this field is set to `true`, returned answer
11341140
# will have `grounding_score` and will contain GroundingSupports for each claim.
@@ -1143,6 +1149,7 @@ def initialize(**args)
11431149

11441150
# Update properties of this object
11451151
def update!(**args)
1152+
@filtering_level = args[:filtering_level] if args.key?(:filtering_level)
11461153
@include_grounding_supports = args[:include_grounding_supports] if args.key?(:include_grounding_supports)
11471154
end
11481155
end
@@ -2616,8 +2623,7 @@ class GoogleCloudDiscoveryengineV1CheckGroundingResponseClaim
26162623
# Indicates that this claim required grounding check. When the system decided
26172624
# this claim doesn't require attribution/grounding check, this field will be set
26182625
# to false. In that case, no grounding check was done for the claim and
2619-
# therefore citation_indices, anti_citation_indices, and score should not be
2620-
# returned.
2626+
# therefore citation_indices should not be returned.
26212627
# Corresponds to the JSON property `groundingCheckRequired`
26222628
# @return [Boolean]
26232629
attr_accessor :grounding_check_required
@@ -2714,7 +2720,7 @@ class GoogleCloudDiscoveryengineV1Chunk
27142720

27152721
# Output only. Represents the relevance score based on similarity. Higher score
27162722
# indicates higher chunk relevance. The score is in range [-1.0, 1.0]. Only
2717-
# populated on SearchService.SearchResponse.
2723+
# populated on SearchResponse.
27182724
# Corresponds to the JSON property `relevanceScore`
27192725
# @return [Float]
27202726
attr_accessor :relevance_score
@@ -4332,6 +4338,14 @@ def update!(**args)
43324338
class GoogleCloudDiscoveryengineV1DocumentInfo
43334339
include Google::Apis::Core::Hashable
43344340

4341+
# Optional. The conversion value associated with this Document. Must be set if
4342+
# UserEvent.event_type is "conversion". For example, a value of 1000 signifies
4343+
# that 1000 seconds were spent viewing a Document for the `watch` conversion
4344+
# type.
4345+
# Corresponds to the JSON property `conversionValue`
4346+
# @return [Float]
4347+
attr_accessor :conversion_value
4348+
43354349
# The Document resource ID.
43364350
# Corresponds to the JSON property `id`
43374351
# @return [String]
@@ -4375,6 +4389,7 @@ def initialize(**args)
43754389

43764390
# Update properties of this object
43774391
def update!(**args)
4392+
@conversion_value = args[:conversion_value] if args.key?(:conversion_value)
43784393
@id = args[:id] if args.key?(:id)
43794394
@joined = args[:joined] if args.key?(:joined)
43804395
@name = args[:name] if args.key?(:name)
@@ -4906,77 +4921,6 @@ def update!(**args)
49064921
end
49074922
end
49084923

4909-
# Information about the user feedback. This information will be used for logging
4910-
# and metrics purpose.
4911-
class GoogleCloudDiscoveryengineV1Feedback
4912-
include Google::Apis::Core::Hashable
4913-
4914-
# Optional. The additional user comment of the feedback if user gives a thumb
4915-
# down.
4916-
# Corresponds to the JSON property `comment`
4917-
# @return [String]
4918-
attr_accessor :comment
4919-
4920-
# The conversation information such as the question index and session name.
4921-
# Corresponds to the JSON property `conversationInfo`
4922-
# @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1FeedbackConversationInfo]
4923-
attr_accessor :conversation_info
4924-
4925-
# Required. Indicate whether the user gives a positive or negative feedback. If
4926-
# the user gives a negative feedback, there might be more feedback details.
4927-
# Corresponds to the JSON property `feedbackType`
4928-
# @return [String]
4929-
attr_accessor :feedback_type
4930-
4931-
# The version of the LLM model that was used to generate the response.
4932-
# Corresponds to the JSON property `llmModelVersion`
4933-
# @return [String]
4934-
attr_accessor :llm_model_version
4935-
4936-
# Optional. The reason if user gives a thumb down.
4937-
# Corresponds to the JSON property `reasons`
4938-
# @return [Array<String>]
4939-
attr_accessor :reasons
4940-
4941-
def initialize(**args)
4942-
update!(**args)
4943-
end
4944-
4945-
# Update properties of this object
4946-
def update!(**args)
4947-
@comment = args[:comment] if args.key?(:comment)
4948-
@conversation_info = args[:conversation_info] if args.key?(:conversation_info)
4949-
@feedback_type = args[:feedback_type] if args.key?(:feedback_type)
4950-
@llm_model_version = args[:llm_model_version] if args.key?(:llm_model_version)
4951-
@reasons = args[:reasons] if args.key?(:reasons)
4952-
end
4953-
end
4954-
4955-
# The conversation information such as the question index and session name.
4956-
class GoogleCloudDiscoveryengineV1FeedbackConversationInfo
4957-
include Google::Apis::Core::Hashable
4958-
4959-
# The index of the user input within the conversation messages.
4960-
# Corresponds to the JSON property `questionIndex`
4961-
# @return [Fixnum]
4962-
attr_accessor :question_index
4963-
4964-
# Name of the newly generated or continued session.
4965-
# Corresponds to the JSON property `session`
4966-
# @return [String]
4967-
attr_accessor :session
4968-
4969-
def initialize(**args)
4970-
update!(**args)
4971-
end
4972-
4973-
# Update properties of this object
4974-
def update!(**args)
4975-
@question_index = args[:question_index] if args.key?(:question_index)
4976-
@session = args[:session] if args.key?(:session)
4977-
end
4978-
end
4979-
49804924
# Response message for SiteSearchEngineService.FetchDomainVerificationStatus
49814925
# method.
49824926
class GoogleCloudDiscoveryengineV1FetchDomainVerificationStatusResponse
@@ -6742,7 +6686,9 @@ class GoogleCloudDiscoveryengineV1RankingRecord
67426686
# @return [String]
67436687
attr_accessor :id
67446688

6745-
# The score of this record based on the given query and selected model.
6689+
# The score of this record based on the given query and selected model. The
6690+
# score will be rounded to 2 decimal places. If the score is close to 0, it will
6691+
# be rounded to 0.0001 to avoid returning unset.
67466692
# Corresponds to the JSON property `score`
67476693
# @return [Float]
67486694
attr_accessor :score
@@ -8638,6 +8584,11 @@ class GoogleCloudDiscoveryengineV1SessionTurn
86388584
# @return [String]
86398585
attr_accessor :answer
86408586

8587+
# Defines an answer.
8588+
# Corresponds to the JSON property `detailedAnswer`
8589+
# @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1Answer]
8590+
attr_accessor :detailed_answer
8591+
86418592
# Defines a user inputed query.
86428593
# Corresponds to the JSON property `query`
86438594
# @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1Query]
@@ -8650,6 +8601,7 @@ def initialize(**args)
86508601
# Update properties of this object
86518602
def update!(**args)
86528603
@answer = args[:answer] if args.key?(:answer)
8604+
@detailed_answer = args[:detailed_answer] if args.key?(:detailed_answer)
86538605
@query = args[:query] if args.key?(:query)
86548606
end
86558607
end
@@ -9276,6 +9228,15 @@ class GoogleCloudDiscoveryengineV1UserEvent
92769228
# @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1CompletionInfo]
92779229
attr_accessor :completion_info
92789230

9231+
# Optional. Conversion type. Required if UserEvent.event_type is `conversion`.
9232+
# This is a customer-defined conversion name in lowercase letters or numbers
9233+
# separated by "-", such as "watch", "good-visit" etc. Do not set the field if
9234+
# UserEvent.event_type is not `conversion`. This mixes the custom conversion
9235+
# event with predefined events like `search`, `view-item` etc.
9236+
# Corresponds to the JSON property `conversionType`
9237+
# @return [String]
9238+
attr_accessor :conversion_type
9239+
92799240
# The DataStore resource full name, of the form `projects/`project`/locations/`
92809241
# location`/collections/`collection_id`/dataStores/`data_store_id``. Optional.
92819242
# Only required for user events whose data store can't by determined by
@@ -9329,17 +9290,12 @@ class GoogleCloudDiscoveryengineV1UserEvent
93299290
# values: * `add-to-cart`: Add an item(s) to cart, e.g. in Retail online
93309291
# shopping * `purchase`: Purchase an item(s) Media-related values: * `media-play`
93319292
# : Start/resume watching a video, playing a song, etc. * `media-complete`:
9332-
# Finished or stopped midway through a video, song, etc.
9293+
# Finished or stopped midway through a video, song, etc. Custom conversion value:
9294+
# * `conversion`: Customer defined conversion event.
93339295
# Corresponds to the JSON property `eventType`
93349296
# @return [String]
93359297
attr_accessor :event_type
93369298

9337-
# Information about the user feedback. This information will be used for logging
9338-
# and metrics purpose.
9339-
# Corresponds to the JSON property `feedback`
9340-
# @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1Feedback]
9341-
attr_accessor :feedback
9342-
93439299
# The filter syntax consists of an expression language for constructing a
93449300
# predicate from one or more fields of the documents being filtered. One example
93459301
# is for `search` events, the associated SearchRequest may contain a filter
@@ -9435,13 +9391,13 @@ def update!(**args)
94359391
@attributes = args[:attributes] if args.key?(:attributes)
94369392
@attribution_token = args[:attribution_token] if args.key?(:attribution_token)
94379393
@completion_info = args[:completion_info] if args.key?(:completion_info)
9394+
@conversion_type = args[:conversion_type] if args.key?(:conversion_type)
94389395
@data_store = args[:data_store] if args.key?(:data_store)
94399396
@direct_user_request = args[:direct_user_request] if args.key?(:direct_user_request)
94409397
@documents = args[:documents] if args.key?(:documents)
94419398
@engine = args[:engine] if args.key?(:engine)
94429399
@event_time = args[:event_time] if args.key?(:event_time)
94439400
@event_type = args[:event_type] if args.key?(:event_type)
9444-
@feedback = args[:feedback] if args.key?(:feedback)
94459401
@filter = args[:filter] if args.key?(:filter)
94469402
@media_info = args[:media_info] if args.key?(:media_info)
94479403
@page_info = args[:page_info] if args.key?(:page_info)
@@ -14766,6 +14722,11 @@ class GoogleCloudDiscoveryengineV1alphaSessionTurn
1476614722
# @return [String]
1476714723
attr_accessor :answer
1476814724

14725+
# Defines an answer.
14726+
# Corresponds to the JSON property `detailedAnswer`
14727+
# @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaAnswer]
14728+
attr_accessor :detailed_answer
14729+
1476914730
# Defines a user inputed query.
1477014731
# Corresponds to the JSON property `query`
1477114732
# @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaQuery]
@@ -14778,6 +14739,7 @@ def initialize(**args)
1477814739
# Update properties of this object
1477914740
def update!(**args)
1478014741
@answer = args[:answer] if args.key?(:answer)
14742+
@detailed_answer = args[:detailed_answer] if args.key?(:detailed_answer)
1478114743
@query = args[:query] if args.key?(:query)
1478214744
end
1478314745
end

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ module DiscoveryengineV1
2222
GENERATOR_VERSION = "0.15.1"
2323

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

0 commit comments

Comments
 (0)