Skip to content

Commit b215e00

Browse files
chore: generate libraries at Sat Oct 11 02:29:34 UTC 2025
1 parent 291d28c commit b215e00

File tree

108 files changed

+17293
-1796
lines changed

Some content is hidden

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

108 files changed

+17293
-1796
lines changed

java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeatureOnlineStoreServiceClient.java

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,20 @@
120120
* </td>
121121
* </tr>
122122
* <tr>
123+
* <td><p> GenerateFetchAccessToken</td>
124+
* <td><p> RPC to generate an access token for the given feature view. FeatureViews under the same FeatureOnlineStore share the same access token.</td>
125+
* <td>
126+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
127+
* <ul>
128+
* <li><p> generateFetchAccessToken(GenerateFetchAccessTokenRequest request)
129+
* </ul>
130+
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
131+
* <ul>
132+
* <li><p> generateFetchAccessTokenCallable()
133+
* </ul>
134+
* </td>
135+
* </tr>
136+
* <tr>
123137
* <td><p> ListLocations</td>
124138
* <td><p> Lists information about the supported locations for this service.</td>
125139
* <td>
@@ -544,6 +558,75 @@ public final SearchNearestEntitiesResponse searchNearestEntities(
544558
return stub.featureViewDirectWriteCallable();
545559
}
546560

