Class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1ProcessorVersion

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/documentai_v1/classes.rb,
lib/google/apis/documentai_v1/representations.rb,
lib/google/apis/documentai_v1/representations.rb

Overview

A processor version is an implementation of a processor. Each processor can have multiple versions, pre-trained by Google internally or up-trained by the customer. At a time, a processor can only have one default version version. So the processor's behavior (when processing documents) is defined by a default version.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDocumentaiV1ProcessorVersion

Returns a new instance of GoogleCloudDocumentaiV1ProcessorVersion.



3061
3062
3063
# File 'lib/google/apis/documentai_v1/classes.rb', line 3061

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#create_timeString

The time the processor version was created. Corresponds to the JSON property createTime

Returns:

  • (String)


3032
3033
3034
# File 'lib/google/apis/documentai_v1/classes.rb', line 3032

def create_time
  @create_time
end

#display_nameString

The display name of the processor version. Corresponds to the JSON property displayName

Returns:

  • (String)


3037
3038
3039
# File 'lib/google/apis/documentai_v1/classes.rb', line 3037

def display_name
  @display_name
end

#latest_evaluationGoogle::Apis::DocumentaiV1::GoogleCloudDocumentaiV1EvaluationReference

Gives a short summary of an evaluation, and links to the evaluation itself. Corresponds to the JSON property latestEvaluation



3042
3043
3044
# File 'lib/google/apis/documentai_v1/classes.rb', line 3042

def latest_evaluation
  @latest_evaluation
end

#nameString

The resource name of the processor version. Format: projects/project/ locations/location/processors/processor/processorVersions/ processor_version Corresponds to the JSON property name

Returns:

  • (String)


3049
3050
3051
# File 'lib/google/apis/documentai_v1/classes.rb', line 3049

def name
  @name
end

#schemaGoogle::Apis::DocumentaiV1::GoogleCloudDocumentaiV1Schema

The schema defines the output of the processed document by a processor. Corresponds to the JSON property schema



3054
3055
3056
# File 'lib/google/apis/documentai_v1/classes.rb', line 3054

def schema
  @schema
end

#stateString

The state of the processor version. Corresponds to the JSON property state

Returns:

  • (String)


3059
3060
3061
# File 'lib/google/apis/documentai_v1/classes.rb', line 3059

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3066
3067
3068
3069
3070
3071
3072
3073
# File 'lib/google/apis/documentai_v1/classes.rb', line 3066

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @display_name = args[:display_name] if args.key?(:display_name)
  @latest_evaluation = args[:latest_evaluation] if args.key?(:latest_evaluation)
  @name = args[:name] if args.key?(:name)
  @schema = args[:schema] if args.key?(:schema)
  @state = args[:state] if args.key?(:state)
end