Skip to content

Commit 9659530

Browse files
feat: Automated regeneration of DiscoveryEngine client (googleapis#12780)
Auto-created at 2025-01-08 13:12:08 +0000 using the toys pull request generator.
1 parent 221e35c commit 9659530

File tree

64 files changed

+1334
-48
lines changed

Some content is hidden

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

64 files changed

+1334
-48
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1044,7 +1044,7 @@ defmodule GoogleApi.DiscoveryEngine.V1.Api.Projects do
10441044
* `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
10451045
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
10461046
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
1047-
* `:documentId` (*type:* `String.t`) - Required. The ID to use for the Document, which becomes the final component of the Document.name. If the caller does not have permission to create the Document, regardless of whether or not it exists, a `PERMISSION_DENIED` error is returned. This field must be unique among all Documents with the same parent. Otherwise, an `ALREADY_EXISTS` error is returned. This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) standard with a length limit of 63 characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
1047+
* `:documentId` (*type:* `String.t`) - Required. The ID to use for the Document, which becomes the final component of the Document.name. If the caller does not have permission to create the Document, regardless of whether or not it exists, a `PERMISSION_DENIED` error is returned. This field must be unique among all Documents with the same parent. Otherwise, an `ALREADY_EXISTS` error is returned. This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) standard with a length limit of 128 characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
10481048
* `:body` (*type:* `GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1Document.t`) -
10491049
* `opts` (*type:* `keyword()`) - Call options
10501050

@@ -9254,7 +9254,7 @@ defmodule GoogleApi.DiscoveryEngine.V1.Api.Projects do
92549254
* `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
92559255
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
92569256
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
9257-
* `:documentId` (*type:* `String.t`) - Required. The ID to use for the Document, which becomes the final component of the Document.name. If the caller does not have permission to create the Document, regardless of whether or not it exists, a `PERMISSION_DENIED` error is returned. This field must be unique among all Documents with the same parent. Otherwise, an `ALREADY_EXISTS` error is returned. This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) standard with a length limit of 63 characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
9257+
* `:documentId` (*type:* `String.t`) - Required. The ID to use for the Document, which becomes the final component of the Document.name. If the caller does not have permission to create the Document, regardless of whether or not it exists, a `PERMISSION_DENIED` error is returned. This field must be unique among all Documents with the same parent. Otherwise, an `ALREADY_EXISTS` error is returned. This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) standard with a length limit of 128 characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
92589258
* `:body` (*type:* `GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1Document.t`) -
92599259
* `opts` (*type:* `keyword()`) - Call options
92609260

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 "20241216"
23+
@discovery_revision "20250107"
2424

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

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,19 @@ defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1Advance
2121
2222
## Attributes
2323
24+
* `disableAutomaticRefresh` (*type:* `boolean()`, *default:* `nil`) - If set true, automatic refresh is disabled for the DataStore.
25+
* `disableInitialIndex` (*type:* `boolean()`, *default:* `nil`) - If set true, initial indexing is disabled for the DataStore.
2426
"""
2527

2628
use GoogleApi.Gax.ModelBase
2729

28-
@type t :: %__MODULE__{}
30+
@type t :: %__MODULE__{
31+
:disableAutomaticRefresh => boolean() | nil,
32+
:disableInitialIndex => boolean() | nil
33+
}
34+
35+
field(:disableAutomaticRefresh)
36+
field(:disableInitialIndex)
2937
end
3038

3139
defimpl Poison.Decoder,

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1Answer
3232
* `queryUnderstandingInfo` (*type:* `GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1AnswerQueryUnderstandingInfo.t`, *default:* `nil`) - Query understanding information.
3333
* `references` (*type:* `list(GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1AnswerReference.t)`, *default:* `nil`) - References.
3434
* `relatedQuestions` (*type:* `list(String.t)`, *default:* `nil`) - Suggested related questions.
35+
* `safetyRatings` (*type:* `list(GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1SafetyRating.t)`, *default:* `nil`) - Optional. Safety ratings.
3536
* `state` (*type:* `String.t`, *default:* `nil`) - The state of the answer generation.
3637
* `steps` (*type:* `list(GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1AnswerStep.t)`, *default:* `nil`) - Answer generation steps.
3738
"""
@@ -64,6 +65,9 @@ defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1Answer
6465
)
6566
| nil,
6667
:relatedQuestions => list(String.t()) | nil,
68+
:safetyRatings =>
69+
list(GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1SafetyRating.t())
70+
| nil,
6771
:state => String.t() | nil,
6872
:steps =>
6973
list(GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1AnswerStep.t())
@@ -100,6 +104,12 @@ defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1Answer
100104
)
101105

102106
field(:relatedQuestions, type: :list)
107+
108+
field(:safetyRatings,
109+
as: GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1SafetyRating,
110+
type: :list
111+
)
112+
103113
field(:state)
104114

