Class PhraseMatchRule.Builder (2.19.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PhraseMatchRule.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
PhraseMatchRule.Builder
Overrides

build()

public PhraseMatchRule build()
Returns
TypeDescription
PhraseMatchRule

buildPartial()

public PhraseMatchRule buildPartial()
Returns
TypeDescription
PhraseMatchRule

clear()

public PhraseMatchRule.Builder clear()
Returns
TypeDescription
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
TypeDescription
PhraseMatchRule.Builder

clearField(Descriptors.FieldDescriptor field)

public PhraseMatchRule.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
PhraseMatchRule.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public PhraseMatchRule.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
PhraseMatchRule.Builder
Overrides

clearQuery()

public PhraseMatchRule.Builder clearQuery()

Required. The phrase to be matched.

string query = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
PhraseMatchRule.Builder

This builder for chaining.

clone()

public PhraseMatchRule.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
PhraseMatchRuleConfigOrBuilder

getDefaultInstanceForType()

public PhraseMatchRule getDefaultInstanceForType()
Returns
TypeDescription
PhraseMatchRule

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
boolean

The negated.

getQuery()

public String getQuery()

Required. The phrase to be matched.

string query = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The query.

getQueryBytes()

public ByteString getQueryBytes()

Required. The phrase to be matched.

string query = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
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
TypeDescription
boolean

Whether the config field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valuePhraseMatchRuleConfig
Returns
TypeDescription
PhraseMatchRule.Builder

mergeFrom(PhraseMatchRule other)

public PhraseMatchRule.Builder mergeFrom(PhraseMatchRule other)
Parameter
NameDescription
otherPhraseMatchRule
Returns
TypeDescription
PhraseMatchRule.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PhraseMatchRule.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PhraseMatchRule.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public PhraseMatchRule.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
PhraseMatchRule.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PhraseMatchRule.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valuePhraseMatchRuleConfig
Returns
TypeDescription
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
NameDescription
builderForValuePhraseMatchRuleConfig.Builder
Returns
TypeDescription
PhraseMatchRule.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public PhraseMatchRule.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueboolean

The negated to set.

Returns
TypeDescription
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
NameDescription
valueString

The query to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for query to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
PhraseMatchRule.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final PhraseMatchRule.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
PhraseMatchRule.Builder
Overrides