Skip to content

Commit 7d18661

Browse files
1 parent 24cf462 commit 7d18661

File tree

49 files changed

+3289
-88
lines changed

Some content is hidden

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

49 files changed

+3289
-88
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-rev20250728-2.0.0</version>
25+
<version>v1-rev20250803-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-rev20250728-2.0.0'
38+
implementation 'com.google.apis:google-api-services-discoveryengine:v1-rev20250803-2.0.0'
3939
}
4040
```
4141

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

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,33 @@
2929
@SuppressWarnings("javadoc")
3030
public final class GoogleCloudDiscoveryengineV1Assistant extends com.google.api.client.json.GenericJson {
3131

32+
/**
33+
* Optional. Customer policy for the assistant.
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key
37+
private GoogleCloudDiscoveryengineV1AssistantCustomerPolicy customerPolicy;
38+
39+
/**
40+
* Optional. Note: not implemented yet. Use enabled_actions instead. The enabled tools on this
41+
* assistant. The keys are connector name, for example
42+
* "projects/{projectId}/locations/{locationId}/collections/{collectionId}/dataconnector The
43+
* values consist of admin enabled tools towards the connector instance. Admin can selectively
44+
* enable multiple tools on any of the connector instances that they created in the project. For
45+
* example {"jira1ConnectorName": [(toolId1, "createTicket"), (toolId2, "transferTicket")],
46+
* "gmail1ConnectorName": [(toolId3, "sendEmail"),..] }
47+
* The value may be {@code null}.
48+
*/
49+
@com.google.api.client.util.Key
50+
private java.util.Map<String, GoogleCloudDiscoveryengineV1AssistantToolList> enabledTools;
51+
52+
/**
53+
* Optional. Configuration for the generation of the assistant response.
54+
* The value may be {@code null}.
55+
*/
56+
@com.google.api.client.util.Key
57+
private GoogleCloudDiscoveryengineV1AssistantGenerationConfig generationConfig;
58+
3259
/**
3360
* Immutable. Resource name of the assistant. Format: `projects/{project}/locations/{location}/col
3461
* lections/{collection}/engines/{engine}/assistants/{assistant}` It must be a UTF-8 encoded
@@ -38,6 +65,76 @@ public final class GoogleCloudDiscoveryengineV1Assistant extends com.google.api.
3865
@com.google.api.client.util.Key
3966
private java.lang.String name;
4067

68+
/**
69+
* Optional. The type of web grounding to use.
70+
* The value may be {@code null}.
71+
*/
72+
@com.google.api.client.util.Key
73+
private java.lang.String webGroundingType;
74+
75+
/**
76+
* Optional. Customer policy for the assistant.
77+
* @return value or {@code null} for none
78+
*/
79+
public GoogleCloudDiscoveryengineV1AssistantCustomerPolicy getCustomerPolicy() {
80+
return customerPolicy;
81+
}
82+
83+
/**
84+
* Optional. Customer policy for the assistant.
85+
* @param customerPolicy customerPolicy or {@code null} for none
86+
*/
87+
public GoogleCloudDiscoveryengineV1Assistant setCustomerPolicy(GoogleCloudDiscoveryengineV1AssistantCustomerPolicy customerPolicy) {
88+
this.customerPolicy = customerPolicy;
89+
return this;
90+
}
91+
92+
/**
93+
* Optional. Note: not implemented yet. Use enabled_actions instead. The enabled tools on this
94+
* assistant. The keys are connector name, for example
95+
* "projects/{projectId}/locations/{locationId}/collections/{collectionId}/dataconnector The
96+
* values consist of admin enabled tools towards the connector instance. Admin can selectively
97+
* enable multiple tools on any of the connector instances that they created in the project. For
98+
* example {"jira1ConnectorName": [(toolId1, "createTicket"), (toolId2, "transferTicket")],
99+
* "gmail1ConnectorName": [(toolId3, "sendEmail"),..] }
100+
* @return value or {@code null} for none
101+
*/
102+
public java.util.Map<String, GoogleCloudDiscoveryengineV1AssistantToolList> getEnabledTools() {
103+
return enabledTools;
104+
}
105+
106+
/**
107+
* Optional. Note: not implemented yet. Use enabled_actions instead. The enabled tools on this
108+
* assistant. The keys are connector name, for example
109+
* "projects/{projectId}/locations/{locationId}/collections/{collectionId}/dataconnector The
110+
* values consist of admin enabled tools towards the connector instance. Admin can selectively
111+
* enable multiple tools on any of the connector instances that they created in the project. For
112+
* example {"jira1ConnectorName": [(toolId1, "createTicket"), (toolId2, "transferTicket")],
113+
* "gmail1ConnectorName": [(toolId3, "sendEmail"),..] }
114+
* @param enabledTools enabledTools or {@code null} for none
115+
*/
116+
public GoogleCloudDiscoveryengineV1Assistant setEnabledTools(java.util.Map<String, GoogleCloudDiscoveryengineV1AssistantToolList> enabledTools) {
117+
this.enabledTools = enabledTools;
118+
return this;
119+
}
120+
121+
/**
122+
* Optional. Configuration for the generation of the assistant response.
123+
* @return value or {@code null} for none
124+
*/
125+
public GoogleCloudDiscoveryengineV1AssistantGenerationConfig getGenerationConfig() {
126+
return generationConfig;
127+
}
128+
129+
/**
130+
* Optional. Configuration for the generation of the assistant response.
131+
* @param generationConfig generationConfig or {@code null} for none
132+
*/
133+
public GoogleCloudDiscoveryengineV1Assistant setGenerationConfig(GoogleCloudDiscoveryengineV1AssistantGenerationConfig generationConfig) {
134+
this.generationConfig = generationConfig;
135+
return this;
136+
}
137+
41138
/**
42139
* Immutable. Resource name of the assistant. Format: `projects/{project}/locations/{location}/col
43140
* lections/{collection}/engines/{engine}/assistants/{assistant}` It must be a UTF-8 encoded
@@ -59,6 +156,23 @@ public GoogleCloudDiscoveryengineV1Assistant setName(java.lang.String name) {
59156
return this;
60157
}
61158

159+
/**
160+
* Optional. The type of web grounding to use.
161+
* @return value or {@code null} for none
162+
*/
163+
public java.lang.String getWebGroundingType() {
164+
return webGroundingType;
165+
}
166+
167+
/**
168+
* Optional. The type of web grounding to use.
169+
* @param webGroundingType webGroundingType or {@code null} for none
170+
*/
171+
public GoogleCloudDiscoveryengineV1Assistant setWebGroundingType(java.lang.String webGroundingType) {
172+
this.webGroundingType = webGroundingType;
173+
return this;
174+
}
175+
62176
@Override
63177
public GoogleCloudDiscoveryengineV1Assistant set(String fieldName, Object value) {
64178
return (GoogleCloudDiscoveryengineV1Assistant) super.set(fieldName, value);
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-defined policy for the assistant.
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 GoogleCloudDiscoveryengineV1AssistantCustomerPolicy extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Optional. List of banned phrases.
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key
37+
private java.util.List<GoogleCloudDiscoveryengineV1AssistantCustomerPolicyBannedPhrase> bannedPhrases;
38+
39+
/**
40+
* Optional. List of banned phrases.
41+
* @return value or {@code null} for none
42+
*/
43+
public java.util.List<GoogleCloudDiscoveryengineV1AssistantCustomerPolicyBannedPhrase> getBannedPhrases() {
44+
return bannedPhrases;
45+
}
46+
47+
/**
48+
* Optional. List of banned phrases.
49+
* @param bannedPhrases bannedPhrases or {@code null} for none
50+
*/
51+
public GoogleCloudDiscoveryengineV1AssistantCustomerPolicy setBannedPhrases(java.util.List<GoogleCloudDiscoveryengineV1AssistantCustomerPolicyBannedPhrase> bannedPhrases) {
52+
this.bannedPhrases = bannedPhrases;
53+
return this;
54+
}
55+
56+
@Override
57+
public GoogleCloudDiscoveryengineV1AssistantCustomerPolicy set(String fieldName, Object value) {
58+
return (GoogleCloudDiscoveryengineV1AssistantCustomerPolicy) super.set(fieldName, value);
59+
}
60+
61+
@Override
62+
public GoogleCloudDiscoveryengineV1AssistantCustomerPolicy clone() {
63+
return (GoogleCloudDiscoveryengineV1AssistantCustomerPolicy) super.clone();
64+
}
65+
66+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
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+
* Definition of a customer-defined banned phrase. A banned phrase is not allowed to appear in the
21+
* user query or the LLM response, or else the answer will be refused.
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 GoogleCloudDiscoveryengineV1AssistantCustomerPolicyBannedPhrase extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* Optional. If true, diacritical marks (e.g., accents, umlauts) are ignored when matching banned
35+
* phrases. For example, "cafe" would match "café".
36+
* The value may be {@code null}.
37+
*/
38+
@com.google.api.client.util.Key
39+
private java.lang.Boolean ignoreDiacritics;
40+
41+
/**
42+
* Optional. Match type for the banned phrase.
43+
* The value may be {@code null}.
44+
*/
45+
@com.google.api.client.util.Key
46+
private java.lang.String matchType;
47+
48+
/**
49+
* Required. The raw string content to be banned.
50+
* The value may be {@code null}.
51+
*/
52+
@com.google.api.client.util.Key
53+
private java.lang.String phrase;
54+
55+
/**
56+
* Optional. If true, diacritical marks (e.g., accents, umlauts) are ignored when matching banned
57+
* phrases. For example, "cafe" would match "café".
58+
* @return value or {@code null} for none
59+
*/
60+
public java.lang.Boolean getIgnoreDiacritics() {
61+
return ignoreDiacritics;
62+
}
63+
64+
/**
65+
* Optional. If true, diacritical marks (e.g., accents, umlauts) are ignored when matching banned
66+
* phrases. For example, "cafe" would match "café".
67+
* @param ignoreDiacritics ignoreDiacritics or {@code null} for none
68+
*/
69+
public GoogleCloudDiscoveryengineV1AssistantCustomerPolicyBannedPhrase setIgnoreDiacritics(java.lang.Boolean ignoreDiacritics) {
70+
this.ignoreDiacritics = ignoreDiacritics;
71+
return this;
72+
}
73+
74+
/**
75+
* Optional. Match type for the banned phrase.
76+
* @return value or {@code null} for none
77+
*/
78+
public java.lang.String getMatchType() {
79+
return matchType;
80+
}
81+
82+
/**
83+
* Optional. Match type for the banned phrase.
84+
* @param matchType matchType or {@code null} for none
85+
*/
86+
public GoogleCloudDiscoveryengineV1AssistantCustomerPolicyBannedPhrase setMatchType(java.lang.String matchType) {
87+
this.matchType = matchType;
88+
return this;
89+
}
90+
91+
/**
92+
* Required. The raw string content to be banned.
93+
* @return value or {@code null} for none
94+
*/
95+
public java.lang.String getPhrase() {
96+
return phrase;
97+
}
98+
99+
/**
100+
* Required. The raw string content to be banned.
101+
* @param phrase phrase or {@code null} for none
102+
*/
103+
public GoogleCloudDiscoveryengineV1AssistantCustomerPolicyBannedPhrase setPhrase(java.lang.String phrase) {
104+
this.phrase = phrase;
105+
return this;
106+
}
107+
108+
@Override
109+
public GoogleCloudDiscoveryengineV1AssistantCustomerPolicyBannedPhrase set(String fieldName, Object value) {
110+
return (GoogleCloudDiscoveryengineV1AssistantCustomerPolicyBannedPhrase) super.set(fieldName, value);
111+
}
112+
113+
@Override
114+
public GoogleCloudDiscoveryengineV1AssistantCustomerPolicyBannedPhrase clone() {
115+
return (GoogleCloudDiscoveryengineV1AssistantCustomerPolicyBannedPhrase) super.clone();
116+
}
117+
118+
}

0 commit comments

Comments
 (0)