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

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

Overview

Available structured data fields for the item.

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) ⇒ ItemStructuredData

Returns a new instance of ItemStructuredData.



2098
2099
2100
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2098

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)


2091
2092
2093
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2091

def hash_prop
  @hash_prop
end

#objectGoogle::Apis::CloudsearchV1::StructuredDataObject

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



2096
2097
2098
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2096

def object
  @object
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2103
2104
2105
2106
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2103

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