Skip to content

Commit 4b06ad3

Browse files
feat: Automated regeneration of DiscoveryEngine client (googleapis#12898)
Auto-created at 2025-01-31 13:11:10 +0000 using the toys pull request generator.
1 parent fb8013f commit 4b06ad3

File tree

35 files changed

+2081
-12
lines changed

35 files changed

+2081
-12
lines changed

clients/discovery_engine/lib/google_api/discovery_engine/v1/api/projects.ex

Lines changed: 544 additions & 0 deletions
Large diffs are not rendered by default.

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 "20250125"
23+
@discovery_revision "20250130"
2424

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

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1CheckGr
2323
2424
* `citationIndices` (*type:* `list(integer())`, *default:* `nil`) - A list of indices (into 'cited_chunks') specifying the citations associated with the claim. For instance [1,3,4] means that cited_chunks[1], cited_chunks[3], cited_chunks[4] are the facts cited supporting for the claim. A citation to a fact indicates that the claim is supported by the fact.
2525
* `claimText` (*type:* `String.t`, *default:* `nil`) - Text for the claim in the answer candidate. Always provided regardless of whether citations or anti-citations are found.
26-
* `endPos` (*type:* `integer()`, *default:* `nil`) - Position indicating the end of the claim in the answer candidate, exclusive.
26+
* `endPos` (*type:* `integer()`, *default:* `nil`) - Position indicating the end of the claim in the answer candidate, exclusive, in bytes. Note that this is not measured in characters and, therefore, must be rendered as such. For example, if the claim text contains non-ASCII characters, the start and end positions vary when measured in characters (programming-language-dependent) and when measured in bytes (programming-language-independent).
2727
* `groundingCheckRequired` (*type:* `boolean()`, *default:* `nil`) - Indicates that this claim required grounding check. When the system decided this claim doesn't require attribution/grounding check, this field will be set to false. In that case, no grounding check was done for the claim and therefore citation_indices should not be returned.
28-
* `startPos` (*type:* `integer()`, *default:* `nil`) - Position indicating the start of the claim in the answer candidate, measured in bytes.
28+
* `startPos` (*type:* `integer()`, *default:* `nil`) - Position indicating the start of the claim in the answer candidate, measured in bytes. Note that this is not measured in characters and, therefore, must be rendered in the user interface keeping in mind that some characters may take more than one byte. For example, if the claim text contains non-ASCII characters, the start and end positions vary when measured in characters (programming-language-dependent) and when measured in bytes (programming-language-independent).
2929
"""
3030

3131
use GoogleApi.Gax.ModelBase

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

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1Control
2525
* `dataStore` (*type:* `String.t`, *default:* `nil`) - Required. Specifies which data store's documents can be boosted by this control. Full data store name e.g. projects/123/locations/global/collections/default_collection/dataStores/default_data_store
2626
* `filter` (*type:* `String.t`, *default:* `nil`) - Required. Specifies which products to apply the boost to. If no filter is provided all products will be boosted (No-op). Syntax documentation: https://cloud.google.com/retail/docs/filter-and-order Maximum length is 5000 characters. Otherwise an INVALID ARGUMENT error is thrown.
2727
* `fixedBoost` (*type:* `number()`, *default:* `nil`) - Optional. Strength of the boost, which should be in [-1, 1]. Negative boost means demotion. Default is 0.0 (No-op).
28+
* `interpolationBoostSpec` (*type:* `GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1ControlBoostActionInterpolationBoostSpec.t`, *default:* `nil`) - Optional. Complex specification for custom ranking based on customer defined attribute value.
2829
"""
2930

3031
use GoogleApi.Gax.ModelBase
@@ -33,13 +34,21 @@ defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1Control
3334
:boost => number() | nil,
3435
:dataStore => String.t() | nil,
3536
:filter => String.t() | nil,
36-
:fixedBoost => number() | nil
37+
:fixedBoost => number() | nil,
38+
:interpolationBoostSpec =>
39+
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1ControlBoostActionInterpolationBoostSpec.t()
40+
| nil
3741
}
3842

3943
field(:boost)
4044
field(:dataStore)
4145
field(:filter)
4246
field(:fixedBoost)
47+
48+
field(:interpolationBoostSpec,
49+
as:
50+
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1ControlBoostActionInterpolationBoostSpec
51+
)
4352
end
4453

