Reference documentation and code samples for the Google Cloud Dialogflow Cx V3 Client class TypeSchema.
Encapsulates different type schema variations: either a reference to an a schema that's already defined by a tool, or an inline definition.
Generated from protobuf message google.cloud.dialogflow.cx.v3.TypeSchema
Namespace
Google \ Cloud \ Dialogflow \ Cx \ V3Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ inline_schema |
InlineSchema
Set if this is an inline schema definition. |
↳ schema_reference |
TypeSchema\SchemaReference
Set if this is a schema reference. |
getInlineSchema
Set if this is an inline schema definition.
| Returns | |
|---|---|
| Type | Description |
InlineSchema|null |
|
hasInlineSchema
setInlineSchema
Set if this is an inline schema definition.
| Parameter | |
|---|---|
| Name | Description |
var |
InlineSchema
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getSchemaReference
Set if this is a schema reference.
| Returns | |
|---|---|
| Type | Description |
TypeSchema\SchemaReference|null |
|
hasSchemaReference
setSchemaReference
Set if this is a schema reference.
| Parameter | |
|---|---|
| Name | Description |
var |
TypeSchema\SchemaReference
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getSchema
| Returns | |
|---|---|
| Type | Description |
string |
|