Class: Google::Apis::CloudsearchV1::ItemContent
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::ItemContent
- Defined in:
- generated/google/apis/cloudsearch_v1/classes.rb,
generated/google/apis/cloudsearch_v1/representations.rb,
generated/google/apis/cloudsearch_v1/representations.rb
Overview
Content of an item to be indexed and surfaced by Cloud Search.
Instance Attribute Summary collapse
-
#content_data_ref ⇒ Google::Apis::CloudsearchV1::UploadItemRef
Represents an upload session reference.
-
#content_format ⇒ String
Corresponds to the JSON property
contentFormat
. -
#hash_prop ⇒ String
Hashing info calculated and provided by the API client for content.
-
#inline_content ⇒ String
Content that is supplied inlined within the update method.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ItemContent
constructor
A new instance of ItemContent.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ ItemContent
Returns a new instance of ItemContent.
1897 1898 1899 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 1897 def initialize(**args) update!(**args) end |
Instance Attribute Details
#content_data_ref ⇒ Google::Apis::CloudsearchV1::UploadItemRef
Represents an upload session reference.
This reference is created via upload
method.
Updating of item content may refer to this uploaded content via
contentDataRef.
Corresponds to the JSON property contentDataRef
1876 1877 1878 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 1876 def content_data_ref @content_data_ref end |
#content_format ⇒ String
Corresponds to the JSON property contentFormat
1881 1882 1883 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 1881 def content_format @content_format end |
#hash_prop ⇒ String
Hashing info calculated and provided by the API client for content.
Can be used with the items.push method to calculate modified state.
The maximum length is 2048 characters.
Corresponds to the JSON property hash
1888 1889 1890 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 1888 def hash_prop @hash_prop end |
#inline_content ⇒ String
Content that is supplied inlined within the update method.
The maximum length is 102400 bytes (100 KiB).
Corresponds to the JSON property inlineContent
NOTE: Values are automatically base64 encoded/decoded in the client library.
1895 1896 1897 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 1895 def inline_content @inline_content end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1902 1903 1904 1905 1906 1907 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 1902 def update!(**args) @content_data_ref = args[:content_data_ref] if args.key?(:content_data_ref) @content_format = args[:content_format] if args.key?(:content_format) @hash_prop = args[:hash_prop] if args.key?(:hash_prop) @inline_content = args[:inline_content] if args.key?(:inline_content) end |