4554
defimpl Poison.Decoder,
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
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.GoogleCloudDiscoveryengineV1ControlBoostActionInterpolationBoostSpec do
19+
@moduledoc """
20+
Specification for custom ranking based on customer specified attribute value. It provides more controls for customized ranking than the simple (condition, boost) combination above.
21+
22+
## Attributes
23+
24+
* `attributeType` (*type:* `String.t`, *default:* `nil`) - Optional. The attribute type to be used to determine the boost amount. The attribute value can be derived from the field value of the specified field_name. In the case of numerical it is straightforward i.e. attribute_value = numerical_field_value. In the case of freshness however, attribute_value = (time.now() - datetime_field_value).
25+
* `controlPoints` (*type:* `list(GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1ControlBoostActionInterpolationBoostSpecControlPoint.t)`, *default:* `nil`) - Optional. The control points used to define the curve. The monotonic function (defined through the interpolation_type above) passes through the control points listed here.
26+
* `fieldName` (*type:* `String.t`, *default:* `nil`) - Optional. The name of the field whose value will be used to determine the boost amount.
27+
* `interpolationType` (*type:* `String.t`, *default:* `nil`) - Optional. The interpolation type to be applied to connect the control points listed below.
28+
"""
29+
30+
use GoogleApi.Gax.ModelBase
31+
32+
@type t :: %__MODULE__{
33+
:attributeType => String.t() | nil,
34+
:controlPoints =>
35+
list(
36+
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1ControlBoostActionInterpolationBoostSpecControlPoint.t()
37+
)
38+
| nil,
39+
:fieldName => String.t() | nil,
40+
:interpolationType => String.t() | nil
41+
}
42+
43+
field(:attributeType)
44+
45+
field(:controlPoints,
46+
as:
47+
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1ControlBoostActionInterpolationBoostSpecControlPoint,
48+
type: :list
49+
)
50+
51+
field(:fieldName)
52+
field(:interpolationType)
53+
end
54+
55+
defimpl Poison.Decoder,
56+
for:
57+
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1ControlBoostActionInterpolationBoostSpec do
58+
def decode(value, options) do
59+
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1ControlBoostActionInterpolationBoostSpec.decode(
60+
value,
61+
options
62+
)
63+
end
64+
end
65+
66+
defimpl Poison.Encoder,
67+
for:
68+
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1ControlBoostActionInterpolationBoostSpec do
69+
def encode(value, options) do
70+
GoogleApi.Gax.ModelBase.encode(value, options)
71+
end
72+
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.GoogleCloudDiscoveryengineV1ControlBoostActionInterpolationBoostSpecControlPoint do
19+
@moduledoc """
20+
The control points used to define the curve. The curve defined through these control points can only be monotonically increasing or decreasing(constant values are acceptable).
21+
22+
## Attributes
23+
24+
* `attributeValue` (*type:* `String.t`, *default:* `nil`) - Optional. Can be one of: 1. The numerical field value. 2. The duration spec for freshness: The value must be formatted as an XSD `dayTimeDuration` value (a restricted subset of an ISO 8601 duration value). The pattern for this is: `nDnM]`.
25+
* `boostAmount` (*type:* `number()`, *default:* `nil`) - Optional. The value between -1 to 1 by which to boost the score if the attribute_value evaluates to the value specified above.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:attributeValue => String.t() | nil,
32+
:boostAmount => number() | nil
33+
}
34+
35+
field(:attributeValue)
36+
field(:boostAmount)
37+
end
38+
39+
defimpl Poison.Decoder,
40+
for:
41+
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1ControlBoostActionInterpolationBoostSpecControlPoint do
42+
def decode(value, options) do
43+
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1ControlBoostActionInterpolationBoostSpecControlPoint.decode(
44+
value,
45+
options
46+
)
47+
end
48+
end
49+
50+
defimpl Poison.Encoder,
51+
for:
52+
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1ControlBoostActionInterpolationBoostSpecControlPoint do
53+
def encode(value, options) do
54+
GoogleApi.Gax.ModelBase.encode(value, options)
55+
end
56+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
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.GoogleCloudDiscoveryengineV1DeleteCmekConfigMetadata do
19+
@moduledoc """
20+
Metadata related to the progress of the CmekConfigService.DeleteCmekConfig operation. This will be returned by the google.longrunning.Operation.metadata field.
21+
22+
## Attributes
23+
24+
* `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Operation create time.
25+
* `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Operation last update time. If the operation is done, this is also the finish time.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:createTime => DateTime.t() | nil,
32+
:updateTime => DateTime.t() | nil
33+
}
34+
35+
field(:createTime, as: DateTime)
36+
field(:updateTime, as: DateTime)
37+
end
38+
39+
defimpl Poison.Decoder,
40+
for: GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1DeleteCmekConfigMetadata do
41+
def decode(value, options) do
42+
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1DeleteCmekConfigMetadata.decode(
43+
value,
44+
options
45+
)
46+
end
47+
end
48+
49+
defimpl Poison.Encoder,
50+
for: GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1DeleteCmekConfigMetadata do
51+
def encode(value, options) do
52+
GoogleApi.Gax.ModelBase.encode(value, options)
53+
end
54+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
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.GoogleCloudDiscoveryengineV1IdentityMappingEntry do
19+
@moduledoc """
20+
Identity Mapping Entry that maps an external identity to an internal identity.
21+
22+
## Attributes
23+
24+
* `externalIdentity` (*type:* `String.t`, *default:* `nil`) - Required. Identity outside the customer identity provider. The length limit of external identity will be of 100 characters.
25+
* `groupId` (*type:* `String.t`, *default:* `nil`) - Group identifier. For Google Workspace user account, group_id should be the google workspace group email. For non-google identity provider, group_id is the mapped group identifier configured during the workforcepool config.
26+
* `userId` (*type:* `String.t`, *default:* `nil`) - User identifier. For Google Workspace user account, user_id should be the google workspace user email. For non-google identity provider, user_id is the mapped user identifier configured during the workforcepool config.
27+
"""
28+
29+
use GoogleApi.Gax.ModelBase
30+
31+
@type t :: %__MODULE__{
32+
:externalIdentity => String.t() | nil,
33+
:groupId => String.t() | nil,
34+
:userId => String.t() | nil
35+
}
36+
37+
field(:externalIdentity)
38+
field(:groupId)
39+
field(:userId)
40+
end
41+
42+
defimpl Poison.Decoder,
43+
for: GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1IdentityMappingEntry do
44+
def decode(value, options) do
45+
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1IdentityMappingEntry.decode(
46+
value,
47+
options
48+
)
49+
end
50+
end
51+
52+
defimpl Poison.Encoder,
53+
for: GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1IdentityMappingEntry do
54+
def encode(value, options) do
55+
GoogleApi.Gax.ModelBase.encode(value, options)
56+
end
57+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
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.GoogleCloudDiscoveryengineV1IdentityMappingStore do
19+
@moduledoc """
20+
Identity Mapping Store which contains Identity Mapping Entries.
21+
22+
## Attributes
23+
24+
* `cmekConfig` (*type:* `GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1CmekConfig.t`, *default:* `nil`) - Output only. CMEK-related information for the Identity Mapping Store.
25+
* `kmsKeyName` (*type:* `String.t`, *default:* `nil`) - Input only. The KMS key to be used to protect this Identity Mapping Store at creation time. Must be set for requests that need to comply with CMEK Org Policy protections. If this field is set and processed successfully, the Identity Mapping Store will be protected by the KMS key, as indicated in the cmek_config field.
26+
* `name` (*type:* `String.t`, *default:* `nil`) - Immutable. The full resource name of the identity mapping store. Format: `projects/{project}/locations/{location}/identityMappingStores/{identity_mapping_store}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters.
27+
"""
28+
29+
use GoogleApi.Gax.ModelBase
30+
31+
@type t :: %__MODULE__{
32+
:cmekConfig =>
33+
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1CmekConfig.t() | nil,
34+
:kmsKeyName => String.t() | nil,
35+
:name => String.t() | nil
36+
}
37+
38+
field(:cmekConfig, as: GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1CmekConfig)
39+
40+
field(:kmsKeyName)
41+
field(:name)
42+
end
43+
44+
defimpl Poison.Decoder,
45+
for: GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1IdentityMappingStore do
46+
def decode(value, options) do
47+
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1IdentityMappingStore.decode(
48+
value,
49+
options
50+
)
51+
end
52+
end
53+
54+
defimpl Poison.Encoder,
55+
for: GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1IdentityMappingStore do
56+
def encode(value, options) do
57+
GoogleApi.Gax.ModelBase.encode(value, options)
58+
end
59+
end

0 commit comments

Comments
 (0)