Google Cloud Discovery Engine V1 Client - Class KnowledgeGraphConfig (1.17.0)

Reference documentation and code samples for the Google Cloud Discovery Engine V1 Client class KnowledgeGraphConfig.

Configuration message for the Knowledge Graph.

Generated from protobuf message google.cloud.discoveryengine.v1.Engine.KnowledgeGraphConfig

Namespace

Google \ Cloud \ DiscoveryEngine \ V1 \ Engine

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ enable_cloud_knowledge_graph bool

Whether to enable the Cloud Knowledge Graph for the engine. Defaults to false if not specified.

↳ cloud_knowledge_graph_types string[]

Specify entity types to support.

↳ enable_private_knowledge_graph bool

Whether to enable the Private Knowledge Graph for the engine. Defaults to false if not specified.

↳ private_knowledge_graph_types string[]

Specify entity types to support.

↳ feature_config KnowledgeGraphConfig\FeatureConfig

Optional. Feature config for the Knowledge Graph.

getEnableCloudKnowledgeGraph

Whether to enable the Cloud Knowledge Graph for the engine.

Defaults to false if not specified.

Returns
Type Description
bool

setEnableCloudKnowledgeGraph

Whether to enable the Cloud Knowledge Graph for the engine.

Defaults to false if not specified.

Parameter
Name Description
var bool
Returns
Type Description
$this

getCloudKnowledgeGraphTypes

Specify entity types to support.

Returns
Type Description
Google\Protobuf\RepeatedField<string>

setCloudKnowledgeGraphTypes

Specify entity types to support.

Parameter
Name Description
var string[]
Returns
Type Description
$this

getEnablePrivateKnowledgeGraph

Whether to enable the Private Knowledge Graph for the engine.

Defaults to false if not specified.

Returns
Type Description
bool

setEnablePrivateKnowledgeGraph

Whether to enable the Private Knowledge Graph for the engine.

Defaults to false if not specified.

Parameter
Name Description
var bool
Returns
Type Description
$this

getPrivateKnowledgeGraphTypes

Specify entity types to support.

Returns
Type Description
Google\Protobuf\RepeatedField<string>

setPrivateKnowledgeGraphTypes

Specify entity types to support.

Parameter
Name Description
var string[]
Returns
Type Description
$this

getFeatureConfig

Optional. Feature config for the Knowledge Graph.

Returns
Type Description
KnowledgeGraphConfig\FeatureConfig|null

hasFeatureConfig

clearFeatureConfig

setFeatureConfig

Optional. Feature config for the Knowledge Graph.

Parameter
Name Description
var KnowledgeGraphConfig\FeatureConfig
Returns
Type Description
$this