Skip to content

Commit

Permalink
feat: [documentai] expose model_type in v1 processor, so that user ca…
Browse files Browse the repository at this point in the history
…n 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>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Feb 3, 2024
1 parent 421e7dd commit 2dd5b35
Show file tree
Hide file tree
Showing 10 changed files with 852 additions and 77 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2393,6 +2393,15 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.cloud.documentai.v1.ProcessorVersion$ModelType",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.cloud.documentai.v1.ProcessorVersion$State",
"queryAllDeclaredConstructors": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3086,6 +3086,15 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.cloud.documentai.v1beta3.ProcessorVersion$ModelType",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.cloud.documentai.v1beta3.ProcessorVersion$State",
"queryAllDeclaredConstructors": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "source.proto\0320google/cloud/documentai/v1"
+ "/document_schema.proto\032+google/cloud/doc"
+ "umentai/v1/evaluation.proto\032\037google/prot"
+ "obuf/timestamp.proto\"\266\007\n\020ProcessorVersio"
+ "obuf/timestamp.proto\"\343\010\n\020ProcessorVersio"
+ "n\022\014\n\004name\030\001 \001(\t\022\024\n\014display_name\030\002 \001(\t\022C\n"
+ "\017document_schema\030\014 \001(\0132*.google.cloud.do"
+ "cumentai.v1.DocumentSchema\022A\n\005state\030\006 \001("
Expand All @@ -71,43 +71,48 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\022\034\n\024kms_key_version_name\030\n \001(\t\022\034\n\016google"
+ "_managed\030\013 \001(\010B\004\342A\001\003\022V\n\020deprecation_info"
+ "\030\r \001(\0132<.google.cloud.documentai.v1.Proc"
+ "essorVersion.DeprecationInfo\032\237\001\n\017Depreca"
+ "tionInfo\0224\n\020deprecation_time\030\001 \001(\0132\032.goo"
+ "gle.protobuf.Timestamp\022V\n\035replacement_pr"
+ "ocessor_version\030\002 \001(\tB/\372A,\n*documentai.g"
+ "oogleapis.com/ProcessorVersion\"\223\001\n\005State"
+ "\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010DEPLOYED\020\001\022\r\n"
+ "\tDEPLOYING\020\002\022\016\n\nUNDEPLOYED\020\003\022\017\n\013UNDEPLOY"
+ "ING\020\004\022\014\n\010CREATING\020\005\022\014\n\010DELETING\020\006\022\n\n\006FAI"
+ "LED\020\007\022\r\n\tIMPORTING\020\010:\226\001\352A\222\001\n*documentai."
+ "googleapis.com/ProcessorVersion\022dproject"
+ "s/{project}/locations/{location}/process"
+ "ors/{processor}/processorVersions/{proce"
+ "ssor_version}\"r\n\025ProcessorVersionAlias\022\r"
+ "\n\005alias\030\001 \001(\t\022J\n\021processor_version\030\002 \001(\t"
+ "B/\372A,\n*documentai.googleapis.com/Process"
+ "orVersion\"\210\005\n\tProcessor\022\023\n\004name\030\001 \001(\tB\005\342"
+ "A\002\005\003\022\014\n\004type\030\002 \001(\t\022\024\n\014display_name\030\003 \001(\t"
+ "\022@\n\005state\030\004 \001(\0162+.google.cloud.documenta"
+ "i.v1.Processor.StateB\004\342A\001\003\022R\n\031default_pr"
+ "ocessor_version\030\t \001(\tB/\372A,\n*documentai.g"
+ "oogleapis.com/ProcessorVersion\022Z\n\031proces"
+ "sor_version_aliases\030\n \003(\01321.google.cloud"
+ ".documentai.v1.ProcessorVersionAliasB\004\342A"
+ "\001\003\022\037\n\020process_endpoint\030\006 \001(\tB\005\342A\002\003\005\022/\n\013c"
+ "reate_time\030\007 \001(\0132\032.google.protobuf.Times"
+ "tamp\022\024\n\014kms_key_name\030\010 \001(\t\"~\n\005State\022\025\n\021S"
+ "TATE_UNSPECIFIED\020\000\022\013\n\007ENABLED\020\001\022\014\n\010DISAB"
+ "LED\020\002\022\014\n\010ENABLING\020\003\022\r\n\tDISABLING\020\004\022\014\n\010CR"
+ "EATING\020\005\022\n\n\006FAILED\020\006\022\014\n\010DELETING\020\007:h\352Ae\n"
+ "#documentai.googleapis.com/Processor\022>pr"
+ "ojects/{project}/locations/{location}/pr"
+ "ocessors/{processor}B\321\001\n\036com.google.clou"
+ "d.documentai.v1B\023DocumentAiProcessorP\001Z>"
+ "cloud.google.com/go/documentai/apiv1/doc"
+ "umentaipb;documentaipb\252\002\032Google.Cloud.Do"
+ "cumentAI.V1\312\002\032Google\\Cloud\\DocumentAI\\V1"
+ "\352\002\035Google::Cloud::DocumentAI::V1b\006proto3"
+ "essorVersion.DeprecationInfo\022P\n\nmodel_ty"
+ "pe\030\017 \001(\01626.google.cloud.documentai.v1.Pr"
+ "ocessorVersion.ModelTypeB\004\342A\001\003\032\237\001\n\017Depre"
+ "cationInfo\0224\n\020deprecation_time\030\001 \001(\0132\032.g"
+ "oogle.protobuf.Timestamp\022V\n\035replacement_"
+ "processor_version\030\002 \001(\tB/\372A,\n*documentai"
+ ".googleapis.com/ProcessorVersion\"\223\001\n\005Sta"
+ "te\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010DEPLOYED\020\001\022"
+ "\r\n\tDEPLOYING\020\002\022\016\n\nUNDEPLOYED\020\003\022\017\n\013UNDEPL"
+ "OYING\020\004\022\014\n\010CREATING\020\005\022\014\n\010DELETING\020\006\022\n\n\006F"
+ "AILED\020\007\022\r\n\tIMPORTING\020\010\"Y\n\tModelType\022\032\n\026M"
+ "ODEL_TYPE_UNSPECIFIED\020\000\022\031\n\025MODEL_TYPE_GE"
+ "NERATIVE\020\001\022\025\n\021MODEL_TYPE_CUSTOM\020\002:\226\001\352A\222\001"
+ "\n*documentai.googleapis.com/ProcessorVer"
+ "sion\022dprojects/{project}/locations/{loca"
+ "tion}/processors/{processor}/processorVe"
+ "rsions/{processor_version}\"r\n\025ProcessorV"
+ "ersionAlias\022\r\n\005alias\030\001 \001(\t\022J\n\021processor_"
+ "version\030\002 \001(\tB/\372A,\n*documentai.googleapi"
+ "s.com/ProcessorVersion\"\210\005\n\tProcessor\022\023\n\004"
+ "name\030\001 \001(\tB\005\342A\002\005\003\022\014\n\004type\030\002 \001(\t\022\024\n\014displ"
+ "ay_name\030\003 \001(\t\022@\n\005state\030\004 \001(\0162+.google.cl"
+ "oud.documentai.v1.Processor.StateB\004\342A\001\003\022"
+ "R\n\031default_processor_version\030\t \001(\tB/\372A,\n"
+ "*documentai.googleapis.com/ProcessorVers"
+ "ion\022Z\n\031processor_version_aliases\030\n \003(\01321"
+ ".google.cloud.documentai.v1.ProcessorVer"
+ "sionAliasB\004\342A\001\003\022\037\n\020process_endpoint\030\006 \001("
+ "\tB\005\342A\002\003\005\022/\n\013create_time\030\007 \001(\0132\032.google.p"
+ "rotobuf.Timestamp\022\024\n\014kms_key_name\030\010 \001(\t\""
+ "~\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007ENABL"
+ "ED\020\001\022\014\n\010DISABLED\020\002\022\014\n\010ENABLING\020\003\022\r\n\tDISA"
+ "BLING\020\004\022\014\n\010CREATING\020\005\022\n\n\006FAILED\020\006\022\014\n\010DEL"
+ "ETING\020\007:h\352Ae\n#documentai.googleapis.com/"
+ "Processor\022>projects/{project}/locations/"
+ "{location}/processors/{processor}B\321\001\n\036co"
+ "m.google.cloud.documentai.v1B\023DocumentAi"
+ "ProcessorP\001Z>cloud.google.com/go/documen"
+ "tai/apiv1/documentaipb;documentaipb\252\002\032Go"
+ "ogle.Cloud.DocumentAI.V1\312\002\032Google\\Cloud\\"
+ "DocumentAI\\V1\352\002\035Google::Cloud::DocumentA"
+ "I::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
Expand Down Expand Up @@ -135,6 +140,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"KmsKeyVersionName",
"GoogleManaged",
"DeprecationInfo",
"ModelType",
});
internal_static_google_cloud_documentai_v1_ProcessorVersion_DeprecationInfo_descriptor =
internal_static_google_cloud_documentai_v1_ProcessorVersion_descriptor
Expand Down
Loading

0 comments on commit 2dd5b35

Please sign in to comment.