Class PhraseMatchRule.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<PhraseMatchRule.Builder>
com.google.cloud.contactcenterinsights.v1.PhraseMatchRule.Builder
- All Implemented Interfaces:
PhraseMatchRuleOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- PhraseMatchRule
public static final class PhraseMatchRule.Builder
extends com.google.protobuf.GeneratedMessage.Builder<PhraseMatchRule.Builder>
implements PhraseMatchRuleOrBuilder
The data for a phrase match rule.Protobuf type
google.cloud.contactcenterinsights.v1.PhraseMatchRule-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Provides additional information about the rule that specifies how to apply the rule.Specifies whether the phrase must be missing from the transcript segment or present in the transcript segment.Required.Provides additional information about the rule that specifies how to apply the rule.Provides additional information about the rule that specifies how to apply the rule.Provides additional information about the rule that specifies how to apply the rule.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanSpecifies whether the phrase must be missing from the transcript segment or present in the transcript segment.getQuery()Required.com.google.protobuf.ByteStringRequired.booleanProvides additional information about the rule that specifies how to apply the rule.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeConfig(PhraseMatchRuleConfig value) Provides additional information about the rule that specifies how to apply the rule.mergeFrom(PhraseMatchRule other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setConfig(PhraseMatchRuleConfig value) Provides additional information about the rule that specifies how to apply the rule.setConfig(PhraseMatchRuleConfig.Builder builderForValue) Provides additional information about the rule that specifies how to apply the rule.setNegated(boolean value) Specifies whether the phrase must be missing from the transcript segment or present in the transcript segment.Required.setQueryBytes(com.google.protobuf.ByteString value) Required.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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.Builder<PhraseMatchRule.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<PhraseMatchRule.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<PhraseMatchRule.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PhraseMatchRule.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<PhraseMatchRule.Builder>
-
mergeFrom
public PhraseMatchRule.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PhraseMatchRule.Builder>- Throws:
IOException
-
getQuery
Required. The phrase to be matched.
string query = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getQueryin interfacePhraseMatchRuleOrBuilder- Returns:
- The query.
-
getQueryBytes
public com.google.protobuf.ByteString getQueryBytes()Required. The phrase to be matched.
string query = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getQueryBytesin interfacePhraseMatchRuleOrBuilder- Returns:
- The bytes for query.
-
setQuery
Required. The phrase to be matched.
string query = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The query to set.- Returns:
- This builder for chaining.
-
clearQuery
Required. The phrase to be matched.
string query = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setQueryBytes
Required. The phrase to be matched.
string query = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for query to set.- Returns:
- This builder for chaining.
-
getNegated
public boolean getNegated()Specifies whether the phrase must be missing from the transcript segment or present in the transcript segment.
bool negated = 2;- Specified by:
getNegatedin interfacePhraseMatchRuleOrBuilder- Returns:
- The negated.
-
setNegated
Specifies whether the phrase must be missing from the transcript segment or present in the transcript segment.
bool negated = 2;- Parameters:
value- The negated to set.- Returns:
- This builder for chaining.
-
clearNegated
Specifies whether the phrase must be missing from the transcript segment or present in the transcript segment.
bool negated = 2;- Returns:
- This builder for chaining.
-
hasConfig
public boolean hasConfig()Provides additional information about the rule that specifies how to apply the rule.
.google.cloud.contactcenterinsights.v1.PhraseMatchRuleConfig config = 3;- Specified by:
hasConfigin interfacePhraseMatchRuleOrBuilder- Returns:
- Whether the config field is set.
-
getConfig
Provides additional information about the rule that specifies how to apply the rule.
.google.cloud.contactcenterinsights.v1.PhraseMatchRuleConfig config = 3;- Specified by:
getConfigin interfacePhraseMatchRuleOrBuilder- Returns:
- The config.
-
setConfig
Provides additional information about the rule that specifies how to apply the rule.
.google.cloud.contactcenterinsights.v1.PhraseMatchRuleConfig config = 3; -
setConfig
Provides additional information about the rule that specifies how to apply the rule.
.google.cloud.contactcenterinsights.v1.PhraseMatchRuleConfig config = 3; -
mergeConfig
Provides additional information about the rule that specifies how to apply the rule.
.google.cloud.contactcenterinsights.v1.PhraseMatchRuleConfig config = 3; -
clearConfig
Provides additional information about the rule that specifies how to apply the rule.
.google.cloud.contactcenterinsights.v1.PhraseMatchRuleConfig config = 3; -
getConfigBuilder
Provides additional information about the rule that specifies how to apply the rule.
.google.cloud.contactcenterinsights.v1.PhraseMatchRuleConfig config = 3; -
getConfigOrBuilder
Provides additional information about the rule that specifies how to apply the rule.
.google.cloud.contactcenterinsights.v1.PhraseMatchRuleConfig config = 3;- Specified by:
getConfigOrBuilderin interfacePhraseMatchRuleOrBuilder
-