105115
field(:steps,

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

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,27 @@ defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1AnswerQ
2222
## Attributes
2323
2424
* `enable` (*type:* `boolean()`, *default:* `nil`) - Enable the safety filtering on the answer response. It is false by default.
25+
* `safetySettings` (*type:* `list(GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1AnswerQueryRequestSafetySpecSafetySetting.t)`, *default:* `nil`) - Optional. Safety settings. This settings are effective only when the safety_spec.enable is true.
2526
"""
2627

2728
use GoogleApi.Gax.ModelBase
2829

2930
@type t :: %__MODULE__{
30-
:enable => boolean() | nil
31+
:enable => boolean() | nil,
32+
:safetySettings =>
33+
list(
34+
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1AnswerQueryRequestSafetySpecSafetySetting.t()
35+
)
36+
| nil
3137
}
3238

3339
field(:enable)
40+
41+
field(:safetySettings,
42+
as:
43+
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1AnswerQueryRequestSafetySpecSafetySetting,
44+
type: :list
45+
)
3446
end
3547

3648
defimpl Poison.Decoder,
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.GoogleCloudDiscoveryengineV1AnswerQueryRequestSafetySpecSafetySetting do
19+
@moduledoc """
20+
Safety settings.
21+
22+
## Attributes
23+
24+
* `category` (*type:* `String.t`, *default:* `nil`) - Required. Harm category.
25+
* `threshold` (*type:* `String.t`, *default:* `nil`) - Required. The harm block threshold.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:category => String.t() | nil,
32+
:threshold => String.t() | nil
33+
}
34+
35+
field(:category)
36+
field(:threshold)
37+
end
38+
39+
defimpl Poison.Decoder,
40+
for:
41+
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1AnswerQueryRequestSafetySpecSafetySetting do
42+
def decode(value, options) do
43+
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1AnswerQueryRequestSafetySpecSafetySetting.decode(
44+
value,
45+
options
46+
)
47+
end
48+
end
49+
50+
defimpl Poison.Encoder,
51+
for:
52+
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1AnswerQueryRequestSafetySpecSafetySetting 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_v1_control_boost_action.ex

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,22 +21,25 @@ defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1Control
2121
2222
## Attributes
2323
24-
* `boost` (*type:* `number()`, *default:* `nil`) - Required. Strength of the boost, which should be in [-1, 1]. Negative boost means demotion. Default is 0.0 (No-op).
24+
* `boost` (*type:* `number()`, *default:* `nil`) - Strength of the boost, which should be in [-1, 1]. Negative boost means demotion. Default is 0.0 (No-op).
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.
27+
* `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).
2728
"""
2829

2930
use GoogleApi.Gax.ModelBase
3031

3132
@type t :: %__MODULE__{
3233
:boost => number() | nil,
3334
:dataStore => String.t() | nil,
34-
:filter => String.t() | nil
35+
:filter => String.t() | nil,
36+
:fixedBoost => number() | nil
3537
}
3638

3739
field(:boost)
3840
field(:dataStore)
3941
field(:filter)
42+
field(:fixedBoost)
4043
end
4144

4245
defimpl Poison.Decoder,
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.GoogleCloudDiscoveryengineV1DeleteIdentityMappingStoreMetadata do
19+
@moduledoc """
20+
Metadata related to the progress of the IdentityMappingStoreService.DeleteIdentityMappingStore 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:
41+
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1DeleteIdentityMappingStoreMetadata do
42+
def decode(value, options) do
43+
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1DeleteIdentityMappingStoreMetadata.decode(
44+
value,
45+
options
46+
)
47+
end
48+
end
49+
50+
defimpl Poison.Encoder,
51+
for:
52+
GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1DeleteIdentityMappingStoreMetadata 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_v1_document.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1Documen
2323
2424
* `content` (*type:* `GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1DocumentContent.t`, *default:* `nil`) - The unstructured data linked to this document. Content must be set if this document is under a `CONTENT_REQUIRED` data store.
2525
* `derivedStructData` (*type:* `map()`, *default:* `nil`) - Output only. This field is OUTPUT_ONLY. It contains derived data that are not in the original input document.
26-
* `id` (*type:* `String.t`, *default:* `nil`) - Immutable. The identifier of the document. Id should conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) standard with a length limit of 63 characters.
26+
* `id` (*type:* `String.t`, *default:* `nil`) - Immutable. The identifier of the document. Id should conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) standard with a length limit of 128 characters.
2727
* `indexStatus` (*type:* `GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1DocumentIndexStatus.t`, *default:* `nil`) - Output only. The index status of the document. * If document is indexed successfully, the index_time field is populated. * Otherwise, if document is not indexed due to errors, the error_samples field is populated. * Otherwise, if document's index is in progress, the pending_message field is populated.
2828
* `indexTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The last time the document was indexed. If this field is set, the document could be returned in search results. This field is OUTPUT_ONLY. If this field is not populated, it means the document has never been indexed.
2929
* `jsonData` (*type:* `String.t`, *default:* `nil`) - The JSON string representation of the document. It should conform to the registered Schema or an `INVALID_ARGUMENT` error is thrown.

clients/discovery_engine/lib/google_api/discovery_engine/v1/model/google_cloud_discoveryengine_v1_recrawl_uris_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.GoogleCloudDiscoveryengineV1Recrawl
2121
2222
## Attributes
2323
24-
* `siteCredential` (*type:* `String.t`, *default:* `nil`) - Optional. Full resource name of the SiteCredential, such as `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/siteCredentials/*`. Only set to crawl private URIs.
24+
* `siteCredential` (*type:* `String.t`, *default:* `nil`) - Optional. Full resource name of the `SiteCredential`, such as `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/siteCredentials/*`. Only set to crawl private URIs.
2525
* `uris` (*type:* `list(String.t)`, *default:* `nil`) - Required. List of URIs to crawl. At most 10K URIs are supported, otherwise an INVALID_ARGUMENT error is thrown. Each URI should match at least one TargetSite in `site_search_engine`.
2626
"""
2727

0 commit comments

Comments
 (0)