Class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3SampleDocumentsResponse

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

Response of the sample documents operation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDocumentaiUiv1beta3SampleDocumentsResponse

Returns a new instance of GoogleCloudDocumentaiUiv1beta3SampleDocumentsResponse.



1162
1163
1164
# File 'lib/google/apis/documentai_v1/classes.rb', line 1162

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

Instance Attribute Details

#sample_test_statusGoogle::Apis::DocumentaiV1::GoogleRpcStatus

The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC. Each Status message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the API Design Guide. Corresponds to the JSON property sampleTestStatus



1145
1146
1147
# File 'lib/google/apis/documentai_v1/classes.rb', line 1145

def sample_test_status
  @sample_test_status
end

#sample_training_statusGoogle::Apis::DocumentaiV1::GoogleRpcStatus

The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC. Each Status message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the API Design Guide. Corresponds to the JSON property sampleTrainingStatus



1155
1156
1157
# File 'lib/google/apis/documentai_v1/classes.rb', line 1155

def sample_training_status
  @sample_training_status
end

#selected_documentsArray<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3SampleDocumentsResponseSelectedDocument>

The result of the sampling process. Corresponds to the JSON property selectedDocuments



1160
1161
1162
# File 'lib/google/apis/documentai_v1/classes.rb', line 1160

def selected_documents
  @selected_documents
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1167
1168
1169
1170
1171
# File 'lib/google/apis/documentai_v1/classes.rb', line 1167

def update!(**args)
  @sample_test_status = args[:sample_test_status] if args.key?(:sample_test_status)
  @sample_training_status = args[:sample_training_status] if args.key?(:sample_training_status)
  @selected_documents = args[:selected_documents] if args.key?(:selected_documents)
end