Skip to content

Commit 506e9c8

Browse files
feat: Automated regeneration of DiscoveryEngine client (#13065)
Auto-created at 2025-02-28 13:21:06 +0000 using the toys pull request generator.
1 parent c10c65d commit 506e9c8

7 files changed

+165
-2
lines changed

clients/discovery_engine/lib/google_api/discovery_engine/v1/metadata.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ defmodule GoogleApi.DiscoveryEngine.V1 do
2020
API client metadata for GoogleApi.DiscoveryEngine.V1.
2121
"""
2222

23-
@discovery_revision "20250222"
23+
@discovery_revision "20250226"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineLoggingConnectorRunErrorContext do
19+
@moduledoc """
20+
The error payload that is populated on LRO sync APIs, including the following: * `google.cloud.discoveryengine.v1main.DataConnectorService.SetUpDataConnector` * `google.cloud.discoveryengine.v1main.DataConnectorService.StartConnectorRun`
21+
22+
## Attributes
23+
24+
* `connectorRun` (*type:* `String.t`, *default:* `nil`) - The full resource name of the Connector Run. Format: `projects/*/locations/*/collections/*/dataConnector/connectorRuns/*`. The `connector_run_id` is system-generated.
25+
* `dataConnector` (*type:* `String.t`, *default:* `nil`) - The full resource name of the DataConnector. Format: `projects/*/locations/*/collections/*/dataConnector`.
26+
* `endTime` (*type:* `DateTime.t`, *default:* `nil`) - The time when the connector run ended.
27+
* `entity` (*type:* `String.t`, *default:* `nil`) - The entity to sync for the connector run.
28+
* `operation` (*type:* `String.t`, *default:* `nil`) - The operation resource name of the LRO to sync the connector.
29+
* `startTime` (*type:* `DateTime.t`, *default:* `nil`) - The time when the connector run started.
30+
* `syncType` (*type:* `String.t`, *default:* `nil`) - The type of sync run. Can be one of the following: * `FULL` * `INCREMENTAL`
31+
"""
32+
33+
use GoogleApi.Gax.ModelBase
34+
35+
@type t :: %__MODULE__{
36+
:connectorRun => String.t() | nil,
37+
:dataConnector => String.t() | nil,
38+
:endTime => DateTime.t() | nil,
39+
:entity => String.t() | nil,
40+
:operation => String.t() | nil,
41+
:startTime => DateTime.t() | nil,
42+
:syncType => String.t() | nil
43+
}
44+
45+
field(:connectorRun)
46+
field(:dataConnector)
47+
field(:endTime, as: DateTime)
48+
field(:entity)
49+
field(:operation)
50+
field(:startTime, as: DateTime)
51+
field(:syncType)
52+
end
53+
54+
defimpl Poison.Decoder,
55+
for:
56+
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineLoggingConnectorRunErrorContext do
57+
def decode(value, options) do
58+
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineLoggingConnectorRunErrorContext.decode(
59+
value,
60+
options
61+
)
62+
end
63+
end
64+
65+
defimpl Poison.Encoder,
66+
for:
67+
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineLoggingConnectorRunErrorContext do
68+
def encode(value, options) do
69+
GoogleApi.Gax.ModelBase.encode(value, options)
70+
end
71+
end

clients/discovery_engine/lib/google_api/discovery_engine/v1/model/google_cloud_discoveryengine_logging_error_log.ex

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineLoggingEr
2121
2222
## Attributes
2323
24+
* `connectorRunPayload` (*type:* `GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineLoggingConnectorRunErrorContext.t`, *default:* `nil`) - The error payload that is populated on LRO connector sync APIs.
2425
* `context` (*type:* `GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineLoggingErrorContext.t`, *default:* `nil`) - A description of the context in which the error occurred.
2526
* `importPayload` (*type:* `GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineLoggingImportErrorContext.t`, *default:* `nil`) - The error payload that is populated on LRO import APIs.
2627
* `message` (*type:* `String.t`, *default:* `nil`) - A message describing the error.
@@ -33,6 +34,9 @@ defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineLoggingEr
3334
use GoogleApi.Gax.ModelBase
3435

3536
@type t :: %__MODULE__{
37+
:connectorRunPayload =>
38+
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineLoggingConnectorRunErrorContext.t()
39+
| nil,
3640
:context =>
3741
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineLoggingErrorContext.t()
3842
| nil,
@@ -48,6 +52,11 @@ defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineLoggingEr
4852
:status => GoogleApi.DiscoveryEngine.V1.Model.GoogleRpcStatus.t() | nil
4953
}
5054

55+
field(:connectorRunPayload,
56+
as:
57+
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineLoggingConnectorRunErrorContext
58+
)
59+
5160
field(:context,
5261
as: GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineLoggingErrorContext
5362
)

clients/discovery_engine/lib/google_api/discovery_engine/v1/model/google_cloud_discoveryengine_v1_search_request.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1SearchR
3939
* `query` (*type:* `String.t`, *default:* `nil`) - Raw search query.
4040
* `queryExpansionSpec` (*type:* `GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1SearchRequestQueryExpansionSpec.t`, *default:* `nil`) - The query expansion specification that specifies the conditions under which query expansion occurs.
4141
* `relevanceScoreSpec` (*type:* `GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1SearchRequestRelevanceScoreSpec.t`, *default:* `nil`) - Optional. The specification for returning the relevance score.
42+
* `relevanceThreshold` (*type:* `String.t`, *default:* `nil`) - The relevance threshold of the search results. Default to Google defined threshold, leveraging a balance of precision and recall to deliver both highly accurate results and comprehensive coverage of relevant information. This feature is not supported for healthcare search.
4243
* `safeSearch` (*type:* `boolean()`, *default:* `nil`) - Whether to turn on safe search. This is only supported for website search.
4344
* `searchAsYouTypeSpec` (*type:* `GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1SearchRequestSearchAsYouTypeSpec.t`, *default:* `nil`) - Search as you type configuration. Only supported for the IndustryVertical.MEDIA vertical.
4445
* `session` (*type:* `String.t`, *default:* `nil`) - The session resource name. Optional. Session allows users to do multi-turn /search API calls or coordination between /search API calls and /answer API calls. Example #1 (multi-turn /search API calls): 1. Call /search API with the auto-session mode (see below). 2. Call /search API with the session ID generated in the first call. Here, the previous search query gets considered in query standing. I.e., if the first query is "How did Alphabet do in 2022?" and the current query is "How about 2023?", the current query will be interpreted as "How did Alphabet do in 2023?". Example #2 (coordination between /search API calls and /answer API calls): 1. Call /search API with the auto-session mode (see below). 2. Call /answer API with the session ID generated in the first call. Here, the answer generation happens in the context of the search results from the first search call. Auto-session mode: when `projects/.../sessions/-` is used, a new session gets automatically created. Otherwise, users can use the create-session API to create a session manually. Multi-turn Search feature is currently at private GA stage. Please use v1alpha or v1beta version instead before we launch this feature to public GA. Or ask for allowlisting through Google Support team.
@@ -88,6 +89,7 @@ defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1SearchR
8889
:relevanceScoreSpec =>
8990
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1SearchRequestRelevanceScoreSpec.t()
9091
| nil,
92+
:relevanceThreshold => String.t() | nil,
9193
:safeSearch => boolean() | nil,
9294
:searchAsYouTypeSpec =>
9395
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1SearchRequestSearchAsYouTypeSpec.t()
@@ -152,6 +154,7 @@ defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1SearchR
152154
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1SearchRequestRelevanceScoreSpec
153155
)
154156

157+
field(:relevanceThreshold)
155158
field(:safeSearch)
156159

157160
field(:searchAsYouTypeSpec,

clients/discovery_engine/lib/google_api/discovery_engine/v1beta/metadata.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ defmodule GoogleApi.DiscoveryEngine.V1beta do
2020
API client metadata for GoogleApi.DiscoveryEngine.V1beta.
2121
"""
2222

23-
@discovery_revision "20250222"
23+
@discovery_revision "20250226"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.DiscoveryEngine.V1beta.Model.GoogleCloudDiscoveryengineLoggingConnectorRunErrorContext do
19+
@moduledoc """
20+
The error payload that is populated on LRO sync APIs, including the following: * `google.cloud.discoveryengine.v1main.DataConnectorService.SetUpDataConnector` * `google.cloud.discoveryengine.v1main.DataConnectorService.StartConnectorRun`
21+
22+
## Attributes
23+
24+
* `connectorRun` (*type:* `String.t`, *default:* `nil`) - The full resource name of the Connector Run. Format: `projects/*/locations/*/collections/*/dataConnector/connectorRuns/*`. The `connector_run_id` is system-generated.
25+
* `dataConnector` (*type:* `String.t`, *default:* `nil`) - The full resource name of the DataConnector. Format: `projects/*/locations/*/collections/*/dataConnector`.
26+
* `endTime` (*type:* `DateTime.t`, *default:* `nil`) - The time when the connector run ended.
27+
* `entity` (*type:* `String.t`, *default:* `nil`) - The entity to sync for the connector run.
28+
* `operation` (*type:* `String.t`, *default:* `nil`) - The operation resource name of the LRO to sync the connector.
29+
* `startTime` (*type:* `DateTime.t`, *default:* `nil`) - The time when the connector run started.
30+
* `syncType` (*type:* `String.t`, *default:* `nil`) - The type of sync run. Can be one of the following: * `FULL` * `INCREMENTAL`
31+
"""
32+
33+
use GoogleApi.Gax.ModelBase
34+
35+
@type t :: %__MODULE__{
36+
:connectorRun => String.t() | nil,
37+
:dataConnector => String.t() | nil,
38+
:endTime => DateTime.t() | nil,
39+
:entity => String.t() | nil,
40+
:operation => String.t() | nil,
41+
:startTime => DateTime.t() | nil,
42+
:syncType => String.t() | nil
43+
}
44+
45+
field(:connectorRun)
46+
field(:dataConnector)
47+
field(:endTime, as: DateTime)
48+
field(:entity)
49+
field(:operation)
50+
field(:startTime, as: DateTime)
51+
field(:syncType)
52+
end
53+
54+
defimpl Poison.Decoder,
55+
for:
56+
GoogleApi.DiscoveryEngine.V1beta.Model.GoogleCloudDiscoveryengineLoggingConnectorRunErrorContext do
57+
def decode(value, options) do
58+
GoogleApi.DiscoveryEngine.V1beta.Model.GoogleCloudDiscoveryengineLoggingConnectorRunErrorContext.decode(
59+
value,
60+
options
61+
)
62+
end
63+
end
64+
65+
defimpl Poison.Encoder,
66+
for:
67+
GoogleApi.DiscoveryEngine.V1beta.Model.GoogleCloudDiscoveryengineLoggingConnectorRunErrorContext do
68+
def encode(value, options) do
69+
GoogleApi.Gax.ModelBase.encode(value, options)
70+
end
71+
end

clients/discovery_engine/lib/google_api/discovery_engine/v1beta/model/google_cloud_discoveryengine_logging_error_log.ex

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ defmodule GoogleApi.DiscoveryEngine.V1beta.Model.GoogleCloudDiscoveryengineLoggi
2121
2222
## Attributes
2323
24+
* `connectorRunPayload` (*type:* `GoogleApi.DiscoveryEngine.V1beta.Model.GoogleCloudDiscoveryengineLoggingConnectorRunErrorContext.t`, *default:* `nil`) - The error payload that is populated on LRO connector sync APIs.
2425
* `context` (*type:* `GoogleApi.DiscoveryEngine.V1beta.Model.GoogleCloudDiscoveryengineLoggingErrorContext.t`, *default:* `nil`) - A description of the context in which the error occurred.
2526
* `importPayload` (*type:* `GoogleApi.DiscoveryEngine.V1beta.Model.GoogleCloudDiscoveryengineLoggingImportErrorContext.t`, *default:* `nil`) - The error payload that is populated on LRO import APIs.
2627
* `message` (*type:* `String.t`, *default:* `nil`) - A message describing the error.
@@ -33,6 +34,9 @@ defmodule GoogleApi.DiscoveryEngine.V1beta.Model.GoogleCloudDiscoveryengineLoggi
3334
use GoogleApi.Gax.ModelBase
3435

3536
@type t :: %__MODULE__{
37+
:connectorRunPayload =>
38+
GoogleApi.DiscoveryEngine.V1beta.Model.GoogleCloudDiscoveryengineLoggingConnectorRunErrorContext.t()
39+
| nil,
3640
:context =>
3741
GoogleApi.DiscoveryEngine.V1beta.Model.GoogleCloudDiscoveryengineLoggingErrorContext.t()
3842
| nil,
@@ -48,6 +52,11 @@ defmodule GoogleApi.DiscoveryEngine.V1beta.Model.GoogleCloudDiscoveryengineLoggi
4852
:status => GoogleApi.DiscoveryEngine.V1beta.Model.GoogleRpcStatus.t() | nil
4953
}
5054

55+
field(:connectorRunPayload,
56+
as:
57+
GoogleApi.DiscoveryEngine.V1beta.Model.GoogleCloudDiscoveryengineLoggingConnectorRunErrorContext
58+
)
59+
5160
field(:context,
5261
as: GoogleApi.DiscoveryEngine.V1beta.Model.GoogleCloudDiscoveryengineLoggingErrorContext
5362
)

0 commit comments

Comments
 (0)