Class: Google::Apis::CloudsearchV1::ItemMetadata
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::ItemMetadata
- 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 metadata fields for the item.
Instance Attribute Summary collapse
-
#container_name ⇒ String
The name of the container for this item.
-
#content_language ⇒ String
The BCP-47 language code for the item, such as "en-US" or "sr-Latn".
-
#create_time ⇒ String
The time when the item was created in the source repository.
-
#hash_prop ⇒ String
Hashing value provided by the API caller.
-
#interactions ⇒ Array<Google::Apis::CloudsearchV1::Interaction>
A list of interactions for the item.
-
#keywords ⇒ Array<String>
Additional keywords or phrases that should match the item.
-
#mime_type ⇒ String
The original mime-type of ItemContent.content in the source repository.
-
#object_type ⇒ String
The type of the item.
-
#search_quality_metadata ⇒ Google::Apis::CloudsearchV1::SearchQualityMetadata
Additional search quality metadata of the item.
-
#source_repository_url ⇒ String
Link to the source repository serving the data.
-
#title ⇒ String
The title of the item.
-
#update_time ⇒ String
The time when the item was last modified in the source repository.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ItemMetadata
constructor
A new instance of ItemMetadata.
-
#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) ⇒ ItemMetadata
Returns a new instance of ItemMetadata
2123 2124 2125 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2123 def initialize(**args) update!(**args) end |
Instance Attribute Details
#container_name ⇒ String
The name of the container for this item.
Deletion of the container item leads to automatic deletion of this
item. Note: ACLs are not inherited from a container item.
To provide ACL inheritance for an item, use the
inheritAclFrom
field. The maximum length is 1536 characters.
Corresponds to the JSON property containerName
2042 2043 2044 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2042 def container_name @container_name end |
#content_language ⇒ String
The BCP-47 language code for the item, such as "en-US" or "sr-Latn". For
more information, see
http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
The maximum length is 32 characters.
Corresponds to the JSON property contentLanguage
2050 2051 2052 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2050 def content_language @content_language end |
#create_time ⇒ String
The time when the item was created in the source repository.
Corresponds to the JSON property createTime
2055 2056 2057 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2055 def create_time @create_time end |
#hash_prop ⇒ String
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
2064 2065 2066 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2064 def hash_prop @hash_prop end |
#interactions ⇒ Array<Google::Apis::CloudsearchV1::Interaction>
A list of interactions for the item. Interactions are used to improve
Search quality, but are not exposed to end users.
The maximum number of elements is 1000.
Corresponds to the JSON property interactions
2071 2072 2073 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2071 def interactions @interactions end |
#keywords ⇒ Array<String>
Additional keywords or phrases that should match the item.
Used internally for user generated content.
The maximum number of elements is 100.
The maximum length is 8192 characters.
Corresponds to the JSON property keywords
2079 2080 2081 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2079 def keywords @keywords end |
#mime_type ⇒ String
The original mime-type of
ItemContent.content
in the source repository.
The maximum length is 256 characters.
Corresponds to the JSON property mimeType
2087 2088 2089 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2087 def mime_type @mime_type end |
#object_type ⇒ String
The type of the item. This should correspond to the name of an object
definition in the schema registered for the data source. For example, if
the schema for the data source contains an object definition with name
'document', then item indexing requests for objects of that type should set
objectType to 'document'.
The maximum length is 256 characters.
Corresponds to the JSON property objectType
2097 2098 2099 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2097 def object_type @object_type end |
#search_quality_metadata ⇒ Google::Apis::CloudsearchV1::SearchQualityMetadata
Additional search quality metadata of the item.
Corresponds to the JSON property searchQualityMetadata
2102 2103 2104 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2102 def @search_quality_metadata end |
#source_repository_url ⇒ String
Link to the source repository serving the data. Search results apply
this link to the title.
The maximum length is 2048 characters.
Corresponds to the JSON property sourceRepositoryUrl
2109 2110 2111 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2109 def source_repository_url @source_repository_url end |
#title ⇒ String
The title of the item. If given, this will be the displayed title of the
Search result.
The maximum length is 2048 characters.
Corresponds to the JSON property title
2116 2117 2118 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2116 def title @title end |
#update_time ⇒ String
The time when the item was last modified in the source repository.
Corresponds to the JSON property updateTime
2121 2122 2123 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2121 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 2128 def update!(**args) @container_name = args[:container_name] if args.key?(:container_name) @content_language = args[:content_language] if args.key?(:content_language) @create_time = args[:create_time] if args.key?(:create_time) @hash_prop = args[:hash_prop] if args.key?(:hash_prop) @interactions = args[:interactions] if args.key?(:interactions) @keywords = args[:keywords] if args.key?(:keywords) @mime_type = args[:mime_type] if args.key?(:mime_type) @object_type = args[:object_type] if args.key?(:object_type) @search_quality_metadata = args[:search_quality_metadata] if args.key?(:search_quality_metadata) @source_repository_url = args[:source_repository_url] if args.key?(:source_repository_url) @title = args[:title] if args.key?(:title) @update_time = args[:update_time] if args.key?(:update_time) end |