diff --git a/java-document-ai/google-cloud-document-ai/src/main/resources/META-INF/native-image/com.google.cloud.documentai.v1/reflect-config.json b/java-document-ai/google-cloud-document-ai/src/main/resources/META-INF/native-image/com.google.cloud.documentai.v1/reflect-config.json index 178c69c17b83..60b4a3d85a92 100644 --- a/java-document-ai/google-cloud-document-ai/src/main/resources/META-INF/native-image/com.google.cloud.documentai.v1/reflect-config.json +++ b/java-document-ai/google-cloud-document-ai/src/main/resources/META-INF/native-image/com.google.cloud.documentai.v1/reflect-config.json @@ -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, diff --git a/java-document-ai/google-cloud-document-ai/src/main/resources/META-INF/native-image/com.google.cloud.documentai.v1beta3/reflect-config.json b/java-document-ai/google-cloud-document-ai/src/main/resources/META-INF/native-image/com.google.cloud.documentai.v1beta3/reflect-config.json index 8f211d707e61..3f46cc8e5c5d 100644 --- a/java-document-ai/google-cloud-document-ai/src/main/resources/META-INF/native-image/com.google.cloud.documentai.v1beta3/reflect-config.json +++ b/java-document-ai/google-cloud-document-ai/src/main/resources/META-INF/native-image/com.google.cloud.documentai.v1beta3/reflect-config.json @@ -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, diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DocumentAiProcessor.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DocumentAiProcessor.java index 15c67ec1de72..628644529bda 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DocumentAiProcessor.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/DocumentAiProcessor.java @@ -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(" @@ -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( @@ -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 diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ProcessorVersion.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ProcessorVersion.java index 325e1e44cdda..f210b8b84a7f 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ProcessorVersion.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ProcessorVersion.java @@ -47,6 +47,7 @@ private ProcessorVersion() { state_ = 0; kmsKeyName_ = ""; kmsKeyVersionName_ = ""; + modelType_ = 0; } @java.lang.Override @@ -359,6 +360,163 @@ private State(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.documentai.v1.ProcessorVersion.State) } + /** + * + * + *
+   * The possible model types of the processor version.
+   * 
+ * + * Protobuf enum {@code google.cloud.documentai.v1.ProcessorVersion.ModelType} + */ + public enum ModelType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * The processor version has unspecified model type.
+     * 
+ * + * MODEL_TYPE_UNSPECIFIED = 0; + */ + MODEL_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * The processor version has generative model type.
+     * 
+ * + * MODEL_TYPE_GENERATIVE = 1; + */ + MODEL_TYPE_GENERATIVE(1), + /** + * + * + *
+     * The processor version has custom model type.
+     * 
+ * + * MODEL_TYPE_CUSTOM = 2; + */ + MODEL_TYPE_CUSTOM(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * The processor version has unspecified model type.
+     * 
+ * + * MODEL_TYPE_UNSPECIFIED = 0; + */ + public static final int MODEL_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * The processor version has generative model type.
+     * 
+ * + * MODEL_TYPE_GENERATIVE = 1; + */ + public static final int MODEL_TYPE_GENERATIVE_VALUE = 1; + /** + * + * + *
+     * The processor version has custom model type.
+     * 
+ * + * MODEL_TYPE_CUSTOM = 2; + */ + public static final int MODEL_TYPE_CUSTOM_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ModelType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static ModelType forNumber(int value) { + switch (value) { + case 0: + return MODEL_TYPE_UNSPECIFIED; + case 1: + return MODEL_TYPE_GENERATIVE; + case 2: + return MODEL_TYPE_CUSTOM; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ModelType findValueByNumber(int number) { + return ModelType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.documentai.v1.ProcessorVersion.getDescriptor().getEnumTypes().get(1); + } + + private static final ModelType[] VALUES = values(); + + public static ModelType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ModelType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.documentai.v1.ProcessorVersion.ModelType) + } + public interface DeprecationInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.documentai.v1.ProcessorVersion.DeprecationInfo) @@ -1803,6 +1961,47 @@ public com.google.cloud.documentai.v1.ProcessorVersion.DeprecationInfo getDeprec : deprecationInfo_; } + public static final int MODEL_TYPE_FIELD_NUMBER = 15; + private int modelType_ = 0; + /** + * + * + *
+   * Output only. The model type of this processor version.
+   * 
+ * + * + * .google.cloud.documentai.v1.ProcessorVersion.ModelType model_type = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for modelType. + */ + @java.lang.Override + public int getModelTypeValue() { + return modelType_; + } + /** + * + * + *
+   * Output only. The model type of this processor version.
+   * 
+ * + * + * .google.cloud.documentai.v1.ProcessorVersion.ModelType model_type = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The modelType. + */ + @java.lang.Override + public com.google.cloud.documentai.v1.ProcessorVersion.ModelType getModelType() { + com.google.cloud.documentai.v1.ProcessorVersion.ModelType result = + com.google.cloud.documentai.v1.ProcessorVersion.ModelType.forNumber(modelType_); + return result == null + ? com.google.cloud.documentai.v1.ProcessorVersion.ModelType.UNRECOGNIZED + : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1848,6 +2047,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(13, getDeprecationInfo()); } + if (modelType_ + != com.google.cloud.documentai.v1.ProcessorVersion.ModelType.MODEL_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(15, modelType_); + } getUnknownFields().writeTo(output); } @@ -1888,6 +2092,11 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getDeprecationInfo()); } + if (modelType_ + != com.google.cloud.documentai.v1.ProcessorVersion.ModelType.MODEL_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(15, modelType_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1926,6 +2135,7 @@ public boolean equals(final java.lang.Object obj) { if (hasDeprecationInfo()) { if (!getDeprecationInfo().equals(other.getDeprecationInfo())) return false; } + if (modelType_ != other.modelType_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1965,6 +2175,8 @@ public int hashCode() { hash = (37 * hash) + DEPRECATION_INFO_FIELD_NUMBER; hash = (53 * hash) + getDeprecationInfo().hashCode(); } + hash = (37 * hash) + MODEL_TYPE_FIELD_NUMBER; + hash = (53 * hash) + modelType_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2145,6 +2357,7 @@ public Builder clear() { deprecationInfoBuilder_.dispose(); deprecationInfoBuilder_ = null; } + modelType_ = 0; return this; } @@ -2219,6 +2432,9 @@ private void buildPartial0(com.google.cloud.documentai.v1.ProcessorVersion resul deprecationInfoBuilder_ == null ? deprecationInfo_ : deprecationInfoBuilder_.build(); to_bitField0_ |= 0x00000008; } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.modelType_ = modelType_; + } result.bitField0_ |= to_bitField0_; } @@ -2306,6 +2522,9 @@ public Builder mergeFrom(com.google.cloud.documentai.v1.ProcessorVersion other) if (other.hasDeprecationInfo()) { mergeDeprecationInfo(other.getDeprecationInfo()); } + if (other.modelType_ != 0) { + setModelTypeValue(other.getModelTypeValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2393,6 +2612,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000200; break; } // case 106 + case 120: + { + modelType_ = input.readEnum(); + bitField0_ |= 0x00000400; + break; + } // case 120 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3752,6 +3977,108 @@ public Builder clearDeprecationInfo() { return deprecationInfoBuilder_; } + private int modelType_ = 0; + /** + * + * + *
+     * Output only. The model type of this processor version.
+     * 
+ * + * + * .google.cloud.documentai.v1.ProcessorVersion.ModelType model_type = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for modelType. + */ + @java.lang.Override + public int getModelTypeValue() { + return modelType_; + } + /** + * + * + *
+     * Output only. The model type of this processor version.
+     * 
+ * + * + * .google.cloud.documentai.v1.ProcessorVersion.ModelType model_type = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for modelType to set. + * @return This builder for chaining. + */ + public Builder setModelTypeValue(int value) { + modelType_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The model type of this processor version.
+     * 
+ * + * + * .google.cloud.documentai.v1.ProcessorVersion.ModelType model_type = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The modelType. + */ + @java.lang.Override + public com.google.cloud.documentai.v1.ProcessorVersion.ModelType getModelType() { + com.google.cloud.documentai.v1.ProcessorVersion.ModelType result = + com.google.cloud.documentai.v1.ProcessorVersion.ModelType.forNumber(modelType_); + return result == null + ? com.google.cloud.documentai.v1.ProcessorVersion.ModelType.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Output only. The model type of this processor version.
+     * 
+ * + * + * .google.cloud.documentai.v1.ProcessorVersion.ModelType model_type = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The modelType to set. + * @return This builder for chaining. + */ + public Builder setModelType(com.google.cloud.documentai.v1.ProcessorVersion.ModelType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000400; + modelType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The model type of this processor version.
+     * 
+ * + * + * .google.cloud.documentai.v1.ProcessorVersion.ModelType model_type = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearModelType() { + bitField0_ = (bitField0_ & ~0x00000400); + modelType_ = 0; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ProcessorVersionOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ProcessorVersionOrBuilder.java index ce44f8b38c4d..9810b99cabdf 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ProcessorVersionOrBuilder.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/ProcessorVersionOrBuilder.java @@ -309,4 +309,33 @@ public interface ProcessorVersionOrBuilder */ com.google.cloud.documentai.v1.ProcessorVersion.DeprecationInfoOrBuilder getDeprecationInfoOrBuilder(); + + /** + * + * + *
+   * Output only. The model type of this processor version.
+   * 
+ * + * + * .google.cloud.documentai.v1.ProcessorVersion.ModelType model_type = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for modelType. + */ + int getModelTypeValue(); + /** + * + * + *
+   * Output only. The model type of this processor version.
+   * 
+ * + * + * .google.cloud.documentai.v1.ProcessorVersion.ModelType model_type = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The modelType. + */ + com.google.cloud.documentai.v1.ProcessorVersion.ModelType getModelType(); } diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/proto/google/cloud/documentai/v1/processor.proto b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/proto/google/cloud/documentai/v1/processor.proto index 483e79da6a39..29cb85547f45 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/src/main/proto/google/cloud/documentai/v1/processor.proto +++ b/java-document-ai/proto-google-cloud-document-ai-v1/src/main/proto/google/cloud/documentai/v1/processor.proto @@ -82,6 +82,18 @@ message ProcessorVersion { IMPORTING = 8; } + // The possible model types of the processor version. + enum ModelType { + // The processor version has unspecified model type. + MODEL_TYPE_UNSPECIFIED = 0; + + // The processor version has generative model type. + MODEL_TYPE_GENERATIVE = 1; + + // The processor version has custom model type. + MODEL_TYPE_CUSTOM = 2; + } + // The resource name of the processor version. // Format: // `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processor_version}` @@ -113,6 +125,9 @@ message ProcessorVersion { // If set, information about the eventual deprecation of this version. DeprecationInfo deprecation_info = 13; + + // Output only. The model type of this processor version. + ModelType model_type = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Contains the alias and the aliased resource name of processor version. diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiProcessor.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiProcessor.java index 139335f3921b..c58f82be54aa 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiProcessor.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentAiProcessor.java @@ -60,7 +60,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "umentai/v1beta3/document_schema.proto\0320g" + "oogle/cloud/documentai/v1beta3/evaluatio" + "n.proto\032\037google/protobuf/timestamp.proto" - + "\"\312\007\n\020ProcessorVersion\022\014\n\004name\030\001 \001(\t\022\024\n\014d" + + "\"\374\010\n\020ProcessorVersion\022\014\n\004name\030\001 \001(\t\022\024\n\014d" + "isplay_name\030\002 \001(\t\022H\n\017document_schema\030\014 \001" + "(\0132/.google.cloud.documentai.v1beta3.Doc" + "umentSchema\022F\n\005state\030\006 \001(\01627.google.clou" @@ -72,44 +72,49 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ms_key_version_name\030\n \001(\t\022\034\n\016google_mana" + "ged\030\013 \001(\010B\004\342A\001\003\022[\n\020deprecation_info\030\r \001(" + "\0132A.google.cloud.documentai.v1beta3.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\"\222\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" - + "\022E\n\005state\030\004 \001(\01620.google.cloud.documenta" - + "i.v1beta3.Processor.StateB\004\342A\001\003\022R\n\031defau" - + "lt_processor_version\030\t \001(\tB/\372A,\n*documen" - + "tai.googleapis.com/ProcessorVersion\022_\n\031p" - + "rocessor_version_aliases\030\n \003(\01326.google." - + "cloud.documentai.v1beta3.ProcessorVersio" - + "nAliasB\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.prot" - + "obuf.Timestamp\022\024\n\014kms_key_name\030\010 \001(\t\"~\n\005" - + "State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007ENABLED\020" - + "\001\022\014\n\010DISABLED\020\002\022\014\n\010ENABLING\020\003\022\r\n\tDISABLI" - + "NG\020\004\022\014\n\010CREATING\020\005\022\n\n\006FAILED\020\006\022\014\n\010DELETI" - + "NG\020\007:h\352Ae\n#documentai.googleapis.com/Pro" - + "cessor\022>projects/{project}/locations/{lo" - + "cation}/processors/{processor}B\352\001\n#com.g" - + "oogle.cloud.documentai.v1beta3B\023Document" - + "AiProcessorP\001ZCcloud.google.com/go/docum" - + "entai/apiv1beta3/documentaipb;documentai" - + "pb\252\002\037Google.Cloud.DocumentAI.V1Beta3\312\002\037G" - + "oogle\\Cloud\\DocumentAI\\V1beta3\352\002\"Google:" - + ":Cloud::DocumentAI::V1beta3b\006proto3" + + "essorVersion.DeprecationInfo\022U\n\nmodel_ty" + + "pe\030\017 \001(\0162;.google.cloud.documentai.v1bet" + + "a3.ProcessorVersion.ModelTypeB\004\342A\001\003\032\237\001\n\017" + + "DeprecationInfo\0224\n\020deprecation_time\030\001 \001(" + + "\0132\032.google.protobuf.Timestamp\022V\n\035replace" + + "ment_processor_version\030\002 \001(\tB/\372A,\n*docum" + + "entai.googleapis.com/ProcessorVersion\"\223\001" + + "\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010DEPLOY" + + "ED\020\001\022\r\n\tDEPLOYING\020\002\022\016\n\nUNDEPLOYED\020\003\022\017\n\013U" + + "NDEPLOYING\020\004\022\014\n\010CREATING\020\005\022\014\n\010DELETING\020\006" + + "\022\n\n\006FAILED\020\007\022\r\n\tIMPORTING\020\010\"Y\n\tModelType" + + "\022\032\n\026MODEL_TYPE_UNSPECIFIED\020\000\022\031\n\025MODEL_TY" + + "PE_GENERATIVE\020\001\022\025\n\021MODEL_TYPE_CUSTOM\020\002:\226" + + "\001\352A\222\001\n*documentai.googleapis.com/Process" + + "orVersion\022dprojects/{project}/locations/" + + "{location}/processors/{processor}/proces" + + "sorVersions/{processor_version}\"r\n\025Proce" + + "ssorVersionAlias\022\r\n\005alias\030\001 \001(\t\022J\n\021proce" + + "ssor_version\030\002 \001(\tB/\372A,\n*documentai.goog" + + "leapis.com/ProcessorVersion\"\222\005\n\tProcesso" + + "r\022\023\n\004name\030\001 \001(\tB\005\342A\002\005\003\022\014\n\004type\030\002 \001(\t\022\024\n\014" + + "display_name\030\003 \001(\t\022E\n\005state\030\004 \001(\01620.goog" + + "le.cloud.documentai.v1beta3.Processor.St" + + "ateB\004\342A\001\003\022R\n\031default_processor_version\030\t" + + " \001(\tB/\372A,\n*documentai.googleapis.com/Pro" + + "cessorVersion\022_\n\031processor_version_alias" + + "es\030\n \003(\01326.google.cloud.documentai.v1bet" + + "a3.ProcessorVersionAliasB\004\342A\001\003\022\037\n\020proces" + + "s_endpoint\030\006 \001(\tB\005\342A\002\003\005\022/\n\013create_time\030\007" + + " \001(\0132\032.google.protobuf.Timestamp\022\024\n\014kms_" + + "key_name\030\010 \001(\t\"~\n\005State\022\025\n\021STATE_UNSPECI" + + "FIED\020\000\022\013\n\007ENABLED\020\001\022\014\n\010DISABLED\020\002\022\014\n\010ENA" + + "BLING\020\003\022\r\n\tDISABLING\020\004\022\014\n\010CREATING\020\005\022\n\n\006" + + "FAILED\020\006\022\014\n\010DELETING\020\007:h\352Ae\n#documentai." + + "googleapis.com/Processor\022>projects/{proj" + + "ect}/locations/{location}/processors/{pr" + + "ocessor}B\352\001\n#com.google.cloud.documentai" + + ".v1beta3B\023DocumentAiProcessorP\001ZCcloud.g" + + "oogle.com/go/documentai/apiv1beta3/docum" + + "entaipb;documentaipb\252\002\037Google.Cloud.Docu" + + "mentAI.V1Beta3\312\002\037Google\\Cloud\\DocumentAI" + + "\\V1beta3\352\002\"Google::Cloud::DocumentAI::V1" + + "beta3b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -137,6 +142,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "KmsKeyVersionName", "GoogleManaged", "DeprecationInfo", + "ModelType", }); internal_static_google_cloud_documentai_v1beta3_ProcessorVersion_DeprecationInfo_descriptor = internal_static_google_cloud_documentai_v1beta3_ProcessorVersion_descriptor diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessorVersion.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessorVersion.java index 3b1fa3eb40b9..0121bdec5809 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessorVersion.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessorVersion.java @@ -47,6 +47,7 @@ private ProcessorVersion() { state_ = 0; kmsKeyName_ = ""; kmsKeyVersionName_ = ""; + modelType_ = 0; } @java.lang.Override @@ -361,6 +362,165 @@ private State(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.documentai.v1beta3.ProcessorVersion.State) } + /** + * + * + *
+   * The possible model types of the processor version.
+   * 
+ * + * Protobuf enum {@code google.cloud.documentai.v1beta3.ProcessorVersion.ModelType} + */ + public enum ModelType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * The processor version has unspecified model type.
+     * 
+ * + * MODEL_TYPE_UNSPECIFIED = 0; + */ + MODEL_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * The processor version has generative model type.
+     * 
+ * + * MODEL_TYPE_GENERATIVE = 1; + */ + MODEL_TYPE_GENERATIVE(1), + /** + * + * + *
+     * The processor version has custom model type.
+     * 
+ * + * MODEL_TYPE_CUSTOM = 2; + */ + MODEL_TYPE_CUSTOM(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * The processor version has unspecified model type.
+     * 
+ * + * MODEL_TYPE_UNSPECIFIED = 0; + */ + public static final int MODEL_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * The processor version has generative model type.
+     * 
+ * + * MODEL_TYPE_GENERATIVE = 1; + */ + public static final int MODEL_TYPE_GENERATIVE_VALUE = 1; + /** + * + * + *
+     * The processor version has custom model type.
+     * 
+ * + * MODEL_TYPE_CUSTOM = 2; + */ + public static final int MODEL_TYPE_CUSTOM_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ModelType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static ModelType forNumber(int value) { + switch (value) { + case 0: + return MODEL_TYPE_UNSPECIFIED; + case 1: + return MODEL_TYPE_GENERATIVE; + case 2: + return MODEL_TYPE_CUSTOM; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ModelType findValueByNumber(int number) { + return ModelType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.documentai.v1beta3.ProcessorVersion.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final ModelType[] VALUES = values(); + + public static ModelType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ModelType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.documentai.v1beta3.ProcessorVersion.ModelType) + } + public interface DeprecationInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.documentai.v1beta3.ProcessorVersion.DeprecationInfo) @@ -1808,6 +1968,47 @@ public com.google.cloud.documentai.v1beta3.ProcessorVersion.DeprecationInfo getD : deprecationInfo_; } + public static final int MODEL_TYPE_FIELD_NUMBER = 15; + private int modelType_ = 0; + /** + * + * + *
+   * Output only. The model type of this processor version.
+   * 
+ * + * + * .google.cloud.documentai.v1beta3.ProcessorVersion.ModelType model_type = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for modelType. + */ + @java.lang.Override + public int getModelTypeValue() { + return modelType_; + } + /** + * + * + *
+   * Output only. The model type of this processor version.
+   * 
+ * + * + * .google.cloud.documentai.v1beta3.ProcessorVersion.ModelType model_type = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The modelType. + */ + @java.lang.Override + public com.google.cloud.documentai.v1beta3.ProcessorVersion.ModelType getModelType() { + com.google.cloud.documentai.v1beta3.ProcessorVersion.ModelType result = + com.google.cloud.documentai.v1beta3.ProcessorVersion.ModelType.forNumber(modelType_); + return result == null + ? com.google.cloud.documentai.v1beta3.ProcessorVersion.ModelType.UNRECOGNIZED + : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1854,6 +2055,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(13, getDeprecationInfo()); } + if (modelType_ + != com.google.cloud.documentai.v1beta3.ProcessorVersion.ModelType.MODEL_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(15, modelType_); + } getUnknownFields().writeTo(output); } @@ -1895,6 +2101,11 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getDeprecationInfo()); } + if (modelType_ + != com.google.cloud.documentai.v1beta3.ProcessorVersion.ModelType.MODEL_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(15, modelType_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1933,6 +2144,7 @@ public boolean equals(final java.lang.Object obj) { if (hasDeprecationInfo()) { if (!getDeprecationInfo().equals(other.getDeprecationInfo())) return false; } + if (modelType_ != other.modelType_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1972,6 +2184,8 @@ public int hashCode() { hash = (37 * hash) + DEPRECATION_INFO_FIELD_NUMBER; hash = (53 * hash) + getDeprecationInfo().hashCode(); } + hash = (37 * hash) + MODEL_TYPE_FIELD_NUMBER; + hash = (53 * hash) + modelType_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2152,6 +2366,7 @@ public Builder clear() { deprecationInfoBuilder_.dispose(); deprecationInfoBuilder_ = null; } + modelType_ = 0; return this; } @@ -2226,6 +2441,9 @@ private void buildPartial0(com.google.cloud.documentai.v1beta3.ProcessorVersion deprecationInfoBuilder_ == null ? deprecationInfo_ : deprecationInfoBuilder_.build(); to_bitField0_ |= 0x00000008; } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.modelType_ = modelType_; + } result.bitField0_ |= to_bitField0_; } @@ -2313,6 +2531,9 @@ public Builder mergeFrom(com.google.cloud.documentai.v1beta3.ProcessorVersion ot if (other.hasDeprecationInfo()) { mergeDeprecationInfo(other.getDeprecationInfo()); } + if (other.modelType_ != 0) { + setModelTypeValue(other.getModelTypeValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2400,6 +2621,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000200; break; } // case 106 + case 120: + { + modelType_ = input.readEnum(); + bitField0_ |= 0x00000400; + break; + } // case 120 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3776,6 +4003,109 @@ public Builder clearDeprecationInfo() { return deprecationInfoBuilder_; } + private int modelType_ = 0; + /** + * + * + *
+     * Output only. The model type of this processor version.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.ProcessorVersion.ModelType model_type = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for modelType. + */ + @java.lang.Override + public int getModelTypeValue() { + return modelType_; + } + /** + * + * + *
+     * Output only. The model type of this processor version.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.ProcessorVersion.ModelType model_type = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for modelType to set. + * @return This builder for chaining. + */ + public Builder setModelTypeValue(int value) { + modelType_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The model type of this processor version.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.ProcessorVersion.ModelType model_type = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The modelType. + */ + @java.lang.Override + public com.google.cloud.documentai.v1beta3.ProcessorVersion.ModelType getModelType() { + com.google.cloud.documentai.v1beta3.ProcessorVersion.ModelType result = + com.google.cloud.documentai.v1beta3.ProcessorVersion.ModelType.forNumber(modelType_); + return result == null + ? com.google.cloud.documentai.v1beta3.ProcessorVersion.ModelType.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Output only. The model type of this processor version.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.ProcessorVersion.ModelType model_type = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The modelType to set. + * @return This builder for chaining. + */ + public Builder setModelType( + com.google.cloud.documentai.v1beta3.ProcessorVersion.ModelType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000400; + modelType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The model type of this processor version.
+     * 
+ * + * + * .google.cloud.documentai.v1beta3.ProcessorVersion.ModelType model_type = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearModelType() { + bitField0_ = (bitField0_ & ~0x00000400); + modelType_ = 0; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessorVersionOrBuilder.java b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessorVersionOrBuilder.java index 03f6fc38d832..267985d1981b 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessorVersionOrBuilder.java +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/ProcessorVersionOrBuilder.java @@ -309,4 +309,33 @@ public interface ProcessorVersionOrBuilder */ com.google.cloud.documentai.v1beta3.ProcessorVersion.DeprecationInfoOrBuilder getDeprecationInfoOrBuilder(); + + /** + * + * + *
+   * Output only. The model type of this processor version.
+   * 
+ * + * + * .google.cloud.documentai.v1beta3.ProcessorVersion.ModelType model_type = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for modelType. + */ + int getModelTypeValue(); + /** + * + * + *
+   * Output only. The model type of this processor version.
+   * 
+ * + * + * .google.cloud.documentai.v1beta3.ProcessorVersion.ModelType model_type = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The modelType. + */ + com.google.cloud.documentai.v1beta3.ProcessorVersion.ModelType getModelType(); } diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/processor.proto b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/processor.proto index 34068689de50..6a4437ac1af1 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/processor.proto +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/processor.proto @@ -82,6 +82,18 @@ message ProcessorVersion { IMPORTING = 8; } + // The possible model types of the processor version. + enum ModelType { + // The processor version has unspecified model type. + MODEL_TYPE_UNSPECIFIED = 0; + + // The processor version has generative model type. + MODEL_TYPE_GENERATIVE = 1; + + // The processor version has custom model type. + MODEL_TYPE_CUSTOM = 2; + } + // The resource name of the processor version. // Format: // `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processor_version}` @@ -113,6 +125,9 @@ message ProcessorVersion { // If set, information about the eventual deprecation of this version. DeprecationInfo deprecation_info = 13; + + // Output only. The model type of this processor version. + ModelType model_type = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Contains the alias and the aliased resource name of processor version.