Class: Google::Apis::CloudsearchV1::ItemStructuredData

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

Overview

Available structured data fields for the item.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ItemStructuredData

Returns a new instance of ItemStructuredData.



10397
10398
10399
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10397

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

Instance Attribute Details

#hash_propString

Hashing value provided by the API caller. This can be used with the items.push method to calculate modified state. The maximum length is 2048 characters. Corresponds to the JSON property hash

Returns:

  • (String)


10390
10391
10392
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10390

def hash_prop
  @hash_prop
end

#objectGoogle::Apis::CloudsearchV1::StructuredDataObject

A structured data object consisting of named properties. Corresponds to the JSON property object



10395
10396
10397
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10395

def object
  @object
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10402
10403
10404
10405
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10402

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