lib/google/cloud/documentai/v1beta3/processor_pb.rb in google-cloud-document_ai-v1beta3-0.22.0 vs lib/google/cloud/documentai/v1beta3/processor_pb.rb in google-cloud-document_ai-v1beta3-0.23.0
- old
+ new
@@ -1,5 +1,6 @@
+# frozen_string_literal: true
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/cloud/documentai/v1beta3/processor.proto
require 'google/protobuf'
@@ -7,58 +8,37 @@
require 'google/api/resource_pb'
require 'google/cloud/documentai/v1beta3/document_schema_pb'
require 'google/cloud/documentai/v1beta3/evaluation_pb'
require 'google/protobuf/timestamp_pb'
-Google::Protobuf::DescriptorPool.generated_pool.build do
- add_file("google/cloud/documentai/v1beta3/processor.proto", :syntax => :proto3) do
- add_message "google.cloud.documentai.v1beta3.ProcessorVersion" do
- optional :name, :string, 1
- optional :display_name, :string, 2
- optional :document_schema, :message, 12, "google.cloud.documentai.v1beta3.DocumentSchema"
- optional :state, :enum, 6, "google.cloud.documentai.v1beta3.ProcessorVersion.State"
- optional :create_time, :message, 7, "google.protobuf.Timestamp"
- optional :latest_evaluation, :message, 8, "google.cloud.documentai.v1beta3.EvaluationReference"
- optional :kms_key_name, :string, 9
- optional :kms_key_version_name, :string, 10
- optional :google_managed, :bool, 11
- optional :deprecation_info, :message, 13, "google.cloud.documentai.v1beta3.ProcessorVersion.DeprecationInfo"
+
+descriptor_data = "\n/google/cloud/documentai/v1beta3/processor.proto\x12\x1fgoogle.cloud.documentai.v1beta3\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x35google/cloud/documentai/v1beta3/document_schema.proto\x1a\x30google/cloud/documentai/v1beta3/evaluation.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xb5\x07\n\x10ProcessorVersion\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12H\n\x0f\x64ocument_schema\x18\x0c \x01(\x0b\x32/.google.cloud.documentai.v1beta3.DocumentSchema\x12\x46\n\x05state\x18\x06 \x01(\x0e\x32\x37.google.cloud.documentai.v1beta3.ProcessorVersion.State\x12/\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12O\n\x11latest_evaluation\x18\x08 \x01(\x0b\x32\x34.google.cloud.documentai.v1beta3.EvaluationReference\x12\x14\n\x0ckms_key_name\x18\t \x01(\t\x12\x1c\n\x14kms_key_version_name\x18\n \x01(\t\x12\x16\n\x0egoogle_managed\x18\x0b \x01(\x08\x12[\n\x10\x64\x65precation_info\x18\r \x01(\x0b\x32\x41.google.cloud.documentai.v1beta3.ProcessorVersion.DeprecationInfo\x1a\x9f\x01\n\x0f\x44\x65precationInfo\x12\x34\n\x10\x64\x65precation_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12V\n\x1dreplacement_processor_version\x18\x02 \x01(\tB/\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\"\x84\x01\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x44\x45PLOYED\x10\x01\x12\r\n\tDEPLOYING\x10\x02\x12\x0e\n\nUNDEPLOYED\x10\x03\x12\x0f\n\x0bUNDEPLOYING\x10\x04\x12\x0c\n\x08\x43REATING\x10\x05\x12\x0c\n\x08\x44\x45LETING\x10\x06\x12\n\n\x06\x46\x41ILED\x10\x07:\x96\x01\xea\x41\x92\x01\n*documentai.googleapis.com/ProcessorVersion\x12\x64projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processor_version}\"\xb2\x04\n\tProcessor\x12\x14\n\x04name\x18\x01 \x01(\tB\x06\xe0\x41\x05\xe0\x41\x03\x12\x0c\n\x04type\x18\x02 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x03 \x01(\t\x12\x44\n\x05state\x18\x04 \x01(\x0e\x32\x30.google.cloud.documentai.v1beta3.Processor.StateB\x03\xe0\x41\x03\x12R\n\x19\x64\x65\x66\x61ult_processor_version\x18\t \x01(\tB/\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\x12 \n\x10process_endpoint\x18\x06 \x01(\tB\x06\xe0\x41\x03\xe0\x41\x05\x12/\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x14\n\x0ckms_key_name\x18\x08 \x01(\t\"~\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x45NABLED\x10\x01\x12\x0c\n\x08\x44ISABLED\x10\x02\x12\x0c\n\x08\x45NABLING\x10\x03\x12\r\n\tDISABLING\x10\x04\x12\x0c\n\x08\x43REATING\x10\x05\x12\n\n\x06\x46\x41ILED\x10\x06\x12\x0c\n\x08\x44\x45LETING\x10\x07:h\xea\x41\x65\n#documentai.googleapis.com/Processor\x12>projects/{project}/locations/{location}/processors/{processor}B\xea\x01\n#com.google.cloud.documentai.v1beta3B\x13\x44ocumentAiProcessorP\x01ZCcloud.google.com/go/documentai/apiv1beta3/documentaipb;documentaipb\xaa\x02\x1fGoogle.Cloud.DocumentAI.V1Beta3\xca\x02\x1fGoogle\\Cloud\\DocumentAI\\V1beta3\xea\x02\"Google::Cloud::DocumentAI::V1beta3b\x06proto3"
+
+pool = Google::Protobuf::DescriptorPool.generated_pool
+
+begin
+ pool.add_serialized_file(descriptor_data)
+rescue TypeError => e
+ # Compatibility code: will be removed in the next major version.
+ require 'google/protobuf/descriptor_pb'
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
+ parsed.clear_dependency
+ serialized = parsed.class.encode(parsed)
+ file = pool.add_serialized_file(serialized)
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
+ imports = [
+ ["google.cloud.documentai.v1beta3.DocumentSchema", "google/cloud/documentai/v1beta3/document_schema.proto"],
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
+ ["google.cloud.documentai.v1beta3.EvaluationReference", "google/cloud/documentai/v1beta3/evaluation.proto"],
+ ]
+ imports.each do |type_name, expected_filename|
+ import_file = pool.lookup(type_name).file_descriptor
+ if import_file.name != expected_filename
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
end
- add_message "google.cloud.documentai.v1beta3.ProcessorVersion.DeprecationInfo" do
- optional :deprecation_time, :message, 1, "google.protobuf.Timestamp"
- optional :replacement_processor_version, :string, 2
- end
- add_enum "google.cloud.documentai.v1beta3.ProcessorVersion.State" do
- value :STATE_UNSPECIFIED, 0
- value :DEPLOYED, 1
- value :DEPLOYING, 2
- value :UNDEPLOYED, 3
- value :UNDEPLOYING, 4
- value :CREATING, 5
- value :DELETING, 6
- value :FAILED, 7
- end
- add_message "google.cloud.documentai.v1beta3.Processor" do
- optional :name, :string, 1
- optional :type, :string, 2
- optional :display_name, :string, 3
- optional :state, :enum, 4, "google.cloud.documentai.v1beta3.Processor.State"
- optional :default_processor_version, :string, 9
- optional :process_endpoint, :string, 6
- optional :create_time, :message, 7, "google.protobuf.Timestamp"
- optional :kms_key_name, :string, 8
- end
- add_enum "google.cloud.documentai.v1beta3.Processor.State" do
- value :STATE_UNSPECIFIED, 0
- value :ENABLED, 1
- value :DISABLED, 2
- value :ENABLING, 3
- value :DISABLING, 4
- value :CREATING, 5
- value :FAILED, 6
- value :DELETING, 7
- end
end
+ warn "Each proto file must use a consistent fully-qualified name."
+ warn "This will become an error in the next major version."
end
module Google
module Cloud
module DocumentAI