Class PhraseMatchRuleGroup.Builder (2.46.0)

public static final class PhraseMatchRuleGroup.Builder extends GeneratedMessageV3.Builder<PhraseMatchRuleGroup.Builder> implements PhraseMatchRuleGroupOrBuilder

A message representing a rule in the phrase matcher.

Protobuf type google.cloud.contactcenterinsights.v1.PhraseMatchRuleGroup

Static Methods

getDescriptor()

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

Methods

addAllPhraseMatchRules(Iterable<? extends PhraseMatchRule> values)

public PhraseMatchRuleGroup.Builder addAllPhraseMatchRules(Iterable<? extends PhraseMatchRule> values)

A list of phrase match rules that are included in this group.

repeated .google.cloud.contactcenterinsights.v1.PhraseMatchRule phrase_match_rules = 2;

Parameter
Name Description
values Iterable<? extends com.google.cloud.contactcenterinsights.v1.PhraseMatchRule>
Returns
Type Description
PhraseMatchRuleGroup.Builder

addPhraseMatchRules(PhraseMatchRule value)

public PhraseMatchRuleGroup.Builder addPhraseMatchRules(PhraseMatchRule value)

A list of phrase match rules that are included in this group.

repeated .google.cloud.contactcenterinsights.v1.PhraseMatchRule phrase_match_rules = 2;

Parameter
Name Description
value PhraseMatchRule
Returns
Type Description
PhraseMatchRuleGroup.Builder

addPhraseMatchRules(PhraseMatchRule.Builder builderForValue)

public PhraseMatchRuleGroup.Builder addPhraseMatchRules(PhraseMatchRule.Builder builderForValue)

A list of phrase match rules that are included in this group.

repeated .google.cloud.contactcenterinsights.v1.PhraseMatchRule phrase_match_rules = 2;

Parameter
Name Description
builderForValue PhraseMatchRule.Builder
Returns
Type Description
PhraseMatchRuleGroup.Builder

addPhraseMatchRules(int index, PhraseMatchRule value)

public PhraseMatchRuleGroup.Builder addPhraseMatchRules(int index, PhraseMatchRule value)

A list of phrase match rules that are included in this group.

repeated .google.cloud.contactcenterinsights.v1.PhraseMatchRule phrase_match_rules = 2;

Parameters
Name Description
index int
value PhraseMatchRule
Returns
Type Description
PhraseMatchRuleGroup.Builder

addPhraseMatchRules(int index, PhraseMatchRule.Builder builderForValue)

public PhraseMatchRuleGroup.Builder addPhraseMatchRules(int index, PhraseMatchRule.Builder builderForValue)

A list of phrase match rules that are included in this group.

repeated .google.cloud.contactcenterinsights.v1.PhraseMatchRule phrase_match_rules = 2;

Parameters
Name Description
index int
builderForValue PhraseMatchRule.Builder
Returns
Type Description
PhraseMatchRuleGroup.Builder

addPhraseMatchRulesBuilder()

public PhraseMatchRule.Builder addPhraseMatchRulesBuilder()

A list of phrase match rules that are included in this group.

repeated .google.cloud.contactcenterinsights.v1.PhraseMatchRule phrase_match_rules = 2;

Returns
Type Description
PhraseMatchRule.Builder

addPhraseMatchRulesBuilder(int index)

public PhraseMatchRule.Builder addPhraseMatchRulesBuilder(int index)

A list of phrase match rules that are included in this group.

repeated .google.cloud.contactcenterinsights.v1.PhraseMatchRule phrase_match_rules = 2;

Parameter
Name Description
index int
Returns
Type Description
PhraseMatchRule.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PhraseMatchRuleGroup build()
Returns
Type Description
PhraseMatchRuleGroup

buildPartial()

public PhraseMatchRuleGroup buildPartial()
Returns
Type Description
PhraseMatchRuleGroup

clear()

public PhraseMatchRuleGroup.Builder clear()
Returns
Type Description
PhraseMatchRuleGroup.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPhraseMatchRules()

public PhraseMatchRuleGroup.Builder clearPhraseMatchRules()

A list of phrase match rules that are included in this group.

repeated .google.cloud.contactcenterinsights.v1.PhraseMatchRule phrase_match_rules = 2;

Returns
Type Description
PhraseMatchRuleGroup.Builder

clearType()

public PhraseMatchRuleGroup.Builder clearType()

Required. The type of this phrase match rule group.

.google.cloud.contactcenterinsights.v1.PhraseMatchRuleGroup.PhraseMatchRuleGroupType type = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
PhraseMatchRuleGroup.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public PhraseMatchRuleGroup getDefaultInstanceForType()
Returns
Type Description
PhraseMatchRuleGroup

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getPhraseMatchRules(int index)

public PhraseMatchRule getPhraseMatchRules(int index)

A list of phrase match rules that are included in this group.

repeated .google.cloud.contactcenterinsights.v1.PhraseMatchRule phrase_match_rules = 2;

Parameter
Name Description
index int
Returns
Type Description
PhraseMatchRule

getPhraseMatchRulesBuilder(int index)

public PhraseMatchRule.Builder getPhraseMatchRulesBuilder(int index)

