Skip to content

Commit a311e78

Browse files
chore: update starter modules in spring-cloud-previews (GoogleCloudPlatform#3435)
Co-authored-by: Cloud Java Bot <[email protected]>
1 parent d470796 commit a311e78

File tree

24 files changed

+2091
-109
lines changed

24 files changed

+2091
-109
lines changed

spring-cloud-previews/README.md

Lines changed: 110 additions & 109 deletions
Large diffs are not rendered by default.

spring-cloud-previews/google-cloud-aiplatform-spring-starter/src/main/java/com/google/cloud/aiplatform/v1/spring/VertexRagDataServiceSpringAutoConfiguration.java

Lines changed: 338 additions & 0 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,202 @@
1+
/*
2+
* Copyright 2024 Google LLC
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package com.google.cloud.aiplatform.v1.spring;
18+
19+
import com.google.api.core.BetaApi;
20+
import com.google.cloud.spring.core.Credentials;
21+
import com.google.cloud.spring.core.CredentialsSupplier;
22+
import com.google.cloud.spring.core.Retry;
23+
import javax.annotation.Generated;
24+
import org.springframework.boot.context.properties.ConfigurationProperties;
25+
import org.springframework.boot.context.properties.NestedConfigurationProperty;
26+
27+
// AUTO-GENERATED DOCUMENTATION AND CLASS.
28+
/** Provides default property values for VertexRagDataService client bean */
29+
@Generated("by google-cloud-spring-generator")
30+
@BetaApi("Autogenerated Spring autoconfiguration is not yet stable")
31+
@ConfigurationProperties("com.google.cloud.aiplatform.v1.vertex-rag-data-service")
32+
public class VertexRagDataServiceSpringProperties implements CredentialsSupplier {
33+
/** OAuth2 credentials to authenticate and authorize calls to Google Cloud Client Libraries. */
34+
@NestedConfigurationProperty
35+
private final Credentials credentials =
36+
new Credentials("https://www.googleapis.com/auth/cloud-platform");
37+
/** Quota project to use for billing. */
38+
private String quotaProjectId;
39+
/** Number of threads used for executors. */
40+
private Integer executorThreadCount;
41+
/** Allow override of retry settings at service level, applying to all of its RPC methods. */
42+
@NestedConfigurationProperty private Retry retry;
43+
/**
44+
* Allow override of retry settings at method-level for getRagCorpus. If defined, this takes
45+
* precedence over service-level retry configurations for that RPC method.
46+
*/
47+
@NestedConfigurationProperty private Retry getRagCorpusRetry;
48+
/**
49+
* Allow override of retry settings at method-level for listRagCorpora. If defined, this takes
50+
* precedence over service-level retry configurations for that RPC method.
51+
*/
52+
@NestedConfigurationProperty private Retry listRagCorporaRetry;
53+
/**
54+
* Allow override of retry settings at method-level for uploadRagFile. If defined, this takes
55+
* precedence over service-level retry configurations for that RPC method.
56+
*/
57+
@NestedConfigurationProperty private Retry uploadRagFileRetry;
58+
/**
59+
* Allow override of retry settings at method-level for getRagFile. If defined, this takes
60+
* precedence over service-level retry configurations for that RPC method.
61+
*/
62+
@NestedConfigurationProperty private Retry getRagFileRetry;
63+
/**
64+
* Allow override of retry settings at method-level for listRagFiles. If defined, this takes
65+
* precedence over service-level retry configurations for that RPC method.
66+
*/
67+
@NestedConfigurationProperty private Retry listRagFilesRetry;
68+
/**
69+
* Allow override of retry settings at method-level for listLocations. If defined, this takes
70+
* precedence over service-level retry configurations for that RPC method.
71+
*/
72+
@NestedConfigurationProperty private Retry listLocationsRetry;
73+
/**
74+
* Allow override of retry settings at method-level for getLocation. If defined, this takes
75+
* precedence over service-level retry configurations for that RPC method.
76+
*/
77+
@NestedConfigurationProperty private Retry getLocationRetry;
78+
/**
79+
* Allow override of retry settings at method-level for setIamPolicy. If defined, this takes
80+
* precedence over service-level retry configurations for that RPC method.
81+
*/
82+
@NestedConfigurationProperty private Retry setIamPolicyRetry;
83+
/**
84+
* Allow override of retry settings at method-level for getIamPolicy. If defined, this takes
85+
* precedence over service-level retry configurations for that RPC method.
86+
*/
87+
@NestedConfigurationProperty private Retry getIamPolicyRetry;
88+
/**
89+
* Allow override of retry settings at method-level for testIamPermissions. If defined, this takes
90+
* precedence over service-level retry configurations for that RPC method.
91+
*/
92+
@NestedConfigurationProperty private Retry testIamPermissionsRetry;
93+
94+
@Override
95+
public Credentials getCredentials() {
96+
return this.credentials;
97+
}
98+
99+
public String getQuotaProjectId() {
100+
return this.quotaProjectId;
101+
}
102+
103+
public void setQuotaProjectId(String quotaProjectId) {
104+
this.quotaProjectId = quotaProjectId;
105+
}
106+
107+
public Integer getExecutorThreadCount() {
108+
return this.executorThreadCount;
109+
}
110+
111+
public void setExecutorThreadCount(Integer executorThreadCount) {
112+
this.executorThreadCount = executorThreadCount;
113+
}
114+
115+
public Retry getRetry() {
116+
return this.retry;
117+
}
118+
119+
public void setRetry(Retry retry) {
120+
this.retry = retry;
121+
}
122+
123+
public Retry getGetRagCorpusRetry() {
124+
return this.getRagCorpusRetry;
125+
}
126+
127+
public void setGetRagCorpusRetry(Retry getRagCorpusRetry) {
128+
this.getRagCorpusRetry = getRagCorpusRetry;
129+
}
130+
131+
public Retry getListRagCorporaRetry() {
132+
return this.listRagCorporaRetry;
133+
}
134+
135+
public void setListRagCorporaRetry(Retry listRagCorporaRetry) {
136+
this.listRagCorporaRetry = listRagCorporaRetry;
137+
}
138+
139+
public Retry getUploadRagFileRetry() {
140+
return this.uploadRagFileRetry;
141+
}
142+
143+
public void setUploadRagFileRetry(Retry uploadRagFileRetry) {
144+
this.uploadRagFileRetry = uploadRagFileRetry;
145+
}
146+
147+
public Retry getGetRagFileRetry() {
148+
return this.getRagFileRetry;
149+
}
150+
151+
public void setGetRagFileRetry(Retry getRagFileRetry) {
152+
this.getRagFileRetry = getRagFileRetry;
153+
}
154+
155+
public Retry getListRagFilesRetry() {
156+
return this.listRagFilesRetry;
157+
}
158+
159+
public void setListRagFilesRetry(Retry listRagFilesRetry) {
160+
this.listRagFilesRetry = listRagFilesRetry;
161+
}
162+
163+
public Retry getListLocationsRetry() {
164+
return this.listLocationsRetry;
165+
}
166+
167+
public void setListLocationsRetry(Retry listLocationsRetry) {
168+
this.listLocationsRetry = listLocationsRetry;
169+
}
170+
171+
public Retry getGetLocationRetry() {
172+
return this.getLocationRetry;
173+
}
174+
175+
public void setGetLocationRetry(Retry getLocationRetry) {
176+
this.getLocationRetry = getLocationRetry;
177+
}
178+
179+
public Retry getSetIamPolicyRetry() {
180+
return this.setIamPolicyRetry;
181+
}
182+
183+
public void setSetIamPolicyRetry(Retry setIamPolicyRetry) {
184+
this.setIamPolicyRetry = setIamPolicyRetry;
185+
}
186+
187+
public Retry getGetIamPolicyRetry() {
188+
return this.getIamPolicyRetry;
189+
}
190+
191+
public void setGetIamPolicyRetry(Retry getIamPolicyRetry) {
192+
this.getIamPolicyRetry = getIamPolicyRetry;
193+
}
194+
195+
public Retry getTestIamPermissionsRetry() {
196+
return this.testIamPermissionsRetry;
197+
}
198+
199+
public void setTestIamPermissionsRetry(Retry testIamPermissionsRetry) {
200+
this.testIamPermissionsRetry = testIamPermissionsRetry;
201+
}
202+
}

0 commit comments

Comments
 (0)