Skip to content

Commit 43b143a

Browse files
chore: generate libraries at Thu Mar 14 03:06:02 UTC 2024 (#10541)
* chore: generate libraries at Thu Mar 14 03:06:02 UTC 2024 * add missing dependencies in network management * ignore failing tests for network management * ignore failing tests in service management --------- Co-authored-by: Joe Wang <[email protected]>
1 parent 890e241 commit 43b143a

File tree

112 files changed

+18914
-1137
lines changed

Some content is hidden

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

112 files changed

+18914
-1137
lines changed

generation_config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
gapic_generator_version: 2.37.0
22
protobuf_version: '25.2'
3-
googleapis_commitish: e960a82d36e3ddaeb62f549dbd4c300e11e240dc
3+
googleapis_commitish: 65277ddce9caa1cfd1a0eb7ab67980fc73d20b50
44
owlbot_cli_image: sha256:623647ee79ac605858d09e60c1382a716c125fb776f69301b72de1cd35d49409
55
synthtool_commitish: 6612ab8f3afcd5e292aecd647f0fa68812c9f5b5
66
template_excludes:

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

+50
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import com.google.api.gax.paging.AbstractFixedSizeCollection;
2424
import com.google.api.gax.paging.AbstractPage;
2525
import com.google.api.gax.paging.AbstractPagedListResponse;
26+
import com.google.api.gax.rpc.BidiStreamingCallable;
2627
import com.google.api.gax.rpc.PageContext;
2728
import com.google.api.gax.rpc.UnaryCallable;
2829
import com.google.cloud.aiplatform.v1beta1.stub.FeatureOnlineStoreServiceStub;
@@ -96,6 +97,16 @@
9697
* </td>
9798
* </tr>
9899
* <tr>
100+
* <td><p> StreamingFetchFeatureValues</td>
101+
* <td><p> Bidirectional streaming RPC to fetch feature values under a FeatureView. Requests may not have a one-to-one mapping to responses and responses may be returned out-of-order to reduce latency.</td>
102+
* <td>
103+
* <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>
104+
* <ul>
105+
* <li><p> streamingFetchFeatureValuesCallable()
106+
* </ul>
107+
* </td>
108+
* </tr>
109+
* <tr>
99110
* <td><p> SearchNearestEntities</td>
100111
* <td><p> Search the nearest entities under a FeatureView. Search only works for indexable feature view; if a feature view isn't indexable, returns Invalid argument response.</td>
101112
* <td>
@@ -423,6 +434,45 @@ public final FetchFeatureValuesResponse fetchFeatureValues(FetchFeatureValuesReq
423434
return stub.fetchFeatureValuesCallable();
424435
}
425436

437+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
438+
/**
439+
* Bidirectional streaming RPC to fetch feature values under a FeatureView. Requests may not have
440+
* a one-to-one mapping to responses and responses may be returned out-of-order to reduce latency.
441+
*
442+
* <p>Sample code:
443+
*
444+
* <pre>{@code
445+
* // This snippet has been automatically generated and should be regarded as a code template only.
446+
* // It will require modifications to work:
447+
* // - It may require correct/in-range values for request initialization.
448+
* // - It may require specifying regional endpoints when creating the service client as shown in
449+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
450+
* try (FeatureOnlineStoreServiceClient featureOnlineStoreServiceClient =
451+
* FeatureOnlineStoreServiceClient.create()) {
452+
* BidiStream<StreamingFetchFeatureValuesRequest, StreamingFetchFeatureValuesResponse>
453+
* bidiStream = featureOnlineStoreServiceClient.streamingFetchFeatureValuesCallable().call();
454+
* StreamingFetchFeatureValuesRequest request =
455+
* StreamingFetchFeatureValuesRequest.newBuilder()
456+
* .setFeatureView(
457+
* FeatureViewName.of(
458+
* "[PROJECT]", "[LOCATION]", "[FEATURE_ONLINE_STORE]", "[FEATURE_VIEW]")
459+
* .toString())
460+
* .addAllDataKeys(new ArrayList<FeatureViewDataKey>())
461+
* .setDataFormat(FeatureViewDataFormat.forNumber(0))
462+
* .build();
463+
* bidiStream.send(request);
464+
* for (StreamingFetchFeatureValuesResponse response : bidiStream) {
465+
* // Do something when a response is received.
466+
* }
467+
* }
468+
* }</pre>
469+
*/
470+
public final BidiStreamingCallable<
471+
StreamingFetchFeatureValuesRequest, StreamingFetchFeatureValuesResponse>
472+
streamingFetchFeatureValuesCallable() {
473+
return stub.streamingFetchFeatureValuesCallable();
474+
}
475+
426476
// AUTO-GENERATED DOCUMENTATION AND METHOD.
427477
/**
428478
* Search the nearest entities under a FeatureView. Search only works for indexable feature view;

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

+16
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
import com.google.api.gax.rpc.ClientContext;
2828
import com.google.api.gax.rpc.ClientSettings;
2929
import com.google.api.gax.rpc.PagedCallSettings;
30+
import com.google.api.gax.rpc.StreamingCallSettings;
3031
import com.google.api.gax.rpc.TransportChannelProvider;
3132
import com.google.api.gax.rpc.UnaryCallSettings;
3233
import com.google.cloud.aiplatform.v1beta1.stub.FeatureOnlineStoreServiceStubSettings;
@@ -92,6 +93,14 @@ public class FeatureOnlineStoreServiceSettings
9293
return ((FeatureOnlineStoreServiceStubSettings) getStubSettings()).fetchFeatureValuesSettings();
9394
}
9495

96+
/** Returns the object with the settings used for calls to streamingFetchFeatureValues. */
97+
public StreamingCallSettings<
98+
StreamingFetchFeatureValuesRequest, StreamingFetchFeatureValuesResponse>
99+
streamingFetchFeatureValuesSettings() {
100+
return ((FeatureOnlineStoreServiceStubSettings) getStubSettings())
101+
.streamingFetchFeatureValuesSettings();
102+
}
103+
95104
/** Returns the object with the settings used for calls to searchNearestEntities. */
96105
public UnaryCallSettings<SearchNearestEntitiesRequest, SearchNearestEntitiesResponse>
97106
searchNearestEntitiesSettings() {
@@ -229,6 +238,13 @@ public Builder applyToAllUnaryMethods(
229238
return getStubSettingsBuilder().fetchFeatureValuesSettings();
230239
}
231240

241+
/** Returns the builder for the settings used for calls to streamingFetchFeatureValues. */
242+
public StreamingCallSettings.Builder<
243+
StreamingFetchFeatureValuesRequest, StreamingFetchFeatureValuesResponse>
244+
streamingFetchFeatureValuesSettings() {
245+
return getStubSettingsBuilder().streamingFetchFeatureValuesSettings();
246+
}
247+
232248
/** Returns the builder for the settings used for calls to searchNearestEntities. */
233249
public UnaryCallSettings.Builder<SearchNearestEntitiesRequest, SearchNearestEntitiesResponse>
234250
searchNearestEntitiesSettings() {

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

+3
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,9 @@
256256
"SetIamPolicy": {
257257
"methods": ["setIamPolicy", "setIamPolicyCallable"]
258258
},
259+
"StreamingFetchFeatureValues": {
260+
"methods": ["streamingFetchFeatureValuesCallable"]
261+
},
259262
"TestIamPermissions": {
260263
"methods": ["testIamPermissions", "testIamPermissionsCallable"]
261264
}

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

+10
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,14 @@
2020

2121
import com.google.api.core.BetaApi;
2222
import com.google.api.gax.core.BackgroundResource;
23+
import com.google.api.gax.rpc.BidiStreamingCallable;
2324
import com.google.api.gax.rpc.UnaryCallable;
2425
import com.google.cloud.aiplatform.v1beta1.FetchFeatureValuesRequest;
2526
import com.google.cloud.aiplatform.v1beta1.FetchFeatureValuesResponse;
2627
import com.google.cloud.aiplatform.v1beta1.SearchNearestEntitiesRequest;
2728
import com.google.cloud.aiplatform.v1beta1.SearchNearestEntitiesResponse;
29+
import com.google.cloud.aiplatform.v1beta1.StreamingFetchFeatureValuesRequest;
30+
import com.google.cloud.aiplatform.v1beta1.StreamingFetchFeatureValuesResponse;
2831
import com.google.cloud.location.GetLocationRequest;
2932
import com.google.cloud.location.ListLocationsRequest;
3033
import com.google.cloud.location.ListLocationsResponse;
@@ -51,6 +54,13 @@ public abstract class FeatureOnlineStoreServiceStub implements BackgroundResourc
5154
throw new UnsupportedOperationException("Not implemented: fetchFeatureValuesCallable()");
5255
}
5356

57+
public BidiStreamingCallable<
58+
StreamingFetchFeatureValuesRequest, StreamingFetchFeatureValuesResponse>
59+
streamingFetchFeatureValuesCallable() {
60+
throw new UnsupportedOperationException(
61+
"Not implemented: streamingFetchFeatureValuesCallable()");
62+
}
63+
5464
public UnaryCallable<SearchNearestEntitiesRequest, SearchNearestEntitiesResponse>
5565
searchNearestEntitiesCallable() {
5666
throw new UnsupportedOperationException("Not implemented: searchNearestEntitiesCallable()");

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

+28
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
import com.google.api.gax.rpc.PagedListDescriptor;
3737
import com.google.api.gax.rpc.PagedListResponseFactory;
3838
import com.google.api.gax.rpc.StatusCode;
39+
import com.google.api.gax.rpc.StreamingCallSettings;
3940
import com.google.api.gax.rpc.StubSettings;
4041
import com.google.api.gax.rpc.TransportChannelProvider;
4142
import com.google.api.gax.rpc.UnaryCallSettings;
@@ -44,6 +45,8 @@
4445
import com.google.cloud.aiplatform.v1beta1.FetchFeatureValuesResponse;
4546
import com.google.cloud.aiplatform.v1beta1.SearchNearestEntitiesRequest;
4647
import com.google.cloud.aiplatform.v1beta1.SearchNearestEntitiesResponse;
48+
import com.google.cloud.aiplatform.v1beta1.StreamingFetchFeatureValuesRequest;
49+
import com.google.cloud.aiplatform.v1beta1.StreamingFetchFeatureValuesResponse;
4750
import com.google.cloud.location.GetLocationRequest;
4851
import com.google.cloud.location.ListLocationsRequest;
4952
import com.google.cloud.location.ListLocationsResponse;
@@ -109,6 +112,9 @@ public class FeatureOnlineStoreServiceStubSettings
109112

110113
private final UnaryCallSettings<FetchFeatureValuesRequest, FetchFeatureValuesResponse>
111114
fetchFeatureValuesSettings;
115+
private final StreamingCallSettings<
116+
StreamingFetchFeatureValuesRequest, StreamingFetchFeatureValuesResponse>
117+
streamingFetchFeatureValuesSettings;
112118
private final UnaryCallSettings<SearchNearestEntitiesRequest, SearchNearestEntitiesResponse>
113119
searchNearestEntitiesSettings;
114120
private final PagedCallSettings<
@@ -179,6 +185,13 @@ public ApiFuture<ListLocationsPagedResponse> getFuturePagedResponse(
179185
return fetchFeatureValuesSettings;
180186
}
181187

188+
/** Returns the object with the settings used for calls to streamingFetchFeatureValues. */
189+
public StreamingCallSettings<
190+
StreamingFetchFeatureValuesRequest, StreamingFetchFeatureValuesResponse>
191+
streamingFetchFeatureValuesSettings() {
192+
return streamingFetchFeatureValuesSettings;
193+
}
194+
182195
/** Returns the object with the settings used for calls to searchNearestEntities. */
183196
public UnaryCallSettings<SearchNearestEntitiesRequest, SearchNearestEntitiesResponse>
184197
searchNearestEntitiesSettings() {
@@ -302,6 +315,8 @@ protected FeatureOnlineStoreServiceStubSettings(Builder settingsBuilder) throws
302315
super(settingsBuilder);
303316

304317
fetchFeatureValuesSettings = settingsBuilder.fetchFeatureValuesSettings().build();
318+
streamingFetchFeatureValuesSettings =
319+
settingsBuilder.streamingFetchFeatureValuesSettings().build();
305320
searchNearestEntitiesSettings = settingsBuilder.searchNearestEntitiesSettings().build();
306321
listLocationsSettings = settingsBuilder.listLocationsSettings().build();
307322
getLocationSettings = settingsBuilder.getLocationSettings().build();
@@ -316,6 +331,9 @@ public static class Builder
316331
private final ImmutableList<UnaryCallSettings.Builder<?, ?>> unaryMethodSettingsBuilders;
317332
private final UnaryCallSettings.Builder<FetchFeatureValuesRequest, FetchFeatureValuesResponse>
318333
fetchFeatureValuesSettings;
334+
private final StreamingCallSettings.Builder<
335+
StreamingFetchFeatureValuesRequest, StreamingFetchFeatureValuesResponse>
336+
streamingFetchFeatureValuesSettings;
319337
private final UnaryCallSettings.Builder<
320338
SearchNearestEntitiesRequest, SearchNearestEntitiesResponse>
321339
searchNearestEntitiesSettings;
@@ -355,6 +373,7 @@ protected Builder(ClientContext clientContext) {
355373
super(clientContext);
356374

357375
fetchFeatureValuesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
376+
streamingFetchFeatureValuesSettings = StreamingCallSettings.newBuilder();
358377
searchNearestEntitiesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
359378
listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT);
360379
getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
@@ -378,6 +397,8 @@ protected Builder(FeatureOnlineStoreServiceStubSettings settings) {
378397
super(settings);
379398

380399
fetchFeatureValuesSettings = settings.fetchFeatureValuesSettings.toBuilder();
400+
streamingFetchFeatureValuesSettings =
401+
settings.streamingFetchFeatureValuesSettings.toBuilder();
381402
searchNearestEntitiesSettings = settings.searchNearestEntitiesSettings.toBuilder();
382403
listLocationsSettings = settings.listLocationsSettings.toBuilder();
383404
getLocationSettings = settings.getLocationSettings.toBuilder();
@@ -468,6 +489,13 @@ public Builder applyToAllUnaryMethods(
468489
return fetchFeatureValuesSettings;
469490
}
470491

492+
/** Returns the builder for the settings used for calls to streamingFetchFeatureValues. */
493+
public StreamingCallSettings.Builder<
494+
StreamingFetchFeatureValuesRequest, StreamingFetchFeatureValuesResponse>
495+
streamingFetchFeatureValuesSettings() {
496+
return streamingFetchFeatureValuesSettings;
497+
}
498+
471499
/** Returns the builder for the settings used for calls to searchNearestEntities. */
472500
public UnaryCallSettings.Builder<SearchNearestEntitiesRequest, SearchNearestEntitiesResponse>
473501
searchNearestEntitiesSettings() {

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

+45
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,16 @@
2323
import com.google.api.gax.core.BackgroundResourceAggregation;
2424
import com.google.api.gax.grpc.GrpcCallSettings;
2525
import com.google.api.gax.grpc.GrpcStubCallableFactory;
26+
import com.google.api.gax.rpc.BidiStreamingCallable;
2627
import com.google.api.gax.rpc.ClientContext;
2728
import com.google.api.gax.rpc.RequestParamsBuilder;
2829
import com.google.api.gax.rpc.UnaryCallable;
2930
import com.google.cloud.aiplatform.v1beta1.FetchFeatureValuesRequest;
3031
import com.google.cloud.aiplatform.v1beta1.FetchFeatureValuesResponse;
3132
import com.google.cloud.aiplatform.v1beta1.SearchNearestEntitiesRequest;
3233
import com.google.cloud.aiplatform.v1beta1.SearchNearestEntitiesResponse;
34+
import com.google.cloud.aiplatform.v1beta1.StreamingFetchFeatureValuesRequest;
35+
import com.google.cloud.aiplatform.v1beta1.StreamingFetchFeatureValuesResponse;
3336
import com.google.cloud.location.GetLocationRequest;
3437
import com.google.cloud.location.ListLocationsRequest;
3538
import com.google.cloud.location.ListLocationsResponse;
@@ -67,6 +70,20 @@ public class GrpcFeatureOnlineStoreServiceStub extends FeatureOnlineStoreService
6770
ProtoUtils.marshaller(FetchFeatureValuesResponse.getDefaultInstance()))
6871
.build();
6972

73+
private static final MethodDescriptor<
74+
StreamingFetchFeatureValuesRequest, StreamingFetchFeatureValuesResponse>
75+
streamingFetchFeatureValuesMethodDescriptor =
76+
MethodDescriptor
77+
.<StreamingFetchFeatureValuesRequest, StreamingFetchFeatureValuesResponse>newBuilder()
78+
.setType(MethodDescriptor.MethodType.BIDI_STREAMING)
79+
.setFullMethodName(
80+
"google.cloud.aiplatform.v1beta1.FeatureOnlineStoreService/StreamingFetchFeatureValues")
81+
.setRequestMarshaller(
82+
ProtoUtils.marshaller(StreamingFetchFeatureValuesRequest.getDefaultInstance()))
83+
.setResponseMarshaller(
84+
ProtoUtils.marshaller(StreamingFetchFeatureValuesResponse.getDefaultInstance()))
85+
.build();
86+
7087
private static final MethodDescriptor<SearchNearestEntitiesRequest, SearchNearestEntitiesResponse>
7188
searchNearestEntitiesMethodDescriptor =
7289
MethodDescriptor.<SearchNearestEntitiesRequest, SearchNearestEntitiesResponse>newBuilder()
@@ -127,6 +144,9 @@ public class GrpcFeatureOnlineStoreServiceStub extends FeatureOnlineStoreService
127144

128145
private final UnaryCallable<FetchFeatureValuesRequest, FetchFeatureValuesResponse>
129146
fetchFeatureValuesCallable;
147+
private final BidiStreamingCallable<
148+
StreamingFetchFeatureValuesRequest, StreamingFetchFeatureValuesResponse>
149+
streamingFetchFeatureValuesCallable;
130150
private final UnaryCallable<SearchNearestEntitiesRequest, SearchNearestEntitiesResponse>
131151
searchNearestEntitiesCallable;
132152
private final UnaryCallable<ListLocationsRequest, ListLocationsResponse> listLocationsCallable;
@@ -194,6 +214,19 @@ protected GrpcFeatureOnlineStoreServiceStub(
194214
return builder.build();
195215
})
196216
.build();
217+
GrpcCallSettings<StreamingFetchFeatureValuesRequest, StreamingFetchFeatureValuesResponse>
218+
streamingFetchFeatureValuesTransportSettings =
219+
GrpcCallSettings
220+
.<StreamingFetchFeatureValuesRequest, StreamingFetchFeatureValuesResponse>
221+
newBuilder()
222+
.setMethodDescriptor(streamingFetchFeatureValuesMethodDescriptor)
223+
.setParamsExtractor(
224+
request -> {
225+
RequestParamsBuilder builder = RequestParamsBuilder.create();
226+
builder.add("feature_view", String.valueOf(request.getFeatureView()));
227+
return builder.build();
228+
})
229+
.build();
197230
GrpcCallSettings<SearchNearestEntitiesRequest, SearchNearestEntitiesResponse>
198231
searchNearestEntitiesTransportSettings =
199232
GrpcCallSettings
@@ -263,6 +296,11 @@ protected GrpcFeatureOnlineStoreServiceStub(
263296
fetchFeatureValuesTransportSettings,
264297
settings.fetchFeatureValuesSettings(),
265298
clientContext);
299+
this.streamingFetchFeatureValuesCallable =
300+
callableFactory.createBidiStreamingCallable(
301+
streamingFetchFeatureValuesTransportSettings,
302+
settings.streamingFetchFeatureValuesSettings(),
303+
clientContext);
266304
this.searchNearestEntitiesCallable =
267305
callableFactory.createUnaryCallable(
268306
searchNearestEntitiesTransportSettings,
@@ -303,6 +341,13 @@ public GrpcOperationsStub getOperationsStub() {
303341
return fetchFeatureValuesCallable;
304342
}
305343

344+
@Override
345+
public BidiStreamingCallable<
346+
StreamingFetchFeatureValuesRequest, StreamingFetchFeatureValuesResponse>
347+
streamingFetchFeatureValuesCallable() {
348+
return streamingFetchFeatureValuesCallable;
349+
}
350+
306351
@Override
307352
public UnaryCallable<SearchNearestEntitiesRequest, SearchNearestEntitiesResponse>
308353
searchNearestEntitiesCallable() {

java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1beta1/reflect-config.json

+36
Original file line numberDiff line numberDiff line change
@@ -13076,6 +13076,42 @@
1307613076
"allDeclaredClasses": true,
1307713077
"allPublicClasses": true
1307813078
},
13079+
{
13080+
"name": "com.google.cloud.aiplatform.v1beta1.StreamingFetchFeatureValuesRequest",
13081+
"queryAllDeclaredConstructors": true,
13082+
"queryAllPublicConstructors": true,
13083+
"queryAllDeclaredMethods": true,
13084+
"allPublicMethods": true,
13085+
"allDeclaredClasses": true,
13086+
"allPublicClasses": true
13087+
},
13088+
{
13089+
"name": "com.google.cloud.aiplatform.v1beta1.StreamingFetchFeatureValuesRequest$Builder",
13090+
"queryAllDeclaredConstructors": true,
13091+
"queryAllPublicConstructors": true,
13092+
"queryAllDeclaredMethods": true,
13093+
"allPublicMethods": true,
13094+
"allDeclaredClasses": true,
13095+
"allPublicClasses": true
13096+
},
13097+
{
13098+
"name": "com.google.cloud.aiplatform.v1beta1.StreamingFetchFeatureValuesResponse",
13099+
"queryAllDeclaredConstructors": true,
13100+
"queryAllPublicConstructors": true,
13101+
"queryAllDeclaredMethods": true,
13102+
"allPublicMethods": true,
13103+
"allDeclaredClasses": true,
13104+
"allPublicClasses": true
13105+
},
13106+
{
13107+
"name": "com.google.cloud.aiplatform.v1beta1.StreamingFetchFeatureValuesResponse$Builder",
13108+
"queryAllDeclaredConstructors": true,
13109+
"queryAllPublicConstructors": true,
13110+
"queryAllDeclaredMethods": true,
13111+
"allPublicMethods": true,
13112+
"allDeclaredClasses": true,
13113+
"allPublicClasses": true
13114+
},
1307913115
{
1308013116
"name": "com.google.cloud.aiplatform.v1beta1.StreamingPredictRequest",
1308113117
"queryAllDeclaredConstructors": true,

0 commit comments

Comments
 (0)