Class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1ImportProductSetsResponse

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/vision_v1p2beta1/classes.rb,
generated/google/apis/vision_v1p2beta1/representations.rb,
generated/google/apis/vision_v1p2beta1/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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GoogleCloudVisionV1p4beta1ImportProductSetsResponse

Returns a new instance of GoogleCloudVisionV1p4beta1ImportProductSetsResponse.



8057
8058
8059
# File 'generated/google/apis/vision_v1p2beta1/classes.rb', line 8057

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

Instance Attribute Details

#reference_imagesArray<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1ReferenceImage>

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



8046
8047
8048
# File 'generated/google/apis/vision_v1p2beta1/classes.rb', line 8046

def reference_images
  @reference_images
end

#statusesArray<Google::Apis::VisionV1p2beta1::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



8055
8056
8057
# File 'generated/google/apis/vision_v1p2beta1/classes.rb', line 8055

def statuses
  @statuses
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8062
8063
8064
8065
# File 'generated/google/apis/vision_v1p2beta1/classes.rb', line 8062

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