Skip to content

Commit e11a47e

Browse files
1 parent 9cc3b69 commit e11a47e

17 files changed

Lines changed: 1425 additions & 3 deletions

src/DiscoveryEngine/GoogleCloudDiscoveryengineV1Engine.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,8 @@ class GoogleCloudDiscoveryengineV1Engine extends \Google\Collection
151151
* @var string
152152
*/
153153
public $industryVertical;
154+
protected $knowledgeGraphConfigType = GoogleCloudDiscoveryengineV1EngineKnowledgeGraphConfig::class;
155+
protected $knowledgeGraphConfigDataType = '';
154156
protected $mediaRecommendationEngineConfigType = GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfig::class;
155157
protected $mediaRecommendationEngineConfigDataType = '';
156158
/**
@@ -411,6 +413,23 @@ public function getIndustryVertical()
411413
{
412414
return $this->industryVertical;
413415
}
416+
/**
417+
* Optional. Configurations for the Knowledge Graph. Only applicable if
418+
* solution_type is SOLUTION_TYPE_SEARCH.
419+
*
420+
* @param GoogleCloudDiscoveryengineV1EngineKnowledgeGraphConfig $knowledgeGraphConfig
421+
*/
422+
public function setKnowledgeGraphConfig(GoogleCloudDiscoveryengineV1EngineKnowledgeGraphConfig $knowledgeGraphConfig)
423+
{
424+
$this->knowledgeGraphConfig = $knowledgeGraphConfig;
425+
}
426+
/**
427+
* @return GoogleCloudDiscoveryengineV1EngineKnowledgeGraphConfig
428+
*/
429+
public function getKnowledgeGraphConfig()
430+
{
431+
return $this->knowledgeGraphConfig;
432+
}
414433
/**
415434
* Configurations for the Media Engine. Only applicable on the data stores
416435
* with solution_type SOLUTION_TYPE_RECOMMENDATION and IndustryVertical.MEDIA
Lines changed: 137 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,137 @@
1+
<?php
2+
/*
3+
* Copyright 2014 Google Inc.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
6+
* use this file except in compliance with the License. You may obtain a copy of
7+
* the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14+
* License for the specific language governing permissions and limitations under
15+
* the License.
16+
*/
17+
18+
namespace Google\Service\DiscoveryEngine;
19+
20+
class GoogleCloudDiscoveryengineV1EngineKnowledgeGraphConfig extends \Google\Collection
21+
{
22+
protected $collection_key = 'privateKnowledgeGraphTypes';
23+
/**
24+
* Specify entity types to support.
25+
*
26+
* @var string[]
27+
*/
28+
public $cloudKnowledgeGraphTypes;
29+
/**
30+
* Whether to enable the Cloud Knowledge Graph for the engine. Defaults to
31+
* false if not specified.
32+
*
33+
* @var bool
34+
*/
35+
public $enableCloudKnowledgeGraph;
36+
/**
37+
* Whether to enable the Private Knowledge Graph for the engine. Defaults to
38+
* false if not specified.
39+
*
40+
* @var bool
41+
*/
42+
public $enablePrivateKnowledgeGraph;
43+
protected $featureConfigType = GoogleCloudDiscoveryengineV1EngineKnowledgeGraphConfigFeatureConfig::class;
44+
protected $featureConfigDataType = '';
45+
/**
46+
* Specify entity types to support.
47+
*
48+
* @var string[]
49+
*/
50+
public $privateKnowledgeGraphTypes;
51+
52+
/**
53+
* Specify entity types to support.
54+
*
55+
* @param string[] $cloudKnowledgeGraphTypes
56+
*/
57+
public function setCloudKnowledgeGraphTypes($cloudKnowledgeGraphTypes)
58+
{
59+
$this->cloudKnowledgeGraphTypes = $cloudKnowledgeGraphTypes;
60+
}
61+
/**
62+
* @return string[]
63+
*/
64+
public function getCloudKnowledgeGraphTypes()
65+
{
66+
return $this->cloudKnowledgeGraphTypes;
67+
}
68+
/**
69+
* Whether to enable the Cloud Knowledge Graph for the engine. Defaults to
70+
* false if not specified.
71+
*
72+
* @param bool $enableCloudKnowledgeGraph
73+
*/
74+
public function setEnableCloudKnowledgeGraph($enableCloudKnowledgeGraph)
75+
{
76+
$this->enableCloudKnowledgeGraph = $enableCloudKnowledgeGraph;
77+
}
78+
/**
79+
* @return bool
80+
*/
81+
public function getEnableCloudKnowledgeGraph()
82+
{
83+
return $this->enableCloudKnowledgeGraph;
84+
}
85+
/**
86+
* Whether to enable the Private Knowledge Graph for the engine. Defaults to
87+
* false if not specified.
88+
*
89+
* @param bool $enablePrivateKnowledgeGraph
90+
*/
91+
public function setEnablePrivateKnowledgeGraph($enablePrivateKnowledgeGraph)
92+
{
93+
$this->enablePrivateKnowledgeGraph = $enablePrivateKnowledgeGraph;
94+
}
95+
/**
96+
* @return bool
97+
*/
98+
public function getEnablePrivateKnowledgeGraph()
99+
{
100+
return $this->enablePrivateKnowledgeGraph;
101+
}
102+
/**
103+
* Optional. Feature config for the Knowledge Graph.
104+
*
105+
* @param GoogleCloudDiscoveryengineV1EngineKnowledgeGraphConfigFeatureConfig $featureConfig
106+
*/
107+
public function setFeatureConfig(GoogleCloudDiscoveryengineV1EngineKnowledgeGraphConfigFeatureConfig $featureConfig)
108+
{
109+
$this->featureConfig = $featureConfig;
110+
}
111+
/**
112+
* @return GoogleCloudDiscoveryengineV1EngineKnowledgeGraphConfigFeatureConfig
113+
*/
114+
public function getFeatureConfig()
115+
{
116+
return $this->featureConfig;
117+
}
118+
/**
119+
* Specify entity types to support.
120+
*
121+
* @param string[] $privateKnowledgeGraphTypes
122+
*/
123+
public function setPrivateKnowledgeGraphTypes($privateKnowledgeGraphTypes)
124+
{
125+
$this->privateKnowledgeGraphTypes = $privateKnowledgeGraphTypes;
126+
}
127+
/**
128+
* @return string[]
129+
*/
130+
public function getPrivateKnowledgeGraphTypes()
131+
{
132+
return $this->privateKnowledgeGraphTypes;
133+
}
134+
}
135+
136+
// Adding a class alias for backwards compatibility with the previous class name.
137+
class_alias(GoogleCloudDiscoveryengineV1EngineKnowledgeGraphConfig::class, 'Google_Service_DiscoveryEngine_GoogleCloudDiscoveryengineV1EngineKnowledgeGraphConfig');
Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
<?php
2+
/*
3+
* Copyright 2014 Google Inc.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
6+
* use this file except in compliance with the License. You may obtain a copy of
7+
* the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14+
* License for the specific language governing permissions and limitations under
15+
* the License.
16+
*/
17+
18+
namespace Google\Service\DiscoveryEngine;
19+
20+
class GoogleCloudDiscoveryengineV1EngineKnowledgeGraphConfigFeatureConfig extends \Google\Model
21+
{
22+
/**
23+
* Whether to disable the private KG auto complete for the engine. Defaults to
24+
* false if not specified.
25+
*
26+
* @var bool
27+
*/
28+
public $disablePrivateKgAutoComplete;
29+
/**
30+
* Whether to disable the private KG enrichment for the engine. Defaults to
31+
* false if not specified.
32+
*
33+
* @var bool
34+
*/
35+
public $disablePrivateKgEnrichment;
36+
/**
37+
* Whether to disable the private KG for query UI chips. Defaults to false if
38+
* not specified.
39+
*
40+
* @var bool
41+
*/
42+
public $disablePrivateKgQueryUiChips;
43+
/**
44+
* Whether to disable the private KG query understanding for the engine.
45+
* Defaults to false if not specified.
46+
*
47+
* @var bool
48+
*/
49+
public $disablePrivateKgQueryUnderstanding;
50+
51+
/**
52+
* Whether to disable the private KG auto complete for the engine. Defaults to
53+
* false if not specified.
54+
*
55+
* @param bool $disablePrivateKgAutoComplete
56+
*/
57+
public function setDisablePrivateKgAutoComplete($disablePrivateKgAutoComplete)
58+
{
59+
$this->disablePrivateKgAutoComplete = $disablePrivateKgAutoComplete;
60+
}
61+
/**
62+
* @return bool
63+
*/
64+
public function getDisablePrivateKgAutoComplete()
65+
{
66+
return $this->disablePrivateKgAutoComplete;
67+
}
68+
/**
69+
* Whether to disable the private KG enrichment for the engine. Defaults to
70+
* false if not specified.
71+
*
72+
* @param bool $disablePrivateKgEnrichment
73+
*/
74+
public function setDisablePrivateKgEnrichment($disablePrivateKgEnrichment)
75+
{
76+
$this->disablePrivateKgEnrichment = $disablePrivateKgEnrichment;
77+
}
78+
/**
79+
* @return bool
80+
*/
81+
public function getDisablePrivateKgEnrichment()
82+
{
83+
return $this->disablePrivateKgEnrichment;
84+
}
85+
/**
86+
* Whether to disable the private KG for query UI chips. Defaults to false if
87+
* not specified.
88+
*
89+
* @param bool $disablePrivateKgQueryUiChips
90+
*/
91+
public function setDisablePrivateKgQueryUiChips($disablePrivateKgQueryUiChips)
92+
{
93+
$this->disablePrivateKgQueryUiChips = $disablePrivateKgQueryUiChips;
94+
}
95+
/**
96+
* @return bool
97+
*/
98+
public function getDisablePrivateKgQueryUiChips()
99+
{
100+
return $this->disablePrivateKgQueryUiChips;
101+
}
102+
/**
103+
* Whether to disable the private KG query understanding for the engine.
104+
* Defaults to false if not specified.
105+
*
106+
* @param bool $disablePrivateKgQueryUnderstanding
107+
*/
108+
public function setDisablePrivateKgQueryUnderstanding($disablePrivateKgQueryUnderstanding)
109+
{
110+
$this->disablePrivateKgQueryUnderstanding = $disablePrivateKgQueryUnderstanding;
111+
}
112+
/**
113+
* @return bool
114+
*/
115+
public function getDisablePrivateKgQueryUnderstanding()
116+
{
117+
return $this->disablePrivateKgQueryUnderstanding;
118+
}
119+
}
120+
121+
// Adding a class alias for backwards compatibility with the previous class name.
122+
class_alias(GoogleCloudDiscoveryengineV1EngineKnowledgeGraphConfigFeatureConfig::class, 'Google_Service_DiscoveryEngine_GoogleCloudDiscoveryengineV1EngineKnowledgeGraphConfigFeatureConfig');

