Class: Google::Apis::CloudsearchV1::ProcessingError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ProcessingError

Returns a new instance of ProcessingError.



15525
15526
15527
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 15525

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

Instance Attribute Details

#codeString

Error code indicating the nature of the error. Corresponds to the JSON property code

Returns:

  • (String)


15512
15513
15514
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 15512

def code
  @code
end

#error_messageString

The description of the error. Corresponds to the JSON property errorMessage

Returns:

  • (String)


15517
15518
15519
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 15517

def error_message
  @error_message
end

#field_violationsArray<Google::Apis::CloudsearchV1::FieldViolation>

In case the item fields are invalid, this field contains the details about the validation errors. Corresponds to the JSON property fieldViolations



15523
15524
15525
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 15523

def field_violations
  @field_violations
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



15530
15531
15532
15533
15534
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 15530

def update!(**args)
  @code = args[:code] if args.key?(:code)
  @error_message = args[:error_message] if args.key?(:error_message)
  @field_violations = args[:field_violations] if args.key?(:field_violations)
end