Class: Google::Cloud::DocumentAI::V1beta3::Processor

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/documentai/v1beta3/processor.rb

Overview

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

Defined Under Namespace

Modules: State

Instance Attribute Summary collapse

Instance Attribute Details

#create_time::Google::Protobuf::Timestamp

Returns The time the processor was created.

Returns:



138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
# File 'proto_docs/google/cloud/documentai/v1beta3/processor.rb', line 138

class Processor
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The possible states of the processor.
  module State
    # The processor is in an unspecified state.
    STATE_UNSPECIFIED = 0

    # The processor is enabled, i.e., has an enabled version which can
    # currently serve processing requests and all the feature dependencies have
    # been successfully initialized.
    ENABLED = 1

    # The processor is disabled.
    DISABLED = 2

    # The processor is being enabled, will become `ENABLED` if successful.
    ENABLING = 3

    # The processor is being disabled, will become `DISABLED` if successful.
    DISABLING = 4

    # The processor is being created, will become either `ENABLED` (for
    # successful creation) or `FAILED` (for failed ones).
    # Once a processor is in this state, it can then be used for document
    # processing, but the feature dependencies of the processor might not be
    # fully created yet.
    CREATING = 5

    # The processor failed during creation or initialization of feature
    # dependencies. The user should delete the processor and recreate one as
    # all the functionalities of the processor are disabled.
    FAILED = 6

    # The processor is being deleted, will be removed if successful.
    DELETING = 7
  end
end

#default_processor_version::String

Returns The default processor version.

Returns:

  • (::String)

    The default processor version.



138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
# File 'proto_docs/google/cloud/documentai/v1beta3/processor.rb', line 138

class Processor
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The possible states of the processor.
  module State
    # The processor is in an unspecified state.
    STATE_UNSPECIFIED = 0

    # The processor is enabled, i.e., has an enabled version which can
    # currently serve processing requests and all the feature dependencies have
    # been successfully initialized.
    ENABLED = 1

    # The processor is disabled.
    DISABLED = 2

    # The processor is being enabled, will become `ENABLED` if successful.
    ENABLING = 3

    # The processor is being disabled, will become `DISABLED` if successful.
    DISABLING = 4

    # The processor is being created, will become either `ENABLED` (for
    # successful creation) or `FAILED` (for failed ones).
    # Once a processor is in this state, it can then be used for document
    # processing, but the feature dependencies of the processor might not be
    # fully created yet.
    CREATING = 5

    # The processor failed during creation or initialization of feature
    # dependencies. The user should delete the processor and recreate one as
    # all the functionalities of the processor are disabled.
    FAILED = 6

    # The processor is being deleted, will be removed if successful.
    DELETING = 7
  end
end

#display_name::String

Returns The display name of the processor.

Returns:

  • (::String)

    The display name of the processor.



138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
# File 'proto_docs/google/cloud/documentai/v1beta3/processor.rb', line 138

class Processor
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The possible states of the processor.
  module State
    # The processor is in an unspecified state.
    STATE_UNSPECIFIED = 0

    # The processor is enabled, i.e., has an enabled version which can
    # currently serve processing requests and all the feature dependencies have
    # been successfully initialized.
    ENABLED = 1

    # The processor is disabled.
    DISABLED = 2

    # The processor is being enabled, will become `ENABLED` if successful.
    ENABLING = 3

    # The processor is being disabled, will become `DISABLED` if successful.
    DISABLING = 4

    # The processor is being created, will become either `ENABLED` (for
    # successful creation) or `FAILED` (for failed ones).
    # Once a processor is in this state, it can then be used for document
    # processing, but the feature dependencies of the processor might not be
    # fully created yet.
    CREATING = 5

    # The processor failed during creation or initialization of feature
    # dependencies. The user should delete the processor and recreate one as
    # all the functionalities of the processor are disabled.
    FAILED = 6

    # The processor is being deleted, will be removed if successful.
    DELETING = 7
  end
end

#kms_key_name::String

Returns The KMS key used for encryption and decryption in CMEK scenarios.

Returns:

  • (::String)

    The KMS key used for encryption and decryption in CMEK scenarios.



138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
# File 'proto_docs/google/cloud/documentai/v1beta3/processor.rb', line 138

class Processor
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The possible states of the processor.
  module State
    # The processor is in an unspecified state.
    STATE_UNSPECIFIED = 0

    # The processor is enabled, i.e., has an enabled version which can
    # currently serve processing requests and all the feature dependencies have
    # been successfully initialized.
    ENABLED = 1

    # The processor is disabled.
    DISABLED = 2

    # The processor is being enabled, will become `ENABLED` if successful.
    ENABLING = 3

    # The processor is being disabled, will become `DISABLED` if successful.
    DISABLING = 4

    # The processor is being created, will become either `ENABLED` (for
    # successful creation) or `FAILED` (for failed ones).
    # Once a processor is in this state, it can then be used for document
    # processing, but the feature dependencies of the processor might not be
    # fully created yet.
    CREATING = 5

    # The processor failed during creation or initialization of feature
    # dependencies. The user should delete the processor and recreate one as
    # all the functionalities of the processor are disabled.
    FAILED = 6

    # The processor is being deleted, will be removed if successful.
    DELETING = 7
  end
end

#name::String (readonly)

Returns Output only. Immutable. The resource name of the processor. Format: projects/{project}/locations/{location}/processors/{processor}.

