@@ -909,6 +909,166 @@ public final UnaryCallable<UpdateModelRequest, Model> updateModelCallable() {
909
909
return stub .updateModelCallable ();
910
910
}
911
911
912
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
913
+ /**
914
+ * Incrementally update the dataset used for an examples model.
915
+ *
916
+ * <p>Sample code:
917
+ *
918
+ * <pre>{@code
919
+ * // This snippet has been automatically generated and should be regarded as a code template only.
920
+ * // It will require modifications to work:
921
+ * // - It may require correct/in-range values for request initialization.
922
+ * // - It may require specifying regional endpoints when creating the service client as shown in
923
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
924
+ * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
925
+ * ModelName model = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]");
926
+ * UpdateExplanationDatasetResponse response =
927
+ * modelServiceClient.updateExplanationDatasetAsync(model).get();
928
+ * }
929
+ * }</pre>
930
+ *
931
+ * @param model Required. The resource name of the Model to update. Format:
932
+ * `projects/{project}/locations/{location}/models/{model}`
933
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
934
+ */
935
+ public final OperationFuture <
936
+ UpdateExplanationDatasetResponse , UpdateExplanationDatasetOperationMetadata >
937
+ updateExplanationDatasetAsync (ModelName model ) {
938
+ UpdateExplanationDatasetRequest request =
939
+ UpdateExplanationDatasetRequest .newBuilder ()
940
+ .setModel (model == null ? null : model .toString ())
941
+ .build ();
942
+ return updateExplanationDatasetAsync (request );
943
+ }
944
+
945
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
946
+ /**
947
+ * Incrementally update the dataset used for an examples model.
948
+ *
949
+ * <p>Sample code:
950
+ *
951
+ * <pre>{@code
952
+ * // This snippet has been automatically generated and should be regarded as a code template only.
953
+ * // It will require modifications to work:
954
+ * // - It may require correct/in-range values for request initialization.
955
+ * // - It may require specifying regional endpoints when creating the service client as shown in
956
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
957
+ * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
958
+ * String model = ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString();
959
+ * UpdateExplanationDatasetResponse response =
960
+ * modelServiceClient.updateExplanationDatasetAsync(model).get();
961
+ * }
962
+ * }</pre>
963
+ *
964
+ * @param model Required. The resource name of the Model to update. Format:
965
+ * `projects/{project}/locations/{location}/models/{model}`
966
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
967
+ */
968
+ public final OperationFuture <
969
+ UpdateExplanationDatasetResponse , UpdateExplanationDatasetOperationMetadata >
970
+ updateExplanationDatasetAsync (String model ) {
971
+ UpdateExplanationDatasetRequest request =
972
+ UpdateExplanationDatasetRequest .newBuilder ().setModel (model ).build ();
973
+ return updateExplanationDatasetAsync (request );
974
+ }
975
+
976
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
977
+ /**
978
+ * Incrementally update the dataset used for an examples model.
979
+ *
980
+ * <p>Sample code:
981
+ *
982
+ * <pre>{@code
983
+ * // This snippet has been automatically generated and should be regarded as a code template only.
984
+ * // It will require modifications to work:
985
+ * // - It may require correct/in-range values for request initialization.
986
+ * // - It may require specifying regional endpoints when creating the service client as shown in
987
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
988
+ * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
989
+ * UpdateExplanationDatasetRequest request =
990
+ * UpdateExplanationDatasetRequest.newBuilder()
991
+ * .setModel(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString())
992
+ * .setExamples(Examples.newBuilder().build())
993
+ * .build();
994
+ * UpdateExplanationDatasetResponse response =
995
+ * modelServiceClient.updateExplanationDatasetAsync(request).get();
996
+ * }
997
+ * }</pre>
998
+ *
999
+ * @param request The request object containing all of the parameters for the API call.
1000
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
1001
+ */
1002
+ public final OperationFuture <
1003
+ UpdateExplanationDatasetResponse , UpdateExplanationDatasetOperationMetadata >
1004
+ updateExplanationDatasetAsync (UpdateExplanationDatasetRequest request ) {
1005
+ return updateExplanationDatasetOperationCallable ().futureCall (request );
1006
+ }
1007
+
1008
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
1009
+ /**
1010
+ * Incrementally update the dataset used for an examples model.
1011
+ *
1012
+ * <p>Sample code:
1013
+ *
1014
+ * <pre>{@code
1015
+ * // This snippet has been automatically generated and should be regarded as a code template only.
1016
+ * // It will require modifications to work:
1017
+ * // - It may require correct/in-range values for request initialization.
1018
+ * // - It may require specifying regional endpoints when creating the service client as shown in
1019
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
1020
+ * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
1021
+ * UpdateExplanationDatasetRequest request =
1022
+ * UpdateExplanationDatasetRequest.newBuilder()
1023
+ * .setModel(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString())
1024
+ * .setExamples(Examples.newBuilder().build())
1025
+ * .build();
1026
+ * OperationFuture<UpdateExplanationDatasetResponse, UpdateExplanationDatasetOperationMetadata>
1027
+ * future =
1028
+ * modelServiceClient.updateExplanationDatasetOperationCallable().futureCall(request);
1029
+ * // Do something.
1030
+ * UpdateExplanationDatasetResponse response = future.get();
1031
+ * }
1032
+ * }</pre>
1033
+ */
1034
+ public final OperationCallable <
1035
+ UpdateExplanationDatasetRequest ,
1036
+ UpdateExplanationDatasetResponse ,
1037
+ UpdateExplanationDatasetOperationMetadata >
1038
+ updateExplanationDatasetOperationCallable () {
1039
+ return stub .updateExplanationDatasetOperationCallable ();
1040
+ }
1041
+
1042
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
1043
+ /**
1044
+ * Incrementally update the dataset used for an examples model.
1045
+ *
1046
+ * <p>Sample code:
1047
+ *
1048
+ * <pre>{@code
1049
+ * // This snippet has been automatically generated and should be regarded as a code template only.
1050
+ * // It will require modifications to work:
1051
+ * // - It may require correct/in-range values for request initialization.
1052
+ * // - It may require specifying regional endpoints when creating the service client as shown in
1053
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
1054
+ * try (ModelServiceClient modelServiceClient = ModelServiceClient.create()) {
1055
+ * UpdateExplanationDatasetRequest request =
1056
+ * UpdateExplanationDatasetRequest.newBuilder()
1057
+ * .setModel(ModelName.of("[PROJECT]", "[LOCATION]", "[MODEL]").toString())
1058
+ * .setExamples(Examples.newBuilder().build())
1059
+ * .build();
1060
+ * ApiFuture<Operation> future =
1061
+ * modelServiceClient.updateExplanationDatasetCallable().futureCall(request);
1062
+ * // Do something.
1063
+ * Operation response = future.get();
1064
+ * }
1065
+ * }</pre>
1066
+ */
1067
+ public final UnaryCallable <UpdateExplanationDatasetRequest , Operation >
1068
+ updateExplanationDatasetCallable () {
1069
+ return stub .updateExplanationDatasetCallable ();
1070
+ }
1071
+
912
1072
// AUTO-GENERATED DOCUMENTATION AND METHOD.
913
1073
/**
914
1074
* Deletes a Model.
0 commit comments