Class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1Processor

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

The first-class citizen for Document AI. Each processor defines how to extract structural information from a document.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDocumentaiV1Processor

Returns a new instance of GoogleCloudDocumentaiV1Processor.



3198
3199
3200
# File 'lib/google/apis/documentai_v1/classes.rb', line 3198

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

Instance Attribute Details

#create_timeString

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

Returns:

  • (String)


3157
3158
3159
# File 'lib/google/apis/documentai_v1/classes.rb', line 3157

def create_time
  @create_time
end

#default_processor_versionString

The default processor version. Corresponds to the JSON property defaultProcessorVersion

Returns:

  • (String)


3162
3163
3164
# File 'lib/google/apis/documentai_v1/classes.rb', line 3162

def default_processor_version
  @default_processor_version
end

#display_nameString

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

Returns:

  • (String)


3167
3168
3169
# File 'lib/google/apis/documentai_v1/classes.rb', line 3167

def display_name
  @display_name
end

#kms_key_nameString

The KMS key used for encryption/decryption in CMEK scenarios. See https:// cloud.google.com/security-key-management. Corresponds to the JSON property kmsKeyName

Returns:

  • (String)


3173
3174
3175
# File 'lib/google/apis/documentai_v1/classes.rb', line 3173

def kms_key_name
  @kms_key_name
end

#nameString

Output only. Immutable. The resource name of the processor. Format: projects/ project/locations/location/processors/processor` Corresponds to the JSON propertyname`

Returns:

  • (String)


3179
3180
3181
# File 'lib/google/apis/documentai_v1/classes.rb', line 3179

def name
  @name
end

#process_endpointString

Output only. Immutable. The http endpoint that can be called to invoke processing. Corresponds to the JSON property processEndpoint

Returns:

  • (String)


3185
3186
3187
# File 'lib/google/apis/documentai_v1/classes.rb', line 3185

def process_endpoint
  @process_endpoint
end

#stateString

Output only. The state of the processor. Corresponds to the JSON property state

Returns:

  • (String)


3190
3191
3192
# File 'lib/google/apis/documentai_v1/classes.rb', line 3190

def state
  @state
end

#typeString

The processor type, e.g., OCR_PROCESSOR, INVOICE_PROCESSOR, etc. To get a list of processors types, see FetchProcessorTypes. Corresponds to the JSON property type

Returns:

  • (String)


3196
3197
3198
# File 'lib/google/apis/documentai_v1/classes.rb', line 3196

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
# File 'lib/google/apis/documentai_v1/classes.rb', line 3203

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @default_processor_version = args[:default_processor_version] if args.key?(:default_processor_version)
  @display_name = args[:display_name] if args.key?(:display_name)
  @kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
  @name = args[:name] if args.key?(:name)
  @process_endpoint = args[:process_endpoint] if args.key?(:process_endpoint)
  @state = args[:state] if args.key?(:state)
  @type = args[:type] if args.key?(:type)
end