Class: Google::Apis::Searchads360V0::GoogleAdsSearchads360V0ResourcesSearchAds360Field

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 field or resource (artifact) used by SearchAds360Service.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V0ResourcesSearchAds360Field

Returns a new instance of GoogleAdsSearchads360V0ResourcesSearchAds360Field.



4209
4210
4211
# File 'lib/google/apis/searchads360_v0/classes.rb', line 4209

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

Instance Attribute Details

#attribute_resourcesArray<String>

Output only. The names of all resources that are selectable with the described artifact. Fields from these resources do not segment metrics when included in search queries. This field is only set for artifacts whose category is RESOURCE. Corresponds to the JSON property attributeResources

Returns:

  • (Array<String>)


4126
4127
4128
# File 'lib/google/apis/searchads360_v0/classes.rb', line 4126

def attribute_resources
  @attribute_resources
end

#categoryString

Output only. The category of the artifact. Corresponds to the JSON property category

Returns:

  • (String)


4131
4132
4133
# File 'lib/google/apis/searchads360_v0/classes.rb', line 4131

def category
  @category
end

#data_typeString

Output only. This field determines the operators that can be used with the artifact in WHERE clauses. Corresponds to the JSON property dataType

Returns:

  • (String)


4137
4138
4139
# File 'lib/google/apis/searchads360_v0/classes.rb', line 4137

def data_type
  @data_type
end

#enum_valuesArray<String>

Output only. Values the artifact can assume if it is a field of type ENUM. This field is only set for artifacts of category SEGMENT or ATTRIBUTE. Corresponds to the JSON property enumValues

Returns:

  • (Array<String>)


4143
4144
4145
# File 'lib/google/apis/searchads360_v0/classes.rb', line 4143

def enum_values
  @enum_values
end

#filterableBoolean Also known as: filterable?

Output only. Whether the artifact can be used in a WHERE clause in search queries. Corresponds to the JSON property filterable

Returns:

  • (Boolean)


4149
4150
4151
# File 'lib/google/apis/searchads360_v0/classes.rb', line 4149

def filterable
  @filterable
end

#is_repeatedBoolean Also known as: is_repeated?

Output only. Whether the field artifact is repeated. Corresponds to the JSON property isRepeated

Returns:

  • (Boolean)


4155
4156
4157
# File 'lib/google/apis/searchads360_v0/classes.rb', line 4155

def is_repeated
  @is_repeated
end

#metricsArray<String>

Output only. This field lists the names of all metrics that are selectable with the described artifact when it is used in the FROM clause. It is only set for artifacts whose category is RESOURCE. Corresponds to the JSON property metrics

Returns:

  • (Array<String>)


4163
4164
4165
# File 'lib/google/apis/searchads360_v0/classes.rb', line 4163

def metrics
  @metrics
end

#nameString

Output only. The name of the artifact. Corresponds to the JSON property name

Returns:

  • (String)


4168
4169
4170
# File 'lib/google/apis/searchads360_v0/classes.rb', line 4168

def name
  @name
end

#resource_nameString

Output only. The resource name of the artifact. Artifact resource names have the form: SearchAds360Fields/name` Corresponds to the JSON propertyresourceName`

Returns:

  • (String)


4174
4175
4176
# File 'lib/google/apis/searchads360_v0/classes.rb', line 4174

def resource_name
  @resource_name
end

#segmentsArray<String>

Output only. This field lists the names of all artifacts, whether a segment or another resource, that segment metrics when included in search queries and when the described artifact is used in the FROM clause. It is only set for artifacts whose category is RESOURCE. Corresponds to the JSON property segments

Returns:

  • (Array<String>)


4182
4183
4184
# File 'lib/google/apis/searchads360_v0/classes.rb', line 4182

def segments
  @segments
end

#selectableBoolean Also known as: selectable?

Output only. Whether the artifact can be used in a SELECT clause in search queries. Corresponds to the JSON property selectable

Returns:

  • (Boolean)


4188
4189
4190
# File 'lib/google/apis/searchads360_v0/classes.rb', line 4188

def selectable
  @selectable
end

#selectable_withArray<String>

Output only. The names of all resources, segments, and metrics that are selectable with the described artifact. Corresponds to the JSON property selectableWith

Returns:

  • (Array<String>)


4195
4196
4197
# File 'lib/google/apis/searchads360_v0/classes.rb', line 4195

def selectable_with
  @selectable_with
end

#sortableBoolean Also known as: sortable?

Output only. Whether the artifact can be used in a ORDER BY clause in search queries. Corresponds to the JSON property sortable

Returns:

  • (Boolean)


4201
4202
4203
# File 'lib/google/apis/searchads360_v0/classes.rb', line 4201

def sortable
  @sortable
end

#type_urlString

Output only. The URL of proto describing the artifact's data type. Corresponds to the JSON property typeUrl

Returns:

  • (String)


4207
4208
4209
# File 'lib/google/apis/searchads360_v0/classes.rb', line 4207

def type_url
  @type_url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
# File 'lib/google/apis/searchads360_v0/classes.rb', line 4214

def update!(**args)
  @attribute_resources = args[:attribute_resources] if args.key?(:attribute_resources)
  @category = args[:category] if args.key?(:category)
  @data_type = args[:data_type] if args.key?(:data_type)
  @enum_values = args[:enum_values] if args.key?(:enum_values)
  @filterable = args[:filterable] if args.key?(:filterable)
  @is_repeated = args[:is_repeated] if args.key?(:is_repeated)
  @metrics = args[:metrics] if args.key?(:metrics)
  @name = args[:name] if args.key?(:name)
  @resource_name = args[:resource_name] if args.key?(:resource_name)
  @segments = args[:segments] if args.key?(:segments)
  @selectable = args[:selectable] if args.key?(:selectable)
  @selectable_with = args[:selectable_with] if args.key?(:selectable_with)
  @sortable = args[:sortable] if args.key?(:sortable)
  @type_url = args[:type_url] if args.key?(:type_url)
end