Returns:

  • (::String)

    Output only. Immutable. The resource name of the processor. Format: projects/{project}/locations/{location}/processors/{processor}



138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
# File 'proto_docs/google/cloud/documentai/v1beta3/processor.rb', line 138

class Processor
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The possible states of the processor.
  module State
    # The processor is in an unspecified state.
    STATE_UNSPECIFIED = 0

    # The processor is enabled, i.e., has an enabled version which can
    # currently serve processing requests and all the feature dependencies have
    # been successfully initialized.
    ENABLED = 1

    # The processor is disabled.
    DISABLED = 2

    # The processor is being enabled, will become `ENABLED` if successful.
    ENABLING = 3

    # The processor is being disabled, will become `DISABLED` if successful.
    DISABLING = 4

    # The processor is being created, will become either `ENABLED` (for
    # successful creation) or `FAILED` (for failed ones).
    # Once a processor is in this state, it can then be used for document
    # processing, but the feature dependencies of the processor might not be
    # fully created yet.
    CREATING = 5

    # The processor failed during creation or initialization of feature
    # dependencies. The user should delete the processor and recreate one as
    # all the functionalities of the processor are disabled.
    FAILED = 6

    # The processor is being deleted, will be removed if successful.
    DELETING = 7
  end
end

#process_endpoint::String (readonly)

Returns Output only. Immutable. The http endpoint that can be called to invoke processing.

Returns:

  • (::String)

    Output only. Immutable. The http endpoint that can be called to invoke processing.



138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
# File 'proto_docs/google/cloud/documentai/v1beta3/processor.rb', line 138

class Processor
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The possible states of the processor.
  module State
    # The processor is in an unspecified state.
    STATE_UNSPECIFIED = 0

    # The processor is enabled, i.e., has an enabled version which can
    # currently serve processing requests and all the feature dependencies have
    # been successfully initialized.
    ENABLED = 1

    # The processor is disabled.
    DISABLED = 2

    # The processor is being enabled, will become `ENABLED` if successful.
    ENABLING = 3

    # The processor is being disabled, will become `DISABLED` if successful.
    DISABLING = 4

    # The processor is being created, will become either `ENABLED` (for
    # successful creation) or `FAILED` (for failed ones).
    # Once a processor is in this state, it can then be used for document
    # processing, but the feature dependencies of the processor might not be
    # fully created yet.
    CREATING = 5

    # The processor failed during creation or initialization of feature
    # dependencies. The user should delete the processor and recreate one as
    # all the functionalities of the processor are disabled.
    FAILED = 6

    # The processor is being deleted, will be removed if successful.
    DELETING = 7
  end
end

#state::Google::Cloud::DocumentAI::V1beta3::Processor::State (readonly)

Returns Output only. The state of the processor.

Returns:



138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
# File 'proto_docs/google/cloud/documentai/v1beta3/processor.rb', line 138

class Processor
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The possible states of the processor.
  module State
    # The processor is in an unspecified state.
    STATE_UNSPECIFIED = 0

    # The processor is enabled, i.e., has an enabled version which can
    # currently serve processing requests and all the feature dependencies have
    # been successfully initialized.
    ENABLED = 1

    # The processor is disabled.
    DISABLED = 2

    # The processor is being enabled, will become `ENABLED` if successful.
    ENABLING = 3

    # The processor is being disabled, will become `DISABLED` if successful.
    DISABLING = 4

    # The processor is being created, will become either `ENABLED` (for
    # successful creation) or `FAILED` (for failed ones).
    # Once a processor is in this state, it can then be used for document
    # processing, but the feature dependencies of the processor might not be
    # fully created yet.
    CREATING = 5

    # The processor failed during creation or initialization of feature
    # dependencies. The user should delete the processor and recreate one as
    # all the functionalities of the processor are disabled.
    FAILED = 6

    # The processor is being deleted, will be removed if successful.
    DELETING = 7
  end
end

#type::String

Returns The processor type, such as: OCR_PROCESSOR, INVOICE_PROCESSOR. To get a list of processor types, see FetchProcessorTypes.

Returns:

  • (::String)

    The processor type, such as: OCR_PROCESSOR, INVOICE_PROCESSOR. To get a list of processor types, see FetchProcessorTypes.



138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
# File 'proto_docs/google/cloud/documentai/v1beta3/processor.rb', line 138

class Processor
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The possible states of the processor.
  module State
    # The processor is in an unspecified state.
    STATE_UNSPECIFIED = 0

    # The processor is enabled, i.e., has an enabled version which can
    # currently serve processing requests and all the feature dependencies have
    # been successfully initialized.
    ENABLED = 1

    # The processor is disabled.
    DISABLED = 2

    # The processor is being enabled, will become `ENABLED` if successful.
    ENABLING = 3

    # The processor is being disabled, will become `DISABLED` if successful.
    DISABLING = 4

    # The processor is being created, will become either `ENABLED` (for
    # successful creation) or `FAILED` (for failed ones).
    # Once a processor is in this state, it can then be used for document
    # processing, but the feature dependencies of the processor might not be
    # fully created yet.
    CREATING = 5

    # The processor failed during creation or initialization of feature
    # dependencies. The user should delete the processor and recreate one as
    # all the functionalities of the processor are disabled.
    FAILED = 6

    # The processor is being deleted, will be removed if successful.
    DELETING = 7
  end
end