Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineLoggingImportErrorContext

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

Overview

The error payload that is populated on LRO import APIs, including the following: * google.cloud.discoveryengine.v1alpha.DocumentService. ImportDocuments * google.cloud.discoveryengine.v1alpha.UserEventService. ImportUserEvents

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineLoggingImportErrorContext

Returns a new instance of GoogleCloudDiscoveryengineLoggingImportErrorContext.



203
204
205
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 203

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

Instance Attribute Details

#documentString

The detailed content which caused the error on importing a document. Corresponds to the JSON property document

Returns:

  • (String)


179
180
181
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 179

def document
  @document
end

#gcs_pathString

Google Cloud Storage file path of the import source. Can be set for batch operation error. Corresponds to the JSON property gcsPath

Returns:

  • (String)


185
186
187
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 185

def gcs_path
  @gcs_path
end

#line_numberString

Line number of the content in file. Should be empty for permission or batch operation error. Corresponds to the JSON property lineNumber

Returns:

  • (String)


191
192
193
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 191

def line_number
  @line_number
end

#operationString

The operation resource name of the LRO. Corresponds to the JSON property operation

Returns:

  • (String)


196
197
198
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 196

def operation
  @operation
end

#user_eventString

The detailed content which caused the error on importing a user event. Corresponds to the JSON property userEvent

Returns:

  • (String)


201
202
203
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 201

def user_event
  @user_event
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



208
209
210
211
212
213
214
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 208

def update!(**args)
  @document = args[:document] if args.key?(:document)
  @gcs_path = args[:gcs_path] if args.key?(:gcs_path)
  @line_number = args[:line_number] if args.key?(:line_number)
  @operation = args[:operation] if args.key?(:operation)
  @user_event = args[:user_event] if args.key?(:user_event)
end