Skip to content

Commit b75339b

Browse files
Google APIscopybara-github
authored andcommitted
feat: exposed Import PV external_processor_version_source to v1beta3 public
PiperOrigin-RevId: 550912849
1 parent 49639c5 commit b75339b

1 file changed

Lines changed: 17 additions & 4 deletions

File tree

google/cloud/documentai/v1beta3/document_processor_service.proto

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1269,8 +1269,6 @@ message ListEvaluationsResponse {
12691269
// [ImportProcessorVersion][google.cloud.documentai.v1beta3.DocumentProcessorService.ImportProcessorVersion]
12701270
// method. Requirements:
12711271
//
1272-
// - The source processor version and destination processor
1273-
// must be in the same location.
12741272
// - The Document AI [Service
12751273
// Agent](https://cloud.google.com/iam/docs/service-agents) of the destination
12761274
// project must have [Document AI Editor
@@ -1280,15 +1278,30 @@ message ListEvaluationsResponse {
12801278
// The destination project is specified as part of the
12811279
// [parent][google.cloud.documentai.v1beta3.ImportProcessorVersionRequest.parent]
12821280
// field. The source project is specified as part of the
1283-
// [source][google.cloud.documentai.v1beta3.ImportProcessorVersionRequest.processor_version_source]
1284-
// field.
1281+
// [source][ImportProcessorVersionRequest.processor_version_source or
1282+
// ImportProcessorVersionRequest.external_processor_version_source] field.
12851283
message ImportProcessorVersionRequest {
1284+
// The external source processor version.
1285+
message ExternalProcessorVersionSource {
1286+
// Required. The processor version name. Format:
1287+
// `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}`
1288+
string processor_version = 1 [(google.api.field_behavior) = REQUIRED];
1289+
1290+
// Optional. The Document AI service endpoint. For example,
1291+
// 'https://us-documentai.googleapis.com'
1292+
string service_endpoint = 2 [(google.api.field_behavior) = OPTIONAL];
1293+
}
1294+
12861295
oneof source {
12871296
// The source processor version to import from. The source processor version
12881297
// and destination processor need to be in the same environment and region.
12891298
string processor_version_source = 2 [(google.api.resource_reference) = {
12901299
type: "documentai.googleapis.com/ProcessorVersion"
12911300
}];
1301+
1302+
// The source processor version to import from, and can be from different
1303+
// environment and region than the destination processor.
1304+
ExternalProcessorVersionSource external_processor_version_source = 3;
12921305
}
12931306

12941307
// Required. The destination processor name to create the processor version

0 commit comments

Comments
 (0)