Class: Google::Apis::Searchads360V0::GoogleAdsSearchads360V0ErrorsErrorLocationFieldPathElement

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

Overview

A part of a field path.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V0ErrorsErrorLocationFieldPathElement

Returns a new instance of GoogleAdsSearchads360V0ErrorsErrorLocationFieldPathElement.



2861
2862
2863
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2861

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

Instance Attribute Details

#field_nameString

The name of a field or a oneof Corresponds to the JSON property fieldName

Returns:

  • (String)


2854
2855
2856
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2854

def field_name
  @field_name
end

#indexFixnum

If field_name is a repeated field, this is the element that failed Corresponds to the JSON property index

Returns:

  • (Fixnum)


2859
2860
2861
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2859

def index
  @index
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2866
2867
2868
2869
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2866

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