Skip to content

Commit 1eaf867

Browse files
1 parent 19b867f commit 1eaf867

File tree

28 files changed

+1401
-81
lines changed

28 files changed

+1401
-81
lines changed

clients/google-api-services-discoveryengine/v1/2.0.0/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-discoveryengine</artifactId>
25-
<version>v1-rev20251216-2.0.0</version>
25+
<version>v1-rev20251217-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-discoveryengine:v1-rev20251216-2.0.0'
38+
implementation 'com.google.apis:google-api-services-discoveryengine:v1-rev20251217-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1SearchRequest.java

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -303,9 +303,11 @@ public final class GoogleCloudDiscoveryengineV1SearchRequest extends com.google.
303303
private GoogleCloudDiscoveryengineV1SearchRequestRelevanceScoreSpec relevanceScoreSpec;
304304

305305
/**
306-
* The relevance threshold of the search results. Default to Google defined threshold, leveraging
307-
* a balance of precision and recall to deliver both highly accurate results and comprehensive
308-
* coverage of relevant information. This feature is not supported for healthcare search.
306+
* The global relevance threshold of the search results. Defaults to Google defined threshold,
307+
* leveraging a balance of precision and recall to deliver both highly accurate results and
308+
* comprehensive coverage of relevant information. If more granular relevance filtering is
309+
* required, use the `relevance_filter_spec` instead. This feature is not supported for healthcare
310+
* search.
309311
* The value may be {@code null}.
310312
*/
311313
@com.google.api.client.util.Key
@@ -1013,19 +1015,23 @@ public GoogleCloudDiscoveryengineV1SearchRequest setRelevanceScoreSpec(GoogleClo
10131015
}
10141016

10151017
/**
1016-
* The relevance threshold of the search results. Default to Google defined threshold, leveraging
1017-
* a balance of precision and recall to deliver both highly accurate results and comprehensive
1018-
* coverage of relevant information. This feature is not supported for healthcare search.
1018+
* The global relevance threshold of the search results. Defaults to Google defined threshold,
1019+
* leveraging a balance of precision and recall to deliver both highly accurate results and
1020+
* comprehensive coverage of relevant information. If more granular relevance filtering is
1021+
* required, use the `relevance_filter_spec` instead. This feature is not supported for healthcare
1022+
* search.
10191023
* @return value or {@code null} for none
10201024
*/
10211025
public java.lang.String getRelevanceThreshold() {
10221026
return relevanceThreshold;
10231027
}
10241028

