diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceClient.java index ace59387bd5d..d8dd83499456 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceClient.java @@ -266,6 +266,7 @@ public final OperationFuture * .setParentModel("parentModel998431903") * .setModelId("modelId1226956324") * .setModel(Model.newBuilder().build()) + * .setServiceAccount("serviceAccount1079137720") * .build(); * UploadModelResponse response = modelServiceClient.uploadModelAsync(request).get(); * } @@ -298,6 +299,7 @@ public final OperationFuture * .setParentModel("parentModel998431903") * .setModelId("modelId1226956324") * .setModel(Model.newBuilder().build()) + * .setServiceAccount("serviceAccount1079137720") * .build(); * OperationFuture future = * modelServiceClient.uploadModelOperationCallable().futureCall(request); @@ -331,6 +333,7 @@ public final OperationFuture * .setParentModel("parentModel998431903") * .setModelId("modelId1226956324") * .setModel(Model.newBuilder().build()) + * .setServiceAccount("serviceAccount1079137720") * .build(); * ApiFuture future = modelServiceClient.uploadModelCallable().futureCall(request); * // Do something. diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelServiceClient.java index 7b98970f05ac..245d0b204463 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelServiceClient.java @@ -268,6 +268,7 @@ public final OperationFuture * .setParentModel("parentModel998431903") * .setModelId("modelId1226956324") * .setModel(Model.newBuilder().build()) + * .setServiceAccount("serviceAccount1079137720") * .build(); * UploadModelResponse response = modelServiceClient.uploadModelAsync(request).get(); * } @@ -300,6 +301,7 @@ public final OperationFuture * .setParentModel("parentModel998431903") * .setModelId("modelId1226956324") * .setModel(Model.newBuilder().build()) + * .setServiceAccount("serviceAccount1079137720") * .build(); * OperationFuture future = * modelServiceClient.uploadModelOperationCallable().futureCall(request); @@ -333,6 +335,7 @@ public final OperationFuture * .setParentModel("parentModel998431903") * .setModelId("modelId1226956324") * .setModel(Model.newBuilder().build()) + * .setServiceAccount("serviceAccount1079137720") * .build(); * ApiFuture future = modelServiceClient.uploadModelCallable().futureCall(request); * // Do something. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceProto.java index 5df5bb9a612a..1adefcd456fb 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ModelServiceProto.java @@ -152,182 +152,183 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "tion_slice.proto\032*google/cloud/aiplatfor" + "m/v1/operation.proto\032#google/longrunning" + "/operations.proto\032 google/protobuf/field" - + "_mask.proto\"\270\001\n\022UploadModelRequest\0229\n\006pa" + + "_mask.proto\"\326\001\n\022UploadModelRequest\0229\n\006pa" + "rent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapis" + ".com/Location\022\031\n\014parent_model\030\004 \001(\tB\003\340A\001" + "\022\025\n\010model_id\030\005 \001(\tB\003\340A\001\0225\n\005model\030\002 \001(\0132!" - + ".google.cloud.aiplatform.v1.ModelB\003\340A\002\"n" - + "\n\034UploadModelOperationMetadata\022N\n\020generi" - + "c_metadata\030\001 \001(\01324.google.cloud.aiplatfo" - + "rm.v1.GenericOperationMetadata\"i\n\023Upload" - + "ModelResponse\0223\n\005model\030\001 \001(\tB$\372A!\n\037aipla" - + "tform.googleapis.com/Model\022\035\n\020model_vers" - + "ion_id\030\002 \001(\tB\003\340A\003\"H\n\017GetModelRequest\0225\n\004" - + "name\030\001 \001(\tB\'\340A\002\372A!\n\037aiplatform.googleapi" - + "s.com/Model\"\306\001\n\021ListModelsRequest\0229\n\006par" - + "ent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapis." - + "com/Location\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_siz" - + "e\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\022-\n\tread_mask" - + "\030\005 \001(\0132\032.google.protobuf.FieldMask\022\020\n\010or" - + "der_by\030\006 \001(\t\"`\n\022ListModelsResponse\0221\n\006mo" - + "dels\030\001 \003(\0132!.google.cloud.aiplatform.v1." - + "Model\022\027\n\017next_page_token\030\002 \001(\t\"\267\001\n\030ListM" - + "odelVersionsRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A" - + "!\n\037aiplatform.googleapis.com/Model\022\021\n\tpa" - + "ge_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006fil" - + "ter\030\004 \001(\t\022-\n\tread_mask\030\005 \001(\0132\032.google.pr" - + "otobuf.FieldMask\"g\n\031ListModelVersionsRes" - + "ponse\0221\n\006models\030\001 \003(\0132!.google.cloud.aip" - + "latform.v1.Model\022\027\n\017next_page_token\030\002 \001(" - + "\t\"\201\001\n\022UpdateModelRequest\0225\n\005model\030\001 \001(\0132" - + "!.google.cloud.aiplatform.v1.ModelB\003\340A\002\022" - + "4\n\013update_mask\030\002 \001(\0132\032.google.protobuf.F" - + "ieldMaskB\003\340A\002\"K\n\022DeleteModelRequest\0225\n\004n" - + "ame\030\001 \001(\tB\'\340A\002\372A!\n\037aiplatform.googleapis" - + ".com/Model\"R\n\031DeleteModelVersionRequest\022" - + "5\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037aiplatform.google" - + "apis.com/Model\"q\n\032MergeVersionAliasesReq" - + "uest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037aiplatform.g" - + "oogleapis.com/Model\022\034\n\017version_aliases\030\002" - + " \003(\tB\003\340A\002\"\356\002\n\022ExportModelRequest\0225\n\004name" - + "\030\001 \001(\tB\'\340A\002\372A!\n\037aiplatform.googleapis.co" - + "m/Model\022W\n\routput_config\030\002 \001(\0132;.google." - + "cloud.aiplatform.v1.ExportModelRequest.O" - + "utputConfigB\003\340A\002\032\307\001\n\014OutputConfig\022\030\n\020exp" - + "ort_format_id\030\001 \001(\t\022H\n\024artifact_destinat" - + "ion\030\003 \001(\0132*.google.cloud.aiplatform.v1.G" - + "csDestination\022S\n\021image_destination\030\004 \001(\013" - + "28.google.cloud.aiplatform.v1.ContainerR" - + "egistryDestination\"\234\002\n\034ExportModelOperat" - + "ionMetadata\022N\n\020generic_metadata\030\001 \001(\01324." - + "google.cloud.aiplatform.v1.GenericOperat" - + "ionMetadata\022]\n\013output_info\030\002 \001(\0132C.googl" - + "e.cloud.aiplatform.v1.ExportModelOperati" - + "onMetadata.OutputInfoB\003\340A\003\032M\n\nOutputInfo" - + "\022 \n\023artifact_output_uri\030\002 \001(\tB\003\340A\003\022\035\n\020im" - + "age_output_uri\030\003 \001(\tB\003\340A\003\"\025\n\023ExportModel" - + "Response\"\243\001\n\034ImportModelEvaluationReques" - + "t\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\n\037aiplatform.go" - + "ogleapis.com/Model\022J\n\020model_evaluation\030\002" - + " \001(\0132+.google.cloud.aiplatform.v1.ModelE" - + "valuationB\003\340A\002\"\304\001\n\'BatchImportModelEvalu" - + "ationSlicesRequest\022A\n\006parent\030\001 \001(\tB1\340A\002\372" - + "A+\n)aiplatform.googleapis.com/ModelEvalu" - + "ation\022V\n\027model_evaluation_slices\030\002 \003(\01320" + + ".google.cloud.aiplatform.v1.ModelB\003\340A\002\022\034" + + "\n\017service_account\030\006 \001(\tB\003\340A\001\"n\n\034UploadMo" + + "delOperationMetadata\022N\n\020generic_metadata" + + "\030\001 \001(\01324.google.cloud.aiplatform.v1.Gene" + + "ricOperationMetadata\"i\n\023UploadModelRespo" + + "nse\0223\n\005model\030\001 \001(\tB$\372A!\n\037aiplatform.goog" + + "leapis.com/Model\022\035\n\020model_version_id\030\002 \001" + + "(\tB\003\340A\003\"H\n\017GetModelRequest\0225\n\004name\030\001 \001(\t" + + "B\'\340A\002\372A!\n\037aiplatform.googleapis.com/Mode" + + "l\"\306\001\n\021ListModelsRequest\0229\n\006parent\030\001 \001(\tB" + + ")\340A\002\372A#\n!locations.googleapis.com/Locati" + + "on\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022\n" + + "\npage_token\030\004 \001(\t\022-\n\tread_mask\030\005 \001(\0132\032.g" + + "oogle.protobuf.FieldMask\022\020\n\010order_by\030\006 \001" + + "(\t\"`\n\022ListModelsResponse\0221\n\006models\030\001 \003(\013" + + "2!.google.cloud.aiplatform.v1.Model\022\027\n\017n" + + "ext_page_token\030\002 \001(\t\"\267\001\n\030ListModelVersio" + + "nsRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037aiplatf" + + "orm.googleapis.com/Model\022\021\n\tpage_size\030\002 " + + "\001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022" + + "-\n\tread_mask\030\005 \001(\0132\032.google.protobuf.Fie" + + "ldMask\"g\n\031ListModelVersionsResponse\0221\n\006m" + + "odels\030\001 \003(\0132!.google.cloud.aiplatform.v1" + + ".Model\022\027\n\017next_page_token\030\002 \001(\t\"\201\001\n\022Upda" + + "teModelRequest\0225\n\005model\030\001 \001(\0132!.google.c" + + "loud.aiplatform.v1.ModelB\003\340A\002\0224\n\013update_" + + "mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003" + + "\340A\002\"K\n\022DeleteModelRequest\0225\n\004name\030\001 \001(\tB" + + "\'\340A\002\372A!\n\037aiplatform.googleapis.com/Model" + + "\"R\n\031DeleteModelVersionRequest\0225\n\004name\030\001 " + + "\001(\tB\'\340A\002\372A!\n\037aiplatform.googleapis.com/M" + + "odel\"q\n\032MergeVersionAliasesRequest\0225\n\004na" + + "me\030\001 \001(\tB\'\340A\002\372A!\n\037aiplatform.googleapis." + + "com/Model\022\034\n\017version_aliases\030\002 \003(\tB\003\340A\002\"" + + "\356\002\n\022ExportModelRequest\0225\n\004name\030\001 \001(\tB\'\340A" + + "\002\372A!\n\037aiplatform.googleapis.com/Model\022W\n" + + "\routput_config\030\002 \001(\0132;.google.cloud.aipl" + + "atform.v1.ExportModelRequest.OutputConfi" + + "gB\003\340A\002\032\307\001\n\014OutputConfig\022\030\n\020export_format" + + "_id\030\001 \001(\t\022H\n\024artifact_destination\030\003 \001(\0132" + + "*.google.cloud.aiplatform.v1.GcsDestinat" + + "ion\022S\n\021image_destination\030\004 \001(\01328.google." + + "cloud.aiplatform.v1.ContainerRegistryDes" + + "tination\"\234\002\n\034ExportModelOperationMetadat" + + "a\022N\n\020generic_metadata\030\001 \001(\01324.google.clo" + + "ud.aiplatform.v1.GenericOperationMetadat" + + "a\022]\n\013output_info\030\002 \001(\0132C.google.cloud.ai" + + "platform.v1.ExportModelOperationMetadata" + + ".OutputInfoB\003\340A\003\032M\n\nOutputInfo\022 \n\023artifa" + + "ct_output_uri\030\002 \001(\tB\003\340A\003\022\035\n\020image_output" + + "_uri\030\003 \001(\tB\003\340A\003\"\025\n\023ExportModelResponse\"\243" + + "\001\n\034ImportModelEvaluationRequest\0227\n\006paren" + + "t\030\001 \001(\tB\'\340A\002\372A!\n\037aiplatform.googleapis.c" + + "om/Model\022J\n\020model_evaluation\030\002 \001(\0132+.goo" + + "gle.cloud.aiplatform.v1.ModelEvaluationB" + + "\003\340A\002\"\304\001\n\'BatchImportModelEvaluationSlice" + + "sRequest\022A\n\006parent\030\001 \001(\tB1\340A\002\372A+\n)aiplat" + + "form.googleapis.com/ModelEvaluation\022V\n\027m" + + "odel_evaluation_slices\030\002 \003(\01320.google.cl" + + "oud.aiplatform.v1.ModelEvaluationSliceB\003" + + "\340A\002\"Y\n(BatchImportModelEvaluationSlicesR" + + "esponse\022-\n imported_model_evaluation_sli" + + "ces\030\001 \003(\tB\003\340A\003\"\\\n\031GetModelEvaluationRequ" + + "est\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)aiplatform.go" + + "ogleapis.com/ModelEvaluation\"\274\001\n\033ListMod" + + "elEvaluationsRequest\0227\n\006parent\030\001 \001(\tB\'\340A" + + "\002\372A!\n\037aiplatform.googleapis.com/Model\022\016\n" + + "\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage" + + "_token\030\004 \001(\t\022-\n\tread_mask\030\005 \001(\0132\032.google" + + ".protobuf.FieldMask\"\177\n\034ListModelEvaluati" + + "onsResponse\022F\n\021model_evaluations\030\001 \003(\0132+" + ".google.cloud.aiplatform.v1.ModelEvaluat" - + "ionSliceB\003\340A\002\"Y\n(BatchImportModelEvaluat" - + "ionSlicesResponse\022-\n imported_model_eval" - + "uation_slices\030\001 \003(\tB\003\340A\003\"\\\n\031GetModelEval" - + "uationRequest\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)aip" - + "latform.googleapis.com/ModelEvaluation\"\274" - + "\001\n\033ListModelEvaluationsRequest\0227\n\006parent" - + "\030\001 \001(\tB\'\340A\002\372A!\n\037aiplatform.googleapis.co" - + "m/Model\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001" - + "(\005\022\022\n\npage_token\030\004 \001(\t\022-\n\tread_mask\030\005 \001(" - + "\0132\032.google.protobuf.FieldMask\"\177\n\034ListMod" - + "elEvaluationsResponse\022F\n\021model_evaluatio" - + "ns\030\001 \003(\0132+.google.cloud.aiplatform.v1.Mo" - + "delEvaluation\022\027\n\017next_page_token\030\002 \001(\t\"f" - + "\n\036GetModelEvaluationSliceRequest\022D\n\004name" - + "\030\001 \001(\tB6\340A\002\372A0\n.aiplatform.googleapis.co" - + "m/ModelEvaluationSlice\"\313\001\n ListModelEval" - + "uationSlicesRequest\022A\n\006parent\030\001 \001(\tB1\340A\002" - + "\372A+\n)aiplatform.googleapis.com/ModelEval" - + "uation\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(" - + "\005\022\022\n\npage_token\030\004 \001(\t\022-\n\tread_mask\030\005 \001(\013" - + "2\032.google.protobuf.FieldMask\"\217\001\n!ListMod" - + "elEvaluationSlicesResponse\022Q\n\027model_eval" - + "uation_slices\030\001 \003(\01320.google.cloud.aipla" - + "tform.v1.ModelEvaluationSlice\022\027\n\017next_pa" - + "ge_token\030\002 \001(\t2\362\031\n\014ModelService\022\340\001\n\013Uplo" - + "adModel\022..google.cloud.aiplatform.v1.Upl" - + "oadModelRequest\032\035.google.longrunning.Ope" - + "ration\"\201\001\202\323\344\223\0026\"1/v1/{parent=projects/*/" - + "locations/*}/models:upload:\001*\332A\014parent,m" - + "odel\312A3\n\023UploadModelResponse\022\034UploadMode" - + "lOperationMetadata\022\225\001\n\010GetModel\022+.google" - + ".cloud.aiplatform.v1.GetModelRequest\032!.g" - + "oogle.cloud.aiplatform.v1.Model\"9\202\323\344\223\002,\022" - + "*/v1/{name=projects/*/locations/*/models" - + "/*}\332A\004name\022\250\001\n\nListModels\022-.google.cloud" - + ".aiplatform.v1.ListModelsRequest\032..googl" - + "e.cloud.aiplatform.v1.ListModelsResponse" - + "\";\202\323\344\223\002,\022*/v1/{parent=projects/*/locatio" - + "ns/*}/models\332A\006parent\022\310\001\n\021ListModelVersi" - + "ons\0224.google.cloud.aiplatform.v1.ListMod" - + "elVersionsRequest\0325.google.cloud.aiplatf" - + "orm.v1.ListModelVersionsResponse\"F\202\323\344\223\0029" - + "\0227/v1/{name=projects/*/locations/*/model" - + "s/*}:listVersions\332A\004name\022\265\001\n\013UpdateModel" - + "\022..google.cloud.aiplatform.v1.UpdateMode" - + "lRequest\032!.google.cloud.aiplatform.v1.Mo" - + "del\"S\202\323\344\223\002920/v1/{model.name=projects/*/" - + "locations/*/models/*}:\005model\332A\021model,upd" - + "ate_mask\022\312\001\n\013DeleteModel\022..google.cloud." - + "aiplatform.v1.DeleteModelRequest\032\035.googl" - + "e.longrunning.Operation\"l\202\323\344\223\002,**/v1/{na" - + "me=projects/*/locations/*/models/*}\332A\004na" - + "me\312A0\n\025google.protobuf.Empty\022\027DeleteOper" - + "ationMetadata\022\346\001\n\022DeleteModelVersion\0225.g" - + "oogle.cloud.aiplatform.v1.DeleteModelVer" - + "sionRequest\032\035.google.longrunning.Operati" - + "on\"z\202\323\344\223\002:*8/v1/{name=projects/*/locatio" - + "ns/*/models/*}:deleteVersion\332A\004name\312A0\n\025" - + "google.protobuf.Empty\022\027DeleteOperationMe" - + "tadata\022\322\001\n\023MergeVersionAliases\0226.google." - + "cloud.aiplatform.v1.MergeVersionAliasesR" - + "equest\032!.google.cloud.aiplatform.v1.Mode" - + "l\"`\202\323\344\223\002C\">/v1/{name=projects/*/location" - + "s/*/models/*}:mergeVersionAliases:\001*\332A\024n" - + "ame,version_aliases\022\346\001\n\013ExportModel\022..go" - + "ogle.cloud.aiplatform.v1.ExportModelRequ" - + "est\032\035.google.longrunning.Operation\"\207\001\202\323\344" - + "\223\0026\"1/v1/{name=projects/*/locations/*/mo" - + "dels/*}:export:\001*\332A\022name,output_config\312A" - + "3\n\023ExportModelResponse\022\034ExportModelOpera" - + "tionMetadata\022\344\001\n\025ImportModelEvaluation\0228" - + ".google.cloud.aiplatform.v1.ImportModelE" - + "valuationRequest\032+.google.cloud.aiplatfo" - + "rm.v1.ModelEvaluation\"d\202\323\344\223\002D\"?/v1/{pare" - + "nt=projects/*/locations/*/models/*}/eval" - + "uations:import:\001*\332A\027parent,model_evaluat" - + "ion\022\250\002\n BatchImportModelEvaluationSlices" - + "\022C.google.cloud.aiplatform.v1.BatchImpor" - + "tModelEvaluationSlicesRequest\032D.google.c" - + "loud.aiplatform.v1.BatchImportModelEvalu" - + "ationSlicesResponse\"y\202\323\344\223\002R\"M/v1/{parent" - + "=projects/*/locations/*/models/*/evaluat" - + "ions/*}/slices:batchImport:\001*\332A\036parent,m" - + "odel_evaluation_slices\022\301\001\n\022GetModelEvalu" - + "ation\0225.google.cloud.aiplatform.v1.GetMo" - + "delEvaluationRequest\032+.google.cloud.aipl" - + "atform.v1.ModelEvaluation\"G\202\323\344\223\002:\0228/v1/{" - + "name=projects/*/locations/*/models/*/eva" - + "luations/*}\332A\004name\022\324\001\n\024ListModelEvaluati" - + "ons\0227.google.cloud.aiplatform.v1.ListMod" - + "elEvaluationsRequest\0328.google.cloud.aipl" - + "atform.v1.ListModelEvaluationsResponse\"I" - + "\202\323\344\223\002:\0228/v1/{parent=projects/*/locations" - + "/*/models/*}/evaluations\332A\006parent\022\331\001\n\027Ge" - + "tModelEvaluationSlice\022:.google.cloud.aip" - + "latform.v1.GetModelEvaluationSliceReques" - + "t\0320.google.cloud.aiplatform.v1.ModelEval" - + "uationSlice\"P\202\323\344\223\002C\022A/v1/{name=projects/" - + "*/locations/*/models/*/evaluations/*/sli" - + "ces/*}\332A\004name\022\354\001\n\031ListModelEvaluationSli" - + "ces\022<.google.cloud.aiplatform.v1.ListMod" - + "elEvaluationSlicesRequest\032=.google.cloud" - + ".aiplatform.v1.ListModelEvaluationSlices" - + "Response\"R\202\323\344\223\002C\022A/v1/{parent=projects/*" - + "/locations/*/models/*/evaluations/*}/sli" - + "ces\332A\006parent\032M\312A\031aiplatform.googleapis.c" - + "om\322A.https://www.googleapis.com/auth/clo" - + "ud-platformB\325\001\n\036com.google.cloud.aiplatf" - + "orm.v1B\021ModelServiceProtoP\001ZDgoogle.gola" - + "ng.org/genproto/googleapis/cloud/aiplatf" - + "orm/v1;aiplatform\252\002\032Google.Cloud.AIPlatf" - + "orm.V1\312\002\032Google\\Cloud\\AIPlatform\\V1\352\002\035Go" - + "ogle::Cloud::AIPlatform::V1b\006proto3" + + "ion\022\027\n\017next_page_token\030\002 \001(\t\"f\n\036GetModel" + + "EvaluationSliceRequest\022D\n\004name\030\001 \001(\tB6\340A" + + "\002\372A0\n.aiplatform.googleapis.com/ModelEva" + + "luationSlice\"\313\001\n ListModelEvaluationSlic" + + "esRequest\022A\n\006parent\030\001 \001(\tB1\340A\002\372A+\n)aipla" + + "tform.googleapis.com/ModelEvaluation\022\016\n\006" + + "filter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_" + + "token\030\004 \001(\t\022-\n\tread_mask\030\005 \001(\0132\032.google." + + "protobuf.FieldMask\"\217\001\n!ListModelEvaluati" + + "onSlicesResponse\022Q\n\027model_evaluation_sli" + + "ces\030\001 \003(\01320.google.cloud.aiplatform.v1.M" + + "odelEvaluationSlice\022\027\n\017next_page_token\030\002" + + " \001(\t2\362\031\n\014ModelService\022\340\001\n\013UploadModel\022.." + + "google.cloud.aiplatform.v1.UploadModelRe" + + "quest\032\035.google.longrunning.Operation\"\201\001\202" + + "\323\344\223\0026\"1/v1/{parent=projects/*/locations/" + + "*}/models:upload:\001*\332A\014parent,model\312A3\n\023U" + + "ploadModelResponse\022\034UploadModelOperation" + + "Metadata\022\225\001\n\010GetModel\022+.google.cloud.aip" + + "latform.v1.GetModelRequest\032!.google.clou" + + "d.aiplatform.v1.Model\"9\202\323\344\223\002,\022*/v1/{name" + + "=projects/*/locations/*/models/*}\332A\004name" + + "\022\250\001\n\nListModels\022-.google.cloud.aiplatfor" + + "m.v1.ListModelsRequest\032..google.cloud.ai" + + "platform.v1.ListModelsResponse\";\202\323\344\223\002,\022*" + + "/v1/{parent=projects/*/locations/*}/mode" + + "ls\332A\006parent\022\310\001\n\021ListModelVersions\0224.goog" + + "le.cloud.aiplatform.v1.ListModelVersions" + + "Request\0325.google.cloud.aiplatform.v1.Lis" + + "tModelVersionsResponse\"F\202\323\344\223\0029\0227/v1/{nam" + + "e=projects/*/locations/*/models/*}:listV" + + "ersions\332A\004name\022\265\001\n\013UpdateModel\022..google." + + "cloud.aiplatform.v1.UpdateModelRequest\032!" + + ".google.cloud.aiplatform.v1.Model\"S\202\323\344\223\002" + + "920/v1/{model.name=projects/*/locations/" + + "*/models/*}:\005model\332A\021model,update_mask\022\312" + + "\001\n\013DeleteModel\022..google.cloud.aiplatform" + + ".v1.DeleteModelRequest\032\035.google.longrunn" + + "ing.Operation\"l\202\323\344\223\002,**/v1/{name=project" + + "s/*/locations/*/models/*}\332A\004name\312A0\n\025goo" + + "gle.protobuf.Empty\022\027DeleteOperationMetad" + + "ata\022\346\001\n\022DeleteModelVersion\0225.google.clou" + + "d.aiplatform.v1.DeleteModelVersionReques" + + "t\032\035.google.longrunning.Operation\"z\202\323\344\223\002:" + + "*8/v1/{name=projects/*/locations/*/model" + + "s/*}:deleteVersion\332A\004name\312A0\n\025google.pro" + + "tobuf.Empty\022\027DeleteOperationMetadata\022\322\001\n" + + "\023MergeVersionAliases\0226.google.cloud.aipl" + + "atform.v1.MergeVersionAliasesRequest\032!.g" + + "oogle.cloud.aiplatform.v1.Model\"`\202\323\344\223\002C\"" + + ">/v1/{name=projects/*/locations/*/models" + + "/*}:mergeVersionAliases:\001*\332A\024name,versio" + + "n_aliases\022\346\001\n\013ExportModel\022..google.cloud" + + ".aiplatform.v1.ExportModelRequest\032\035.goog" + + "le.longrunning.Operation\"\207\001\202\323\344\223\0026\"1/v1/{" + + "name=projects/*/locations/*/models/*}:ex" + + "port:\001*\332A\022name,output_config\312A3\n\023ExportM" + + "odelResponse\022\034ExportModelOperationMetada" + + "ta\022\344\001\n\025ImportModelEvaluation\0228.google.cl" + + "oud.aiplatform.v1.ImportModelEvaluationR" + + "equest\032+.google.cloud.aiplatform.v1.Mode" + + "lEvaluation\"d\202\323\344\223\002D\"?/v1/{parent=project" + + "s/*/locations/*/models/*}/evaluations:im" + + "port:\001*\332A\027parent,model_evaluation\022\250\002\n Ba" + + "tchImportModelEvaluationSlices\022C.google." + + "cloud.aiplatform.v1.BatchImportModelEval" + + "uationSlicesRequest\032D.google.cloud.aipla" + + "tform.v1.BatchImportModelEvaluationSlice" + + "sResponse\"y\202\323\344\223\002R\"M/v1/{parent=projects/" + + "*/locations/*/models/*/evaluations/*}/sl" + + "ices:batchImport:\001*\332A\036parent,model_evalu" + + "ation_slices\022\301\001\n\022GetModelEvaluation\0225.go" + + "ogle.cloud.aiplatform.v1.GetModelEvaluat" + + "ionRequest\032+.google.cloud.aiplatform.v1." + + "ModelEvaluation\"G\202\323\344\223\002:\0228/v1/{name=proje" + + "cts/*/locations/*/models/*/evaluations/*" + + "}\332A\004name\022\324\001\n\024ListModelEvaluations\0227.goog" + + "le.cloud.aiplatform.v1.ListModelEvaluati" + + "onsRequest\0328.google.cloud.aiplatform.v1." + + "ListModelEvaluationsResponse\"I\202\323\344\223\002:\0228/v" + + "1/{parent=projects/*/locations/*/models/" + + "*}/evaluations\332A\006parent\022\331\001\n\027GetModelEval" + + "uationSlice\022:.google.cloud.aiplatform.v1" + + ".GetModelEvaluationSliceRequest\0320.google" + + ".cloud.aiplatform.v1.ModelEvaluationSlic" + + "e\"P\202\323\344\223\002C\022A/v1/{name=projects/*/location" + + "s/*/models/*/evaluations/*/slices/*}\332A\004n" + + "ame\022\354\001\n\031ListModelEvaluationSlices\022<.goog" + + "le.cloud.aiplatform.v1.ListModelEvaluati" + + "onSlicesRequest\032=.google.cloud.aiplatfor" + + "m.v1.ListModelEvaluationSlicesResponse\"R" + + "\202\323\344\223\002C\022A/v1/{parent=projects/*/locations" + + "/*/models/*/evaluations/*}/slices\332A\006pare" + + "nt\032M\312A\031aiplatform.googleapis.com\322A.https" + + "://www.googleapis.com/auth/cloud-platfor" + + "mB\325\001\n\036com.google.cloud.aiplatform.v1B\021Mo" + + "delServiceProtoP\001ZDgoogle.golang.org/gen" + + "proto/googleapis/cloud/aiplatform/v1;aip" + + "latform\252\002\032Google.Cloud.AIPlatform.V1\312\002\032G" + + "oogle\\Cloud\\AIPlatform\\V1\352\002\035Google::Clou" + + "d::AIPlatform::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -351,7 +352,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_UploadModelRequest_descriptor, new java.lang.String[] { - "Parent", "ParentModel", "ModelId", "Model", + "Parent", "ParentModel", "ModelId", "Model", "ServiceAccount", }); internal_static_google_cloud_aiplatform_v1_UploadModelOperationMetadata_descriptor = getDescriptor().getMessageTypes().get(1); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UploadModelRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UploadModelRequest.java index 7328f20b7be5..962664ea0dc7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UploadModelRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UploadModelRequest.java @@ -41,6 +41,7 @@ private UploadModelRequest() { parent_ = ""; parentModel_ = ""; modelId_ = ""; + serviceAccount_ = ""; } @java.lang.Override @@ -279,6 +280,67 @@ public com.google.cloud.aiplatform.v1.ModelOrBuilder getModelOrBuilder() { return getModel(); } + public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 6; + private volatile java.lang.Object serviceAccount_; + /** + * + * + *
+   * Optional. The user-provided custom service account to use to do the model
+   * upload. If empty, [Vertex AI Service
+   * Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents)
+   * will be used. Users uploading the Model must have the
+   * `iam.serviceAccounts.actAs` permission on this service account. Also, this
+   * account must belong to the project specified in the `parent` field and have
+   * all necessary read permissions.
+   * 
+ * + * string service_account = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The serviceAccount. + */ + @java.lang.Override + public java.lang.String getServiceAccount() { + java.lang.Object ref = serviceAccount_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAccount_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The user-provided custom service account to use to do the model
+   * upload. If empty, [Vertex AI Service
+   * Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents)
+   * will be used. Users uploading the Model must have the
+   * `iam.serviceAccounts.actAs` permission on this service account. Also, this
+   * account must belong to the project specified in the `parent` field and have
+   * all necessary read permissions.
+   * 
+ * + * string service_account = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for serviceAccount. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServiceAccountBytes() { + java.lang.Object ref = serviceAccount_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -305,6 +367,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, modelId_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, serviceAccount_); + } getUnknownFields().writeTo(output); } @@ -326,6 +391,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, modelId_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, serviceAccount_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -349,6 +417,7 @@ public boolean equals(final java.lang.Object obj) { if (hasModel()) { if (!getModel().equals(other.getModel())) return false; } + if (!getServiceAccount().equals(other.getServiceAccount())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -370,6 +439,8 @@ public int hashCode() { hash = (37 * hash) + MODEL_FIELD_NUMBER; hash = (53 * hash) + getModel().hashCode(); } + hash = (37 * hash) + SERVICE_ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getServiceAccount().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -520,6 +591,8 @@ public Builder clear() { model_ = null; modelBuilder_ = null; } + serviceAccount_ = ""; + return this; } @@ -555,6 +628,7 @@ public com.google.cloud.aiplatform.v1.UploadModelRequest buildPartial() { } else { result.model_ = modelBuilder_.build(); } + result.serviceAccount_ = serviceAccount_; onBuilt(); return result; } @@ -620,6 +694,10 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.UploadModelRequest other if (other.hasModel()) { mergeModel(other.getModel()); } + if (!other.getServiceAccount().isEmpty()) { + serviceAccount_ = other.serviceAccount_; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -670,6 +748,12 @@ public Builder mergeFrom( break; } // case 42 + case 50: + { + serviceAccount_ = input.readStringRequireUtf8(); + + break; + } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1230,6 +1314,142 @@ public com.google.cloud.aiplatform.v1.ModelOrBuilder getModelOrBuilder() { return modelBuilder_; } + private java.lang.Object serviceAccount_ = ""; + /** + * + * + *
+     * Optional. The user-provided custom service account to use to do the model
+     * upload. If empty, [Vertex AI Service
+     * Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents)
+     * will be used. Users uploading the Model must have the
+     * `iam.serviceAccounts.actAs` permission on this service account. Also, this
+     * account must belong to the project specified in the `parent` field and have
+     * all necessary read permissions.
+     * 
+ * + * string service_account = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The serviceAccount. + */ + public java.lang.String getServiceAccount() { + java.lang.Object ref = serviceAccount_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAccount_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The user-provided custom service account to use to do the model
+     * upload. If empty, [Vertex AI Service
+     * Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents)
+     * will be used. Users uploading the Model must have the
+     * `iam.serviceAccounts.actAs` permission on this service account. Also, this
+     * account must belong to the project specified in the `parent` field and have
+     * all necessary read permissions.
+     * 
+ * + * string service_account = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for serviceAccount. + */ + public com.google.protobuf.ByteString getServiceAccountBytes() { + java.lang.Object ref = serviceAccount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The user-provided custom service account to use to do the model
+     * upload. If empty, [Vertex AI Service
+     * Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents)
+     * will be used. Users uploading the Model must have the
+     * `iam.serviceAccounts.actAs` permission on this service account. Also, this
+     * account must belong to the project specified in the `parent` field and have
+     * all necessary read permissions.
+     * 
+ * + * string service_account = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The serviceAccount to set. + * @return This builder for chaining. + */ + public Builder setServiceAccount(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + serviceAccount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The user-provided custom service account to use to do the model
+     * upload. If empty, [Vertex AI Service
+     * Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents)
+     * will be used. Users uploading the Model must have the
+     * `iam.serviceAccounts.actAs` permission on this service account. Also, this
+     * account must belong to the project specified in the `parent` field and have
+     * all necessary read permissions.
+     * 
+ * + * string service_account = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearServiceAccount() { + + serviceAccount_ = getDefaultInstance().getServiceAccount(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The user-provided custom service account to use to do the model
+     * upload. If empty, [Vertex AI Service
+     * Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents)
+     * will be used. Users uploading the Model must have the
+     * `iam.serviceAccounts.actAs` permission on this service account. Also, this
+     * account must belong to the project specified in the `parent` field and have
+     * all necessary read permissions.
+     * 
+ * + * string service_account = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for serviceAccount to set. + * @return This builder for chaining. + */ + public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + serviceAccount_ = value; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UploadModelRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UploadModelRequestOrBuilder.java index 8d56f7c9dc3f..11cb3dd79be5 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UploadModelRequestOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/UploadModelRequestOrBuilder.java @@ -149,4 +149,41 @@ public interface UploadModelRequestOrBuilder * */ com.google.cloud.aiplatform.v1.ModelOrBuilder getModelOrBuilder(); + + /** + * + * + *
+   * Optional. The user-provided custom service account to use to do the model
+   * upload. If empty, [Vertex AI Service
+   * Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents)
+   * will be used. Users uploading the Model must have the
+   * `iam.serviceAccounts.actAs` permission on this service account. Also, this
+   * account must belong to the project specified in the `parent` field and have
+   * all necessary read permissions.
+   * 
+ * + * string service_account = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The serviceAccount. + */ + java.lang.String getServiceAccount(); + /** + * + * + *
+   * Optional. The user-provided custom service account to use to do the model
+   * upload. If empty, [Vertex AI Service
+   * Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents)
+   * will be used. Users uploading the Model must have the
+   * `iam.serviceAccounts.actAs` permission on this service account. Also, this
+   * account must belong to the project specified in the `parent` field and have
+   * all necessary read permissions.
+   * 
+ * + * string service_account = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for serviceAccount. + */ + com.google.protobuf.ByteString getServiceAccountBytes(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model_service.proto index 9ea6c56c4a83..b20d32d31661 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model_service.proto @@ -218,6 +218,15 @@ message UploadModelRequest { // Required. The Model to create. Model model = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The user-provided custom service account to use to do the model + // upload. If empty, [Vertex AI Service + // Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) + // will be used. Users uploading the Model must have the + // `iam.serviceAccounts.actAs` permission on this service account. Also, this + // account must belong to the project specified in the `parent` field and have + // all necessary read permissions. + string service_account = 6 [(google.api.field_behavior) = OPTIONAL]; } // Details of [ModelService.UploadModel][google.cloud.aiplatform.v1.ModelService.UploadModel] operation. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelServiceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelServiceProto.java index 5e55e20dbeaf..5346932c739f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelServiceProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelServiceProto.java @@ -166,205 +166,206 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ation_slice.proto\032/google/cloud/aiplatfo" + "rm/v1beta1/operation.proto\032#google/longr" + "unning/operations.proto\032 google/protobuf" - + "/field_mask.proto\"\275\001\n\022UploadModelRequest" + + "/field_mask.proto\"\333\001\n\022UploadModelRequest" + "\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.goog" + "leapis.com/Location\022\031\n\014parent_model\030\004 \001(" + "\tB\003\340A\001\022\025\n\010model_id\030\005 \001(\tB\003\340A\001\022:\n\005model\030\002" + " \001(\0132&.google.cloud.aiplatform.v1beta1.M" - + "odelB\003\340A\002\"s\n\034UploadModelOperationMetadat" - + "a\022S\n\020generic_metadata\030\001 \001(\01329.google.clo" - + "ud.aiplatform.v1beta1.GenericOperationMe" - + "tadata\"i\n\023UploadModelResponse\0223\n\005model\030\001" - + " \001(\tB$\372A!\n\037aiplatform.googleapis.com/Mod" - + "el\022\035\n\020model_version_id\030\002 \001(\tB\003\340A\003\"H\n\017Get" - + "ModelRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037aipl" - + "atform.googleapis.com/Model\"\264\001\n\021ListMode" - + "lsRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locat" - + "ions.googleapis.com/Location\022\016\n\006filter\030\002" - + " \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_token\030\004 " - + "\001(\t\022-\n\tread_mask\030\005 \001(\0132\032.google.protobuf" - + ".FieldMask\"e\n\022ListModelsResponse\0226\n\006mode" - + "ls\030\001 \003(\0132&.google.cloud.aiplatform.v1bet" - + "a1.Model\022\027\n\017next_page_token\030\002 \001(\t\"\267\001\n\030Li" - + "stModelVersionsRequest\0225\n\004name\030\001 \001(\tB\'\340A" - + "\002\372A!\n\037aiplatform.googleapis.com/Model\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006" - + "filter\030\004 \001(\t\022-\n\tread_mask\030\005 \001(\0132\032.google" - + ".protobuf.FieldMask\"l\n\031ListModelVersions" - + "Response\0226\n\006models\030\001 \003(\0132&.google.cloud." - + "aiplatform.v1beta1.Model\022\027\n\017next_page_to" - + "ken\030\002 \001(\t\"\206\001\n\022UpdateModelRequest\022:\n\005mode" - + "l\030\001 \001(\0132&.google.cloud.aiplatform.v1beta" - + "1.ModelB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.goog" - + "le.protobuf.FieldMaskB\003\340A\002\"\226\001\n\037UpdateExp" - + "lanationDatasetRequest\0226\n\005model\030\001 \001(\tB\'\340" - + "A\002\372A!\n\037aiplatform.googleapis.com/Model\022;" - + "\n\010examples\030\002 \001(\0132).google.cloud.aiplatfo" - + "rm.v1beta1.Examples\"\200\001\n)UpdateExplanatio" - + "nDatasetOperationMetadata\022S\n\020generic_met" - + "adata\030\001 \001(\01329.google.cloud.aiplatform.v1" - + "beta1.GenericOperationMetadata\"K\n\022Delete" - + "ModelRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037aipl" - + "atform.googleapis.com/Model\"R\n\031DeleteMod" - + "elVersionRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037" - + "aiplatform.googleapis.com/Model\"q\n\032Merge" - + "VersionAliasesRequest\0225\n\004name\030\001 \001(\tB\'\340A\002" - + "\372A!\n\037aiplatform.googleapis.com/Model\022\034\n\017" - + "version_aliases\030\002 \003(\tB\003\340A\002\"\375\002\n\022ExportMod" - + "elRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037aiplatf" - + "orm.googleapis.com/Model\022\\\n\routput_confi" - + "g\030\002 \001(\0132@.google.cloud.aiplatform.v1beta" - + "1.ExportModelRequest.OutputConfigB\003\340A\002\032\321" - + "\001\n\014OutputConfig\022\030\n\020export_format_id\030\001 \001(" - + "\t\022M\n\024artifact_destination\030\003 \001(\0132/.google" - + ".cloud.aiplatform.v1beta1.GcsDestination" - + "\022X\n\021image_destination\030\004 \001(\0132=.google.clo" - + "ud.aiplatform.v1beta1.ContainerRegistryD" - + "estination\"\246\002\n\034ExportModelOperationMetad" - + "ata\022S\n\020generic_metadata\030\001 \001(\01329.google.c" - + "loud.aiplatform.v1beta1.GenericOperation" - + "Metadata\022b\n\013output_info\030\002 \001(\0132H.google.c" - + "loud.aiplatform.v1beta1.ExportModelOpera" - + "tionMetadata.OutputInfoB\003\340A\003\032M\n\nOutputIn" - + "fo\022 \n\023artifact_output_uri\030\002 \001(\tB\003\340A\003\022\035\n\020" - + "image_output_uri\030\003 \001(\tB\003\340A\003\"\"\n UpdateExp" - + "lanationDatasetResponse\"\025\n\023ExportModelRe" - + "sponse\"\250\001\n\034ImportModelEvaluationRequest\022" - + "7\n\006parent\030\001 \001(\tB\'\340A\002\372A!\n\037aiplatform.goog" - + "leapis.com/Model\022O\n\020model_evaluation\030\002 \001" - + "(\01320.google.cloud.aiplatform.v1beta1.Mod" - + "elEvaluationB\003\340A\002\"\311\001\n\'BatchImportModelEv" - + "aluationSlicesRequest\022A\n\006parent\030\001 \001(\tB1\340" - + "A\002\372A+\n)aiplatform.googleapis.com/ModelEv" - + "aluation\022[\n\027model_evaluation_slices\030\002 \003(" - + "\01325.google.cloud.aiplatform.v1beta1.Mode" - + "lEvaluationSliceB\003\340A\002\"Y\n(BatchImportMode" - + "lEvaluationSlicesResponse\022-\n imported_mo" - + "del_evaluation_slices\030\001 \003(\tB\003\340A\003\"\\\n\031GetM" - + "odelEvaluationRequest\022?\n\004name\030\001 \001(\tB1\340A\002" - + "\372A+\n)aiplatform.googleapis.com/ModelEval" - + "uation\"\274\001\n\033ListModelEvaluationsRequest\0227" - + "\n\006parent\030\001 \001(\tB\'\340A\002\372A!\n\037aiplatform.googl" - + "eapis.com/Model\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_" - + "size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\022-\n\tread_m" - + "ask\030\005 \001(\0132\032.google.protobuf.FieldMask\"\204\001" - + "\n\034ListModelEvaluationsResponse\022K\n\021model_" - + "evaluations\030\001 \003(\01320.google.cloud.aiplatf" - + "orm.v1beta1.ModelEvaluation\022\027\n\017next_page" - + "_token\030\002 \001(\t\"f\n\036GetModelEvaluationSliceR" - + "equest\022D\n\004name\030\001 \001(\tB6\340A\002\372A0\n.aiplatform" - + ".googleapis.com/ModelEvaluationSlice\"\313\001\n" - + " ListModelEvaluationSlicesRequest\022A\n\006par" - + "ent\030\001 \001(\tB1\340A\002\372A+\n)aiplatform.googleapis" - + ".com/ModelEvaluation\022\016\n\006filter\030\002 \001(\t\022\021\n\t" - + "page_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\022-\n\tr" - + "ead_mask\030\005 \001(\0132\032.google.protobuf.FieldMa" - + "sk\"\224\001\n!ListModelEvaluationSlicesResponse" - + "\022V\n\027model_evaluation_slices\030\001 \003(\01325.goog" - + "le.cloud.aiplatform.v1beta1.ModelEvaluat" - + "ionSlice\022\027\n\017next_page_token\030\002 \001(\t2\354\035\n\014Mo" - + "delService\022\352\001\n\013UploadModel\0223.google.clou" - + "d.aiplatform.v1beta1.UploadModelRequest\032" - + "\035.google.longrunning.Operation\"\206\001\202\323\344\223\002;\"" - + "6/v1beta1/{parent=projects/*/locations/*" - + "}/models:upload:\001*\332A\014parent,model\312A3\n\023Up" - + "loadModelResponse\022\034UploadModelOperationM" - + "etadata\022\244\001\n\010GetModel\0220.google.cloud.aipl" - + "atform.v1beta1.GetModelRequest\032&.google." - + "cloud.aiplatform.v1beta1.Model\">\202\323\344\223\0021\022/" - + "/v1beta1/{name=projects/*/locations/*/mo" - + "dels/*}\332A\004name\022\267\001\n\nListModels\0222.google.c" - + "loud.aiplatform.v1beta1.ListModelsReques" - + "t\0323.google.cloud.aiplatform.v1beta1.List" - + "ModelsResponse\"@\202\323\344\223\0021\022//v1beta1/{parent" - + "=projects/*/locations/*}/models\332A\006parent" - + "\022\327\001\n\021ListModelVersions\0229.google.cloud.ai" - + "platform.v1beta1.ListModelVersionsReques" - + "t\032:.google.cloud.aiplatform.v1beta1.List" - + "ModelVersionsResponse\"K\202\323\344\223\002>\02225/v1beta1/{model.name=pr" - + "ojects/*/locations/*/models/*}:\005model\332A\021" - + "model,update_mask\022\252\002\n\030UpdateExplanationD" - + "ataset\022@.google.cloud.aiplatform.v1beta1" - + ".UpdateExplanationDatasetRequest\032\035.googl" - + "e.longrunning.Operation\"\254\001\202\323\344\223\002N\"I/v1bet" - + "a1/{model=projects/*/locations/*/models/" - + "*}:updateExplanationDataset:\001*\332A\005model\312A" - + "M\n UpdateExplanationDatasetResponse\022)Upd" - + "ateExplanationDatasetOperationMetadata\022\324" - + "\001\n\013DeleteModel\0223.google.cloud.aiplatform" - + ".v1beta1.DeleteModelRequest\032\035.google.lon" - + "grunning.Operation\"q\202\323\344\223\0021*//v1beta1/{na" - + "me=projects/*/locations/*/models/*}\332A\004na" - + "me\312A0\n\025google.protobuf.Empty\022\027DeleteOper" - + "ationMetadata\022\360\001\n\022DeleteModelVersion\022:.g" - + "oogle.cloud.aiplatform.v1beta1.DeleteMod" - + "elVersionRequest\032\035.google.longrunning.Op" - + "eration\"\177\202\323\344\223\002?*=/v1beta1/{name=projects" - + "/*/locations/*/models/*}:deleteVersion\332A" - + "\004name\312A0\n\025google.protobuf.Empty\022\027DeleteO" - + "perationMetadata\022\341\001\n\023MergeVersionAliases" - + "\022;.google.cloud.aiplatform.v1beta1.Merge" - + "VersionAliasesRequest\032&.google.cloud.aip" - + "latform.v1beta1.Model\"e\202\323\344\223\002H\"C/v1beta1/" - + "{name=projects/*/locations/*/models/*}:m" - + "ergeVersionAliases:\001*\332A\024name,version_ali" - + "ases\022\360\001\n\013ExportModel\0223.google.cloud.aipl" - + "atform.v1beta1.ExportModelRequest\032\035.goog" - + "le.longrunning.Operation\"\214\001\202\323\344\223\002;\"6/v1be" - + "ta1/{name=projects/*/locations/*/models/" - + "*}:export:\001*\332A\022name,output_config\312A3\n\023Ex" - + "portModelResponse\022\034ExportModelOperationM" - + "etadata\022\363\001\n\025ImportModelEvaluation\022=.goog" - + "le.cloud.aiplatform.v1beta1.ImportModelE" - + "valuationRequest\0320.google.cloud.aiplatfo" - + "rm.v1beta1.ModelEvaluation\"i\202\323\344\223\002I\"D/v1b" - + "eta1/{parent=projects/*/locations/*/mode" - + "ls/*}/evaluations:import:\001*\332A\027parent,mod" - + "el_evaluation\022\267\002\n BatchImportModelEvalua" - + "tionSlices\022H.google.cloud.aiplatform.v1b" - + "eta1.BatchImportModelEvaluationSlicesReq" - + "uest\032I.google.cloud.aiplatform.v1beta1.B" - + "atchImportModelEvaluationSlicesResponse\"" - + "~\202\323\344\223\002W\"R/v1beta1/{parent=projects/*/loc" - + "ations/*/models/*/evaluations/*}/slices:" - + "batchImport:\001*\332A\036parent,model_evaluation" - + "_slices\022\320\001\n\022GetModelEvaluation\022:.google." - + "cloud.aiplatform.v1beta1.GetModelEvaluat" - + "ionRequest\0320.google.cloud.aiplatform.v1b" - + "eta1.ModelEvaluation\"L\202\323\344\223\002?\022=/v1beta1/{" - + "name=projects/*/locations/*/models/*/eva" - + "luations/*}\332A\004name\022\343\001\n\024ListModelEvaluati" - + "ons\022<.google.cloud.aiplatform.v1beta1.Li" - + "stModelEvaluationsRequest\032=.google.cloud" - + ".aiplatform.v1beta1.ListModelEvaluations" - + "Response\"N\202\323\344\223\002?\022=/v1beta1/{parent=proje" - + "cts/*/locations/*/models/*}/evaluations\332" - + "A\006parent\022\350\001\n\027GetModelEvaluationSlice\022?.g" - + "oogle.cloud.aiplatform.v1beta1.GetModelE" - + "valuationSliceRequest\0325.google.cloud.aip" - + "latform.v1beta1.ModelEvaluationSlice\"U\202\323" - + "\344\223\002H\022F/v1beta1/{name=projects/*/location" - + "s/*/models/*/evaluations/*/slices/*}\332A\004n" - + "ame\022\373\001\n\031ListModelEvaluationSlices\022A.goog" - + "le.cloud.aiplatform.v1beta1.ListModelEva" - + "luationSlicesRequest\032B.google.cloud.aipl" - + "atform.v1beta1.ListModelEvaluationSlices" - + "Response\"W\202\323\344\223\002H\022F/v1beta1/{parent=proje" + + "odelB\003\340A\002\022\034\n\017service_account\030\006 \001(\tB\003\340A\001\"" + + "s\n\034UploadModelOperationMetadata\022S\n\020gener" + + "ic_metadata\030\001 \001(\01329.google.cloud.aiplatf" + + "orm.v1beta1.GenericOperationMetadata\"i\n\023" + + "UploadModelResponse\0223\n\005model\030\001 \001(\tB$\372A!\n" + + "\037aiplatform.googleapis.com/Model\022\035\n\020mode" + + "l_version_id\030\002 \001(\tB\003\340A\003\"H\n\017GetModelReque" + + "st\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037aiplatform.goo" + + "gleapis.com/Model\"\264\001\n\021ListModelsRequest\022" + + "9\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.googl" + + "eapis.com/Location\022\016\n\006filter\030\002 \001(\t\022\021\n\tpa" + + "ge_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\022-\n\trea" + + "d_mask\030\005 \001(\0132\032.google.protobuf.FieldMask" + + "\"e\n\022ListModelsResponse\0226\n\006models\030\001 \003(\0132&" + + ".google.cloud.aiplatform.v1beta1.Model\022\027" + + "\n\017next_page_token\030\002 \001(\t\"\267\001\n\030ListModelVer" + + "sionsRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037aipl" + + "atform.googleapis.com/Model\022\021\n\tpage_size" + + "\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001" + + "(\t\022-\n\tread_mask\030\005 \001(\0132\032.google.protobuf." + + "FieldMask\"l\n\031ListModelVersionsResponse\0226" + + "\n\006models\030\001 \003(\0132&.google.cloud.aiplatform" + + ".v1beta1.Model\022\027\n\017next_page_token\030\002 \001(\t\"" + + "\206\001\n\022UpdateModelRequest\022:\n\005model\030\001 \001(\0132&." + + "google.cloud.aiplatform.v1beta1.ModelB\003\340" + + "A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.protobu" + + "f.FieldMaskB\003\340A\002\"\226\001\n\037UpdateExplanationDa" + + "tasetRequest\0226\n\005model\030\001 \001(\tB\'\340A\002\372A!\n\037aip" + + "latform.googleapis.com/Model\022;\n\010examples" + + "\030\002 \001(\0132).google.cloud.aiplatform.v1beta1" + + ".Examples\"\200\001\n)UpdateExplanationDatasetOp" + + "erationMetadata\022S\n\020generic_metadata\030\001 \001(" + + "\01329.google.cloud.aiplatform.v1beta1.Gene" + + "ricOperationMetadata\"K\n\022DeleteModelReque" + + "st\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037aiplatform.goo" + + "gleapis.com/Model\"R\n\031DeleteModelVersionR" + + "equest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037aiplatform" + + ".googleapis.com/Model\"q\n\032MergeVersionAli" + + "asesRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037aipla" + + "tform.googleapis.com/Model\022\034\n\017version_al" + + "iases\030\002 \003(\tB\003\340A\002\"\375\002\n\022ExportModelRequest\022" + + "5\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037aiplatform.google" + + "apis.com/Model\022\\\n\routput_config\030\002 \001(\0132@." + + "google.cloud.aiplatform.v1beta1.ExportMo" + + "delRequest.OutputConfigB\003\340A\002\032\321\001\n\014OutputC" + + "onfig\022\030\n\020export_format_id\030\001 \001(\t\022M\n\024artif" + + "act_destination\030\003 \001(\0132/.google.cloud.aip" + + "latform.v1beta1.GcsDestination\022X\n\021image_" + + "destination\030\004 \001(\0132=.google.cloud.aiplatf" + + "orm.v1beta1.ContainerRegistryDestination" + + "\"\246\002\n\034ExportModelOperationMetadata\022S\n\020gen" + + "eric_metadata\030\001 \001(\01329.google.cloud.aipla" + + "tform.v1beta1.GenericOperationMetadata\022b" + + "\n\013output_info\030\002 \001(\0132H.google.cloud.aipla" + + "tform.v1beta1.ExportModelOperationMetada" + + "ta.OutputInfoB\003\340A\003\032M\n\nOutputInfo\022 \n\023arti" + + "fact_output_uri\030\002 \001(\tB\003\340A\003\022\035\n\020image_outp" + + "ut_uri\030\003 \001(\tB\003\340A\003\"\"\n UpdateExplanationDa" + + "tasetResponse\"\025\n\023ExportModelResponse\"\250\001\n" + + "\034ImportModelEvaluationRequest\0227\n\006parent\030" + + "\001 \001(\tB\'\340A\002\372A!\n\037aiplatform.googleapis.com" + + "/Model\022O\n\020model_evaluation\030\002 \001(\01320.googl" + + "e.cloud.aiplatform.v1beta1.ModelEvaluati" + + "onB\003\340A\002\"\311\001\n\'BatchImportModelEvaluationSl" + + "icesRequest\022A\n\006parent\030\001 \001(\tB1\340A\002\372A+\n)aip" + + "latform.googleapis.com/ModelEvaluation\022[" + + "\n\027model_evaluation_slices\030\002 \003(\01325.google" + + ".cloud.aiplatform.v1beta1.ModelEvaluatio" + + "nSliceB\003\340A\002\"Y\n(BatchImportModelEvaluatio" + + "nSlicesResponse\022-\n imported_model_evalua" + + "tion_slices\030\001 \003(\tB\003\340A\003\"\\\n\031GetModelEvalua" + + "tionRequest\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)aipla" + + "tform.googleapis.com/ModelEvaluation\"\274\001\n" + + "\033ListModelEvaluationsRequest\0227\n\006parent\030\001" + + " \001(\tB\'\340A\002\372A!\n\037aiplatform.googleapis.com/" + + "Model\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005" + + "\022\022\n\npage_token\030\004 \001(\t\022-\n\tread_mask\030\005 \001(\0132" + + "\032.google.protobuf.FieldMask\"\204\001\n\034ListMode" + + "lEvaluationsResponse\022K\n\021model_evaluation" + + "s\030\001 \003(\01320.google.cloud.aiplatform.v1beta" + + "1.ModelEvaluation\022\027\n\017next_page_token\030\002 \001" + + "(\t\"f\n\036GetModelEvaluationSliceRequest\022D\n\004" + + "name\030\001 \001(\tB6\340A\002\372A0\n.aiplatform.googleapi" + + "s.com/ModelEvaluationSlice\"\313\001\n ListModel" + + "EvaluationSlicesRequest\022A\n\006parent\030\001 \001(\tB" + + "1\340A\002\372A+\n)aiplatform.googleapis.com/Model" + + "Evaluation\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030" + + "\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\022-\n\tread_mask\030\005" + + " \001(\0132\032.google.protobuf.FieldMask\"\224\001\n!Lis" + + "tModelEvaluationSlicesResponse\022V\n\027model_" + + "evaluation_slices\030\001 \003(\01325.google.cloud.a" + + "iplatform.v1beta1.ModelEvaluationSlice\022\027" + + "\n\017next_page_token\030\002 \001(\t2\354\035\n\014ModelService" + + "\022\352\001\n\013UploadModel\0223.google.cloud.aiplatfo" + + "rm.v1beta1.UploadModelRequest\032\035.google.l" + + "ongrunning.Operation\"\206\001\202\323\344\223\002;\"6/v1beta1/" + + "{parent=projects/*/locations/*}/models:u" + + "pload:\001*\332A\014parent,model\312A3\n\023UploadModelR" + + "esponse\022\034UploadModelOperationMetadata\022\244\001" + + "\n\010GetModel\0220.google.cloud.aiplatform.v1b" + + "eta1.GetModelRequest\032&.google.cloud.aipl" + + "atform.v1beta1.Model\">\202\323\344\223\0021\022//v1beta1/{" + + "name=projects/*/locations/*/models/*}\332A\004" + + "name\022\267\001\n\nListModels\0222.google.cloud.aipla" + + "tform.v1beta1.ListModelsRequest\0323.google" + + ".cloud.aiplatform.v1beta1.ListModelsResp" + + "onse\"@\202\323\344\223\0021\022//v1beta1/{parent=projects/" + + "*/locations/*}/models\332A\006parent\022\327\001\n\021ListM" + + "odelVersions\0229.google.cloud.aiplatform.v" + + "1beta1.ListModelVersionsRequest\032:.google" + + ".cloud.aiplatform.v1beta1.ListModelVersi" + + "onsResponse\"K\202\323\344\223\002>\02225/v1beta1/{model.name=projects/*/l" + + "ocations/*/models/*}:\005model\332A\021model,upda" + + "te_mask\022\252\002\n\030UpdateExplanationDataset\022@.g" + + "oogle.cloud.aiplatform.v1beta1.UpdateExp" + + "lanationDatasetRequest\032\035.google.longrunn" + + "ing.Operation\"\254\001\202\323\344\223\002N\"I/v1beta1/{model=" + + "projects/*/locations/*/models/*}:updateE" + + "xplanationDataset:\001*\332A\005model\312AM\n UpdateE" + + "xplanationDatasetResponse\022)UpdateExplana" + + "tionDatasetOperationMetadata\022\324\001\n\013DeleteM" + + "odel\0223.google.cloud.aiplatform.v1beta1.D" + + "eleteModelRequest\032\035.google.longrunning.O" + + "peration\"q\202\323\344\223\0021*//v1beta1/{name=project" + + "s/*/locations/*/models/*}\332A\004name\312A0\n\025goo" + + "gle.protobuf.Empty\022\027DeleteOperationMetad" + + "ata\022\360\001\n\022DeleteModelVersion\022:.google.clou" + + "d.aiplatform.v1beta1.DeleteModelVersionR" + + "equest\032\035.google.longrunning.Operation\"\177\202" + + "\323\344\223\002?*=/v1beta1/{name=projects/*/locatio" + + "ns/*/models/*}:deleteVersion\332A\004name\312A0\n\025" + + "google.protobuf.Empty\022\027DeleteOperationMe" + + "tadata\022\341\001\n\023MergeVersionAliases\022;.google." + + "cloud.aiplatform.v1beta1.MergeVersionAli" + + "asesRequest\032&.google.cloud.aiplatform.v1" + + "beta1.Model\"e\202\323\344\223\002H\"C/v1beta1/{name=proj" + + "ects/*/locations/*/models/*}:mergeVersio" + + "nAliases:\001*\332A\024name,version_aliases\022\360\001\n\013E" + + "xportModel\0223.google.cloud.aiplatform.v1b" + + "eta1.ExportModelRequest\032\035.google.longrun" + + "ning.Operation\"\214\001\202\323\344\223\002;\"6/v1beta1/{name=" + + "projects/*/locations/*/models/*}:export:" + + "\001*\332A\022name,output_config\312A3\n\023ExportModelR" + + "esponse\022\034ExportModelOperationMetadata\022\363\001" + + "\n\025ImportModelEvaluation\022=.google.cloud.a" + + "iplatform.v1beta1.ImportModelEvaluationR" + + "equest\0320.google.cloud.aiplatform.v1beta1" + + ".ModelEvaluation\"i\202\323\344\223\002I\"D/v1beta1/{pare" + + "nt=projects/*/locations/*/models/*}/eval" + + "uations:import:\001*\332A\027parent,model_evaluat" + + "ion\022\267\002\n BatchImportModelEvaluationSlices" + + "\022H.google.cloud.aiplatform.v1beta1.Batch" + + "ImportModelEvaluationSlicesRequest\032I.goo" + + "gle.cloud.aiplatform.v1beta1.BatchImport" + + "ModelEvaluationSlicesResponse\"~\202\323\344\223\002W\"R/" + + "v1beta1/{parent=projects/*/locations/*/m" + + "odels/*/evaluations/*}/slices:batchImpor" + + "t:\001*\332A\036parent,model_evaluation_slices\022\320\001" + + "\n\022GetModelEvaluation\022:.google.cloud.aipl" + + "atform.v1beta1.GetModelEvaluationRequest" + + "\0320.google.cloud.aiplatform.v1beta1.Model" + + "Evaluation\"L\202\323\344\223\002?\022=/v1beta1/{name=proje" + "cts/*/locations/*/models/*/evaluations/*" - + "}/slices\332A\006parent\032M\312A\031aiplatform.googlea" - + "pis.com\322A.https://www.googleapis.com/aut" - + "h/cloud-platformB\356\001\n#com.google.cloud.ai" - + "platform.v1beta1B\021ModelServiceProtoP\001ZIg" - + "oogle.golang.org/genproto/googleapis/clo" - + "ud/aiplatform/v1beta1;aiplatform\252\002\037Googl" - + "e.Cloud.AIPlatform.V1Beta1\312\002\037Google\\Clou" - + "d\\AIPlatform\\V1beta1\352\002\"Google::Cloud::AI" - + "Platform::V1beta1b\006proto3" + + "}\332A\004name\022\343\001\n\024ListModelEvaluations\022<.goog" + + "le.cloud.aiplatform.v1beta1.ListModelEva" + + "luationsRequest\032=.google.cloud.aiplatfor" + + "m.v1beta1.ListModelEvaluationsResponse\"N" + + "\202\323\344\223\002?\022=/v1beta1/{parent=projects/*/loca" + + "tions/*/models/*}/evaluations\332A\006parent\022\350" + + "\001\n\027GetModelEvaluationSlice\022?.google.clou" + + "d.aiplatform.v1beta1.GetModelEvaluationS" + + "liceRequest\0325.google.cloud.aiplatform.v1" + + "beta1.ModelEvaluationSlice\"U\202\323\344\223\002H\022F/v1b" + + "eta1/{name=projects/*/locations/*/models" + + "/*/evaluations/*/slices/*}\332A\004name\022\373\001\n\031Li" + + "stModelEvaluationSlices\022A.google.cloud.a" + + "iplatform.v1beta1.ListModelEvaluationSli" + + "cesRequest\032B.google.cloud.aiplatform.v1b" + + "eta1.ListModelEvaluationSlicesResponse\"W" + + "\202\323\344\223\002H\022F/v1beta1/{parent=projects/*/loca" + + "tions/*/models/*/evaluations/*}/slices\332A" + + "\006parent\032M\312A\031aiplatform.googleapis.com\322A." + + "https://www.googleapis.com/auth/cloud-pl" + + "atformB\356\001\n#com.google.cloud.aiplatform.v" + + "1beta1B\021ModelServiceProtoP\001ZIgoogle.gola" + + "ng.org/genproto/googleapis/cloud/aiplatf" + + "orm/v1beta1;aiplatform\252\002\037Google.Cloud.AI" + + "Platform.V1Beta1\312\002\037Google\\Cloud\\AIPlatfo" + + "rm\\V1beta1\352\002\"Google::Cloud::AIPlatform::" + + "V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -389,7 +390,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_UploadModelRequest_descriptor, new java.lang.String[] { - "Parent", "ParentModel", "ModelId", "Model", + "Parent", "ParentModel", "ModelId", "Model", "ServiceAccount", }); internal_static_google_cloud_aiplatform_v1beta1_UploadModelOperationMetadata_descriptor = getDescriptor().getMessageTypes().get(1); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UploadModelRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UploadModelRequest.java index dd8b90fd0fcb..542a9d8f63f2 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UploadModelRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UploadModelRequest.java @@ -41,6 +41,7 @@ private UploadModelRequest() { parent_ = ""; parentModel_ = ""; modelId_ = ""; + serviceAccount_ = ""; } @java.lang.Override @@ -282,6 +283,67 @@ public com.google.cloud.aiplatform.v1beta1.ModelOrBuilder getModelOrBuilder() { return getModel(); } + public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 6; + private volatile java.lang.Object serviceAccount_; + /** + * + * + *
+   * Optional. The user-provided custom service account to use to do the model
+   * upload. If empty, [Vertex AI Service
+   * Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents)
+   * will be used. Users uploading the Model must have the
+   * `iam.serviceAccounts.actAs` permission on this service account. Also, this
+   * account must belong to the project specified in the `parent` field and have
+   * all necessary read permissions.
+   * 
+ * + * string service_account = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The serviceAccount. + */ + @java.lang.Override + public java.lang.String getServiceAccount() { + java.lang.Object ref = serviceAccount_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAccount_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The user-provided custom service account to use to do the model
+   * upload. If empty, [Vertex AI Service
+   * Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents)
+   * will be used. Users uploading the Model must have the
+   * `iam.serviceAccounts.actAs` permission on this service account. Also, this
+   * account must belong to the project specified in the `parent` field and have
+   * all necessary read permissions.
+   * 
+ * + * string service_account = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for serviceAccount. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServiceAccountBytes() { + java.lang.Object ref = serviceAccount_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -308,6 +370,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, modelId_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, serviceAccount_); + } getUnknownFields().writeTo(output); } @@ -329,6 +394,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, modelId_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, serviceAccount_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -352,6 +420,7 @@ public boolean equals(final java.lang.Object obj) { if (hasModel()) { if (!getModel().equals(other.getModel())) return false; } + if (!getServiceAccount().equals(other.getServiceAccount())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -373,6 +442,8 @@ public int hashCode() { hash = (37 * hash) + MODEL_FIELD_NUMBER; hash = (53 * hash) + getModel().hashCode(); } + hash = (37 * hash) + SERVICE_ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getServiceAccount().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -524,6 +595,8 @@ public Builder clear() { model_ = null; modelBuilder_ = null; } + serviceAccount_ = ""; + return this; } @@ -559,6 +632,7 @@ public com.google.cloud.aiplatform.v1beta1.UploadModelRequest buildPartial() { } else { result.model_ = modelBuilder_.build(); } + result.serviceAccount_ = serviceAccount_; onBuilt(); return result; } @@ -624,6 +698,10 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.UploadModelRequest if (other.hasModel()) { mergeModel(other.getModel()); } + if (!other.getServiceAccount().isEmpty()) { + serviceAccount_ = other.serviceAccount_; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -674,6 +752,12 @@ public Builder mergeFrom( break; } // case 42 + case 50: + { + serviceAccount_ = input.readStringRequireUtf8(); + + break; + } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1247,6 +1331,142 @@ public com.google.cloud.aiplatform.v1beta1.ModelOrBuilder getModelOrBuilder() { return modelBuilder_; } + private java.lang.Object serviceAccount_ = ""; + /** + * + * + *
+     * Optional. The user-provided custom service account to use to do the model
+     * upload. If empty, [Vertex AI Service
+     * Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents)
+     * will be used. Users uploading the Model must have the
+     * `iam.serviceAccounts.actAs` permission on this service account. Also, this
+     * account must belong to the project specified in the `parent` field and have
+     * all necessary read permissions.
+     * 
+ * + * string service_account = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The serviceAccount. + */ + public java.lang.String getServiceAccount() { + java.lang.Object ref = serviceAccount_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAccount_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The user-provided custom service account to use to do the model
+     * upload. If empty, [Vertex AI Service
+     * Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents)
+     * will be used. Users uploading the Model must have the
+     * `iam.serviceAccounts.actAs` permission on this service account. Also, this
+     * account must belong to the project specified in the `parent` field and have
+     * all necessary read permissions.
+     * 
+ * + * string service_account = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for serviceAccount. + */ + public com.google.protobuf.ByteString getServiceAccountBytes() { + java.lang.Object ref = serviceAccount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The user-provided custom service account to use to do the model
+     * upload. If empty, [Vertex AI Service
+     * Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents)
+     * will be used. Users uploading the Model must have the
+     * `iam.serviceAccounts.actAs` permission on this service account. Also, this
+     * account must belong to the project specified in the `parent` field and have
+     * all necessary read permissions.
+     * 
+ * + * string service_account = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The serviceAccount to set. + * @return This builder for chaining. + */ + public Builder setServiceAccount(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + serviceAccount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The user-provided custom service account to use to do the model
+     * upload. If empty, [Vertex AI Service
+     * Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents)
+     * will be used. Users uploading the Model must have the
+     * `iam.serviceAccounts.actAs` permission on this service account. Also, this
+     * account must belong to the project specified in the `parent` field and have
+     * all necessary read permissions.
+     * 
+ * + * string service_account = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearServiceAccount() { + + serviceAccount_ = getDefaultInstance().getServiceAccount(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The user-provided custom service account to use to do the model
+     * upload. If empty, [Vertex AI Service
+     * Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents)
+     * will be used. Users uploading the Model must have the
+     * `iam.serviceAccounts.actAs` permission on this service account. Also, this
+     * account must belong to the project specified in the `parent` field and have
+     * all necessary read permissions.
+     * 
+ * + * string service_account = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for serviceAccount to set. + * @return This builder for chaining. + */ + public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + serviceAccount_ = value; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UploadModelRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UploadModelRequestOrBuilder.java index 3ac190d13575..166bda515b37 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UploadModelRequestOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UploadModelRequestOrBuilder.java @@ -152,4 +152,41 @@ public interface UploadModelRequestOrBuilder * */ com.google.cloud.aiplatform.v1beta1.ModelOrBuilder getModelOrBuilder(); + + /** + * + * + *
+   * Optional. The user-provided custom service account to use to do the model
+   * upload. If empty, [Vertex AI Service
+   * Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents)
+   * will be used. Users uploading the Model must have the
+   * `iam.serviceAccounts.actAs` permission on this service account. Also, this
+   * account must belong to the project specified in the `parent` field and have
+   * all necessary read permissions.
+   * 
+ * + * string service_account = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The serviceAccount. + */ + java.lang.String getServiceAccount(); + /** + * + * + *
+   * Optional. The user-provided custom service account to use to do the model
+   * upload. If empty, [Vertex AI Service
+   * Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents)
+   * will be used. Users uploading the Model must have the
+   * `iam.serviceAccounts.actAs` permission on this service account. Also, this
+   * account must belong to the project specified in the `parent` field and have
+   * all necessary read permissions.
+   * 
+ * + * string service_account = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for serviceAccount. + */ + com.google.protobuf.ByteString getServiceAccountBytes(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_service.proto index 1af9d4b48fef..9fad50db7e71 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_service.proto @@ -232,6 +232,15 @@ message UploadModelRequest { // Required. The Model to create. Model model = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The user-provided custom service account to use to do the model + // upload. If empty, [Vertex AI Service + // Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) + // will be used. Users uploading the Model must have the + // `iam.serviceAccounts.actAs` permission on this service account. Also, this + // account must belong to the project specified in the `parent` field and have + // all necessary read permissions. + string service_account = 6 [(google.api.field_behavior) = OPTIONAL]; } // Details of [ModelService.UploadModel][google.cloud.aiplatform.v1beta1.ModelService.UploadModel] operation.