Skip to content

Commit 7ecff61

Browse files
1 parent f5bdeaf commit 7ecff61

File tree

40 files changed

+1976
-30
lines changed

40 files changed

+1976
-30
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-rev20250902-2.0.0</version>
25+
<version>v1-rev20250908-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-rev20250902-2.0.0'
38+
implementation 'com.google.apis:google-api-services-discoveryengine:v1-rev20250908-2.0.0'
3939
}
4040
```
4141

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

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,15 @@ public final class GoogleCloudDiscoveryengineV1AssistAnswer extends com.google.a
3636
@com.google.api.client.util.Key
3737
private java.util.List<java.lang.String> assistSkippedReasons;
3838

39+
/**
40+
* Optional. The field contains information about the various policy checks' results like the
41+
* banned phrases or the Model Armor checks. This field is populated only if the assist call was
42+
* skipped due to a policy violation.
43+
* The value may be {@code null}.
44+
*/
45+
@com.google.api.client.util.Key
46+
private GoogleCloudDiscoveryengineV1AssistAnswerCustomerPolicyEnforcementResult customerPolicyEnforcementResult;
47+
3948
/**
4049
* Immutable. Identifier. Resource name of the `AssistAnswer`. Format: `projects/{project}/locatio
4150
* ns/{location}/collections/{collection}/engines/{engine}/sessions/{session}/assistAnswers/{assis
@@ -76,6 +85,27 @@ public GoogleCloudDiscoveryengineV1AssistAnswer setAssistSkippedReasons(java.uti
7685
return this;
7786
}
7887

88+
/**
89+
* Optional. The field contains information about the various policy checks' results like the
90+
* banned phrases or the Model Armor checks. This field is populated only if the assist call was
91+
* skipped due to a policy violation.
92+
* @return value or {@code null} for none
93+
*/
94+
public GoogleCloudDiscoveryengineV1AssistAnswerCustomerPolicyEnforcementResult getCustomerPolicyEnforcementResult() {
95+
return customerPolicyEnforcementResult;
96+
}
97+
98+
/**
99+
* Optional. The field contains information about the various policy checks' results like the
100+
* banned phrases or the Model Armor checks. This field is populated only if the assist call was
101+
* skipped due to a policy violation.
102+
* @param customerPolicyEnforcementResult customerPolicyEnforcementResult or {@code null} for none
103+
*/
104+
public GoogleCloudDiscoveryengineV1AssistAnswer setCustomerPolicyEnforcementResult(GoogleCloudDiscoveryengineV1AssistAnswerCustomerPolicyEnforcementResult customerPolicyEnforcementResult) {
105+
this.customerPolicyEnforcementResult = customerPolicyEnforcementResult;
106+
return this;
107+
}
108+
79109
/**
80110
* Immutable. Identifier. Resource name of the `AssistAnswer`. Format: `projects/{project}/locatio
81111
* ns/{location}/collections/{collection}/engines/{engine}/sessions/{session}/assistAnswers/{assis
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
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+
* Customer policy enforcement results. Contains the results of the various policy checks, like the
21+
* banned phrases or the Model Armor checks.
22+
*
23+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
24+
* transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see:
25+
* <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>
26+
* </p>
27+
*
28+
* @author Google, Inc.
29+
*/
30+
@SuppressWarnings("javadoc")
31+
public final class GoogleCloudDiscoveryengineV1AssistAnswerCustomerPolicyEnforcementResult extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* Customer policy enforcement results. Populated only if the assist call was skipped due to a
35+
* policy violation. It contains results from those filters that blocked the processing of the
36+
* query.
37+
* The value may be {@code null}.
38+
*/
39+
@com.google.api.client.util.Key
40+
private java.util.List<GoogleCloudDiscoveryengineV1AssistAnswerCustomerPolicyEnforcementResultPolicyEnforcementResult> policyResults;
41+
42+
/**
43+
* Final verdict of the customer policy enforcement. If only one policy blocked the processing,
44+
* the verdict is BLOCK.
45+
* The value may be {@code null}.
46+
*/
47+
@com.google.api.client.util.Key
48+
private java.lang.String verdict;
49+
50+
/**
51+
* Customer policy enforcement results. Populated only if the assist call was skipped due to a
52+
* policy violation. It contains results from those filters that blocked the processing of the
53+
* query.
54+
* @return value or {@code null} for none
55+
*/
56+
public java.util.List<GoogleCloudDiscoveryengineV1AssistAnswerCustomerPolicyEnforcementResultPolicyEnforcementResult> getPolicyResults() {
57+
return policyResults;
58+
}
59+
60+
/**
61+
* Customer policy enforcement results. Populated only if the assist call was skipped due to a
62+
* policy violation. It contains results from those filters that blocked the processing of the
63+
* query.
64+
* @param policyResults policyResults or {@code null} for none
65+
*/
66+
public GoogleCloudDiscoveryengineV1AssistAnswerCustomerPolicyEnforcementResult setPolicyResults(java.util.List<GoogleCloudDiscoveryengineV1AssistAnswerCustomerPolicyEnforcementResultPolicyEnforcementResult> policyResults) {
67+
this.policyResults = policyResults;
68+
return this;
69+
}
70+
71+
/**
72+
* Final verdict of the customer policy enforcement. If only one policy blocked the processing,
73+
* the verdict is BLOCK.
74+
* @return value or {@code null} for none
75+
*/
76+
public java.lang.String getVerdict() {
77+
return verdict;
78+
}
79+
80+
/**
81+
* Final verdict of the customer policy enforcement. If only one policy blocked the processing,
82+
* the verdict is BLOCK.
83+
* @param verdict verdict or {@code null} for none
84+
*/
85+
public GoogleCloudDiscoveryengineV1AssistAnswerCustomerPolicyEnforcementResult setVerdict(java.lang.String verdict) {
86+
this.verdict = verdict;
87+
return this;
88+
}
89+
90+
@Override
91+
public GoogleCloudDiscoveryengineV1AssistAnswerCustomerPolicyEnforcementResult set(String fieldName, Object value) {
92+
return (GoogleCloudDiscoveryengineV1AssistAnswerCustomerPolicyEnforcementResult) super.set(fieldName, value);
93+
}
94+
95+
@Override
96+
public GoogleCloudDiscoveryengineV1AssistAnswerCustomerPolicyEnforcementResult clone() {
97+
return (GoogleCloudDiscoveryengineV1AssistAnswerCustomerPolicyEnforcementResult) super.clone();
98+
}
99+
100+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
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+
* Customer policy enforcement result for the banned phrase policy.
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 GoogleCloudDiscoveryengineV1AssistAnswerCustomerPolicyEnforcementResultBannedPhraseEnforcementResult extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* The banned phrases that were found in the query or the answer.
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key
37+
private java.util.List<java.lang.String> bannedPhrases;
38+
39+
/**
40+
* The banned phrases that were found in the query or the answer.
41+
* @return value or {@code null} for none
42+
*/
43+
public java.util.List<java.lang.String> getBannedPhrases() {
44+
return bannedPhrases;
45+
}
46+
47+
/**
48+
* The banned phrases that were found in the query or the answer.
49+
* @param bannedPhrases bannedPhrases or {@code null} for none
50+
*/
51+
public GoogleCloudDiscoveryengineV1AssistAnswerCustomerPolicyEnforcementResultBannedPhraseEnforcementResult setBannedPhrases(java.util.List<java.lang.String> bannedPhrases) {
52+
this.bannedPhrases = bannedPhrases;
53+
return this;
54+
}
55+
56+
@Override
57+
public GoogleCloudDiscoveryengineV1AssistAnswerCustomerPolicyEnforcementResultBannedPhraseEnforcementResult set(String fieldName, Object value) {
58+
return (GoogleCloudDiscoveryengineV1AssistAnswerCustomerPolicyEnforcementResultBannedPhraseEnforcementResult) super.set(fieldName, value);
59+
}
60+
61+
@Override
62+
public GoogleCloudDiscoveryengineV1AssistAnswerCustomerPolicyEnforcementResultBannedPhraseEnforcementResult clone() {
63+
return (GoogleCloudDiscoveryengineV1AssistAnswerCustomerPolicyEnforcementResultBannedPhraseEnforcementResult) super.clone();
64+
}
65+
66+
}
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+
* Customer policy enforcement result for the Model Armor policy.
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 GoogleCloudDiscoveryengineV1AssistAnswerCustomerPolicyEnforcementResultModelArmorEnforcementResult extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* The error returned by Model Armor if the policy enforcement failed for some reason.
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key
37+
private GoogleRpcStatus error;
38+
39+
/**
40+
* The Model Armor violation that was found.
41+
* The value may be {@code null}.
42+
*/
43+
@com.google.api.client.util.Key
44+
private java.lang.String modelArmorViolation;
45+
46+
/**
47+
* The error returned by Model Armor if the policy enforcement failed for some reason.
48+
* @return value or {@code null} for none
49+
*/
50+
public GoogleRpcStatus getError() {
51+
return error;
52+
}
53+
54+
/**
55+
* The error returned by Model Armor if the policy enforcement failed for some reason.
56+
* @param error error or {@code null} for none
57+
*/
58+
public GoogleCloudDiscoveryengineV1AssistAnswerCustomerPolicyEnforcementResultModelArmorEnforcementResult setError(GoogleRpcStatus error) {
59+
this.error = error;
60+
return this;
61+
}
62+
63+
/**
64+
* The Model Armor violation that was found.
65+
* @return value or {@code null} for none
66+
*/
67+
public java.lang.String getModelArmorViolation() {
68+
return modelArmorViolation;
69+
}
70+
71+
/**
72+
* The Model Armor violation that was found.
73+
* @param modelArmorViolation modelArmorViolation or {@code null} for none
74+
*/
75+
public GoogleCloudDiscoveryengineV1AssistAnswerCustomerPolicyEnforcementResultModelArmorEnforcementResult setModelArmorViolation(java.lang.String modelArmorViolation) {
76+
this.modelArmorViolation = modelArmorViolation;
77+
return this;
78+
}
79+
80+
@Override
81+
public GoogleCloudDiscoveryengineV1AssistAnswerCustomerPolicyEnforcementResultModelArmorEnforcementResult set(String fieldName, Object value) {
82+
return (GoogleCloudDiscoveryengineV1AssistAnswerCustomerPolicyEnforcementResultModelArmorEnforcementResult) super.set(fieldName, value);
83+
}
84+
85+
@Override
86+
public GoogleCloudDiscoveryengineV1AssistAnswerCustomerPolicyEnforcementResultModelArmorEnforcementResult clone() {
87+
return (GoogleCloudDiscoveryengineV1AssistAnswerCustomerPolicyEnforcementResultModelArmorEnforcementResult) super.clone();
88+
}
89+
90+
}

0 commit comments

Comments
 (0)