561+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
562+
/**
563+
* RPC to generate an access token for the given feature view. FeatureViews under the same
564+
* FeatureOnlineStore share the same access token.
565+
*
566+
* <p>Sample code:
567+
*
568+
* <pre>{@code
569+
* // This snippet has been automatically generated and should be regarded as a code template only.
570+
* // It will require modifications to work:
571+
* // - It may require correct/in-range values for request initialization.
572+
* // - It may require specifying regional endpoints when creating the service client as shown in
573+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
574+
* try (FeatureOnlineStoreServiceClient featureOnlineStoreServiceClient =
575+
* FeatureOnlineStoreServiceClient.create()) {
576+
* GenerateFetchAccessTokenRequest request =
577+
* GenerateFetchAccessTokenRequest.newBuilder()
578+
* .setFeatureView(
579+
* FeatureViewName.of(
580+
* "[PROJECT]", "[LOCATION]", "[FEATURE_ONLINE_STORE]", "[FEATURE_VIEW]")
581+
* .toString())
582+
* .build();
583+
* GenerateFetchAccessTokenResponse response =
584+
* featureOnlineStoreServiceClient.generateFetchAccessToken(request);
585+
* }
586+
* }</pre>
587+
*
588+
* @param request The request object containing all of the parameters for the API call.
589+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
590+
*/
591+
public final GenerateFetchAccessTokenResponse generateFetchAccessToken(
592+
GenerateFetchAccessTokenRequest request) {
593+
return generateFetchAccessTokenCallable().call(request);
594+
}
595+
596+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
597+
/**
598+
* RPC to generate an access token for the given feature view. FeatureViews under the same
599+
* FeatureOnlineStore share the same access token.
600+
*
601+
* <p>Sample code:
602+
*
603+
* <pre>{@code
604+
* // This snippet has been automatically generated and should be regarded as a code template only.
605+
* // It will require modifications to work:
606+
* // - It may require correct/in-range values for request initialization.
607+
* // - It may require specifying regional endpoints when creating the service client as shown in
608+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
609+
* try (FeatureOnlineStoreServiceClient featureOnlineStoreServiceClient =
610+
* FeatureOnlineStoreServiceClient.create()) {
611+
* GenerateFetchAccessTokenRequest request =
612+
* GenerateFetchAccessTokenRequest.newBuilder()
613+
* .setFeatureView(
614+
* FeatureViewName.of(
615+
* "[PROJECT]", "[LOCATION]", "[FEATURE_ONLINE_STORE]", "[FEATURE_VIEW]")
616+
* .toString())
617+
* .build();
618+
* ApiFuture<GenerateFetchAccessTokenResponse> future =
619+
* featureOnlineStoreServiceClient.generateFetchAccessTokenCallable().futureCall(request);
620+
* // Do something.
621+
* GenerateFetchAccessTokenResponse response = future.get();
622+
* }
623+
* }</pre>
624+
*/
625+
public final UnaryCallable<GenerateFetchAccessTokenRequest, GenerateFetchAccessTokenResponse>
626+
generateFetchAccessTokenCallable() {
627+
return stub.generateFetchAccessTokenCallable();
628+
}
629+
547630
// AUTO-GENERATED DOCUMENTATION AND METHOD.
548631
/**
549632
* Lists information about the supported locations for this service.

java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/FeatureOnlineStoreServiceSettings.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,13 @@ public class FeatureOnlineStoreServiceSettings
118118
.featureViewDirectWriteSettings();
119119
}
120120

121+
/** Returns the object with the settings used for calls to generateFetchAccessToken. */
122+
public UnaryCallSettings<GenerateFetchAccessTokenRequest, GenerateFetchAccessTokenResponse>
123+
generateFetchAccessTokenSettings() {
124+
return ((FeatureOnlineStoreServiceStubSettings) getStubSettings())
125+
.generateFetchAccessTokenSettings();
126+
}
127+
121128
/** Returns the object with the settings used for calls to listLocations. */
122129
public PagedCallSettings<ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
123130
listLocationsSettings() {
@@ -261,6 +268,13 @@ public Builder applyToAllUnaryMethods(
261268
return getStubSettingsBuilder().featureViewDirectWriteSettings();
262269
}
263270

271+
/** Returns the builder for the settings used for calls to generateFetchAccessToken. */
272+
public UnaryCallSettings.Builder<
273+
GenerateFetchAccessTokenRequest, GenerateFetchAccessTokenResponse>
274+
generateFetchAccessTokenSettings() {
275+
return getStubSettingsBuilder().generateFetchAccessTokenSettings();
276+
}
277+
264278
/** Returns the builder for the settings used for calls to listLocations. */
265279
public PagedCallSettings.Builder<
266280
ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>

java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/gapic_metadata.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,9 @@
307307
"FetchFeatureValues": {
308308
"methods": ["fetchFeatureValues", "fetchFeatureValues", "fetchFeatureValues", "fetchFeatureValuesCallable"]
309309
},
310+
"GenerateFetchAccessToken": {
311+
"methods": ["generateFetchAccessToken", "generateFetchAccessTokenCallable"]
312+
},
310313
"GetIamPolicy": {
311314
"methods": ["getIamPolicy", "getIamPolicyCallable"]
312315
},

java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeatureOnlineStoreServiceStub.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
import com.google.cloud.aiplatform.v1.FeatureViewDirectWriteResponse;
2626
import com.google.cloud.aiplatform.v1.FetchFeatureValuesRequest;
2727
import com.google.cloud.aiplatform.v1.FetchFeatureValuesResponse;
28+
import com.google.cloud.aiplatform.v1.GenerateFetchAccessTokenRequest;
29+
import com.google.cloud.aiplatform.v1.GenerateFetchAccessTokenResponse;
2830
import com.google.cloud.aiplatform.v1.SearchNearestEntitiesRequest;
2931
import com.google.cloud.aiplatform.v1.SearchNearestEntitiesResponse;
3032
import com.google.cloud.location.GetLocationRequest;
@@ -62,6 +64,11 @@ public abstract class FeatureOnlineStoreServiceStub implements BackgroundResourc
6264
throw new UnsupportedOperationException("Not implemented: featureViewDirectWriteCallable()");
6365
}
6466

