public static final class PhraseMatchRule.Builder extends GeneratedMessage.Builder<PhraseMatchRule.Builder> implements PhraseMatchRuleOrBuilderThe data for a phrase match rule.
Protobuf type google.cloud.contactcenterinsights.v1.PhraseMatchRule
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > PhraseMatchRule.BuilderImplements
PhraseMatchRuleOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public PhraseMatchRule build()| Returns | |
|---|---|
| Type | Description |
PhraseMatchRule |
|
buildPartial()
public PhraseMatchRule buildPartial()| Returns | |
|---|---|
| Type | Description |
PhraseMatchRule |
|
clear()
public PhraseMatchRule.Builder clear()| Returns | |
|---|---|
| Type | Description |
PhraseMatchRule.Builder |
|
clearConfig()
public PhraseMatchRule.Builder clearConfig()Provides additional information about the rule that specifies how to apply the rule.
.google.cloud.contactcenterinsights.v1.PhraseMatchRuleConfig config = 3;
| Returns | |
|---|---|
| Type | Description |
PhraseMatchRule.Builder |
|
clearNegated()
public PhraseMatchRule.Builder clearNegated()Specifies whether the phrase must be missing from the transcript segment or present in the transcript segment.
bool negated = 2;
| Returns | |
|---|---|
| Type | Description |
PhraseMatchRule.Builder |
This builder for chaining. |
clearQuery()
public PhraseMatchRule.Builder clearQuery()Required. The phrase to be matched.
string query = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
PhraseMatchRule.Builder |
This builder for chaining. |
getConfig()
public PhraseMatchRuleConfig getConfig()Provides additional information about the rule that specifies how to apply the rule.
.google.cloud.contactcenterinsights.v1.PhraseMatchRuleConfig config = 3;
| Returns | |
|---|---|
| Type | Description |
PhraseMatchRuleConfig |
The config. |
getConfigBuilder()
public PhraseMatchRuleConfig.Builder getConfigBuilder()Provides additional information about the rule that specifies how to apply the rule.
.google.cloud.contactcenterinsights.v1.PhraseMatchRuleConfig config = 3;
| Returns | |
|---|---|
| Type | Description |
PhraseMatchRuleConfig.Builder |
|
getConfigOrBuilder()
public PhraseMatchRuleConfigOrBuilder getConfigOrBuilder()Provides additional information about the rule that specifies how to apply the rule.
.google.cloud.contactcenterinsights.v1.PhraseMatchRuleConfig config = 3;
| Returns | |
|---|---|
| Type | Description |
PhraseMatchRuleConfigOrBuilder |
|
getDefaultInstanceForType()
public PhraseMatchRule getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
PhraseMatchRule |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getNegated()
public boolean getNegated()Specifies whether the phrase must be missing from the transcript segment or present in the transcript segment.
bool negated = 2;
| Returns | |
|---|---|
| Type | Description |
boolean |
The negated. |
getQuery()
public String getQuery()Required. The phrase to be matched.
string query = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The query. |
getQueryBytes()
public ByteString getQueryBytes()Required. The phrase to be matched.
string query = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for query. |
hasConfig()
public boolean hasConfig()Provides additional information about the rule that specifies how to apply the rule.
.google.cloud.contactcenterinsights.v1.PhraseMatchRuleConfig config = 3;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the config field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeConfig(PhraseMatchRuleConfig value)
public PhraseMatchRule.Builder mergeConfig(PhraseMatchRuleConfig value)Provides additional information about the rule that specifies how to apply the rule.
.google.cloud.contactcenterinsights.v1.PhraseMatchRuleConfig config = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
PhraseMatchRuleConfig |
| Returns | |
|---|---|
| Type | Description |
PhraseMatchRule.Builder |
|
mergeFrom(PhraseMatchRule other)
public PhraseMatchRule.Builder mergeFrom(PhraseMatchRule other)| Parameter | |
|---|---|
| Name | Description |
other |
PhraseMatchRule |
| Returns | |
|---|---|
| Type | Description |
PhraseMatchRule.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public PhraseMatchRule.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
PhraseMatchRule.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public PhraseMatchRule.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
PhraseMatchRule.Builder |
|
setConfig(PhraseMatchRuleConfig value)
public PhraseMatchRule.Builder setConfig(PhraseMatchRuleConfig value)Provides additional information about the rule that specifies how to apply the rule.
.google.cloud.contactcenterinsights.v1.PhraseMatchRuleConfig config = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
PhraseMatchRuleConfig |
| Returns | |
|---|---|
| Type | Description |
PhraseMatchRule.Builder |
|
setConfig(PhraseMatchRuleConfig.Builder builderForValue)
public PhraseMatchRule.Builder setConfig(PhraseMatchRuleConfig.Builder builderForValue)Provides additional information about the rule that specifies how to apply the rule.
.google.cloud.contactcenterinsights.v1.PhraseMatchRuleConfig config = 3;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
PhraseMatchRuleConfig.Builder |
| Returns | |
|---|---|
| Type | Description |
PhraseMatchRule.Builder |
|
setNegated(boolean value)
public PhraseMatchRule.Builder setNegated(boolean value)Specifies whether the phrase must be missing from the transcript segment or present in the transcript segment.
bool negated = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe negated to set. |
| Returns | |
|---|---|
| Type | Description |
PhraseMatchRule.Builder |
This builder for chaining. |
setQuery(String value)
public PhraseMatchRule.Builder setQuery(String value)Required. The phrase to be matched.
string query = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe query to set. |
| Returns | |
|---|---|
| Type | Description |
PhraseMatchRule.Builder |
This builder for chaining. |
setQueryBytes(ByteString value)
public PhraseMatchRule.Builder setQueryBytes(ByteString value)Required. The phrase to be matched.
string query = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for query to set. |
| Returns | |
|---|---|
| Type | Description |
PhraseMatchRule.Builder |
This builder for chaining. |