@@ -1155,6 +1155,7 @@ public final ListArtifactsPagedResponse listArtifacts(String parent) {
1155
1155
* .setPageSize(883849137)
1156
1156
* .setPageToken("pageToken873572522")
1157
1157
* .setFilter("filter-1274492040")
1158
+ * .setOrderBy("orderBy-1207110587")
1158
1159
* .build();
1159
1160
* for (Artifact element : metadataServiceClient.listArtifacts(request).iterateAll()) {
1160
1161
* // doThingsWith(element);
@@ -1189,6 +1190,7 @@ public final ListArtifactsPagedResponse listArtifacts(ListArtifactsRequest reque
1189
1190
* .setPageSize(883849137)
1190
1191
* .setPageToken("pageToken873572522")
1191
1192
* .setFilter("filter-1274492040")
1193
+ * .setOrderBy("orderBy-1207110587")
1192
1194
* .build();
1193
1195
* ApiFuture<Artifact> future =
1194
1196
* metadataServiceClient.listArtifactsPagedCallable().futureCall(request);
@@ -1224,6 +1226,7 @@ public final ListArtifactsPagedResponse listArtifacts(ListArtifactsRequest reque
1224
1226
* .setPageSize(883849137)
1225
1227
* .setPageToken("pageToken873572522")
1226
1228
* .setFilter("filter-1274492040")
1229
+ * .setOrderBy("orderBy-1207110587")
1227
1230
* .build();
1228
1231
* while (true) {
1229
1232
* ListArtifactsResponse response =
@@ -1991,6 +1994,7 @@ public final ListContextsPagedResponse listContexts(String parent) {
1991
1994
* .setPageSize(883849137)
1992
1995
* .setPageToken("pageToken873572522")
1993
1996
* .setFilter("filter-1274492040")
1997
+ * .setOrderBy("orderBy-1207110587")
1994
1998
* .build();
1995
1999
* for (Context element : metadataServiceClient.listContexts(request).iterateAll()) {
1996
2000
* // doThingsWith(element);
@@ -2025,6 +2029,7 @@ public final ListContextsPagedResponse listContexts(ListContextsRequest request)
2025
2029
* .setPageSize(883849137)
2026
2030
* .setPageToken("pageToken873572522")
2027
2031
* .setFilter("filter-1274492040")
2032
+ * .setOrderBy("orderBy-1207110587")
2028
2033
* .build();
2029
2034
* ApiFuture<Context> future =
2030
2035
* metadataServiceClient.listContextsPagedCallable().futureCall(request);
@@ -2060,6 +2065,7 @@ public final ListContextsPagedResponse listContexts(ListContextsRequest request)
2060
2065
* .setPageSize(883849137)
2061
2066
* .setPageToken("pageToken873572522")
2062
2067
* .setFilter("filter-1274492040")
2068
+ * .setOrderBy("orderBy-1207110587")
2063
2069
* .build();
2064
2070
* while (true) {
2065
2071
* ListContextsResponse response = metadataServiceClient.listContextsCallable().call(request);
@@ -2792,6 +2798,148 @@ public final AddContextChildrenResponse addContextChildren(AddContextChildrenReq
2792
2798
return stub .addContextChildrenCallable ();
2793
2799
}
2794
2800
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
+
2795
2943
// AUTO-GENERATED DOCUMENTATION AND METHOD.
2796
2944
/**
2797
2945
* Retrieves Artifacts and Executions within the specified Context, connected by Event edges and
@@ -3271,6 +3419,7 @@ public final ListExecutionsPagedResponse listExecutions(String parent) {
3271
3419
* .setPageSize(883849137)
3272
3420
* .setPageToken("pageToken873572522")
3273
3421
* .setFilter("filter-1274492040")
3422
+ * .setOrderBy("orderBy-1207110587")
3274
3423
* .build();
3275
3424
* for (Execution element : metadataServiceClient.listExecutions(request).iterateAll()) {
3276
3425
* // doThingsWith(element);
@@ -3305,6 +3454,7 @@ public final ListExecutionsPagedResponse listExecutions(ListExecutionsRequest re
3305
3454
* .setPageSize(883849137)
3306
3455
* .setPageToken("pageToken873572522")
3307
3456
* .setFilter("filter-1274492040")
3457
+ * .setOrderBy("orderBy-1207110587")
3308
3458
* .build();
3309
3459
* ApiFuture<Execution> future =
3310
3460
* metadataServiceClient.listExecutionsPagedCallable().futureCall(request);
@@ -3340,6 +3490,7 @@ public final ListExecutionsPagedResponse listExecutions(ListExecutionsRequest re
3340
3490
* .setPageSize(883849137)
3341
3491
* .setPageToken("pageToken873572522")
3342
3492
* .setFilter("filter-1274492040")
3493
+ * .setOrderBy("orderBy-1207110587")
3343
3494
* .build();
3344
3495
* while (true) {
3345
3496
* ListExecutionsResponse response =
0 commit comments