@@ -123,27 +123,48 @@ public VertexAI(String projectId, String location, Transport transport, String..
123
123
this .transport = transport ;
124
124
}
125
125
126
- /** Returns the default {@link Transport} layer to use to send API requests. */
126
+ /**
127
+ * Returns the default {@link Transport} layer to use to send API requests.
128
+ *
129
+ * @return {@link Transport} layer used when sending API requests.
130
+ */
127
131
public Transport getTransport () {
128
132
return this .transport ;
129
133
}
130
134
131
- /** Returns the default project to use when making API calls. */
135
+ /**
136
+ * Returns the default project to use when making API calls.
137
+ *
138
+ * @return Project ID in string format.
139
+ */
132
140
public String getProjectId () {
133
141
return this .projectId ;
134
142
}
135
143
136
- /** Returns the default location to use when making API calls. */
144
+ /**
145
+ * Returns the default location to use when making API calls.
146
+ *
147
+ * @return Location in string format.
148
+ */
137
149
public String getLocation () {
138
150
return this .location ;
139
151
}
140
152
141
- /** Returns the default endpoint to use when making API calls. */
153
+ /**
154
+ * Returns the default endpoint to use when making API calls.
155
+ *
156
+ * @return API endpoint in string format.
157
+ */
142
158
public String getApiEndpoint () {
143
159
return this .apiEndpoint ;
144
160
}
145
161
146
- /** Returns the default credentials to use when making API calls. */
162
+ /**
163
+ * Returns the default credentials to use when making API calls.
164
+ *
165
+ * @return {@link Credentials} if the user has provided either scopes or credentials to the
166
+ * VertexAI object.
167
+ */
147
168
public Credentials getCredentials () throws IOException {
148
169
return credentialsProvider .getCredentials ();
149
170
}
@@ -211,6 +232,9 @@ public PredictionServiceClient getPredictionServiceClient() throws IOException {
211
232
/**
212
233
* Returns the {@link PredictionServiceClient} with REST. The client will be instantiated when the
213
234
* first prediction API call is made.
235
+ *
236
+ * @return {@link PredictionServiceClient} that send REST requests to the backing service through
237
+ * method calls that map to the API methods.
214
238
*/
215
239
public PredictionServiceClient getPredictionServiceRestClient () throws IOException {
216
240
if (predictionServiceRestClient == null ) {
@@ -240,8 +264,11 @@ public PredictionServiceClient getPredictionServiceRestClient() throws IOExcepti
240
264
}
241
265
242
266
/**
243
- * Returns the {@link PredictionServiceClient } with GRPC. The client will be instantiated when the
267
+ * Returns the {@link LlmUtilityServiceClient } with GRPC. The client will be instantiated when the
244
268
* first prediction API call is made.
269
+ *
270
+ * @return {@link LlmUtilityServiceClient} that makes gRPC calls to the backing service through
271
+ * method calls that map to the API methods.
245
272
*/
246
273
public LlmUtilityServiceClient getLlmUtilityClient () throws IOException {
247
274
if (llmUtilityClient == null ) {
@@ -270,8 +297,11 @@ public LlmUtilityServiceClient getLlmUtilityClient() throws IOException {
270
297
}
271
298
272
299
/**
273
- * Returns the {@link PredictionServiceClient } with GRPC . The client will be instantiated when the
300
+ * Returns the {@link LlmUtilityServiceClient } with REST . The client will be instantiated when the
274
301
* first prediction API call is made.
302
+ *
303
+ * @return {@link LlmUtilityServiceClient} that makes REST requests to the backing service through
304
+ * method calls that map to the API methods.
275
305
*/
276
306
public LlmUtilityServiceClient getLlmUtilityRestClient () throws IOException {
277
307
if (llmUtilityRestClient == null ) {
0 commit comments