Skip to content

Commit

Permalink
feat: Automated regeneration of DiscoveryEngine client (#12898)
Browse files Browse the repository at this point in the history
Auto-created at 2025-01-31 13:11:10 +0000 using the toys pull request generator.
  • Loading branch information
yoshi-code-bot authored Jan 31, 2025
1 parent fb8013f commit 4b06ad3
Show file tree
Hide file tree
Showing 35 changed files with 2,081 additions and 12 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule GoogleApi.DiscoveryEngine.V1 do
API client metadata for GoogleApi.DiscoveryEngine.V1.
"""

@discovery_revision "20250125"
@discovery_revision "20250130"

def discovery_revision(), do: @discovery_revision
end
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1CheckGr
* `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.
* `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.
* `endPos` (*type:* `integer()`, *default:* `nil`) - Position indicating the end of the claim in the answer candidate, exclusive.
* `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).
* `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.
* `startPos` (*type:* `integer()`, *default:* `nil`) - Position indicating the start of the claim in the answer candidate, measured in bytes.
* `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).
"""

use GoogleApi.Gax.ModelBase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1Control
* `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
* `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.
* `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).
* `interpolationBoostSpec` (*type:* `GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1ControlBoostActionInterpolationBoostSpec.t`, *default:* `nil`) - Optional. Complex specification for custom ranking based on customer defined attribute value.
"""

use GoogleApi.Gax.ModelBase
Expand All @@ -33,13 +34,21 @@ defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1Control
:boost => number() | nil,
:dataStore => String.t() | nil,
:filter => String.t() | nil,
:fixedBoost => number() | nil
:fixedBoost => number() | nil,
:interpolationBoostSpec =>
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1ControlBoostActionInterpolationBoostSpec.t()
| nil
}

field(:boost)
field(:dataStore)
field(:filter)
field(:fixedBoost)

field(:interpolationBoostSpec,
as:
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1ControlBoostActionInterpolationBoostSpec
)
end

defimpl Poison.Decoder,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1ControlBoostActionInterpolationBoostSpec do
@moduledoc """
Specification for custom ranking based on customer specified attribute value. It provides more controls for customized ranking than the simple (condition, boost) combination above.
## Attributes
* `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).
* `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.
* `fieldName` (*type:* `String.t`, *default:* `nil`) - Optional. The name of the field whose value will be used to determine the boost amount.
* `interpolationType` (*type:* `String.t`, *default:* `nil`) - Optional. The interpolation type to be applied to connect the control points listed below.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:attributeType => String.t() | nil,
:controlPoints =>
list(
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1ControlBoostActionInterpolationBoostSpecControlPoint.t()
)
| nil,
:fieldName => String.t() | nil,
:interpolationType => String.t() | nil
}

field(:attributeType)

field(:controlPoints,
as:
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1ControlBoostActionInterpolationBoostSpecControlPoint,
type: :list
)

field(:fieldName)
field(:interpolationType)
end

defimpl Poison.Decoder,
for:
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1ControlBoostActionInterpolationBoostSpec do
def decode(value, options) do
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1ControlBoostActionInterpolationBoostSpec.decode(
value,
options
)
end
end

defimpl Poison.Encoder,
for:
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1ControlBoostActionInterpolationBoostSpec do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1ControlBoostActionInterpolationBoostSpecControlPoint do
@moduledoc """
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).
## Attributes
* `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]`.
* `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.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:attributeValue => String.t() | nil,
:boostAmount => number() | nil
}

field(:attributeValue)
field(:boostAmount)
end

defimpl Poison.Decoder,
for:
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1ControlBoostActionInterpolationBoostSpecControlPoint do
def decode(value, options) do
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1ControlBoostActionInterpolationBoostSpecControlPoint.decode(
value,
options
)
end
end

defimpl Poison.Encoder,
for:
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1ControlBoostActionInterpolationBoostSpecControlPoint do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1DeleteCmekConfigMetadata do
@moduledoc """
Metadata related to the progress of the CmekConfigService.DeleteCmekConfig operation. This will be returned by the google.longrunning.Operation.metadata field.
## Attributes
* `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Operation create time.
* `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Operation last update time. If the operation is done, this is also the finish time.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:createTime => DateTime.t() | nil,
:updateTime => DateTime.t() | nil
}

field(:createTime, as: DateTime)
field(:updateTime, as: DateTime)
end

defimpl Poison.Decoder,
for: GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1DeleteCmekConfigMetadata do
def decode(value, options) do
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1DeleteCmekConfigMetadata.decode(
value,
options
)
end
end

defimpl Poison.Encoder,
for: GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1DeleteCmekConfigMetadata do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1IdentityMappingEntry do
@moduledoc """
Identity Mapping Entry that maps an external identity to an internal identity.
## Attributes
* `externalIdentity` (*type:* `String.t`, *default:* `nil`) - Required. Identity outside the customer identity provider. The length limit of external identity will be of 100 characters.
* `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.
* `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.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:externalIdentity => String.t() | nil,
:groupId => String.t() | nil,
:userId => String.t() | nil
}

field(:externalIdentity)
field(:groupId)
field(:userId)
end

defimpl Poison.Decoder,
for: GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1IdentityMappingEntry do
def decode(value, options) do
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1IdentityMappingEntry.decode(
value,
options
)
end
end

defimpl Poison.Encoder,
for: GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1IdentityMappingEntry do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1IdentityMappingStore do
@moduledoc """
Identity Mapping Store which contains Identity Mapping Entries.
## Attributes
* `cmekConfig` (*type:* `GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1CmekConfig.t`, *default:* `nil`) - Output only. CMEK-related information for the Identity Mapping Store.
* `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.
* `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.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:cmekConfig =>
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1CmekConfig.t() | nil,
:kmsKeyName => String.t() | nil,
:name => String.t() | nil
}

field(:cmekConfig, as: GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1CmekConfig)

field(:kmsKeyName)
field(:name)
end

defimpl Poison.Decoder,
for: GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1IdentityMappingStore do
def decode(value, options) do
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1IdentityMappingStore.decode(
value,
options
)
end
end

defimpl Poison.Encoder,
for: GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1IdentityMappingStore do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
Loading

0 comments on commit 4b06ad3

Please sign in to comment.