class Google::Apis::RetailV2alpha::GoogleCloudRetailLoggingImportErrorContext

The error payload that is populated on LRO import APIs. Including: “google. cloud.retail.v2.ProductService.ImportProducts” “google.cloud.retail.v2. EventService.ImportUserEvents”

Attributes

catalog_item[RW]

The detailed content which caused the error on importing a catalog item. Corresponds to the JSON property `catalogItem` @return [String]

gcs_path[RW]

Cloud Storage file path of the import source. Can be set for batch operation error. Corresponds to the JSON property `gcsPath` @return [String]

line_number[RW]

Line number of the content in file. Should be empty for permission or batch operation error. Corresponds to the JSON property `lineNumber` @return [String]

operation_name[RW]

The operation resource name of the LRO. Corresponds to the JSON property `operationName` @return [String]

product[RW]

The detailed content which caused the error on importing a product. Corresponds to the JSON property `product` @return [String]

user_event[RW]

The detailed content which caused the error on importing a user event. Corresponds to the JSON property `userEvent` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/retail_v2alpha/classes.rb, line 227
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/retail_v2alpha/classes.rb, line 232
def update!(**args)
  @catalog_item = args[:catalog_item] if args.key?(:catalog_item)
  @gcs_path = args[:gcs_path] if args.key?(:gcs_path)
  @line_number = args[:line_number] if args.key?(:line_number)
  @operation_name = args[:operation_name] if args.key?(:operation_name)
  @product = args[:product] if args.key?(:product)
  @user_event = args[:user_event] if args.key?(:user_event)
end