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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ProcessingError

Returns a new instance of ProcessingError



2798
2799
2800
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2798

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)


2785
2786
2787
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2785

def code
  @code
end

#error_messageString

Description of the error. Corresponds to the JSON property errorMessage

Returns:

  • (String)


2790
2791
2792
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2790

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



2796
2797
2798
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2796

def field_violations
  @field_violations
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2803
2804
2805
2806
2807
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2803

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