10251029
/**
1026-
* The relevance threshold of the search results. Default to Google defined threshold, leveraging
1027-
* a balance of precision and recall to deliver both highly accurate results and comprehensive
1028-
* coverage of relevant information. This feature is not supported for healthcare search.
1030+
* The global relevance threshold of the search results. Defaults to Google defined threshold,
1031+
* leveraging a balance of precision and recall to deliver both highly accurate results and
1032+
* comprehensive coverage of relevant information. If more granular relevance filtering is
1033+
* required, use the `relevance_filter_spec` instead. This feature is not supported for healthcare
1034+
* search.
10291035
* @param relevanceThreshold relevanceThreshold or {@code null} for none
10301036
*/
10311037
public GoogleCloudDiscoveryengineV1SearchRequest setRelevanceThreshold(java.lang.String relevanceThreshold) {

clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaSearchRequest.java

Lines changed: 48 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,16 @@ public final class GoogleCloudDiscoveryengineV1alphaSearchRequest extends com.go
332332
@com.google.api.client.util.Key
333333
private java.lang.String regionCode;
334334

335+
/**
336+
* Optional. The granular relevance filtering specification. If not specified, the global
337+
* `relevance_threshold` will be used for all sub-searches. If specified, this overrides the
338+
* global `relevance_threshold` to use thresholds on a per sub-search basis. This feature is
339+
* currently supported only for custom and site search.
340+
* The value may be {@code null}.
341+
*/
342+
@com.google.api.client.util.Key
343+
private GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpec relevanceFilterSpec;
344+
335345
/**
336346
* Optional. The specification for returning the relevance score.
337347
* The value may be {@code null}.
@@ -340,9 +350,11 @@ public final class GoogleCloudDiscoveryengineV1alphaSearchRequest extends com.go
340350
private GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceScoreSpec relevanceScoreSpec;
341351

342352
/**
343-
* The relevance threshold of the search results. Default to Google defined threshold, leveraging
344-
* a balance of precision and recall to deliver both highly accurate results and comprehensive
345-
* coverage of relevant information. This feature is not supported for healthcare search.
353+
* The global relevance threshold of the search results. Defaults to Google defined threshold,
354+
* leveraging a balance of precision and recall to deliver both highly accurate results and
355+
* comprehensive coverage of relevant information. If more granular relevance filtering is
356+
* required, use the `relevance_filter_spec` instead. This feature is not supported for healthcare
357+
* search.
346358
* The value may be {@code null}.
347359
*/
348360
@com.google.api.client.util.Key
@@ -1146,6 +1158,29 @@ public GoogleCloudDiscoveryengineV1alphaSearchRequest setRegionCode(java.lang.St
11461158
return this;
11471159
}
11481160

1161+
/**
1162+
* Optional. The granular relevance filtering specification. If not specified, the global
1163+
* `relevance_threshold` will be used for all sub-searches. If specified, this overrides the
1164+
* global `relevance_threshold` to use thresholds on a per sub-search basis. This feature is
1165+
* currently supported only for custom and site search.
1166+
* @return value or {@code null} for none
1167+
*/
1168+
public GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpec getRelevanceFilterSpec() {
1169+
return relevanceFilterSpec;
1170+
}
1171+
1172+
/**
1173+
* Optional. The granular relevance filtering specification. If not specified, the global
1174+
* `relevance_threshold` will be used for all sub-searches. If specified, this overrides the
1175+
* global `relevance_threshold` to use thresholds on a per sub-search basis. This feature is
1176+
* currently supported only for custom and site search.
1177+
* @param relevanceFilterSpec relevanceFilterSpec or {@code null} for none
1178+
*/
1179+
public GoogleCloudDiscoveryengineV1alphaSearchRequest setRelevanceFilterSpec(GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpec relevanceFilterSpec) {
1180+
this.relevanceFilterSpec = relevanceFilterSpec;
1181+
return this;
1182+
}
1183+
11491184
/**
11501185
* Optional. The specification for returning the relevance score.
11511186
* @return value or {@code null} for none
@@ -1164,19 +1199,23 @@ public GoogleCloudDiscoveryengineV1alphaSearchRequest setRelevanceScoreSpec(Goog
11641199
}
11651200

11661201
/**
1167-
* The relevance threshold of the search results. Default to Google defined threshold, leveraging
1168-
* a balance of precision and recall to deliver both highly accurate results and comprehensive
1169-
* coverage of relevant information. This feature is not supported for healthcare search.
1202+
* The global relevance threshold of the search results. Defaults to Google defined threshold,
1203+
* leveraging a balance of precision and recall to deliver both highly accurate results and
1204+
* comprehensive coverage of relevant information. If more granular relevance filtering is
1205+
* required, use the `relevance_filter_spec` instead. This feature is not supported for healthcare
1206+
* search.
11701207
* @return value or {@code null} for none
11711208
*/
11721209
public java.lang.String getRelevanceThreshold() {
11731210
return relevanceThreshold;
11741211
}
11751212

11761213
/**
1177-
* The relevance threshold of the search results. Default to Google defined threshold, leveraging
1178-
* a balance of precision and recall to deliver both highly accurate results and comprehensive
1179-
* coverage of relevant information. This feature is not supported for healthcare search.
1214+
* The global relevance threshold of the search results. Defaults to Google defined threshold,
1215+
* leveraging a balance of precision and recall to deliver both highly accurate results and
1216+
* comprehensive coverage of relevant information. If more granular relevance filtering is
1217+
* required, use the `relevance_filter_spec` instead. This feature is not supported for healthcare
1218+
* search.
11801219
* @param relevanceThreshold relevanceThreshold or {@code null} for none
11811220
*/
11821221
public GoogleCloudDiscoveryengineV1alphaSearchRequest setRelevanceThreshold(java.lang.String relevanceThreshold) {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.discoveryengine.v1.model;
18+
19+
/**
20+
* Relevance filtering specification.
21+
*
22+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
23+
* transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see:
24+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
25+
* </p>
26+
*
27+
* @author Google, Inc.
28+
*/
29+
@SuppressWarnings("javadoc")
30+
public final class GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpec extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Optional. Relevance filtering threshold specification for keyword search.
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key
37+
private GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec keywordSearchThreshold;
38+
39+
/**
40+
* Optional. Relevance filtering threshold specification for semantic search.
41+
* The value may be {@code null}.
42+
*/
43+
@com.google.api.client.util.Key
44+
private GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec semanticSearchThreshold;
45+
46+
/**
47+
* Optional. Relevance filtering threshold specification for keyword search.
48+
* @return value or {@code null} for none
49+
*/
50+
public GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec getKeywordSearchThreshold() {
51+
return keywordSearchThreshold;
52+
}
53+
54+
/**
55+
* Optional. Relevance filtering threshold specification for keyword search.
56+
* @param keywordSearchThreshold keywordSearchThreshold or {@code null} for none
57+
*/
58+
public GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpec setKeywordSearchThreshold(GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec keywordSearchThreshold) {
59+
this.keywordSearchThreshold = keywordSearchThreshold;
60+
return this;
61+
}
62+
63+
/**
64+
* Optional. Relevance filtering threshold specification for semantic search.
65+
* @return value or {@code null} for none
66+
*/
67+
public GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec getSemanticSearchThreshold() {
68+
return semanticSearchThreshold;
69+
}
70+
71+
/**
72+
* Optional. Relevance filtering threshold specification for semantic search.
73+
* @param semanticSearchThreshold semanticSearchThreshold or {@code null} for none
74+
*/
75+
public GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpec setSemanticSearchThreshold(GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec semanticSearchThreshold) {
76+
this.semanticSearchThreshold = semanticSearchThreshold;
77+
return this;
78+
}
79+
80+
@Override
81+
public GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpec set(String fieldName, Object value) {
82+
return (GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpec) super.set(fieldName, value);
83+
}
84+
85+
@Override
86+
public GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpec clone() {
87+
return (GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpec) super.clone();
88+
}
89+
90+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.discoveryengine.v1.model;
18+
19+
/**
20+
* Specification for relevance filtering on a specific sub-search.
21+
*
22+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
23+
* transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see:
24+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
25+
* </p>
26+
*
27+
* @author Google, Inc.
28+
*/
29+
@SuppressWarnings("javadoc")
30+
public final class GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Pre-defined relevance threshold for the sub-search.
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key
37+
private java.lang.String relevanceThreshold;
38+
39+
/**
40+
* Custom relevance threshold for the sub-search. The value must be in [0.0, 1.0].
41+
* The value may be {@code null}.
42+
*/
43+
@com.google.api.client.util.Key
44+
private java.lang.Float semanticRelevanceThreshold;
45+
46+
/**
47+
* Pre-defined relevance threshold for the sub-search.
48+
* @return value or {@code null} for none
49+
*/
50+
public java.lang.String getRelevanceThreshold() {
51+
return relevanceThreshold;
52+
}
53+
54+
/**
55+
* Pre-defined relevance threshold for the sub-search.
56+
* @param relevanceThreshold relevanceThreshold or {@code null} for none
57+
*/
58+
public GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec setRelevanceThreshold(java.lang.String relevanceThreshold) {
59+
this.relevanceThreshold = relevanceThreshold;
60+
return this;
61+
}
62+
63+
/**
64+
* Custom relevance threshold for the sub-search. The value must be in [0.0, 1.0].
65+
* @return value or {@code null} for none
66+
*/
67+
public java.lang.Float getSemanticRelevanceThreshold() {
68+
return semanticRelevanceThreshold;
69+
}
70+
71+
/**
72+
* Custom relevance threshold for the sub-search. The value must be in [0.0, 1.0].
73+
* @param semanticRelevanceThreshold semanticRelevanceThreshold or {@code null} for none
74+
*/
75+
public GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec setSemanticRelevanceThreshold(java.lang.Float semanticRelevanceThreshold) {
76+
this.semanticRelevanceThreshold = semanticRelevanceThreshold;
77+
return this;
78+
}
79+
80+
@Override
81+
public GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec set(String fieldName, Object value) {
82+
return (GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec) super.set(fieldName, value);
83+
}
84+
85+
@Override
86+
public GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec clone() {
87+
return (GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec) super.clone();
88+
}
89+
90+
}

0 commit comments

Comments
 (0)