A list of phrase match rules that are included in this group.

repeated .google.cloud.contactcenterinsights.v1.PhraseMatchRule phrase_match_rules = 2;

Parameter
Name Description
index int
Returns
Type Description
PhraseMatchRule.Builder

getPhraseMatchRulesBuilderList()

public List<PhraseMatchRule.Builder> getPhraseMatchRulesBuilderList()

A list of phrase match rules that are included in this group.

repeated .google.cloud.contactcenterinsights.v1.PhraseMatchRule phrase_match_rules = 2;

Returns
Type Description
List<Builder>

getPhraseMatchRulesCount()

public int getPhraseMatchRulesCount()

A list of phrase match rules that are included in this group.

repeated .google.cloud.contactcenterinsights.v1.PhraseMatchRule phrase_match_rules = 2;

Returns
Type Description
int

getPhraseMatchRulesList()

public List<PhraseMatchRule> getPhraseMatchRulesList()

A list of phrase match rules that are included in this group.

repeated .google.cloud.contactcenterinsights.v1.PhraseMatchRule phrase_match_rules = 2;

Returns
Type Description
List<PhraseMatchRule>

getPhraseMatchRulesOrBuilder(int index)

public PhraseMatchRuleOrBuilder getPhraseMatchRulesOrBuilder(int index)

A list of phrase match rules that are included in this group.

repeated .google.cloud.contactcenterinsights.v1.PhraseMatchRule phrase_match_rules = 2;

Parameter
Name Description
index int
Returns
Type Description
PhraseMatchRuleOrBuilder

getPhraseMatchRulesOrBuilderList()

public List<? extends PhraseMatchRuleOrBuilder> getPhraseMatchRulesOrBuilderList()

A list of phrase match rules that are included in this group.

repeated .google.cloud.contactcenterinsights.v1.PhraseMatchRule phrase_match_rules = 2;

Returns
Type Description
List<? extends com.google.cloud.contactcenterinsights.v1.PhraseMatchRuleOrBuilder>

getType()

public PhraseMatchRuleGroup.PhraseMatchRuleGroupType getType()

Required. The type of this phrase match rule group.

.google.cloud.contactcenterinsights.v1.PhraseMatchRuleGroup.PhraseMatchRuleGroupType type = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
PhraseMatchRuleGroup.PhraseMatchRuleGroupType

The type.

getTypeValue()

public int getTypeValue()

Required. The type of this phrase match rule group.

.google.cloud.contactcenterinsights.v1.PhraseMatchRuleGroup.PhraseMatchRuleGroupType type = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for type.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PhraseMatchRuleGroup other)

public PhraseMatchRuleGroup.Builder mergeFrom(PhraseMatchRuleGroup other)
Parameter
Name Description
other PhraseMatchRuleGroup
Returns
Type Description
PhraseMatchRuleGroup.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PhraseMatchRuleGroup.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PhraseMatchRuleGroup.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removePhraseMatchRules(int index)

public PhraseMatchRuleGroup.Builder removePhraseMatchRules(int index)

A list of phrase match rules that are included in this group.

repeated .google.cloud.contactcenterinsights.v1.PhraseMatchRule phrase_match_rules = 2;

Parameter
Name Description
index int
Returns
Type Description
PhraseMatchRuleGroup.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setPhraseMatchRules(int index, PhraseMatchRule value)

public PhraseMatchRuleGroup.Builder setPhraseMatchRules(int index, PhraseMatchRule value)

A list of phrase match rules that are included in this group.

repeated .google.cloud.contactcenterinsights.v1.PhraseMatchRule phrase_match_rules = 2;

Parameters
Name Description
index int
value PhraseMatchRule
Returns
Type Description
PhraseMatchRuleGroup.Builder

setPhraseMatchRules(int index, PhraseMatchRule.Builder builderForValue)

public PhraseMatchRuleGroup.Builder setPhraseMatchRules(int index, PhraseMatchRule.Builder builderForValue)

A list of phrase match rules that are included in this group.

repeated .google.cloud.contactcenterinsights.v1.PhraseMatchRule phrase_match_rules = 2;

Parameters
Name Description
index int
builderForValue PhraseMatchRule.Builder
Returns
Type Description
PhraseMatchRuleGroup.Builder

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

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

setType(PhraseMatchRuleGroup.PhraseMatchRuleGroupType value)

public PhraseMatchRuleGroup.Builder setType(PhraseMatchRuleGroup.PhraseMatchRuleGroupType value)

Required. The type of this phrase match rule group.

.google.cloud.contactcenterinsights.v1.PhraseMatchRuleGroup.PhraseMatchRuleGroupType type = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value PhraseMatchRuleGroup.PhraseMatchRuleGroupType

The type to set.

Returns
Type Description
PhraseMatchRuleGroup.Builder

This builder for chaining.

setTypeValue(int value)

public PhraseMatchRuleGroup.Builder setTypeValue(int value)

Required. The type of this phrase match rule group.

.google.cloud.contactcenterinsights.v1.PhraseMatchRuleGroup.PhraseMatchRuleGroupType type = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The enum numeric value on the wire for type to set.

Returns
Type Description
PhraseMatchRuleGroup.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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