Reference documentation and code samples for the Google Cloud Discovery Engine V1 Client class StringConstraint.
Constraint expression of a string field.
Generated from protobuf message google.cloud.discoveryengine.v1.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint
Namespace
Google \ Cloud \ DiscoveryEngine \ V1 \ SearchResponse \ NaturalLanguageQueryUnderstandingInfo \ StructuredExtractedFilterMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ field_name |
string
Name of the string field as defined in the schema. |
↳ values |
array
Values of the string field. The record will only be returned if the field value matches one of the values specified here. |
↳ query_segment |
string
Identifies the keywords within the search query that match a filter. |
getFieldName
Name of the string field as defined in the schema.
| Returns | |
|---|---|
| Type | Description |
string |
|
setFieldName
Name of the string field as defined in the schema.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getValues
Values of the string field. The record will only be returned if the field value matches one of the values specified here.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\RepeatedField |
|
setValues
Values of the string field. The record will only be returned if the field value matches one of the values specified here.
| Parameter | |
|---|---|
| Name | Description |
var |
string[]
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getQuerySegment
Identifies the keywords within the search query that match a filter.
| Returns | |
|---|---|
| Type | Description |
string |
|
setQuerySegment
Identifies the keywords within the search query that match a filter.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|