Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSetUriPatternDocumentDataRequest
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSetUriPatternDocumentDataRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/discoveryengine_v1alpha/classes.rb,
lib/google/apis/discoveryengine_v1alpha/representations.rb,
lib/google/apis/discoveryengine_v1alpha/representations.rb
Overview
Request message for SiteSearchEngineService.SetUriPatternDocumentData method.
Instance Attribute Summary collapse
-
#document_data_map ⇒ Hash<String,Hash<String,Object>>
Document data keyed by URI pattern.
-
#empty_document_data_map ⇒ Boolean
(also: #empty_document_data_map?)
If true, clears the document data map.
-
#schema ⇒ Hash<String,Object>
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaSetUriPatternDocumentDataRequest
constructor
A new instance of GoogleCloudDiscoveryengineV1alphaSetUriPatternDocumentDataRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaSetUriPatternDocumentDataRequest
Returns a new instance of GoogleCloudDiscoveryengineV1alphaSetUriPatternDocumentDataRequest.
12907 12908 12909 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 12907 def initialize(**args) update!(**args) end |
Instance Attribute Details
#document_data_map ⇒ Hash<String,Hash<String,Object>>
Document data keyed by URI pattern. Each entry must be consistent with the
Schema. For example: Schema = "type": "object", "properties":
"Categories":
"type": "array", "items":
"retrievable": true, "type": "string"
document_data_map =
"www.url1.com/*": "Categories": ["category1", "
category2"]
, "www.url2.com/*": "Categories": ["category3"]
Corresponds to the JSON property
documentDataMap`
12892 12893 12894 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 12892 def document_data_map @document_data_map end |
#empty_document_data_map ⇒ Boolean Also known as: empty_document_data_map?
If true, clears the document data map. If true,
SetUriPatternDocumentDataRequest.document_data_map must be empty.
Corresponds to the JSON property emptyDocumentDataMap
12898 12899 12900 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 12898 def empty_document_data_map @empty_document_data_map end |
#schema ⇒ Hash<String,Object>
Optional. If not provided, the current Schema is used. If provided, validates
and updates the Schema. If validation fails, an error is returned.
Corresponds to the JSON property schema
12905 12906 12907 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 12905 def schema @schema end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
12912 12913 12914 12915 12916 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 12912 def update!(**args) @document_data_map = args[:document_data_map] if args.key?(:document_data_map) @empty_document_data_map = args[:empty_document_data_map] if args.key?(:empty_document_data_map) @schema = args[:schema] if args.key?(:schema) end |