Class PhraseMatchRule.Builder (2.52.0)

public static final class PhraseMatchRule.Builder extends GeneratedMessageV3.Builder<PhraseMatchRule.Builder> implements PhraseMatchRuleOrBuilder

The data for a phrase match rule.

Protobuf type google.cloud.contactcenterinsights.v1.PhraseMatchRule

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PhraseMatchRule.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PhraseMatchRule.Builder
Overrides

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
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public PhraseMatchRule.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
PhraseMatchRule.Builder
Overrides

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.

clearOneof(Descriptors.OneofDescriptor oneof)

public PhraseMatchRule.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
PhraseMatchRule.Builder
Overrides

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.

clone()

public PhraseMatchRule.Builder clone()
Returns
Type Description
PhraseMatchRule.Builder
Overrides

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
Overrides

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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public PhraseMatchRule.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
PhraseMatchRule.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PhraseMatchRule.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PhraseMatchRule.Builder
Overrides

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

setField(Descriptors.FieldDescriptor field, Object value)

public PhraseMatchRule.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PhraseMatchRule.Builder
Overrides

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 boolean

The 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 String

The 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 ByteString

The bytes for query to set.

Returns
Type Description
PhraseMatchRule.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public PhraseMatchRule.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
PhraseMatchRule.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final PhraseMatchRule.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PhraseMatchRule.Builder
Overrides