Class PhraseMatcher
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.contactcenterinsights.v1.PhraseMatcher
- All Implemented Interfaces:
PhraseMatcherOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class PhraseMatcher
extends com.google.protobuf.GeneratedMessage
implements PhraseMatcherOrBuilder
The phrase matcher resource.Protobuf type
google.cloud.contactcenterinsights.v1.PhraseMatcher- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classThe phrase matcher resource.static enumSpecifies how to combine each phrase match rule group to determine whether there is a match.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleancom.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.booleanApplies the phrase matcher only when it is active.static PhraseMatcherstatic final com.google.protobuf.Descriptors.DescriptorThe human-readable name of the phrase matcher.com.google.protobuf.ByteStringThe human-readable name of the phrase matcher.getName()The resource name of the phrase matcher.com.google.protobuf.ByteStringThe resource name of the phrase matcher.com.google.protobuf.Parser<PhraseMatcher>getPhraseMatchRuleGroups(int index) A list of phase match rule groups that are included in this matcher.intA list of phase match rule groups that are included in this matcher.A list of phase match rule groups that are included in this matcher.getPhraseMatchRuleGroupsOrBuilder(int index) A list of phase match rule groups that are included in this matcher.List<? extends PhraseMatchRuleGroupOrBuilder>A list of phase match rule groups that are included in this matcher.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.Output only.com.google.protobuf.ByteStringOutput only.The role whose utterances the phrase matcher should be matched against.intThe role whose utterances the phrase matcher should be matched against.intgetType()Required.intRequired.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.The customized version tag to use for the phrase matcher.com.google.protobuf.ByteStringThe customized version tag to use for the phrase matcher.booleanOutput only.inthashCode()booleanOutput only.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic PhraseMatcher.Builderstatic PhraseMatcher.BuildernewBuilder(PhraseMatcher prototype) protected PhraseMatcher.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static PhraseMatcherparseDelimitedFrom(InputStream input) static PhraseMatcherparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static PhraseMatcherparseFrom(byte[] data) static PhraseMatcherparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static PhraseMatcherparseFrom(com.google.protobuf.ByteString data) static PhraseMatcherparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static PhraseMatcherparseFrom(com.google.protobuf.CodedInputStream input) static PhraseMatcherparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static PhraseMatcherparseFrom(InputStream input) static PhraseMatcherparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static PhraseMatcherparseFrom(ByteBuffer data) static PhraseMatcherparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<PhraseMatcher>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
REVISION_ID_FIELD_NUMBER
public static final int REVISION_ID_FIELD_NUMBER- See Also:
-
VERSION_TAG_FIELD_NUMBER
public static final int VERSION_TAG_FIELD_NUMBER- See Also:
-
REVISION_CREATE_TIME_FIELD_NUMBER
public static final int REVISION_CREATE_TIME_FIELD_NUMBER- See Also:
-
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER- See Also:
-
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER- See Also:
-
ACTIVE_FIELD_NUMBER
public static final int ACTIVE_FIELD_NUMBER- See Also:
-
PHRASE_MATCH_RULE_GROUPS_FIELD_NUMBER
public static final int PHRASE_MATCH_RULE_GROUPS_FIELD_NUMBER- See Also:
-
ACTIVATION_UPDATE_TIME_FIELD_NUMBER
public static final int ACTIVATION_UPDATE_TIME_FIELD_NUMBER- See Also:
-
ROLE_MATCH_FIELD_NUMBER
public static final int ROLE_MATCH_FIELD_NUMBER- See Also:
-
UPDATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getName
The resource name of the phrase matcher. Format: projects/{project}/locations/{location}/phraseMatchers/{phrase_matcher}string name = 1;- Specified by:
getNamein interfacePhraseMatcherOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()The resource name of the phrase matcher. Format: projects/{project}/locations/{location}/phraseMatchers/{phrase_matcher}string name = 1;- Specified by:
getNameBytesin interfacePhraseMatcherOrBuilder- Returns:
- The bytes for name.
-
getRevisionId
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
string revision_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getRevisionIdin interfacePhraseMatcherOrBuilder- Returns:
- The revisionId.
-
getRevisionIdBytes
public com.google.protobuf.ByteString getRevisionIdBytes()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
string revision_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getRevisionIdBytesin interfacePhraseMatcherOrBuilder- Returns:
- The bytes for revisionId.
-
getVersionTag
The customized version tag to use for the phrase matcher. If not specified, it will default to `revision_id`.
string version_tag = 3;- Specified by:
getVersionTagin interfacePhraseMatcherOrBuilder- Returns:
- The versionTag.
-
getVersionTagBytes
public com.google.protobuf.ByteString getVersionTagBytes()The customized version tag to use for the phrase matcher. If not specified, it will default to `revision_id`.
string version_tag = 3;- Specified by:
getVersionTagBytesin interfacePhraseMatcherOrBuilder- Returns:
- The bytes for versionTag.
-
hasRevisionCreateTime
public boolean hasRevisionCreateTime()Output only. The timestamp of when the revision was created. It is also the create time when a new matcher is added.
.google.protobuf.Timestamp revision_create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasRevisionCreateTimein interfacePhraseMatcherOrBuilder- Returns:
- Whether the revisionCreateTime field is set.
-
getRevisionCreateTime
public com.google.protobuf.Timestamp getRevisionCreateTime()Output only. The timestamp of when the revision was created. It is also the create time when a new matcher is added.
.google.protobuf.Timestamp revision_create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getRevisionCreateTimein interfacePhraseMatcherOrBuilder- Returns:
- The revisionCreateTime.
-
getRevisionCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getRevisionCreateTimeOrBuilder()Output only. The timestamp of when the revision was created. It is also the create time when a new matcher is added.
.google.protobuf.Timestamp revision_create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getRevisionCreateTimeOrBuilderin interfacePhraseMatcherOrBuilder
-
getDisplayName
The human-readable name of the phrase matcher.
string display_name = 5;- Specified by:
getDisplayNamein interfacePhraseMatcherOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()The human-readable name of the phrase matcher.
string display_name = 5;- Specified by:
getDisplayNameBytesin interfacePhraseMatcherOrBuilder- Returns:
- The bytes for displayName.
-
getTypeValue
public int getTypeValue()Required. The type of this phrase matcher.
.google.cloud.contactcenterinsights.v1.PhraseMatcher.PhraseMatcherType type = 6 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getTypeValuein interfacePhraseMatcherOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
getType
Required. The type of this phrase matcher.
.google.cloud.contactcenterinsights.v1.PhraseMatcher.PhraseMatcherType type = 6 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getTypein interfacePhraseMatcherOrBuilder- Returns:
- The type.
-
getActive
public boolean getActive()Applies the phrase matcher only when it is active.
bool active = 7;- Specified by:
getActivein interfacePhraseMatcherOrBuilder- Returns:
- The active.
-
getPhraseMatchRuleGroupsList
A list of phase match rule groups that are included in this matcher.
repeated .google.cloud.contactcenterinsights.v1.PhraseMatchRuleGroup phrase_match_rule_groups = 8;- Specified by:
getPhraseMatchRuleGroupsListin interfacePhraseMatcherOrBuilder
-
getPhraseMatchRuleGroupsOrBuilderList
A list of phase match rule groups that are included in this matcher.
repeated .google.cloud.contactcenterinsights.v1.PhraseMatchRuleGroup phrase_match_rule_groups = 8;- Specified by:
getPhraseMatchRuleGroupsOrBuilderListin interfacePhraseMatcherOrBuilder
-
getPhraseMatchRuleGroupsCount
public int getPhraseMatchRuleGroupsCount()A list of phase match rule groups that are included in this matcher.
repeated .google.cloud.contactcenterinsights.v1.PhraseMatchRuleGroup phrase_match_rule_groups = 8;- Specified by:
getPhraseMatchRuleGroupsCountin interfacePhraseMatcherOrBuilder
-
getPhraseMatchRuleGroups
A list of phase match rule groups that are included in this matcher.
repeated .google.cloud.contactcenterinsights.v1.PhraseMatchRuleGroup phrase_match_rule_groups = 8;- Specified by:
getPhraseMatchRuleGroupsin interfacePhraseMatcherOrBuilder
-
getPhraseMatchRuleGroupsOrBuilder
A list of phase match rule groups that are included in this matcher.
repeated .google.cloud.contactcenterinsights.v1.PhraseMatchRuleGroup phrase_match_rule_groups = 8;- Specified by:
getPhraseMatchRuleGroupsOrBuilderin interfacePhraseMatcherOrBuilder
-
hasActivationUpdateTime
public boolean hasActivationUpdateTime()Output only. The most recent time at which the activation status was updated.
.google.protobuf.Timestamp activation_update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasActivationUpdateTimein interfacePhraseMatcherOrBuilder- Returns:
- Whether the activationUpdateTime field is set.
-
getActivationUpdateTime
public com.google.protobuf.Timestamp getActivationUpdateTime()Output only. The most recent time at which the activation status was updated.
.google.protobuf.Timestamp activation_update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getActivationUpdateTimein interfacePhraseMatcherOrBuilder- Returns:
- The activationUpdateTime.
-
getActivationUpdateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getActivationUpdateTimeOrBuilder()Output only. The most recent time at which the activation status was updated.
.google.protobuf.Timestamp activation_update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getActivationUpdateTimeOrBuilderin interfacePhraseMatcherOrBuilder
-
getRoleMatchValue
public int getRoleMatchValue()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.
.google.cloud.contactcenterinsights.v1.ConversationParticipant.Role role_match = 10;- Specified by:
getRoleMatchValuein interfacePhraseMatcherOrBuilder- Returns:
- The enum numeric value on the wire for roleMatch.
-
getRoleMatch
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.
.google.cloud.contactcenterinsights.v1.ConversationParticipant.Role role_match = 10;- Specified by:
getRoleMatchin interfacePhraseMatcherOrBuilder- Returns:
- The roleMatch.
-
hasUpdateTime
public boolean hasUpdateTime()Output only. The most recent time at which the phrase matcher was updated.
.google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasUpdateTimein interfacePhraseMatcherOrBuilder- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
public com.google.protobuf.Timestamp getUpdateTime()Output only. The most recent time at which the phrase matcher was updated.
.google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimein interfacePhraseMatcherOrBuilder- Returns:
- The updateTime.
-
getUpdateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()Output only. The most recent time at which the phrase matcher was updated.
.google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimeOrBuilderin interfacePhraseMatcherOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static PhraseMatcher parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PhraseMatcher parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PhraseMatcher parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PhraseMatcher parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PhraseMatcher parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PhraseMatcher parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static PhraseMatcher parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static PhraseMatcher parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static PhraseMatcher parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static PhraseMatcher parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected PhraseMatcher.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-