Skip to content

Commit e4c564b

Browse files
feat: Automated regeneration of DiscoveryEngine client (#13168)
Auto-created at 2025-03-15 13:15:12 +0000 using the toys pull request generator.
1 parent 8294d41 commit e4c564b

22 files changed

+457
-8
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 "20250306"
23+
@discovery_revision "20250312"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,15 @@ defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1AnswerQ
2121
2222
## Attributes
2323
24+
* `disableSpellCorrection` (*type:* `boolean()`, *default:* `nil`) - Optional. Whether to disable spell correction. The default value is `false`.
2425
* `queryClassificationSpec` (*type:* `GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1AnswerQueryRequestQueryUnderstandingSpecQueryClassificationSpec.t`, *default:* `nil`) - Query classification specification.
2526
* `queryRephraserSpec` (*type:* `GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1AnswerQueryRequestQueryUnderstandingSpecQueryRephraserSpec.t`, *default:* `nil`) - Query rephraser specification.
2627
"""
2728

2829
use GoogleApi.Gax.ModelBase
2930

3031
@type t :: %__MODULE__{
32+
:disableSpellCorrection => boolean() | nil,
3133
:queryClassificationSpec =>
3234
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1AnswerQueryRequestQueryUnderstandingSpecQueryClassificationSpec.t()
3335
| nil,
@@ -36,6 +38,8 @@ defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1AnswerQ
3638
| nil
3739
}
3840

41+
field(:disableSpellCorrection)
42+
3943
field(:queryClassificationSpec,
4044
as:
4145
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1AnswerQueryRequestQueryUnderstandingSpecQueryClassificationSpec

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1SearchL
2525
* `enabled` (*type:* `boolean()`, *default:* `nil`) - Optional. The enabled promotion will be returned for any serving configs associated with the parent of the control this promotion is attached to. This flag is used for basic site search only.
2626
* `imageUri` (*type:* `String.t`, *default:* `nil`) - Optional. The promotion thumbnail image url.
2727
* `title` (*type:* `String.t`, *default:* `nil`) - Required. The title of the promotion. Maximum length: 160 characters.
28-
* `uri` (*type:* `String.t`, *default:* `nil`) - Required. The URL for the page the user wants to promote.
28+
* `uri` (*type:* `String.t`, *default:* `nil`) - Optional. The URL for the page the user wants to promote. Must be set for site search. For other verticals, this is optional.
2929
"""
3030

3131
use GoogleApi.Gax.ModelBase

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1SearchR
2626
* `canonicalFilter` (*type:* `String.t`, *default:* `nil`) - The default filter that is applied when a user performs a search without checking any filters on the search page. The filter applied to every search request when quality improvement such as query expansion is needed. In the case a query does not have a sufficient amount of results this filter will be used to determine whether or not to enable the query expansion flow. The original filter will still be used for the query expanded search. This field is strongly recommended to achieve high search quality. For more information about filter syntax, see SearchRequest.filter.
2727
* `contentSearchSpec` (*type:* `GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpec.t`, *default:* `nil`) - A specification for configuring the behavior of content search.
2828
* `dataStoreSpecs` (*type:* `list(GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1SearchRequestDataStoreSpec.t)`, *default:* `nil`) - Specifications that define the specific [DataStore]s to be searched, along with configurations for those data stores. This is only considered for Engines with multiple data stores. For engines with a single data store, the specs directly under SearchRequest should be used.
29+
* `displaySpec` (*type:* `GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1SearchRequestDisplaySpec.t`, *default:* `nil`) - Optional. Config for display feature, like match highlighting on search results.
2930
* `facetSpecs` (*type:* `list(GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1SearchRequestFacetSpec.t)`, *default:* `nil`) - Facet specifications for faceted search. If empty, no facets are returned. A maximum of 100 values are allowed. Otherwise, an `INVALID_ARGUMENT` error is returned.
3031
* `filter` (*type:* `String.t`, *default:* `nil`) - The filter syntax consists of an expression language for constructing a predicate from one or more fields of the documents being filtered. Filter expression is case-sensitive. If this field is unrecognizable, an `INVALID_ARGUMENT` is returned. Filtering in Vertex AI Search is done by mapping the LHS filter key to a key property defined in the Vertex AI Search backend -- this mapping is defined by the customer in their schema. For example a media customer might have a field 'name' in their schema. In this case the filter would look like this: filter --> name:'ANY("king kong")' For more information about filtering including syntax and filter operators, see [Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
3132
* `imageQuery` (*type:* `GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1SearchRequestImageQuery.t`, *default:* `nil`) - Raw image query.
@@ -66,6 +67,9 @@ defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1SearchR
6667
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1SearchRequestDataStoreSpec.t()
6768
)
6869
| nil,
70+
:displaySpec =>
71+
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1SearchRequestDisplaySpec.t()
72+
| nil,
6973
:facetSpecs =>
7074
list(
7175
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1SearchRequestFacetSpec.t()
@@ -124,6 +128,10 @@ defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1SearchR
124128
type: :list
125129
)
126130

131+
field(:displaySpec,
132+
as: GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1SearchRequestDisplaySpec
133+
)
134+
127135
field(:facetSpecs,
128136
as: GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1SearchRequestFacetSpec,
129137
type: :list
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
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.GoogleCloudDiscoveryengineV1SearchRequestDisplaySpec do
19+
@moduledoc """
20+
Specifies features for display, like match highlighting.
21+
22+
## Attributes
23+
24+
* `matchHighlightingCondition` (*type:* `String.t`, *default:* `nil`) - The condition under which match highlighting should occur.
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:matchHighlightingCondition => String.t() | nil
31+
}
32+
33+
field(:matchHighlightingCondition)
34+
end
35+
36+
defimpl Poison.Decoder,
37+
for: GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1SearchRequestDisplaySpec do
38+
def decode(value, options) do
39+
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1SearchRequestDisplaySpec.decode(
40+
value,
41+
options
42+
)
43+
end
44+
end
45+
46+
defimpl Poison.Encoder,
47+
for: GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1SearchRequestDisplaySpec do
48+
def encode(value, options) do
49+
GoogleApi.Gax.ModelBase.encode(value, options)
50+
end
51+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
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.GoogleCloudDiscoveryengineV1alphaAlertPolicyConfig do
19+
@moduledoc """
20+
The connector level alert config.
21+
22+
## Attributes
23+
24+
* `alertEnrollments` (*type:* `list(GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1alphaAlertPolicyConfigAlertEnrollment.t)`, *default:* `nil`) - Optional. The enrollment states of each alert.
25+
* `alertPolicyName` (*type:* `String.t`, *default:* `nil`) - Immutable. The fully qualified resource name of the AlertPolicy.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:alertEnrollments =>
32+
list(
33+
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1alphaAlertPolicyConfigAlertEnrollment.t()
34+
)
35+
| nil,
36+
:alertPolicyName => String.t() | nil
37+
}
38+
39+
field(:alertEnrollments,
40+
as:
41+
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1alphaAlertPolicyConfigAlertEnrollment,
42+
type: :list
43+
)
44+
45+
field(:alertPolicyName)
46+
end
47+
48+
defimpl Poison.Decoder,
49+
for: GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1alphaAlertPolicyConfig do
50+
def decode(value, options) do
51+
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1alphaAlertPolicyConfig.decode(
52+
value,
53+
options
54+
)
55+
end
56+
end
57+
58+
defimpl Poison.Encoder,
59+
for: GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1alphaAlertPolicyConfig do
60+
def encode(value, options) do
61+
GoogleApi.Gax.ModelBase.encode(value, options)
62+
end
63+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
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.GoogleCloudDiscoveryengineV1alphaAlertPolicyConfigAlertEnrollment do
19+
@moduledoc """
20+
The alert enrollment status.
21+
22+
## Attributes
23+
24+
* `alertId` (*type:* `String.t`, *default:* `nil`) - Immutable. The id of an alert.
25+
* `enrollState` (*type:* `String.t`, *default:* `nil`) - Required. The enrollment status of a customer.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:alertId => String.t() | nil,
32+
:enrollState => String.t() | nil
33+
}
34+
35+
field(:alertId)
36+
field(:enrollState)
37+
end
38+
39+
defimpl Poison.Decoder,
40+
for:
41+
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1alphaAlertPolicyConfigAlertEnrollment do
42+
def decode(value, options) do
43+
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1alphaAlertPolicyConfigAlertEnrollment.decode(
44+
value,
45+
options
46+
)
47+
end
48+
end
49+
50+
defimpl Poison.Encoder,
51+
for:
52+
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1alphaAlertPolicyConfigAlertEnrollment do
53+
def encode(value, options) do
54+
GoogleApi.Gax.ModelBase.encode(value, options)
55+
end
56+
end

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1alphaDa
2222
## Attributes
2323
2424
* `actionConfig` (*type:* `GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1alphaActionConfig.t`, *default:* `nil`) - Optional. Action configurations to make the connector support actions.
25+
* `alertPolicyConfigs` (*type:* `list(GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1alphaAlertPolicyConfig.t)`, *default:* `nil`) - Optional. The connector level alert config.
2526
* `autoRunDisabled` (*type:* `boolean()`, *default:* `nil`) - Indicates whether the connector is disabled for auto run. It can be used to pause periodical and real time sync.
2627
* `bapConfig` (*type:* `GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1alphaBAPConfig.t`, *default:* `nil`) - Optional. The configuration for establishing a BAP connection.
2728
* `blockingReasons` (*type:* `list(String.t)`, *default:* `nil`) - Output only. User actions that must be completed before the connector can start syncing data.
@@ -55,6 +56,11 @@ defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1alphaDa
5556
:actionConfig =>
5657
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1alphaActionConfig.t()
5758
| nil,
59+
:alertPolicyConfigs =>
60+
list(
61+
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1alphaAlertPolicyConfig.t()
62+
)
63+
| nil,
5864
:autoRunDisabled => boolean() | nil,
5965
:bapConfig =>
6066
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1alphaBAPConfig.t()
@@ -98,6 +104,11 @@ defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1alphaDa
98104
as: GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1alphaActionConfig
99105
)
100106

107+
field(:alertPolicyConfigs,
108+
as: GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1alphaAlertPolicyConfig,
109+
type: :list
110+
)
111+
101112
field(:autoRunDisabled)
102113

103114
field(:bapConfig,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1alphaSe
2525
* `enabled` (*type:* `boolean()`, *default:* `nil`) - Optional. The enabled promotion will be returned for any serving configs associated with the parent of the control this promotion is attached to. This flag is used for basic site search only.
2626
* `imageUri` (*type:* `String.t`, *default:* `nil`) - Optional. The promotion thumbnail image url.
2727
* `title` (*type:* `String.t`, *default:* `nil`) - Required. The title of the promotion. Maximum length: 160 characters.
28-
* `uri` (*type:* `String.t`, *default:* `nil`) - Required. The URL for the page the user wants to promote.
28+
* `uri` (*type:* `String.t`, *default:* `nil`) - Optional. The URL for the page the user wants to promote. Must be set for site search. For other verticals, this is optional.
2929
"""
3030

3131
use GoogleApi.Gax.ModelBase

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1betaSea
2525
* `enabled` (*type:* `boolean()`, *default:* `nil`) - Optional. The enabled promotion will be returned for any serving configs associated with the parent of the control this promotion is attached to. This flag is used for basic site search only.
2626
* `imageUri` (*type:* `String.t`, *default:* `nil`) - Optional. The promotion thumbnail image url.
2727
* `title` (*type:* `String.t`, *default:* `nil`) - Required. The title of the promotion. Maximum length: 160 characters.
28-
* `uri` (*type:* `String.t`, *default:* `nil`) - Required. The URL for the page the user wants to promote.
28+
* `uri` (*type:* `String.t`, *default:* `nil`) - Optional. The URL for the page the user wants to promote. Must be set for site search. For other verticals, this is optional.
2929
"""
3030

3131
use GoogleApi.Gax.ModelBase

0 commit comments

Comments
 (0)