Skip to content
This repository was archived by the owner on Sep 9, 2023. It is now read-only.

Commit 57258ee

Browse files
feat: add timestamp_outside_retention_rows_count to ImportFeatureValuesResponse and ImportFeatureValuesOperationMetadata in aiplatform v1 featurestore_service.proto (#1053)
- [ ] Regenerate this pull request now. feat: add RemoveContextChildren rpc to aiplatform v1 metadata_service.proto feat: add order_by to ListArtifactsRequest, ListContextsRequest, and ListExecutionsRequest in aiplatform v1 metadata_service.proto PiperOrigin-RevId: 475580702 Source-Link: googleapis/googleapis@af65a19 Source-Link: https://github.com/googleapis/googleapis-gen/commit/023d431569a53f9b5cd0d47c6af85b8a46cea5e8 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMDIzZDQzMTU2OWE1M2Y5YjVjZDBkNDdjNmFmODViOGE0NmNlYTVlOCJ9 feat: add timestamp_outside_retention_rows_count to ImportFeatureValuesResponse and ImportFeatureValuesOperationMetadata in aiplatform v1beta1 featurestore_service.proto feat: add RemoveContextChildren rpc to aiplatform v1beta1 metadata_service.proto feat: add order_by to ListArtifactsRequest, ListContextsRequest, and ListExecutionsRequest in aiplatform v1beta1 metadata_service.proto feat: add InputArtifact to RuntimeConfig in aiplatform v1beta1 pipeline_job.proto feat: add read_mask to ListPipelineJobsRequest in aiplatform v1beta1 pipeline_service.proto feat: add TransferLearningConfig in aiplatform v1beta1 study.proto PiperOrigin-RevId: 475580307 Source-Link: googleapis/googleapis@dbc83bd Source-Link: https://github.com/googleapis/googleapis-gen/commit/26c120594d6049d40061023cae345da80181077c Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjZjMTIwNTk0ZDYwNDlkNDAwNjEwMjNjYWUzNDVkYTgwMTgxMDc3YyJ9
1 parent 2a7caf9 commit 57258ee

File tree

117 files changed

+13712
-2044
lines changed

Some content is hidden

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

117 files changed

+13712
-2044
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ If you are using Maven without BOM, add this to your dependencies:
3838
If you are using Gradle 5.x or later, add this to your dependencies:
3939

4040
```Groovy
41-
implementation platform('com.google.cloud:libraries-bom:26.1.1')
41+
implementation platform('com.google.cloud:libraries-bom:26.1.2')
4242
4343
implementation 'com.google.cloud:google-cloud-aiplatform'
4444
```

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

+151
Original file line numberDiff line numberDiff line change
@@ -1155,6 +1155,7 @@ public final ListArtifactsPagedResponse listArtifacts(String parent) {
11551155
* .setPageSize(883849137)
11561156
* .setPageToken("pageToken873572522")
11571157
* .setFilter("filter-1274492040")
1158+
* .setOrderBy("orderBy-1207110587")
11581159
* .build();
11591160
* for (Artifact element : metadataServiceClient.listArtifacts(request).iterateAll()) {
11601161
* // doThingsWith(element);
@@ -1189,6 +1190,7 @@ public final ListArtifactsPagedResponse listArtifacts(ListArtifactsRequest reque
11891190
* .setPageSize(883849137)
11901191
* .setPageToken("pageToken873572522")
11911192
* .setFilter("filter-1274492040")
1193+
* .setOrderBy("orderBy-1207110587")
11921194
* .build();
11931195
* ApiFuture<Artifact> future =
11941196
* metadataServiceClient.listArtifactsPagedCallable().futureCall(request);
@@ -1224,6 +1226,7 @@ public final ListArtifactsPagedResponse listArtifacts(ListArtifactsRequest reque
12241226
* .setPageSize(883849137)
12251227
* .setPageToken("pageToken873572522")
12261228
* .setFilter("filter-1274492040")
1229+
* .setOrderBy("orderBy-1207110587")
12271230
* .build();
12281231
* while (true) {
12291232
* ListArtifactsResponse response =
@@ -1991,6 +1994,7 @@ public final ListContextsPagedResponse listContexts(String parent) {
19911994
* .setPageSize(883849137)
19921995
* .setPageToken("pageToken873572522")
19931996
* .setFilter("filter-1274492040")
1997+
* .setOrderBy("orderBy-1207110587")
19941998
* .build();
19951999
* for (Context element : metadataServiceClient.listContexts(request).iterateAll()) {
19962000
* // doThingsWith(element);
@@ -2025,6 +2029,7 @@ public final ListContextsPagedResponse listContexts(ListContextsRequest request)
20252029
* .setPageSize(883849137)
20262030
* .setPageToken("pageToken873572522")
20272031
* .setFilter("filter-1274492040")
2032+
* .setOrderBy("orderBy-1207110587")
20282033
* .build();
20292034
* ApiFuture<Context> future =
20302035
* metadataServiceClient.listContextsPagedCallable().futureCall(request);
@@ -2060,6 +2065,7 @@ public final ListContextsPagedResponse listContexts(ListContextsRequest request)
20602065
* .setPageSize(883849137)
20612066
* .setPageToken("pageToken873572522")
20622067
* .setFilter("filter-1274492040")
2068+
* .setOrderBy("orderBy-1207110587")
20632069
* .build();
20642070
* while (true) {
20652071
* ListContextsResponse response = metadataServiceClient.listContextsCallable().call(request);
@@ -2792,6 +2798,148 @@ public final AddContextChildrenResponse addContextChildren(AddContextChildrenReq
27922798
return stub.addContextChildrenCallable();
27932799
}
27942800

2801+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
2802+
/**
2803+
* Remove a set of children contexts from a parent Context. If any of the child Contexts were NOT
2804+
* added to the parent Context, they are simply skipped.
2805+
*
2806+
* <p>Sample code:
2807+
*
2808+
* <pre>{@code
2809+
* // This snippet has been automatically generated and should be regarded as a code template only.
2810+
* // It will require modifications to work:
2811+
* // - It may require correct/in-range values for request initialization.
2812+
* // - It may require specifying regional endpoints when creating the service client as shown in
2813+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
2814+
* try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
2815+
* ContextName context =
2816+
* ContextName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]");
2817+
* List<String> childContexts = new ArrayList<>();
2818+
* RemoveContextChildrenResponse response =
2819+
* metadataServiceClient.removeContextChildren(context, childContexts);
2820+
* }
2821+
* }</pre>
2822+
*
2823+
* @param context Required. The resource name of the parent Context.
2824+
* <p>Format:
2825+
* `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}`
2826+
* @param childContexts The resource names of the child Contexts.
2827+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
2828+
*/
2829+
public final RemoveContextChildrenResponse removeContextChildren(
2830+
ContextName context, List<String> childContexts) {
2831+
RemoveContextChildrenRequest request =
2832+
RemoveContextChildrenRequest.newBuilder()
2833+
.setContext(context == null ? null : context.toString())
2834+
.addAllChildContexts(childContexts)
2835+
.build();
2836+
return removeContextChildren(request);
2837+
}
2838+
2839+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
2840+
/**
2841+
* Remove a set of children contexts from a parent Context. If any of the child Contexts were NOT
2842+
* added to the parent Context, they are simply skipped.
2843+
*
2844+
* <p>Sample code:
2845+
*
2846+
* <pre>{@code
2847+
* // This snippet has been automatically generated and should be regarded as a code template only.
2848+
* // It will require modifications to work:
2849+
* // - It may require correct/in-range values for request initialization.
2850+
* // - It may require specifying regional endpoints when creating the service client as shown in
2851+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
2852+
* try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
2853+
* String context =
2854+
* ContextName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]").toString();
2855+
* List<String> childContexts = new ArrayList<>();
2856+
* RemoveContextChildrenResponse response =
2857+
* metadataServiceClient.removeContextChildren(context, childContexts);
2858+
* }
2859+
* }</pre>
2860+
*
2861+
* @param context Required. The resource name of the parent Context.
2862+
* <p>Format:
2863+
* `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}`
2864+
* @param childContexts The resource names of the child Contexts.
2865+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
2866+
*/
2867+
public final RemoveContextChildrenResponse removeContextChildren(
2868+
String context, List<String> childContexts) {
2869+
RemoveContextChildrenRequest request =
2870+
RemoveContextChildrenRequest.newBuilder()
2871+
.setContext(context)
2872+
.addAllChildContexts(childContexts)
2873+
.build();
2874+
return removeContextChildren(request);
2875+
}
2876+
2877+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
2878+
/**
2879+
* Remove a set of children contexts from a parent Context. If any of the child Contexts were NOT
2880+
* added to the parent Context, they are simply skipped.
2881+
*
2882+
* <p>Sample code:
2883+
*
2884+
* <pre>{@code
2885+
* // This snippet has been automatically generated and should be regarded as a code template only.
2886+
* // It will require modifications to work:
2887+
* // - It may require correct/in-range values for request initialization.
2888+
* // - It may require specifying regional endpoints when creating the service client as shown in
2889+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
2890+
* try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
2891+
* RemoveContextChildrenRequest request =
2892+
* RemoveContextChildrenRequest.newBuilder()
2893+
* .setContext(
2894+
* ContextName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]")
2895+
* .toString())
2896+
* .addAllChildContexts(new ArrayList<String>())
2897+
* .build();
2898+
* RemoveContextChildrenResponse response = metadataServiceClient.removeContextChildren(request);
2899+
* }
2900+
* }</pre>
2901+
*
2902+
* @param request The request object containing all of the parameters for the API call.
2903+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
2904+
*/
2905+
public final RemoveContextChildrenResponse removeContextChildren(
2906+
RemoveContextChildrenRequest request) {
2907+
return removeContextChildrenCallable().call(request);
2908+
}
2909+
2910+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
2911+
/**
2912+
* Remove a set of children contexts from a parent Context. If any of the child Contexts were NOT
2913+
* added to the parent Context, they are simply skipped.
2914+
*
2915+
* <p>Sample code:
2916+
*
2917+
* <pre>{@code
2918+
* // This snippet has been automatically generated and should be regarded as a code template only.
2919+
* // It will require modifications to work:
2920+
* // - It may require correct/in-range values for request initialization.
2921+
* // - It may require specifying regional endpoints when creating the service client as shown in
2922+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
2923+
* try (MetadataServiceClient metadataServiceClient = MetadataServiceClient.create()) {
2924+
* RemoveContextChildrenRequest request =
2925+
* RemoveContextChildrenRequest.newBuilder()
2926+
* .setContext(
2927+
* ContextName.of("[PROJECT]", "[LOCATION]", "[METADATA_STORE]", "[CONTEXT]")
2928+
* .toString())
2929+
* .addAllChildContexts(new ArrayList<String>())
2930+
* .build();
2931+
* ApiFuture<RemoveContextChildrenResponse> future =
2932+
* metadataServiceClient.removeContextChildrenCallable().futureCall(request);
2933+
* // Do something.
2934+
* RemoveContextChildrenResponse response = future.get();
2935+
* }
2936+
* }</pre>
2937+
*/
2938+
public final UnaryCallable<RemoveContextChildrenRequest, RemoveContextChildrenResponse>
2939+
removeContextChildrenCallable() {
2940+
return stub.removeContextChildrenCallable();
2941+
}
2942+
27952943
// AUTO-GENERATED DOCUMENTATION AND METHOD.
27962944
/**
27972945
* Retrieves Artifacts and Executions within the specified Context, connected by Event edges and
@@ -3271,6 +3419,7 @@ public final ListExecutionsPagedResponse listExecutions(String parent) {
32713419
* .setPageSize(883849137)
32723420
* .setPageToken("pageToken873572522")
32733421
* .setFilter("filter-1274492040")
3422+
* .setOrderBy("orderBy-1207110587")
32743423
* .build();
32753424
* for (Execution element : metadataServiceClient.listExecutions(request).iterateAll()) {
32763425
* // doThingsWith(element);
@@ -3305,6 +3454,7 @@ public final ListExecutionsPagedResponse listExecutions(ListExecutionsRequest re
33053454
* .setPageSize(883849137)
33063455
* .setPageToken("pageToken873572522")
33073456
* .setFilter("filter-1274492040")
3457+
* .setOrderBy("orderBy-1207110587")
33083458
* .build();
33093459
* ApiFuture<Execution> future =
33103460
* metadataServiceClient.listExecutionsPagedCallable().futureCall(request);
@@ -3340,6 +3490,7 @@ public final ListExecutionsPagedResponse listExecutions(ListExecutionsRequest re
33403490
* .setPageSize(883849137)
33413491
* .setPageToken("pageToken873572522")
33423492
* .setFilter("filter-1274492040")
3493+
* .setOrderBy("orderBy-1207110587")
33433494
* .build();
33443495
* while (true) {
33453496
* ListExecutionsResponse response =

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

+12
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,12 @@ public UnaryCallSettings<PurgeContextsRequest, Operation> purgeContextsSettings(
225225
return ((MetadataServiceStubSettings) getStubSettings()).addContextChildrenSettings();
226226
}
227227

228+
/** Returns the object with the settings used for calls to removeContextChildren. */
229+
public UnaryCallSettings<RemoveContextChildrenRequest, RemoveContextChildrenResponse>
230+
removeContextChildrenSettings() {
231+
return ((MetadataServiceStubSettings) getStubSettings()).removeContextChildrenSettings();
232+
}
233+
228234
/** Returns the object with the settings used for calls to queryContextLineageSubgraph. */
229235
public UnaryCallSettings<QueryContextLineageSubgraphRequest, LineageSubgraph>
230236
queryContextLineageSubgraphSettings() {
@@ -579,6 +585,12 @@ public UnaryCallSettings.Builder<PurgeContextsRequest, Operation> purgeContextsS
579585
return getStubSettingsBuilder().addContextChildrenSettings();
580586
}
581587

588+
/** Returns the builder for the settings used for calls to removeContextChildren. */
589+
public UnaryCallSettings.Builder<RemoveContextChildrenRequest, RemoveContextChildrenResponse>
590+
removeContextChildrenSettings() {
591+
return getStubSettingsBuilder().removeContextChildrenSettings();
592+
}
593+
582594
/** Returns the builder for the settings used for calls to queryContextLineageSubgraph. */
583595
public UnaryCallSettings.Builder<QueryContextLineageSubgraphRequest, LineageSubgraph>
584596
queryContextLineageSubgraphSettings() {

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

+3
Original file line numberDiff line numberDiff line change
@@ -520,6 +520,9 @@
520520
"QueryExecutionInputsAndOutputs": {
521521
"methods": ["queryExecutionInputsAndOutputs", "queryExecutionInputsAndOutputs", "queryExecutionInputsAndOutputs", "queryExecutionInputsAndOutputsCallable"]
522522
},
523+
"RemoveContextChildren": {
524+
"methods": ["removeContextChildren", "removeContextChildren", "removeContextChildren", "removeContextChildrenCallable"]
525+
},
523526
"SetIamPolicy": {
524527
"methods": ["setIamPolicy", "setIamPolicyCallable"]
525528
},

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

+38
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@
8181
import com.google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest;
8282
import com.google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest;
8383
import com.google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest;
84+
import com.google.cloud.aiplatform.v1.RemoveContextChildrenRequest;
85+
import com.google.cloud.aiplatform.v1.RemoveContextChildrenResponse;
8486
import com.google.cloud.aiplatform.v1.UpdateArtifactRequest;
8587
import com.google.cloud.aiplatform.v1.UpdateContextRequest;
8688
import com.google.cloud.aiplatform.v1.UpdateExecutionRequest;
@@ -297,6 +299,17 @@ public class GrpcMetadataServiceStub extends MetadataServiceStub {
297299
ProtoUtils.marshaller(AddContextChildrenResponse.getDefaultInstance()))
298300
.build();
299301

302+
private static final MethodDescriptor<RemoveContextChildrenRequest, RemoveContextChildrenResponse>
303+
removeContextChildrenMethodDescriptor =
304+
MethodDescriptor.<RemoveContextChildrenRequest, RemoveContextChildrenResponse>newBuilder()
305+
.setType(MethodDescriptor.MethodType.UNARY)
306+
.setFullMethodName("google.cloud.aiplatform.v1.MetadataService/RemoveContextChildren")
307+
.setRequestMarshaller(
308+
ProtoUtils.marshaller(RemoveContextChildrenRequest.getDefaultInstance()))
309+
.setResponseMarshaller(
310+
ProtoUtils.marshaller(RemoveContextChildrenResponse.getDefaultInstance()))
311+
.build();
312+
300313
private static final MethodDescriptor<QueryContextLineageSubgraphRequest, LineageSubgraph>
301314
queryContextLineageSubgraphMethodDescriptor =
302315
MethodDescriptor.<QueryContextLineageSubgraphRequest, LineageSubgraph>newBuilder()
@@ -522,6 +535,8 @@ public class GrpcMetadataServiceStub extends MetadataServiceStub {
522535
addContextArtifactsAndExecutionsCallable;
523536
private final UnaryCallable<AddContextChildrenRequest, AddContextChildrenResponse>
524537
addContextChildrenCallable;
538+
private final UnaryCallable<RemoveContextChildrenRequest, RemoveContextChildrenResponse>
539+
removeContextChildrenCallable;
525540
private final UnaryCallable<QueryContextLineageSubgraphRequest, LineageSubgraph>
526541
queryContextLineageSubgraphCallable;
527542
private final UnaryCallable<CreateExecutionRequest, Execution> createExecutionCallable;
@@ -789,6 +804,18 @@ protected GrpcMetadataServiceStub(
789804
return params.build();
790805
})
791806
.build();
807+
GrpcCallSettings<RemoveContextChildrenRequest, RemoveContextChildrenResponse>
808+
removeContextChildrenTransportSettings =
809+
GrpcCallSettings
810+
.<RemoveContextChildrenRequest, RemoveContextChildrenResponse>newBuilder()
811+
.setMethodDescriptor(removeContextChildrenMethodDescriptor)
812+
.setParamsExtractor(
813+
request -> {
814+
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
815+
params.put("context", String.valueOf(request.getContext()));
816+
return params.build();
817+
})
818+
.build();
792819
GrpcCallSettings<QueryContextLineageSubgraphRequest, LineageSubgraph>
793820
queryContextLineageSubgraphTransportSettings =
794821
GrpcCallSettings.<QueryContextLineageSubgraphRequest, LineageSubgraph>newBuilder()
@@ -1089,6 +1116,11 @@ protected GrpcMetadataServiceStub(
10891116
addContextChildrenTransportSettings,
10901117
settings.addContextChildrenSettings(),
10911118
clientContext);
1119+
this.removeContextChildrenCallable =
1120+
callableFactory.createUnaryCallable(
1121+
removeContextChildrenTransportSettings,
1122+
settings.removeContextChildrenSettings(),
1123+
clientContext);
10921124
this.queryContextLineageSubgraphCallable =
10931125
callableFactory.createUnaryCallable(
10941126
queryContextLineageSubgraphTransportSettings,
@@ -1339,6 +1371,12 @@ public UnaryCallable<PurgeContextsRequest, Operation> purgeContextsCallable() {
13391371
return addContextChildrenCallable;
13401372
}
13411373

1374+
@Override
1375+
public UnaryCallable<RemoveContextChildrenRequest, RemoveContextChildrenResponse>
1376+
removeContextChildrenCallable() {
1377+
return removeContextChildrenCallable;
1378+
}
1379+
13421380
@Override
13431381
public UnaryCallable<QueryContextLineageSubgraphRequest, LineageSubgraph>
13441382
queryContextLineageSubgraphCallable() {

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

+7
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@
7777
import com.google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest;
7878
import com.google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest;
7979
import com.google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest;
80+
import com.google.cloud.aiplatform.v1.RemoveContextChildrenRequest;
81+
import com.google.cloud.aiplatform.v1.RemoveContextChildrenResponse;
8082
import com.google.cloud.aiplatform.v1.UpdateArtifactRequest;
8183
import com.google.cloud.aiplatform.v1.UpdateContextRequest;
8284
import com.google.cloud.aiplatform.v1.UpdateExecutionRequest;
@@ -231,6 +233,11 @@ public UnaryCallable<PurgeContextsRequest, Operation> purgeContextsCallable() {
231233
throw new UnsupportedOperationException("Not implemented: addContextChildrenCallable()");
232234
}
233235

236+
public UnaryCallable<RemoveContextChildrenRequest, RemoveContextChildrenResponse>
237+
removeContextChildrenCallable() {
238+
throw new UnsupportedOperationException("Not implemented: removeContextChildrenCallable()");
239+
}
240+
234241
public UnaryCallable<QueryContextLineageSubgraphRequest, LineageSubgraph>
235242
queryContextLineageSubgraphCallable() {
236243
throw new UnsupportedOperationException(

0 commit comments

Comments
 (0)