Skip to content

Commit 559e5fa

Browse files
feat: Automated regeneration of DiscoveryEngine client (googleapis#12988)
Auto-created at 2025-02-18 13:11:40 +0000 using the toys pull request generator.
1 parent 46180fa commit 559e5fa

File tree

53 files changed

+2236
-93
lines changed

Some content is hidden

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

53 files changed

+2236
-93
lines changed

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

Lines changed: 450 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 "20250211"
23+
@discovery_revision "20250214"
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_citation.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1AnswerC
2121
2222
## Attributes
2323
24-
* `endIndex` (*type:* `String.t`, *default:* `nil`) - End of the attributed segment, exclusive.
24+
* `endIndex` (*type:* `String.t`, *default:* `nil`) - End of the attributed segment, exclusive. Measured in bytes (UTF-8 unicode). If there are multi-byte characters,such as non-ASCII characters, the index measurement is longer than the string length.
2525
* `sources` (*type:* `list(GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1AnswerCitationSource.t)`, *default:* `nil`) - Citation sources for the attributed segment.
26-
* `startIndex` (*type:* `String.t`, *default:* `nil`) - Index indicates the start of the segment, measured in bytes (UTF-8 unicode).
26+
* `startIndex` (*type:* `String.t`, *default:* `nil`) - Index indicates the start of the segment, measured in bytes (UTF-8 unicode). If there are multi-byte characters,such as non-ASCII characters, the index measurement is longer than the string length.
2727
"""
2828

2929
use GoogleApi.Gax.ModelBase

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,23 @@ defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1AnswerR
2323
2424
* `document` (*type:* `String.t`, *default:* `nil`) - Document resource name.
2525
* `structData` (*type:* `map()`, *default:* `nil`) - Structured search data.
26+
* `title` (*type:* `String.t`, *default:* `nil`) - Output only. The title of the document.
27+
* `uri` (*type:* `String.t`, *default:* `nil`) - Output only. The URI of the document.
2628
"""
2729

2830
use GoogleApi.Gax.ModelBase
2931

3032
@type t :: %__MODULE__{
3133
:document => String.t() | nil,
32-
:structData => map() | nil
34+
:structData => map() | nil,
35+
:title => String.t() | nil,
36+
:uri => String.t() | nil
3337
}
3438

3539
field(:document)
3640
field(:structData, type: :map)
41+
field(:title)
42+
field(:uri)
3743
end
3844

3945
defimpl Poison.Decoder,
Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,44 +15,39 @@
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.GoogleCloudDiscoveryengineV1alphaFetchSitemapsResponse do
18+
defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1CreateSitemapMetadata do
1919
@moduledoc """
20-
Response message for SiteSearchEngineService.FetchSitemaps method.
20+
Metadata related to the progress of the SiteSearchEngineService.CreateSitemap operation. This will be returned by the google.longrunning.Operation.metadata field.
2121
2222
## Attributes
2323
24-
* `sitemapsMetadata` (*type:* `list(GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1alphaFetchSitemapsResponseSitemapMetadata.t)`, *default:* `nil`) - List of Sitemaps fetched.
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.
2526
"""
2627

2728
use GoogleApi.Gax.ModelBase
2829

2930
@type t :: %__MODULE__{
30-
:sitemapsMetadata =>
31-
list(
32-
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1alphaFetchSitemapsResponseSitemapMetadata.t()
33-
)
34-
| nil
31+
:createTime => DateTime.t() | nil,
32+
:updateTime => DateTime.t() | nil
3533
}
3634

37-
field(:sitemapsMetadata,
38-
as:
39-
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1alphaFetchSitemapsResponseSitemapMetadata,
40-
type: :list
41-
)
35+
field(:createTime, as: DateTime)
36+
field(:updateTime, as: DateTime)
4237
end
4338

4439
defimpl Poison.Decoder,
45-
for: GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1alphaFetchSitemapsResponse do
40+
for: GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1CreateSitemapMetadata do
4641
def decode(value, options) do
47-
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1alphaFetchSitemapsResponse.decode(
42+
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1CreateSitemapMetadata.decode(
4843
value,
4944
options
5045
)
5146
end
5247
end
5348

5449
defimpl Poison.Encoder,
55-
for: GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1alphaFetchSitemapsResponse do
50+
for: GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1CreateSitemapMetadata do
5651
def encode(value, options) do
5752
GoogleApi.Gax.ModelBase.encode(value, options)
5853
end

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,11 @@ defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1DataSto
2626
* `cmekConfig` (*type:* `GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1CmekConfig.t`, *default:* `nil`) - Output only. CMEK-related information for the DataStore.
2727
* `contentConfig` (*type:* `String.t`, *default:* `nil`) - Immutable. The content config of the data store. If this field is unset, the server behavior defaults to ContentConfig.NO_CONTENT.
2828
* `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Timestamp the DataStore was created at.
29-
* `defaultSchemaId` (*type:* `String.t`, *default:* `nil`) - Output only. The id of the default Schema asscociated to this data store.
29+
* `defaultSchemaId` (*type:* `String.t`, *default:* `nil`) - Output only. The id of the default Schema associated to this data store.
3030
* `displayName` (*type:* `String.t`, *default:* `nil`) - Required. The data store display name. This field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned.
3131
* `documentProcessingConfig` (*type:* `GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1DocumentProcessingConfig.t`, *default:* `nil`) - Configuration for Document understanding and enrichment.
3232
* `healthcareFhirConfig` (*type:* `GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1HealthcareFhirConfig.t`, *default:* `nil`) - Optional. Configuration for `HEALTHCARE_FHIR` vertical.
33+
* `identityMappingStore` (*type:* `String.t`, *default:* `nil`) - Immutable. The fully qualified resource name of the associated IdentityMappingStore. This field can only be set for acl_enabled DataStores with `THIRD_PARTY` or `GSUITE` IdP. Format: `projects/{project}/locations/{location}/identityMappingStores/{identity_mapping_store}`.
3334
* `industryVertical` (*type:* `String.t`, *default:* `nil`) - Immutable. The industry vertical that the data store registers.
3435
* `isInfobotFaqDataStore` (*type:* `boolean()`, *default:* `nil`) - Optional. If set, this DataStore is an Infobot FAQ DataStore.
3536
* `kmsKeyName` (*type:* `String.t`, *default:* `nil`) - Input only. The KMS key to be used to protect this DataStore 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 DataStore will be protected by the KMS key, as indicated in the cmek_config field.
@@ -61,6 +62,7 @@ defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1DataSto
6162
:healthcareFhirConfig =>
6263
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1HealthcareFhirConfig.t()
6364
| nil,
65+
:identityMappingStore => String.t() | nil,
6466
:industryVertical => String.t() | nil,
6567
:isInfobotFaqDataStore => boolean() | nil,
6668
:kmsKeyName => String.t() | nil,
@@ -99,6 +101,7 @@ defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1DataSto
99101
as: GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1HealthcareFhirConfig
100102
)
101103

104+
field(:identityMappingStore)
102105
field(:industryVertical)
103106
field(:isInfobotFaqDataStore)
104107
field(:kmsKeyName)
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.GoogleCloudDiscoveryengineV1DeleteSitemapMetadata do
19+
@moduledoc """
20+
Metadata related to the progress of the SiteSearchEngineService.DeleteSitemap 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.GoogleCloudDiscoveryengineV1DeleteSitemapMetadata do
41+
def decode(value, options) do
42+
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1DeleteSitemapMetadata.decode(
43+
value,
44+
options
45+
)
46+
end
47+
end
48+
49+
defimpl Poison.Encoder,
50+
for: GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1DeleteSitemapMetadata do
51+
def encode(value, options) do
52+
GoogleApi.Gax.ModelBase.encode(value, options)
53+
end
54+
end
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,44 +15,44 @@
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.GoogleCloudDiscoveryengineV1betaFetchSitemapsResponse do
18+
defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1FetchSitemapsResponse do
1919
@moduledoc """
2020
Response message for SiteSearchEngineService.FetchSitemaps method.
2121
2222
## Attributes
2323
24-
* `sitemapsMetadata` (*type:* `list(GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1betaFetchSitemapsResponseSitemapMetadata.t)`, *default:* `nil`) - List of Sitemaps fetched.
24+
* `sitemapsMetadata` (*type:* `list(GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1FetchSitemapsResponseSitemapMetadata.t)`, *default:* `nil`) - List of Sitemaps fetched.
2525
"""
2626

2727
use GoogleApi.Gax.ModelBase
2828

2929
@type t :: %__MODULE__{
3030
:sitemapsMetadata =>
3131
list(
32-
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1betaFetchSitemapsResponseSitemapMetadata.t()
32+
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1FetchSitemapsResponseSitemapMetadata.t()
3333
)
3434
| nil
3535
}
3636

3737
field(:sitemapsMetadata,
3838
as:
39-
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1betaFetchSitemapsResponseSitemapMetadata,
39+
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1FetchSitemapsResponseSitemapMetadata,
4040
type: :list
4141
)
4242
end
4343

4444
defimpl Poison.Decoder,
45-
for: GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1betaFetchSitemapsResponse do
45+
for: GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1FetchSitemapsResponse do
4646
def decode(value, options) do
47-
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1betaFetchSitemapsResponse.decode(
47+
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1FetchSitemapsResponse.decode(
4848
value,
4949
options
5050
)
5151
end
5252
end
5353

5454
defimpl Poison.Encoder,
55-
for: GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1betaFetchSitemapsResponse do
55+
for: GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1FetchSitemapsResponse do
5656
def encode(value, options) do
5757
GoogleApi.Gax.ModelBase.encode(value, options)
5858
end
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,30 +15,30 @@
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.GoogleCloudDiscoveryengineV1betaFetchSitemapsResponseSitemapMetadata do
18+
defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1FetchSitemapsResponseSitemapMetadata do
1919
@moduledoc """
2020
Contains a Sitemap and its metadata.
2121
2222
## Attributes
2323
24-
* `sitemap` (*type:* `GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1betaSitemap.t`, *default:* `nil`) - The Sitemap.
24+
* `sitemap` (*type:* `GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1Sitemap.t`, *default:* `nil`) - The Sitemap.
2525
"""
2626

2727
use GoogleApi.Gax.ModelBase
2828

2929
@type t :: %__MODULE__{
3030
:sitemap =>
31-
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1betaSitemap.t() | nil
31+
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1Sitemap.t() | nil
3232
}
3333

34-
field(:sitemap, as: GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1betaSitemap)
34+
field(:sitemap, as: GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1Sitemap)
3535
end
3636

3737
defimpl Poison.Decoder,
3838
for:
39-
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1betaFetchSitemapsResponseSitemapMetadata do
39+
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1FetchSitemapsResponseSitemapMetadata do
4040
def decode(value, options) do
41-
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1betaFetchSitemapsResponseSitemapMetadata.decode(
41+
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1FetchSitemapsResponseSitemapMetadata.decode(
4242
value,
4343
options
4444
)
@@ -47,7 +47,7 @@ end
4747

4848
defimpl Poison.Encoder,
4949
for:
50-
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1betaFetchSitemapsResponseSitemapMetadata do
50+
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1FetchSitemapsResponseSitemapMetadata do
5151
def encode(value, options) do
5252
GoogleApi.Gax.ModelBase.encode(value, options)
5353
end

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1SearchR
2222
## Attributes
2323
2424
* `queryId` (*type:* `String.t`, *default:* `nil`) - If set, the search result gets stored to the "turn" specified by this query ID. Example: Let's say the session looks like this: session { name: ".../sessions/xxx" turns { query { text: "What is foo?" query_id: ".../questions/yyy" } answer: "Foo is ..." } turns { query { text: "How about bar then?" query_id: ".../questions/zzz" } } } The user can call /search API with a request like this: session: ".../sessions/xxx" session_spec { query_id: ".../questions/zzz" } Then, the API stores the search result, associated with the last turn. The stored search result can be used by a subsequent /answer API call (with the session ID and the query ID specified). Also, it is possible to call /search and /answer in parallel with the same session ID & query ID.
25-
* `searchResultPersistenceCount` (*type:* `integer()`, *default:* `nil`) - The number of top search results to persist. The persisted search results can be used for the subsequent /answer api call. This field is simliar to the `summary_result_count` field in SearchRequest.ContentSearchSpec.SummarySpec.summary_result_count. At most 10 results for documents mode, or 50 for chunks mode.
25+
* `searchResultPersistenceCount` (*type:* `integer()`, *default:* `nil`) - The number of top search results to persist. The persisted search results can be used for the subsequent /answer api call. This field is similar to the `summary_result_count` field in SearchRequest.ContentSearchSpec.SummarySpec.summary_result_count. At most 10 results for documents mode, or 50 for chunks mode.
2626
"""
2727

2828
use GoogleApi.Gax.ModelBase

0 commit comments

Comments
 (0)