Skip to content

Commit 2864a08

Browse files
1 parent afad8c0 commit 2864a08

File tree

6 files changed

+433
-6
lines changed

6 files changed

+433
-6
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-rev20250929-2.0.0</version>
25+
<version>v1alpha-rev20251008-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-rev20250929-2.0.0'
38+
implementation 'com.google.apis:google-api-services-discoveryengine:v1alpha-rev20251008-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: 295 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4352,6 +4352,152 @@ public AcquireAccessToken set(String parameterName, Object value) {
43524352
return (AcquireAccessToken) super.set(parameterName, value);
43534353
}
43544354
}
4355+
/**
4356+
* Deprecated: Checks the existence of a refresh token for the EUC user for a given connection and
4357+
* returns its details. Use AcquireAccessToken instead and then check the validity of the returned
4358+
* token by asking the 3rd party system. There's no way to know for sure if a refresh token is valid
4359+
* without asking the 3rd party system.
4360+
*
4361+
* Create a request for the method "dataConnector.checkRefreshToken".
4362+
*
4363+
* This request holds the parameters needed by the discoveryengine server. After setting any
4364+
* optional parameters, call the {@link CheckRefreshToken#execute()} method to invoke the remote
4365+
* operation.
4366+
*
4367+
* @param name Required. The resource name of the connector for which a token is queried.
4368+
* @return the request
4369+
*/
4370+
public CheckRefreshToken checkRefreshToken(java.lang.String name) throws java.io.IOException {
4371+
CheckRefreshToken result = new CheckRefreshToken(name);
4372+
initialize(result);
4373+
return result;
4374+
}
4375+
4376+
public class CheckRefreshToken extends DiscoveryEngineRequest<com.google.api.services.discoveryengine.v1alpha.model.GoogleCloudDiscoveryengineV1alphaCheckRefreshTokenResponse> {
4377+
4378+
private static final String REST_PATH = "v1alpha/{+name}:checkRefreshToken";
4379+
4380+
private final java.util.regex.Pattern NAME_PATTERN =
4381+
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataConnector$");
4382+
4383+
/**
4384+
* Deprecated: Checks the existence of a refresh token for the EUC user for a given connection and
4385+
* returns its details. Use AcquireAccessToken instead and then check the validity of the returned
4386+
* token by asking the 3rd party system. There's no way to know for sure if a refresh token is
4387+
* valid without asking the 3rd party system.
4388+
*
4389+
* Create a request for the method "dataConnector.checkRefreshToken".
4390+
*
4391+
* This request holds the parameters needed by the the discoveryengine server. After setting any
4392+
* optional parameters, call the {@link CheckRefreshToken#execute()} method to invoke the remote
4393+
* operation. <p> {@link CheckRefreshToken#initialize(com.google.api.client.googleapis.services.Ab
4394+
* stractGoogleClientRequest)} must be called to initialize this instance immediately after
4395+
* invoking the constructor. </p>
4396+
*
4397+
* @param name Required. The resource name of the connector for which a token is queried.
4398+
* @since 1.13
4399+
*/
4400+
protected CheckRefreshToken(java.lang.String name) {
4401+
super(DiscoveryEngine.this, "GET", REST_PATH, null, com.google.api.services.discoveryengine.v1alpha.model.GoogleCloudDiscoveryengineV1alphaCheckRefreshTokenResponse.class);
4402+
this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
4403+
if (!getSuppressPatternChecks()) {
4404+
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
4405+
"Parameter name must conform to the pattern " +
4406+
"^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataConnector$");
4407+
}
4408+
}
4409+
4410+
@Override
4411+
public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
4412+
return super.executeUsingHead();
4413+
}
4414+
4415+
@Override
4416+
public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
4417+
return super.buildHttpRequestUsingHead();
4418+
}
4419+
4420+
@Override
4421+
public CheckRefreshToken set$Xgafv(java.lang.String $Xgafv) {
4422+
return (CheckRefreshToken) super.set$Xgafv($Xgafv);
4423+
}
4424+
4425+
@Override
4426+
public CheckRefreshToken setAccessToken(java.lang.String accessToken) {
4427+
return (CheckRefreshToken) super.setAccessToken(accessToken);
4428+
}
4429+
4430+
@Override
4431+
public CheckRefreshToken setAlt(java.lang.String alt) {
4432+
return (CheckRefreshToken) super.setAlt(alt);
4433+
}
4434+
4435+
@Override
4436+
public CheckRefreshToken setCallback(java.lang.String callback) {
4437+
return (CheckRefreshToken) super.setCallback(callback);
4438+
}
4439+
4440+
@Override
4441+
public CheckRefreshToken setFields(java.lang.String fields) {
4442+
return (CheckRefreshToken) super.setFields(fields);
4443+
}
4444+
4445+
@Override
4446+
public CheckRefreshToken setKey(java.lang.String key) {
4447+
return (CheckRefreshToken) super.setKey(key);
4448+
}
4449+
4450+
@Override
4451+
public CheckRefreshToken setOauthToken(java.lang.String oauthToken) {
4452+
return (CheckRefreshToken) super.setOauthToken(oauthToken);
4453+
}
4454+
4455+
@Override
4456+
public CheckRefreshToken setPrettyPrint(java.lang.Boolean prettyPrint) {
4457+
return (CheckRefreshToken) super.setPrettyPrint(prettyPrint);
4458+
}
4459+
4460+
@Override
4461+
public CheckRefreshToken setQuotaUser(java.lang.String quotaUser) {
4462+
return (CheckRefreshToken) super.setQuotaUser(quotaUser);
4463+
}
4464+
4465+
@Override
4466+
public CheckRefreshToken setUploadType(java.lang.String uploadType) {
4467+
return (CheckRefreshToken) super.setUploadType(uploadType);
4468+
}
4469+
4470+
@Override
4471+
public CheckRefreshToken setUploadProtocol(java.lang.String uploadProtocol) {
4472+
return (CheckRefreshToken) super.setUploadProtocol(uploadProtocol);
4473+
}
4474+
4475+
/** Required. The resource name of the connector for which a token is queried. */
4476+
@com.google.api.client.util.Key
4477+
private java.lang.String name;
4478+
4479+
/** Required. The resource name of the connector for which a token is queried.
4480+
*/
4481+
public java.lang.String getName() {
4482+
return name;
4483+
}
4484+
4485+
/** Required. The resource name of the connector for which a token is queried. */
4486+
public CheckRefreshToken setName(java.lang.String name) {
4487+
if (!getSuppressPatternChecks()) {
4488+
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
4489+
"Parameter name must conform to the pattern " +
4490+
"^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataConnector$");
4491+
}
4492+
this.name = name;
4493+
return this;
4494+
}
4495+
4496+
@Override
4497+
public CheckRefreshToken set(String parameterName, Object value) {
4498+
return (CheckRefreshToken) super.set(parameterName, value);
4499+
}
4500+
}
43554501
/**
43564502
* Get the secret for the associated connector.
43574503
*
@@ -22140,6 +22286,155 @@ public Get set(String parameterName, Object value) {
2214022286
return (Get) super.set(parameterName, value);
2214122287
}
2214222288
}
22289+
/**
22290+
* Get Workspace settings for the end user.
22291+
*
22292+
* Create a request for the method "engines.getWorkspaceSettings".
22293+
*
22294+
* This request holds the parameters needed by the discoveryengine server. After setting any
22295+
* optional parameters, call the {@link GetWorkspaceSettings#execute()} method to invoke the remote
22296+
* operation.
22297+
*
22298+
* @param name Required. Full Engine resource name. Format:
22299+
* `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}`
22300+
* @return the request
22301+
*/
22302+
public GetWorkspaceSettings getWorkspaceSettings(java.lang.String name) throws java.io.IOException {
22303+
GetWorkspaceSettings result = new GetWorkspaceSettings(name);
22304+
initialize(result);
22305+
return result;
22306+
}
22307+
22308+
public class GetWorkspaceSettings extends DiscoveryEngineRequest<com.google.api.services.discoveryengine.v1alpha.model.GoogleCloudDiscoveryengineV1alphaWorkspaceSettings> {
22309+
22310+
private static final String REST_PATH = "v1alpha/{+name}:getWorkspaceSettings";
22311+
22312+
private final java.util.regex.Pattern NAME_PATTERN =
22313+
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+$");
22314+
22315+
/**
22316+
* Get Workspace settings for the end user.
22317+
*
22318+
* Create a request for the method "engines.getWorkspaceSettings".
22319+
*
22320+
* This request holds the parameters needed by the the discoveryengine server. After setting any
22321+
* optional parameters, call the {@link GetWorkspaceSettings#execute()} method to invoke the
22322+
* remote operation. <p> {@link GetWorkspaceSettings#initialize(com.google.api.client.googleapis.s
22323+
* ervices.AbstractGoogleClientRequest)} must be called to initialize this instance immediately
22324+
* after invoking the constructor. </p>
22325+
*
22326+
* @param name Required. Full Engine resource name. Format:
22327+
* `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}`
22328+
* @since 1.13
22329+
*/
22330+
protected GetWorkspaceSettings(java.lang.String name) {
22331+
super(DiscoveryEngine.this, "GET", REST_PATH, null, com.google.api.services.discoveryengine.v1alpha.model.GoogleCloudDiscoveryengineV1alphaWorkspaceSettings.class);
22332+
this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
22333+
if (!getSuppressPatternChecks()) {
22334+
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
22335+
"Parameter name must conform to the pattern " +
22336+
"^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+$");
22337+
}
22338+
}
22339+
22340+
@Override
22341+
public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
22342+
return super.executeUsingHead();
22343+
}
22344+
22345+
@Override
22346+
public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
22347+
return super.buildHttpRequestUsingHead();
22348+
}
22349+
22350+
@Override
22351+
public GetWorkspaceSettings set$Xgafv(java.lang.String $Xgafv) {
22352+
return (GetWorkspaceSettings) super.set$Xgafv($Xgafv);
22353+
}
22354+
22355+
@Override
22356+
public GetWorkspaceSettings setAccessToken(java.lang.String accessToken) {
22357+
return (GetWorkspaceSettings) super.setAccessToken(accessToken);
22358+
}
22359+
22360+
@Override
22361+
public GetWorkspaceSettings setAlt(java.lang.String alt) {
22362+
return (GetWorkspaceSettings) super.setAlt(alt);
22363+
}
22364+
22365+
@Override
22366+
public GetWorkspaceSettings setCallback(java.lang.String callback) {
22367+
return (GetWorkspaceSettings) super.setCallback(callback);
22368+
}
22369+
22370+
@Override
22371+
public GetWorkspaceSettings setFields(java.lang.String fields) {
22372+
return (GetWorkspaceSettings) super.setFields(fields);
22373+
}
22374+
22375+
@Override
22376+
public GetWorkspaceSettings setKey(java.lang.String key) {
22377+
return (GetWorkspaceSettings) super.setKey(key);
22378+
}
22379+
22380+
@Override
22381+
public GetWorkspaceSettings setOauthToken(java.lang.String oauthToken) {
22382+
return (GetWorkspaceSettings) super.setOauthToken(oauthToken);
22383+
}
22384+
22385+
@Override
22386+
public GetWorkspaceSettings setPrettyPrint(java.lang.Boolean prettyPrint) {
22387+
return (GetWorkspaceSettings) super.setPrettyPrint(prettyPrint);
22388+
}
22389+
22390+
@Override
22391+
public GetWorkspaceSettings setQuotaUser(java.lang.String quotaUser) {
22392+
return (GetWorkspaceSettings) super.setQuotaUser(quotaUser);
22393+
}
22394+
22395+
@Override
22396+
public GetWorkspaceSettings setUploadType(java.lang.String uploadType) {
22397+
return (GetWorkspaceSettings) super.setUploadType(uploadType);
22398+
}
22399+
22400+
@Override
22401+
public GetWorkspaceSettings setUploadProtocol(java.lang.String uploadProtocol) {
22402+
return (GetWorkspaceSettings) super.setUploadProtocol(uploadProtocol);
22403+
}
22404+
22405+
/**
22406+
* Required. Full Engine resource name. Format: `projects/{project}/locations/{location}
22407+
* /collections/{collection_id}/engines/{engine_id}`
22408+
*/
22409+
@com.google.api.client.util.Key
22410+
private java.lang.String name;
22411+
22412+
/** Required. Full Engine resource name. Format:
22413+
`projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}`
22414+
*/
22415+
public java.lang.String getName() {
22416+
return name;
22417+
}
22418+
22419+
/**
22420+
* Required. Full Engine resource name. Format: `projects/{project}/locations/{location}
22421+
* /collections/{collection_id}/engines/{engine_id}`
22422+
*/
22423+
public GetWorkspaceSettings setName(java.lang.String name) {
22424+
if (!getSuppressPatternChecks()) {
22425+
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
22426+
"Parameter name must conform to the pattern " +
22427+
"^projects/[^/]+/locations/[^/]+/collections/[^/]+/engines/[^/]+$");
22428+
}
22429+
this.name = name;
22430+
return this;
22431+
}
22432+
22433+
@Override
22434+
public GetWorkspaceSettings set(String parameterName, Object value) {
22435+
return (GetWorkspaceSettings) super.set(parameterName, value);
22436+
}
22437+
}
2214322438
/**
2214422439
* Lists all the Engines associated with the project.
2214522440
*
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+
* Response message for the DataConnectorService.CheckRefreshToken method.
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 GoogleCloudDiscoveryengineV1alphaCheckRefreshTokenResponse extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Info about the stored refresh token.
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key
37+
private GoogleCloudDiscoveryengineV1alphaRefreshTokenInfo refreshTokenInfo;
38+
39+
/**
40+
* Info about the stored refresh token.
41+
* @return value or {@code null} for none
42+
*/
43+
public GoogleCloudDiscoveryengineV1alphaRefreshTokenInfo getRefreshTokenInfo() {
44+
return refreshTokenInfo;
45+
}
46+
47+
/**
48+
* Info about the stored refresh token.
49+
* @param refreshTokenInfo refreshTokenInfo or {@code null} for none
50+
*/
51+
public GoogleCloudDiscoveryengineV1alphaCheckRefreshTokenResponse setRefreshTokenInfo(GoogleCloudDiscoveryengineV1alphaRefreshTokenInfo refreshTokenInfo) {
52+
this.refreshTokenInfo = refreshTokenInfo;
53+
return this;
54+
}
55+
56+
@Override
57+
public GoogleCloudDiscoveryengineV1alphaCheckRefreshTokenResponse set(String fieldName, Object value) {
58+
return (GoogleCloudDiscoveryengineV1alphaCheckRefreshTokenResponse) super.set(fieldName, value);
59+
}
60+
61+
@Override
62+
public GoogleCloudDiscoveryengineV1alphaCheckRefreshTokenResponse clone() {
63+
return (GoogleCloudDiscoveryengineV1alphaCheckRefreshTokenResponse) super.clone();
64+
}
65+
66+
}

0 commit comments

Comments
 (0)