Skip to content

Commit 6c3d329

Browse files
feat: Automated regeneration of DiscoveryEngine client (googleapis#12388)
Auto-created at 2024-10-23 13:18:14 +0000 using the toys pull request generator.
1 parent 157d5a2 commit 6c3d329

File tree

48 files changed

+503
-99
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+503
-99
lines changed

clients/discovery_engine/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding
1111

1212
```elixir
1313
def deps do
14-
[{:google_api_discovery_engine, "~> 0.19"}]
14+
[{:google_api_discovery_engine, "~> 0.20"}]
1515
end
1616
```
1717

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 "20241010"
23+
@discovery_revision "20241020"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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.GoogleCloudDiscoveryengineV1AdvancedSiteSearchConfig do
19+
@moduledoc """
20+
Configuration data for advance site search.
21+
22+
## Attributes
23+
24+
"""
25+
26+
use GoogleApi.Gax.ModelBase
27+
28+
@type t :: %__MODULE__{}
29+
end
30+
31+
defimpl Poison.Decoder,
32+
for: GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1AdvancedSiteSearchConfig do
33+
def decode(value, options) do
34+
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1AdvancedSiteSearchConfig.decode(
35+
value,
36+
options
37+
)
38+
end
39+
end
40+
41+
defimpl Poison.Encoder,
42+
for: GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1AdvancedSiteSearchConfig do
43+
def encode(value, options) do
44+
GoogleApi.Gax.ModelBase.encode(value, options)
45+
end
46+
end

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1AnswerS
2424
* `chunkInfo` (*type:* `list(GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1AnswerStepActionObservationSearchResultChunkInfo.t)`, *default:* `nil`) - If citation_type is CHUNK_LEVEL_CITATION and chunk mode is on, populate chunk info.
2525
* `document` (*type:* `String.t`, *default:* `nil`) - Document resource name.
2626
* `snippetInfo` (*type:* `list(GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1AnswerStepActionObservationSearchResultSnippetInfo.t)`, *default:* `nil`) - If citation_type is DOCUMENT_LEVEL_CITATION, populate document level snippets.
27-
* `structData` (*type:* `map()`, *default:* `nil`) - Data representation. The structured JSON data for the document. It's populated from the struct data from the Document, or the Chunk in search result. .
27+
* `structData` (*type:* `map()`, *default:* `nil`) - Data representation. The structured JSON data for the document. It's populated from the struct data from the Document, or the Chunk in search result.
2828
* `title` (*type:* `String.t`, *default:* `nil`) - Title.
2929
* `uri` (*type:* `String.t`, *default:* `nil`) - URI for the document.
3030
"""

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1BatchGe
2121
2222
## Attributes
2323
24-
* `fhirResource` (*type:* `String.t`, *default:* `nil`) - Required. Format: projects/{project}/locations/{location}/datasets/{dataset}/fhirStores/{fhir_store}/fhir/{resource_type}/{fhir_resource_id}
24+
* `fhirResource` (*type:* `String.t`, *default:* `nil`) - Format: projects/{project}/locations/{location}/datasets/{dataset}/fhirStores/{fhir_store}/fhir/{resource_type}/{fhir_resource_id}
2525
* `uri` (*type:* `String.t`, *default:* `nil`) - If match by URI, the URI of the Document.
2626
"""
2727

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1CheckGr
2121
2222
## Attributes
2323
24-
* `answerCandidate` (*type:* `String.t`, *default:* `nil`) - Answer candidate to check. Can have a maximum length of 1024 characters.
24+
* `answerCandidate` (*type:* `String.t`, *default:* `nil`) - Answer candidate to check. It can have a maximum length of 4096 tokens.
2525
* `facts` (*type:* `list(GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1GroundingFact.t)`, *default:* `nil`) - List of facts for the grounding check. We support up to 200 facts.
2626
* `groundingSpec` (*type:* `GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1CheckGroundingSpec.t`, *default:* `nil`) - Configuration of the grounding check.
2727
* `userLabels` (*type:* `map()`, *default:* `nil`) - The user labels applied to a resource must meet the following requirements: * Each resource can have multiple labels, up to a maximum of 64. * Each label must be a key-value pair. * Keys have a minimum length of 1 character and a maximum length of 63 characters and cannot be empty. Values can be empty and have a maximum length of 63 characters. * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. All characters must use UTF-8 encoding, and international characters are allowed. * The key portion of a label must be unique. However, you can use the same key with multiple resources. * Keys must start with a lowercase letter or international character. See [Google Cloud Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) for more details.

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1CheckGr
2121
2222
## Attributes
2323
24-
* `citedChunks` (*type:* `list(GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1FactChunk.t)`, *default:* `nil`) - List of facts cited across all claims in the answer candidate. These are derived from the facts supplied in the request.
24+
* `citedChunks` (*type:* `list(GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1CheckGroundingResponseFactChunk.t)`, *default:* `nil`) - List of facts cited across all claims in the answer candidate. These are derived from the facts supplied in the request.
2525
* `claims` (*type:* `list(GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1CheckGroundingResponseClaim.t)`, *default:* `nil`) - Claim texts and citation info across all claims in the answer candidate.
2626
* `supportScore` (*type:* `number()`, *default:* `nil`) - The support score for the input answer candidate. Higher the score, higher is the fraction of claims that are supported by the provided facts. This is always set when a response is returned.
2727
"""
@@ -30,7 +30,9 @@ defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1CheckGr
3030

3131
@type t :: %__MODULE__{
3232
:citedChunks =>
33-
list(GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1FactChunk.t())
33+
list(
34+
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1CheckGroundingResponseFactChunk.t()
35+
)
3436
| nil,
3537
:claims =>
3638
list(
@@ -41,7 +43,8 @@ defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1CheckGr
4143
}
4244

4345
field(:citedChunks,
44-
as: GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1FactChunk,
46+
as:
47+
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1CheckGroundingResponseFactChunk,
4548
type: :list
4649
)
4750

clients/discovery_engine/lib/google_api/discovery_engine/v1/model/google_cloud_discoveryengine_v1_fact_chunk.ex renamed to clients/discovery_engine/lib/google_api/discovery_engine/v1/model/google_cloud_discoveryengine_v1_check_grounding_response_fact_chunk.ex

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,45 +15,41 @@
1515
# NOTE: This file is auto generated by the elixir code generator program.
1616
# Do not edit this file manually.
1717

18-
defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1FactChunk do
18+
defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1CheckGroundingResponseFactChunk do
1919
@moduledoc """
20-
Fact Chunk.
20+
Fact chunk for grounding check.
2121
2222
## Attributes
2323
2424
* `chunkText` (*type:* `String.t`, *default:* `nil`) - Text content of the fact chunk. Can be at most 10K characters long.
25-
* `index` (*type:* `integer()`, *default:* `nil`) - The index of this chunk. Currently, only used for the streaming mode.
26-
* `source` (*type:* `String.t`, *default:* `nil`) - Source from which this fact chunk was retrieved. If it was retrieved from the GroundingFacts provided in the request then this field will contain the index of the specific fact from which this chunk was retrieved.
27-
* `sourceMetadata` (*type:* `map()`, *default:* `nil`) - More fine-grained information for the source reference.
25+
* `source` (*type:* `String.t`, *default:* `nil`) - Source from which this fact chunk was retrieved. For a fact chunk retrieved from inline facts, this field will contain the index of the specific fact from which this chunk was retrieved.
2826
"""
2927

3028
use GoogleApi.Gax.ModelBase
3129

3230
@type t :: %__MODULE__{
3331
:chunkText => String.t() | nil,
34-
:index => integer() | nil,
35-
:source => String.t() | nil,
36-
:sourceMetadata => map() | nil
32+
:source => String.t() | nil
3733
}
3834

3935
field(:chunkText)
40-
field(:index)
4136
field(:source)
42-
field(:sourceMetadata, type: :map)
4337
end
4438

4539
defimpl Poison.Decoder,
46-
for: GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1FactChunk do
40+
for:
41+
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1CheckGroundingResponseFactChunk do
4742
def decode(value, options) do
48-
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1FactChunk.decode(
43+
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1CheckGroundingResponseFactChunk.decode(
4944
value,
5045
options
5146
)
5247
end
5348
end
5449

5550
defimpl Poison.Encoder,
56-
for: GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1FactChunk do
51+
for:
52+
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1CheckGroundingResponseFactChunk do
5753
def encode(value, options) do
5854
GoogleApi.Gax.ModelBase.encode(value, options)
5955
end

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1Conditi
2222
## Attributes
2323
2424
* `activeTimeRange` (*type:* `list(GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1ConditionTimeRange.t)`, *default:* `nil`) - Range of time(s) specifying when condition is active. Maximum of 10 time ranges.
25-
* `queryTerms` (*type:* `list(GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1ConditionQueryTerm.t)`, *default:* `nil`) - Search only A list of terms to match the query on. Maximum of 10 query terms.
25+
* `queryRegex` (*type:* `String.t`, *default:* `nil`) - Optional. Query regex to match the whole search query. Cannot be set when Condition.query_terms is set. This is currently supporting promotion use case.
26+
* `queryTerms` (*type:* `list(GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1ConditionQueryTerm.t)`, *default:* `nil`) - Search only A list of terms to match the query on. Cannot be set when Condition.query_regex is set. Maximum of 10 query terms.
2627
"""
2728

2829
use GoogleApi.Gax.ModelBase
@@ -33,6 +34,7 @@ defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1Conditi
3334
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1ConditionTimeRange.t()
3435
)
3536
| nil,
37+
:queryRegex => String.t() | nil,
3638
:queryTerms =>
3739
list(
3840
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1ConditionQueryTerm.t()
@@ -45,6 +47,8 @@ defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1Conditi
4547
type: :list
4648
)
4749

50+
field(:queryRegex)
51+
4852
field(:queryTerms,
4953
as: GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1ConditionQueryTerm,
5054
type: :list

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1CustomT
2121
2222
## Attributes
2323
24-
* `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Timestamp the Model was created at.
24+
* `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Deprecated: Timestamp the Model was created at.
2525
* `displayName` (*type:* `String.t`, *default:* `nil`) - The display name of the model.
2626
* `errorMessage` (*type:* `String.t`, *default:* `nil`) - Currently this is only populated if the model state is `INPUT_VALIDATION_FAILED`.
2727
* `metrics` (*type:* `map()`, *default:* `nil`) - The metrics of the trained model.

0 commit comments

Comments
 (0)