Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSetUriPatternDocumentDataRequest

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_mapHash<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 propertydocumentDataMap`

Returns:

  • (Hash<String,Hash<String,Object>>)


12892
12893
12894
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 12892

def document_data_map
  @document_data_map
end

#empty_document_data_mapBoolean 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

Returns:

  • (Boolean)


12898
12899
12900
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 12898

def empty_document_data_map
  @empty_document_data_map
end

#schemaHash<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

Returns:

  • (Hash<String,Object>)


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