src/DiscoveryEngine/GoogleCloudDiscoveryengineV1HealthcareFhirConfig.php

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@
1717

1818
namespace Google\Service\DiscoveryEngine;
1919

20-
class GoogleCloudDiscoveryengineV1HealthcareFhirConfig extends \Google\Model
20+
class GoogleCloudDiscoveryengineV1HealthcareFhirConfig extends \Google\Collection
2121
{
22+
protected $collection_key = 'initialFilterGroups';
2223
/**
2324
* Whether to enable configurable schema for `HEALTHCARE_FHIR` vertical. If
2425
* set to `true`, the predefined healthcare fhir schema can be extended for
@@ -35,6 +36,17 @@ class GoogleCloudDiscoveryengineV1HealthcareFhirConfig extends \Google\Model
3536
* @var bool
3637
*/
3738
public $enableStaticIndexingForBatchIngestion;
39+
/**
40+
* Optional. Names of the Group resources to use as a basis for the initial
41+
* patient filter, in format `projects/{project_id}/locations/{location_id}/da
42+
* tasets/{dataset_id}/fhirStores/{fhir_store_id}/fhir/Group/{group_id}`. The
43+
* filter group must be a FHIR resource name of type Group, and the filter
44+
* will be constructed from the direct members of the group which are Patient
45+
* resources.
46+
*
47+
* @var string[]
48+
*/
49+
public $initialFilterGroups;
3850

3951
/**
4052
* Whether to enable configurable schema for `HEALTHCARE_FHIR` vertical. If
@@ -72,6 +84,27 @@ public function getEnableStaticIndexingForBatchIngestion()
7284
{
7385
return $this->enableStaticIndexingForBatchIngestion;
7486
}
87+
/**
88+
* Optional. Names of the Group resources to use as a basis for the initial
89+
* patient filter, in format `projects/{project_id}/locations/{location_id}/da
90+
* tasets/{dataset_id}/fhirStores/{fhir_store_id}/fhir/Group/{group_id}`. The
91+
* filter group must be a FHIR resource name of type Group, and the filter
92+
* will be constructed from the direct members of the group which are Patient
93+
* resources.
94+
*
95+
* @param string[] $initialFilterGroups
96+
*/
97+
public function setInitialFilterGroups($initialFilterGroups)
98+
{
99+
$this->initialFilterGroups = $initialFilterGroups;
100+
}
101+
/**
102+
* @return string[]
103+
*/
104+
public function getInitialFilterGroups()
105+
{
106+
return $this->initialFilterGroups;
107+
}
75108
}
76109

77110
// Adding a class alias for backwards compatibility with the previous class name.

0 commit comments

Comments
 (0)