class Google::Apis::CloudsearchV1::ItemContent

Content of an item to be indexed and surfaced by Cloud Search. Only UTF-8 encoded strings are allowed as inlineContent. If the content is uploaded and not binary, it must be UTF-8 encoded.

Attributes

content_data_ref[RW]

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` @return [Google::Apis::CloudsearchV1::UploadItemRef]

content_format[RW]

Corresponds to the JSON property `contentFormat` @return [String]

hash_prop[RW]

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` @return [String]

inline_content[RW]

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. @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/cloudsearch_v1/classes.rb, line 1939
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/cloudsearch_v1/classes.rb, line 1944
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