67+
public UnaryCallable<GenerateFetchAccessTokenRequest, GenerateFetchAccessTokenResponse>
68+
generateFetchAccessTokenCallable() {
69+
throw new UnsupportedOperationException("Not implemented: generateFetchAccessTokenCallable()");
70+
}
71+
6572
public UnaryCallable<ListLocationsRequest, ListLocationsPagedResponse>
6673
listLocationsPagedCallable() {
6774
throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()");

java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/FeatureOnlineStoreServiceStubSettings.java

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@
4545
import com.google.cloud.aiplatform.v1.FeatureViewDirectWriteResponse;
4646
import com.google.cloud.aiplatform.v1.FetchFeatureValuesRequest;
4747
import com.google.cloud.aiplatform.v1.FetchFeatureValuesResponse;
48+
import com.google.cloud.aiplatform.v1.GenerateFetchAccessTokenRequest;
49+
import com.google.cloud.aiplatform.v1.GenerateFetchAccessTokenResponse;
4850
import com.google.cloud.aiplatform.v1.SearchNearestEntitiesRequest;
4951
import com.google.cloud.aiplatform.v1.SearchNearestEntitiesResponse;
5052
import com.google.cloud.location.GetLocationRequest;
@@ -128,6 +130,8 @@ public class FeatureOnlineStoreServiceStubSettings
128130
searchNearestEntitiesSettings;
129131
private final StreamingCallSettings<FeatureViewDirectWriteRequest, FeatureViewDirectWriteResponse>
130132
featureViewDirectWriteSettings;
133+
private final UnaryCallSettings<GenerateFetchAccessTokenRequest, GenerateFetchAccessTokenResponse>
134+
generateFetchAccessTokenSettings;
131135
private final PagedCallSettings<
132136
ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
133137
listLocationsSettings;
@@ -206,6 +210,12 @@ public ApiFuture<ListLocationsPagedResponse> getFuturePagedResponse(
206210
return featureViewDirectWriteSettings;
207211
}
208212

213+
/** Returns the object with the settings used for calls to generateFetchAccessToken. */
214+
public UnaryCallSettings<GenerateFetchAccessTokenRequest, GenerateFetchAccessTokenResponse>
215+
generateFetchAccessTokenSettings() {
216+
return generateFetchAccessTokenSettings;
217+
}
218+
209219
/** Returns the object with the settings used for calls to listLocations. */
210220
public PagedCallSettings<ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
211221
listLocationsSettings() {
@@ -317,6 +327,7 @@ protected FeatureOnlineStoreServiceStubSettings(Builder settingsBuilder) throws
317327
fetchFeatureValuesSettings = settingsBuilder.fetchFeatureValuesSettings().build();
318328
searchNearestEntitiesSettings = settingsBuilder.searchNearestEntitiesSettings().build();
319329
featureViewDirectWriteSettings = settingsBuilder.featureViewDirectWriteSettings().build();
330+
generateFetchAccessTokenSettings = settingsBuilder.generateFetchAccessTokenSettings().build();
320331
listLocationsSettings = settingsBuilder.listLocationsSettings().build();
321332
getLocationSettings = settingsBuilder.getLocationSettings().build();
322333
setIamPolicySettings = settingsBuilder.setIamPolicySettings().build();
@@ -336,6 +347,9 @@ public static class Builder
336347
private final StreamingCallSettings.Builder<
337348
FeatureViewDirectWriteRequest, FeatureViewDirectWriteResponse>
338349
featureViewDirectWriteSettings;
350+
private final UnaryCallSettings.Builder<
351+
GenerateFetchAccessTokenRequest, GenerateFetchAccessTokenResponse>
352+
generateFetchAccessTokenSettings;
339353
private final PagedCallSettings.Builder<
340354
ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
341355
listLocationsSettings;
@@ -374,6 +388,7 @@ protected Builder(ClientContext clientContext) {
374388
fetchFeatureValuesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
375389
searchNearestEntitiesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
376390
featureViewDirectWriteSettings = StreamingCallSettings.newBuilder();
391+
generateFetchAccessTokenSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
377392
listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT);
378393
getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
379394
setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
@@ -384,6 +399,7 @@ protected Builder(ClientContext clientContext) {
384399
ImmutableList.<UnaryCallSettings.Builder<?, ?>>of(
385400
fetchFeatureValuesSettings,
386401
searchNearestEntitiesSettings,
402+
generateFetchAccessTokenSettings,
387403
listLocationsSettings,
388404
getLocationSettings,
389405
setIamPolicySettings,
@@ -398,6 +414,7 @@ protected Builder(FeatureOnlineStoreServiceStubSettings settings) {
398414
fetchFeatureValuesSettings = settings.fetchFeatureValuesSettings.toBuilder();
399415
searchNearestEntitiesSettings = settings.searchNearestEntitiesSettings.toBuilder();
400416
featureViewDirectWriteSettings = settings.featureViewDirectWriteSettings.toBuilder();
417+
generateFetchAccessTokenSettings = settings.generateFetchAccessTokenSettings.toBuilder();
401418
listLocationsSettings = settings.listLocationsSettings.toBuilder();
402419
getLocationSettings = settings.getLocationSettings.toBuilder();
403420
setIamPolicySettings = settings.setIamPolicySettings.toBuilder();
@@ -408,6 +425,7 @@ protected Builder(FeatureOnlineStoreServiceStubSettings settings) {
408425
ImmutableList.<UnaryCallSettings.Builder<?, ?>>of(
409426
fetchFeatureValuesSettings,
410427
searchNearestEntitiesSettings,
428+
generateFetchAccessTokenSettings,
411429
listLocationsSettings,
412430
getLocationSettings,
413431
setIamPolicySettings,
@@ -438,6 +456,11 @@ private static Builder initDefaults(Builder builder) {
438456
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
439457
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
440458

459+
builder
460+
.generateFetchAccessTokenSettings()
461+
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
462+
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
463+
441464
builder
442465
.listLocationsSettings()
443466
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
@@ -500,6 +523,13 @@ public Builder applyToAllUnaryMethods(
500523
return featureViewDirectWriteSettings;
501524
}
502525

526+
/** Returns the builder for the settings used for calls to generateFetchAccessToken. */
527+
public UnaryCallSettings.Builder<
528+
GenerateFetchAccessTokenRequest, GenerateFetchAccessTokenResponse>
529+
generateFetchAccessTokenSettings() {
530+
return generateFetchAccessTokenSettings;
531+
}
532+
503533
/** Returns the builder for the settings used for calls to listLocations. */
504534
public PagedCallSettings.Builder<
505535
ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>

java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcFeatureOnlineStoreServiceStub.java

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
import com.google.cloud.aiplatform.v1.FeatureViewDirectWriteResponse;
3131
import com.google.cloud.aiplatform.v1.FetchFeatureValuesRequest;
3232
import com.google.cloud.aiplatform.v1.FetchFeatureValuesResponse;
33+
import com.google.cloud.aiplatform.v1.GenerateFetchAccessTokenRequest;
34+
import com.google.cloud.aiplatform.v1.GenerateFetchAccessTokenResponse;
3335
import com.google.cloud.aiplatform.v1.SearchNearestEntitiesRequest;
3436
import com.google.cloud.aiplatform.v1.SearchNearestEntitiesResponse;
3537
import com.google.cloud.location.GetLocationRequest;
@@ -97,6 +99,21 @@ public class GrpcFeatureOnlineStoreServiceStub extends FeatureOnlineStoreService
9799
.setSampledToLocalTracing(true)
98100
.build();
99101

102+
private static final MethodDescriptor<
103+
GenerateFetchAccessTokenRequest, GenerateFetchAccessTokenResponse>
104+
generateFetchAccessTokenMethodDescriptor =
105+
MethodDescriptor
106+
.<GenerateFetchAccessTokenRequest, GenerateFetchAccessTokenResponse>newBuilder()
107+
.setType(MethodDescriptor.MethodType.UNARY)
108+
.setFullMethodName(
109+
"google.cloud.aiplatform.v1.FeatureOnlineStoreService/GenerateFetchAccessToken")
110+
.setRequestMarshaller(
111+
ProtoUtils.marshaller(GenerateFetchAccessTokenRequest.getDefaultInstance()))
112+
.setResponseMarshaller(
113+
ProtoUtils.marshaller(GenerateFetchAccessTokenResponse.getDefaultInstance()))
114+
.setSampledToLocalTracing(true)
115+
.build();
116+
100117
private static final MethodDescriptor<ListLocationsRequest, ListLocationsResponse>
101118
listLocationsMethodDescriptor =
102119
MethodDescriptor.<ListLocationsRequest, ListLocationsResponse>newBuilder()
@@ -154,6 +171,8 @@ public class GrpcFeatureOnlineStoreServiceStub extends FeatureOnlineStoreService
154171
searchNearestEntitiesCallable;
155172
private final BidiStreamingCallable<FeatureViewDirectWriteRequest, FeatureViewDirectWriteResponse>
156173
featureViewDirectWriteCallable;
174+
private final UnaryCallable<GenerateFetchAccessTokenRequest, GenerateFetchAccessTokenResponse>
175+
generateFetchAccessTokenCallable;
157176
private final UnaryCallable<ListLocationsRequest, ListLocationsResponse> listLocationsCallable;
158177
private final UnaryCallable<ListLocationsRequest, ListLocationsPagedResponse>
159178
listLocationsPagedCallable;
@@ -243,6 +262,18 @@ protected GrpcFeatureOnlineStoreServiceStub(
243262
return builder.build();
244263
})
245264
.build();
265+
GrpcCallSettings<GenerateFetchAccessTokenRequest, GenerateFetchAccessTokenResponse>
266+
generateFetchAccessTokenTransportSettings =
267+
GrpcCallSettings
268+
.<GenerateFetchAccessTokenRequest, GenerateFetchAccessTokenResponse>newBuilder()
269+
.setMethodDescriptor(generateFetchAccessTokenMethodDescriptor)
270+
.setParamsExtractor(
271+
request -> {
272+
RequestParamsBuilder builder = RequestParamsBuilder.create();
273+
builder.add("feature_view", String.valueOf(request.getFeatureView()));
274+
return builder.build();
275+
})
276+
.build();
246277
GrpcCallSettings<ListLocationsRequest, ListLocationsResponse> listLocationsTransportSettings =
247278
GrpcCallSettings.<ListLocationsRequest, ListLocationsResponse>newBuilder()
248279
.setMethodDescriptor(listLocationsMethodDescriptor)
@@ -310,6 +341,11 @@ protected GrpcFeatureOnlineStoreServiceStub(
310341
featureViewDirectWriteTransportSettings,
311342
settings.featureViewDirectWriteSettings(),
312343
clientContext);
344+
this.generateFetchAccessTokenCallable =
345+
callableFactory.createUnaryCallable(
346+
generateFetchAccessTokenTransportSettings,
347+
settings.generateFetchAccessTokenSettings(),
348+
clientContext);
313349
this.listLocationsCallable =
314350
callableFactory.createUnaryCallable(
315351
listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
@@ -357,6 +393,12 @@ public GrpcOperationsStub getOperationsStub() {
357393
return featureViewDirectWriteCallable;
358394
}
359395

396+
@Override
397+
public UnaryCallable<GenerateFetchAccessTokenRequest, GenerateFetchAccessTokenResponse>
398+
generateFetchAccessTokenCallable() {
399+
return generateFetchAccessTokenCallable;
400+
}
401+
360402
@Override
361403
public UnaryCallable<ListLocationsRequest, ListLocationsResponse> listLocationsCallable() {
362404
return listLocationsCallable;

0 commit comments

Comments
 (0)