class Google::Apis::CloudsearchV1::PushItem
Represents an item to be pushed to the indexing queue.
Attributes
Content hash of the item according to the repository. If specified, this is used to determine how to modify this item's status. Setting this field and the type field results in argument error. The maximum length is 2048 characters. Corresponds to the JSON property `contentHash` @return [String]
Metadata
hash of the item according to the repository. If specified, this is used to determine how to modify this item's status. Setting this field and the type field results in argument error. The maximum length is 2048 characters. Corresponds to the JSON property `metadataHash` @return [String]
Provides additional document state information for the connector, such as an alternate repository ID and other metadata. The maximum length is 8192 bytes. Corresponds to the JSON property `payload` NOTE: Values are automatically base64 encoded/decoded in the client library. @return [String]
Queue to which this item belongs to. The default queue is chosen if this field is not specified. The maximum length is 512 characters. Corresponds to the JSON property `queue` @return [String]
Errors when the connector is communicating to the source repository. Corresponds to the JSON property `repositoryError` @return [Google::Apis::CloudsearchV1::RepositoryError]
Structured data hash of the item according to the repository. If specified, this is used to determine how to modify this item's status. Setting this field and the type field results in argument error. The maximum length is 2048 characters. Corresponds to the JSON property `structuredDataHash` @return [String]
The type of the push operation that defines the push behavior. Corresponds to the JSON property `type` @return [String]
Public Class Methods
# File lib/google/apis/cloudsearch_v1/classes.rb, line 3202 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/cloudsearch_v1/classes.rb, line 3207 def update!(**args) @content_hash = args[:content_hash] if args.key?(:content_hash) @metadata_hash = args[:metadata_hash] if args.key?(:metadata_hash) @payload = args[:payload] if args.key?(:payload) @queue = args[:queue] if args.key?(:queue) @repository_error = args[:repository_error] if args.key?(:repository_error) @structured_data_hash = args[:structured_data_hash] if args.key?(:structured_data_hash) @type = args[:type] if args.key?(:type) end