Reference documentation and code samples for the Google Cloud Ces V1 Client class ModalityConfig.
If specified, will apply the given configuration for the specified modality.
Generated from protobuf message google.cloud.ces.v1.DataStoreTool.ModalityConfig
Namespace
Google \ Cloud \ Ces \ V1 \ DataStoreToolMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ modality_type |
int
Required. The modality type. |
↳ rewriter_config |
RewriterConfig
Optional. The rewriter config. |
↳ summarization_config |
SummarizationConfig
Optional. The summarization config. |
↳ grounding_config |
GroundingConfig
Optional. The grounding configuration. |
getModalityType
Required. The modality type.
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type ModalityType. |
setModalityType
Required. The modality type.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type ModalityType. |
| Returns | |
|---|---|
| Type | Description |
$this |
|
getRewriterConfig
Optional. The rewriter config.
| Returns | |
|---|---|
| Type | Description |
RewriterConfig|null |
|
hasRewriterConfig
clearRewriterConfig
setRewriterConfig
Optional. The rewriter config.
| Parameter | |
|---|---|
| Name | Description |
var |
RewriterConfig
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getSummarizationConfig
Optional. The summarization config.
| Returns | |
|---|---|
| Type | Description |
SummarizationConfig|null |
|
hasSummarizationConfig
clearSummarizationConfig
setSummarizationConfig
Optional. The summarization config.
| Parameter | |
|---|---|
| Name | Description |
var |
SummarizationConfig
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getGroundingConfig
Optional. The grounding configuration.
| Returns | |
|---|---|
| Type | Description |
GroundingConfig|null |
|
hasGroundingConfig
clearGroundingConfig
setGroundingConfig
Optional. The grounding configuration.
| Parameter | |
|---|---|
| Name | Description |
var |
GroundingConfig
|
| Returns | |
|---|---|
| Type | Description |
$this |
|