- 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} |
revision |
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 |
version |
The customized version tag to use for the phrase matcher. If not specified, it will default to |
revision |
Output only. The timestamp of when the revision was created. It is also the create time when a new matcher is added. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
display |
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. |
phrase |
A list of phase match rule groups that are included in this matcher. |
activation |
Output only. The most recent time at which the activation status was updated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
role |
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. |
update |
Output only. The most recent time at which the phrase matcher was updated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. 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. |
phrase |
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: |
|
exact |
The configuration for the exact match rule. |
ExactMatchConfig
Exact match configuration.
JSON representation |
---|
{ "caseSensitive": boolean } |
Fields | |
---|---|
case |
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. |