- Resource: PhraseMatcher
- PhraseMatcherType
- PhraseMatchRuleGroup
- PhraseMatchRuleGroupType
- PhraseMatchRule
- PhraseMatchRuleConfig
- ExactMatchConfig
- Methods
Resource: PhraseMatcher
The phrase matcher resource.
| JSON representation |
|---|
{ "name": string, "revisionId": string, "versionTag": string, "revisionCreateTime": string, "displayName": string, "type": enum ( |
| Fields | |
|---|---|
name |
The resource name of the phrase matcher. Format: projects/{project}/locations/{location}/phraseMatchers/{phraseMatcher} |
revisionId |
Output only. Immutable. The revision ID of the phrase matcher. A new revision is committed whenever the matcher is changed, except when it is activated or deactivated. A server generated random ID will be used. Example: locations/global/phraseMatchers/my-first-matcher@1234567 |
versionTag |
The customized version tag to use for the phrase matcher. If not specified, it will default to |
revisionCreateTime |
Output only. The timestamp of when the revision was created. It is also the create time when a new matcher is added. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
displayName |
The human-readable name of the phrase matcher. |
type |
Required. The type of this phrase matcher. |
active |
Applies the phrase matcher only when it is active. |
phraseMatchRuleGroups[] |
A list of phase match rule groups that are included in this matcher. |
activationUpdateTime |
Output only. The most recent time at which the activation status was updated. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
roleMatch |
The role whose utterances the phrase matcher should be matched against. If the role is ROLE_UNSPECIFIED it will be matched against any utterances in the transcript. |
updateTime |
Output only. The most recent time at which the phrase matcher was updated. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
PhraseMatcherType
Specifies how to combine each phrase match rule group to determine whether there is a match.
| Enums | |
|---|---|
PHRASE_MATCHER_TYPE_UNSPECIFIED |
Unspecified. |
ALL_OF |
Must meet all phrase match rule groups or there is no match. |
ANY_OF |
If any of the phrase match rule groups are met, there is a match. |
PhraseMatchRuleGroup
A message representing a rule in the phrase matcher.
| JSON representation |
|---|
{ "type": enum ( |
| Fields | |
|---|---|
type |
Required. The type of this phrase match rule group. |
phraseMatchRules[] |
A list of phrase match rules that are included in this group. |
PhraseMatchRuleGroupType
Specifies how to combine each phrase match rule for whether there is a match.
| Enums | |
|---|---|
PHRASE_MATCH_RULE_GROUP_TYPE_UNSPECIFIED |
Unspecified. |
ALL_OF |
Must meet all phrase match rules or there is no match. |
ANY_OF |
If any of the phrase match rules are met, there is a match. |
PhraseMatchRule
The data for a phrase match rule.
| JSON representation |
|---|
{
"query": string,
"negated": boolean,
"config": {
object ( |
| Fields | |
|---|---|
query |
Required. The phrase to be matched. |
negated |
Specifies whether the phrase must be missing from the transcript segment or present in the transcript segment. |
config |
Provides additional information about the rule that specifies how to apply the rule. |
PhraseMatchRuleConfig
Configuration information of a phrase match rule.
| JSON representation |
|---|
{ // Union field |
| Fields | |
|---|---|
Union field config. The configuration of the phrase match rule. config can be only one of the following: |
|
exactMatchConfig |
The configuration for the exact match rule. |
ExactMatchConfig
Exact match configuration.
| JSON representation |
|---|
{ "caseSensitive": boolean } |
| Fields | |
|---|---|
caseSensitive |
Whether to consider case sensitivity when performing an exact match. |
Methods |
|
|---|---|
|
Creates a phrase matcher. |
|
Deletes a phrase matcher. |
|
Gets a phrase matcher. |
|
Lists phrase matchers. |
|
Updates a phrase matcher. |