Skip to content

Commit bf41a3d

Browse files
1 parent f4de7a0 commit bf41a3d

10 files changed

+1459
-15
lines changed

clients/google-api-services-discoveryengine/v1alpha/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>v1alpha-rev20251020-2.0.0</version>
25+
<version>v1alpha-rev20251021-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:v1alpha-rev20251020-2.0.0'
38+
implementation 'com.google.apis:google-api-services-discoveryengine:v1alpha-rev20251021-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/DiscoveryEngine.java

Lines changed: 880 additions & 0 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,219 @@
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.v1alpha.model;
18+
19+
/**
20+
* Canned query resource of Assistant. It represents a short-cut to a predefined conversation start.
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 GoogleCloudDiscoveryengineV1alphaCannedQuery extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Required. The default (non-localized) values for the text attributes.
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key
37+
private GoogleCloudDiscoveryengineV1alphaCannedQueryCannedQueryTexts defaultTexts;
38+
39+
/**
40+
* The display name of the canned query. It must be a UTF-8 encoded string with a length limit of
41+
* 128 characters.
42+
* The value may be {@code null}.
43+
*/
44+
@com.google.api.client.util.Key
45+
private java.lang.String displayName;
46+
47+
/**
48+
* Whether this canned query is enabled.
49+
* The value may be {@code null}.
50+
*/
51+
@com.google.api.client.util.Key
52+
private java.lang.Boolean enabled;
53+
54+
/**
55+
* Output only. Whether this is a Google-defined, read-only canned query.
56+
* The value may be {@code null}.
57+
*/
58+
@com.google.api.client.util.Key
59+
private java.lang.Boolean googleDefined;
60+
61+
/**
62+
* Optional. The translations of the text attributes. The keys should be BCP-47 language codes.
63+
* The value may be {@code null}.
64+
*/
65+
@com.google.api.client.util.Key
66+
private java.util.Map<String, GoogleCloudDiscoveryengineV1alphaCannedQueryCannedQueryTexts> localizedTexts;
67+
68+
/**
69+
* Immutable. Resource name of the canned query. Format: `projects/{project}/locations/{location}/
70+
* collections/{collection}/engines/{engine}/assistants/{assistant}/cannedQueries/{canned_query}`
71+
* It must be a UTF-8 encoded string with a length limit of 1024 characters.
72+
* The value may be {@code null}.
73+
*/
74+
@com.google.api.client.util.Key
75+
private java.lang.String name;
76+
77+
/**
78+
* Optional. The capabilities the Assistant needs to have to use this canned query.
79+
* The value may be {@code null}.
80+
*/
81+
@com.google.api.client.util.Key
82+
private java.util.List<GoogleCloudDiscoveryengineV1alphaCannedQueryAssistantCapability> requiredCapabilities;
83+
84+
/**
85+
* Required. The default (non-localized) values for the text attributes.
86+
* @return value or {@code null} for none
87+
*/
88+
public GoogleCloudDiscoveryengineV1alphaCannedQueryCannedQueryTexts getDefaultTexts() {
89+
return defaultTexts;
90+
}
91+
92+
/**
93+
* Required. The default (non-localized) values for the text attributes.
94+
* @param defaultTexts defaultTexts or {@code null} for none
95+
*/
96+
public GoogleCloudDiscoveryengineV1alphaCannedQuery setDefaultTexts(GoogleCloudDiscoveryengineV1alphaCannedQueryCannedQueryTexts defaultTexts) {
97+
this.defaultTexts = defaultTexts;
98+
return this;
99+
}
100+
101+
/**
102+
* The display name of the canned query. It must be a UTF-8 encoded string with a length limit of
103+
* 128 characters.
104+
* @return value or {@code null} for none
105+
*/
106+
public java.lang.String getDisplayName() {
107+
return displayName;
108+
}
109+
110+
/**
111+
* The display name of the canned query. It must be a UTF-8 encoded string with a length limit of
112+
* 128 characters.
113+
* @param displayName displayName or {@code null} for none
114+
*/
115+
public GoogleCloudDiscoveryengineV1alphaCannedQuery setDisplayName(java.lang.String displayName) {
116+
this.displayName = displayName;
117+
return this;
118+
}
119+
120+
/**
121+
* Whether this canned query is enabled.
122+
* @return value or {@code null} for none
123+
*/
124+
public java.lang.Boolean getEnabled() {
125+
return enabled;
126+
}
127+
128+
/**
129+
* Whether this canned query is enabled.
130+
* @param enabled enabled or {@code null} for none
131+
*/
132+
public GoogleCloudDiscoveryengineV1alphaCannedQuery setEnabled(java.lang.Boolean enabled) {
133+
this.enabled = enabled;
134+
return this;
135+
}
136+
137+
/**
138+
* Output only. Whether this is a Google-defined, read-only canned query.
139+
* @return value or {@code null} for none
140+
*/
141+
public java.lang.Boolean getGoogleDefined() {
142+
return googleDefined;
143+
}
144+
145+
/**
146+
* Output only. Whether this is a Google-defined, read-only canned query.
147+
* @param googleDefined googleDefined or {@code null} for none
148+
*/
149+
public GoogleCloudDiscoveryengineV1alphaCannedQuery setGoogleDefined(java.lang.Boolean googleDefined) {
150+
this.googleDefined = googleDefined;
151+
return this;
152+
}
153+
154+
/**
155+
* Optional. The translations of the text attributes. The keys should be BCP-47 language codes.
156+
* @return value or {@code null} for none
157+
*/
158+
public java.util.Map<String, GoogleCloudDiscoveryengineV1alphaCannedQueryCannedQueryTexts> getLocalizedTexts() {
159+
return localizedTexts;
160+
}
161+
162+
/**
163+
* Optional. The translations of the text attributes. The keys should be BCP-47 language codes.
164+
* @param localizedTexts localizedTexts or {@code null} for none
165+
*/
166+
public GoogleCloudDiscoveryengineV1alphaCannedQuery setLocalizedTexts(java.util.Map<String, GoogleCloudDiscoveryengineV1alphaCannedQueryCannedQueryTexts> localizedTexts) {
167+
this.localizedTexts = localizedTexts;
168+
return this;
169+
}
170+
171+
/**
172+
* Immutable. Resource name of the canned query. Format: `projects/{project}/locations/{location}/
173+
* collections/{collection}/engines/{engine}/assistants/{assistant}/cannedQueries/{canned_query}`
174+
* It must be a UTF-8 encoded string with a length limit of 1024 characters.
175+
* @return value or {@code null} for none
176+
*/
177+
public java.lang.String getName() {
178+
return name;
179+
}
180+
181+
/**
182+
* Immutable. Resource name of the canned query. Format: `projects/{project}/locations/{location}/
183+
* collections/{collection}/engines/{engine}/assistants/{assistant}/cannedQueries/{canned_query}`
184+
* It must be a UTF-8 encoded string with a length limit of 1024 characters.
185+
* @param name name or {@code null} for none
186+
*/
187+
public GoogleCloudDiscoveryengineV1alphaCannedQuery setName(java.lang.String name) {
188+
this.name = name;
189+
return this;
190+
}
191+
192+
/**
193+
* Optional. The capabilities the Assistant needs to have to use this canned query.
194+
* @return value or {@code null} for none
195+
*/
196+
public java.util.List<GoogleCloudDiscoveryengineV1alphaCannedQueryAssistantCapability> getRequiredCapabilities() {
197+
return requiredCapabilities;
198+
}
199+
200+
/**
201+
* Optional. The capabilities the Assistant needs to have to use this canned query.
202+
* @param requiredCapabilities requiredCapabilities or {@code null} for none
203+
*/
204+
public GoogleCloudDiscoveryengineV1alphaCannedQuery setRequiredCapabilities(java.util.List<GoogleCloudDiscoveryengineV1alphaCannedQueryAssistantCapability> requiredCapabilities) {
205+
this.requiredCapabilities = requiredCapabilities;
206+
return this;
207+
}
208+
209+
@Override
210+
public GoogleCloudDiscoveryengineV1alphaCannedQuery set(String fieldName, Object value) {
211+
return (GoogleCloudDiscoveryengineV1alphaCannedQuery) super.set(fieldName, value);
212+
}
213+
214+
@Override
215+
public GoogleCloudDiscoveryengineV1alphaCannedQuery clone() {
216+
return (GoogleCloudDiscoveryengineV1alphaCannedQuery) super.clone();
217+
}
218+
219+
}
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.v1alpha.model;
18+
19+
/**
20+
* Capability of an assistant needed to use this canned query.
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 GoogleCloudDiscoveryengineV1alphaCannedQueryAssistantCapability extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* The name of the action that the Assistant needs to have set up to use this canned query.
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key
37+
private java.lang.String actionName;
38+
39+
/**
40+
* The name of the action that the Assistant needs to have set up to use this canned query.
41+
* @return value or {@code null} for none
42+
*/
43+
public java.lang.String getActionName() {
44+
return actionName;
45+
}
46+
47+
/**
48+
* The name of the action that the Assistant needs to have set up to use this canned query.
49+
* @param actionName actionName or {@code null} for none
50+
*/
51+
public GoogleCloudDiscoveryengineV1alphaCannedQueryAssistantCapability setActionName(java.lang.String actionName) {
52+
this.actionName = actionName;
53+
return this;
54+
}
55+
56+
@Override
57+
public GoogleCloudDiscoveryengineV1alphaCannedQueryAssistantCapability set(String fieldName, Object value) {
58+
return (GoogleCloudDiscoveryengineV1alphaCannedQueryAssistantCapability) super.set(fieldName, value);
59+
}
60+
61+
@Override
62+
public GoogleCloudDiscoveryengineV1alphaCannedQueryAssistantCapability clone() {
63+
return (GoogleCloudDiscoveryengineV1alphaCannedQueryAssistantCapability) super.clone();
64+
}
65+
66+
}

0 commit comments

Comments
 (0)