Skip to content

Commit 2dd5b35

Browse files
feat: [documentai] expose model_type in v1 processor, so that user can see the model_type after get or list processor version (#10322)
* feat: add model_type in v1beta3 processor proto PiperOrigin-RevId: 603726122 Source-Link: googleapis/googleapis@c7fd8bd Source-Link: https://github.com/googleapis/googleapis-gen/commit/23bc05e699ad5701027589137be44d4a43091829 Copy-Tag: eyJwIjoiamF2YS1kb2N1bWVudC1haS8uT3dsQm90LnlhbWwiLCJoIjoiMjNiYzA1ZTY5OWFkNTcwMTAyNzU4OTEzN2JlNDRkNGE0MzA5MTgyOSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: expose model_type in v1 processor, so that user can see the model_type after get or list processor version PiperOrigin-RevId: 603727585 Source-Link: googleapis/googleapis@7a9a855 Source-Link: https://github.com/googleapis/googleapis-gen/commit/9643051150762c3e15d1cd420ddfb978a1b7c24c Copy-Tag: eyJwIjoiamF2YS1kb2N1bWVudC1haS8uT3dsQm90LnlhbWwiLCJoIjoiOTY0MzA1MTE1MDc2MmMzZTE1ZDFjZDQyMGRkZmI5NzhhMWI3YzI0YyJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 421e7dd commit 2dd5b35

File tree

10 files changed

+852
-77
lines changed

10 files changed

+852
-77
lines changed

java-document-ai/google-cloud-document-ai/src/main/resources/META-INF/native-image/com.google.cloud.documentai.v1/reflect-config.json

+9
Original file line numberDiff line numberDiff line change
@@ -2393,6 +2393,15 @@
23932393
"allDeclaredClasses": true,
23942394
"allPublicClasses": true
23952395
},
2396+
{
2397+
"name": "com.google.cloud.documentai.v1.ProcessorVersion$ModelType",
2398+
"queryAllDeclaredConstructors": true,
2399+
"queryAllPublicConstructors": true,
2400+
"queryAllDeclaredMethods": true,
2401+
"allPublicMethods": true,
2402+
"allDeclaredClasses": true,
2403+
"allPublicClasses": true
2404+
},
23962405
{
23972406
"name": "com.google.cloud.documentai.v1.ProcessorVersion$State",
23982407
"queryAllDeclaredConstructors": true,

java-document-ai/google-cloud-document-ai/src/main/resources/META-INF/native-image/com.google.cloud.documentai.v1beta3/reflect-config.json

+9
Original file line numberDiff line numberDiff line change
@@ -3086,6 +3086,15 @@
30863086
"allDeclaredClasses": true,
30873087
"allPublicClasses": true
30883088
},
3089+
{
3090+
"name": "com.google.cloud.documentai.v1beta3.ProcessorVersion$ModelType",
3091+
"queryAllDeclaredConstructors": true,
3092+
"queryAllPublicConstructors": true,
3093+
"queryAllDeclaredMethods": true,
3094+
"allPublicMethods": true,
3095+
"allDeclaredClasses": true,
3096+
"allPublicClasses": true
3097+
},
30893098
{
30903099
"name": "com.google.cloud.documentai.v1beta3.ProcessorVersion$State",
30913100
"queryAllDeclaredConstructors": true,

java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DocumentAiProcessor.java

+44-38
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
5959
+ "source.proto\0320google/cloud/documentai/v1"
6060
+ "/document_schema.proto\032+google/cloud/doc"
6161
+ "umentai/v1/evaluation.proto\032\037google/prot"
62-
+ "obuf/timestamp.proto\"\266\007\n\020ProcessorVersio"
62+
+ "obuf/timestamp.proto\"\343\010\n\020ProcessorVersio"
6363
+ "n\022\014\n\004name\030\001 \001(\t\022\024\n\014display_name\030\002 \001(\t\022C\n"
6464
+ "\017document_schema\030\014 \001(\0132*.google.cloud.do"
6565
+ "cumentai.v1.DocumentSchema\022A\n\005state\030\006 \001("
@@ -71,43 +71,48 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
7171
+ "\022\034\n\024kms_key_version_name\030\n \001(\t\022\034\n\016google"
7272
+ "_managed\030\013 \001(\010B\004\342A\001\003\022V\n\020deprecation_info"
7373
+ "\030\r \001(\0132<.google.cloud.documentai.v1.Proc"
74-
+ "essorVersion.DeprecationInfo\032\237\001\n\017Depreca"
75-
+ "tionInfo\0224\n\020deprecation_time\030\001 \001(\0132\032.goo"
76-
+ "gle.protobuf.Timestamp\022V\n\035replacement_pr"
77-
+ "ocessor_version\030\002 \001(\tB/\372A,\n*documentai.g"
78-
+ "oogleapis.com/ProcessorVersion\"\223\001\n\005State"
79-
+ "\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010DEPLOYED\020\001\022\r\n"
80-
+ "\tDEPLOYING\020\002\022\016\n\nUNDEPLOYED\020\003\022\017\n\013UNDEPLOY"
81-
+ "ING\020\004\022\014\n\010CREATING\020\005\022\014\n\010DELETING\020\006\022\n\n\006FAI"
82-
+ "LED\020\007\022\r\n\tIMPORTING\020\010:\226\001\352A\222\001\n*documentai."
83-
+ "googleapis.com/ProcessorVersion\022dproject"
84-
+ "s/{project}/locations/{location}/process"
85-
+ "ors/{processor}/processorVersions/{proce"
86-
+ "ssor_version}\"r\n\025ProcessorVersionAlias\022\r"
87-
+ "\n\005alias\030\001 \001(\t\022J\n\021processor_version\030\002 \001(\t"
88-
+ "B/\372A,\n*documentai.googleapis.com/Process"
89-
+ "orVersion\"\210\005\n\tProcessor\022\023\n\004name\030\001 \001(\tB\005\342"
90-
+ "A\002\005\003\022\014\n\004type\030\002 \001(\t\022\024\n\014display_name\030\003 \001(\t"
91-
+ "\022@\n\005state\030\004 \001(\0162+.google.cloud.documenta"
92-
+ "i.v1.Processor.StateB\004\342A\001\003\022R\n\031default_pr"
93-
+ "ocessor_version\030\t \001(\tB/\372A,\n*documentai.g"
94-
+ "oogleapis.com/ProcessorVersion\022Z\n\031proces"
95-
+ "sor_version_aliases\030\n \003(\01321.google.cloud"
96-
+ ".documentai.v1.ProcessorVersionAliasB\004\342A"
97-
+ "\001\003\022\037\n\020process_endpoint\030\006 \001(\tB\005\342A\002\003\005\022/\n\013c"
98-
+ "reate_time\030\007 \001(\0132\032.google.protobuf.Times"
99-
+ "tamp\022\024\n\014kms_key_name\030\010 \001(\t\"~\n\005State\022\025\n\021S"
100-
+ "TATE_UNSPECIFIED\020\000\022\013\n\007ENABLED\020\001\022\014\n\010DISAB"
101-
+ "LED\020\002\022\014\n\010ENABLING\020\003\022\r\n\tDISABLING\020\004\022\014\n\010CR"
102-
+ "EATING\020\005\022\n\n\006FAILED\020\006\022\014\n\010DELETING\020\007:h\352Ae\n"
103-
+ "#documentai.googleapis.com/Processor\022>pr"
104-
+ "ojects/{project}/locations/{location}/pr"
105-
+ "ocessors/{processor}B\321\001\n\036com.google.clou"
106-
+ "d.documentai.v1B\023DocumentAiProcessorP\001Z>"
107-
+ "cloud.google.com/go/documentai/apiv1/doc"
108-
+ "umentaipb;documentaipb\252\002\032Google.Cloud.Do"
109-
+ "cumentAI.V1\312\002\032Google\\Cloud\\DocumentAI\\V1"
110-
+ "\352\002\035Google::Cloud::DocumentAI::V1b\006proto3"
74+
+ "essorVersion.DeprecationInfo\022P\n\nmodel_ty"
75+
+ "pe\030\017 \001(\01626.google.cloud.documentai.v1.Pr"
76+
+ "ocessorVersion.ModelTypeB\004\342A\001\003\032\237\001\n\017Depre"
77+
+ "cationInfo\0224\n\020deprecation_time\030\001 \001(\0132\032.g"
78+
+ "oogle.protobuf.Timestamp\022V\n\035replacement_"
79+
+ "processor_version\030\002 \001(\tB/\372A,\n*documentai"
80+
+ ".googleapis.com/ProcessorVersion\"\223\001\n\005Sta"
81+
+ "te\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010DEPLOYED\020\001\022"
82+
+ "\r\n\tDEPLOYING\020\002\022\016\n\nUNDEPLOYED\020\003\022\017\n\013UNDEPL"
83+
+ "OYING\020\004\022\014\n\010CREATING\020\005\022\014\n\010DELETING\020\006\022\n\n\006F"
84+
+ "AILED\020\007\022\r\n\tIMPORTING\020\010\"Y\n\tModelType\022\032\n\026M"
85+
+ "ODEL_TYPE_UNSPECIFIED\020\000\022\031\n\025MODEL_TYPE_GE"
86+
+ "NERATIVE\020\001\022\025\n\021MODEL_TYPE_CUSTOM\020\002:\226\001\352A\222\001"
87+
+ "\n*documentai.googleapis.com/ProcessorVer"
88+
+ "sion\022dprojects/{project}/locations/{loca"
89+
+ "tion}/processors/{processor}/processorVe"
90+
+ "rsions/{processor_version}\"r\n\025ProcessorV"
91+
+ "ersionAlias\022\r\n\005alias\030\001 \001(\t\022J\n\021processor_"
92+
+ "version\030\002 \001(\tB/\372A,\n*documentai.googleapi"
93+
+ "s.com/ProcessorVersion\"\210\005\n\tProcessor\022\023\n\004"
94+
+ "name\030\001 \001(\tB\005\342A\002\005\003\022\014\n\004type\030\002 \001(\t\022\024\n\014displ"
95+
+ "ay_name\030\003 \001(\t\022@\n\005state\030\004 \001(\0162+.google.cl"
96+
+ "oud.documentai.v1.Processor.StateB\004\342A\001\003\022"
97+
+ "R\n\031default_processor_version\030\t \001(\tB/\372A,\n"
98+
+ "*documentai.googleapis.com/ProcessorVers"
99+
+ "ion\022Z\n\031processor_version_aliases\030\n \003(\01321"
100+
+ ".google.cloud.documentai.v1.ProcessorVer"
101+
+ "sionAliasB\004\342A\001\003\022\037\n\020process_endpoint\030\006 \001("
102+
+ "\tB\005\342A\002\003\005\022/\n\013create_time\030\007 \001(\0132\032.google.p"
103+
+ "rotobuf.Timestamp\022\024\n\014kms_key_name\030\010 \001(\t\""
104+
+ "~\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007ENABL"
105+
+ "ED\020\001\022\014\n\010DISABLED\020\002\022\014\n\010ENABLING\020\003\022\r\n\tDISA"
106+
+ "BLING\020\004\022\014\n\010CREATING\020\005\022\n\n\006FAILED\020\006\022\014\n\010DEL"
107+
+ "ETING\020\007:h\352Ae\n#documentai.googleapis.com/"
108+
+ "Processor\022>projects/{project}/locations/"
109+
+ "{location}/processors/{processor}B\321\001\n\036co"
110+
+ "m.google.cloud.documentai.v1B\023DocumentAi"
111+
+ "ProcessorP\001Z>cloud.google.com/go/documen"
112+
+ "tai/apiv1/documentaipb;documentaipb\252\002\032Go"
113+
+ "ogle.Cloud.DocumentAI.V1\312\002\032Google\\Cloud\\"
114+
+ "DocumentAI\\V1\352\002\035Google::Cloud::DocumentA"
115+
+ "I::V1b\006proto3"
111116
};
112117
descriptor =
113118
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -135,6 +140,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
135140
"KmsKeyVersionName",
136141
"GoogleManaged",
137142
"DeprecationInfo",
143+
"ModelType",
138144
});
139145
internal_static_google_cloud_documentai_v1_ProcessorVersion_DeprecationInfo_descriptor =
140146
internal_static_google_cloud_documentai_v1_ProcessorVersion_descriptor

0 commit comments

Comments
 (0)