Class: Google::Apis::VisionV1::ImportProductSetsResponse

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

Overview

Response message for the ImportProductSets method. This message is returned by the google.longrunning.Operations.GetOperation method in the returned google.longrunning.Operation.response field.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ImportProductSetsResponse

Returns a new instance of ImportProductSetsResponse.



8743
8744
8745
# File 'generated/google/apis/vision_v1/classes.rb', line 8743

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

Instance Attribute Details

#reference_imagesArray<Google::Apis::VisionV1::ReferenceImage>

The list of reference_images that are imported successfully. Corresponds to the JSON property referenceImages



8733
8734
8735
# File 'generated/google/apis/vision_v1/classes.rb', line 8733

def reference_images
  @reference_images
end

#statusesArray<Google::Apis::VisionV1::Status>

The rpc status for each ImportProductSet request, including both successes and errors. The number of statuses here matches the number of lines in the csv file, and statuses[i] stores the success or failure status of processing the i- th line of the csv, starting from line 0. Corresponds to the JSON property statuses

Returns:



8741
8742
8743
# File 'generated/google/apis/vision_v1/classes.rb', line 8741

def statuses
  @statuses
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8748
8749
8750
8751
# File 'generated/google/apis/vision_v1/classes.rb', line 8748

def update!(**args)
  @reference_images = args[:reference_images] if args.key?(:reference_images)
  @statuses = args[:statuses] if args.key?(:statuses)
end