Class PhraseMatchRuleGroup.Builder (2.2.7)

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
TypeDescription
Descriptor

Methods

addAllPhraseMatchRules(Iterable<? extends PhraseMatchRule> values)

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

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

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

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.contactcenterinsights.v1.PhraseMatchRule>
Returns
TypeDescription
PhraseMatchRuleGroup.Builder

addPhraseMatchRules(PhraseMatchRule value)

public PhraseMatchRuleGroup.Builder addPhraseMatchRules(PhraseMatchRule value)

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

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

Parameter
NameDescription
valuePhraseMatchRule
Returns
TypeDescription
PhraseMatchRuleGroup.Builder

addPhraseMatchRules(PhraseMatchRule.Builder builderForValue)

public PhraseMatchRuleGroup.Builder addPhraseMatchRules(PhraseMatchRule.Builder builderForValue)

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

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

Parameter
NameDescription
builderForValuePhraseMatchRule.Builder
Returns
TypeDescription
PhraseMatchRuleGroup.Builder

addPhraseMatchRules(int index, PhraseMatchRule value)

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

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

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

Parameters
NameDescription
indexint
valuePhraseMatchRule
Returns
TypeDescription
PhraseMatchRuleGroup.Builder

addPhraseMatchRules(int index, PhraseMatchRule.Builder builderForValue)

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

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

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

Parameters
NameDescription
indexint
builderForValuePhraseMatchRule.Builder
Returns
TypeDescription
PhraseMatchRuleGroup.Builder

addPhraseMatchRulesBuilder()

public PhraseMatchRule.Builder addPhraseMatchRulesBuilder()

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

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

Returns
TypeDescription
PhraseMatchRule.Builder

addPhraseMatchRulesBuilder(int index)

public PhraseMatchRule.Builder addPhraseMatchRulesBuilder(int index)

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

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

Parameter
NameDescription
indexint
Returns
TypeDescription
PhraseMatchRule.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PhraseMatchRuleGroup build()
Returns
TypeDescription
PhraseMatchRuleGroup

buildPartial()

public PhraseMatchRuleGroup buildPartial()
Returns
TypeDescription
PhraseMatchRuleGroup

clear()

public PhraseMatchRuleGroup.Builder clear()
Returns
TypeDescription
PhraseMatchRuleGroup.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public PhraseMatchRuleGroup.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
PhraseMatchRuleGroup.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPhraseMatchRules()

public PhraseMatchRuleGroup.Builder clearPhraseMatchRules()

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

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

Returns
TypeDescription
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
TypeDescription
PhraseMatchRuleGroup.Builder

This builder for chaining.

clone()

public PhraseMatchRuleGroup.Builder clone()
Returns
TypeDescription
PhraseMatchRuleGroup.Builder
Overrides

getDefaultInstanceForType()

public PhraseMatchRuleGroup getDefaultInstanceForType()
Returns
TypeDescription
PhraseMatchRuleGroup

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getPhraseMatchRules(int index)

public PhraseMatchRule getPhraseMatchRules(int index)

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

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

Parameter
NameDescription
indexint
Returns
TypeDescription
PhraseMatchRule

getPhraseMatchRulesBuilder(int index)

public PhraseMatchRule.Builder getPhraseMatchRulesBuilder(int index)

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

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

Parameter
NameDescription
indexint
Returns
TypeDescription
PhraseMatchRule.Builder

getPhraseMatchRulesBuilderList()

public List<PhraseMatchRule.Builder> getPhraseMatchRulesBuilderList()

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

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

Returns
TypeDescription
List<Builder>

getPhraseMatchRulesCount()

public int getPhraseMatchRulesCount()

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

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

Returns
TypeDescription
int

getPhraseMatchRulesList()

public List<PhraseMatchRule> getPhraseMatchRulesList()

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

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

Returns
TypeDescription
List<PhraseMatchRule>

getPhraseMatchRulesOrBuilder(int index)

public PhraseMatchRuleOrBuilder getPhraseMatchRulesOrBuilder(int index)

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

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

Parameter
NameDescription
indexint
Returns
TypeDescription
PhraseMatchRuleOrBuilder

getPhraseMatchRulesOrBuilderList()

public List<? extends PhraseMatchRuleOrBuilder> getPhraseMatchRulesOrBuilderList()

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

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

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

The enum numeric value on the wire for type.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(PhraseMatchRuleGroup other)

public PhraseMatchRuleGroup.Builder mergeFrom(PhraseMatchRuleGroup other)
Parameter
NameDescription
otherPhraseMatchRuleGroup
Returns
TypeDescription
PhraseMatchRuleGroup.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PhraseMatchRuleGroup.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
PhraseMatchRuleGroup.Builder
Overrides

removePhraseMatchRules(int index)

public PhraseMatchRuleGroup.Builder removePhraseMatchRules(int index)

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

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

Parameter
NameDescription
indexint
Returns
TypeDescription
PhraseMatchRuleGroup.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setPhraseMatchRules(int index, PhraseMatchRule value)

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

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

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

Parameters
NameDescription
indexint
valuePhraseMatchRule
Returns
TypeDescription
PhraseMatchRuleGroup.Builder

setPhraseMatchRules(int index, PhraseMatchRule.Builder builderForValue)

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

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

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

Parameters
NameDescription
indexint
builderForValuePhraseMatchRule.Builder
Returns
TypeDescription
PhraseMatchRuleGroup.Builder

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

public PhraseMatchRuleGroup.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valuePhraseMatchRuleGroup.PhraseMatchRuleGroupType

The type to set.

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

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

Returns
TypeDescription
PhraseMatchRuleGroup.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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