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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
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
Name | Description |
values | Iterable<? extends com.google.cloud.contactcenterinsights.v1.PhraseMatchRule>
|
Returns
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
Returns
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
Returns
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
Returns
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
Returns
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
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
Returns
public PhraseMatchRuleGroup.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public PhraseMatchRuleGroup build()
Returns
public PhraseMatchRuleGroup buildPartial()
Returns
public PhraseMatchRuleGroup.Builder clear()
Returns
Overrides
public PhraseMatchRuleGroup.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
public PhraseMatchRuleGroup.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
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
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
public PhraseMatchRuleGroup.Builder clone()
Returns
Overrides
public PhraseMatchRuleGroup getDefaultInstanceForType()
Returns
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
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
Returns
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
Returns
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
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
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
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
Returns
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
Type | Description |
List<? extends com.google.cloud.contactcenterinsights.v1.PhraseMatchRuleOrBuilder> | |
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
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.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public PhraseMatchRuleGroup.Builder mergeFrom(PhraseMatchRuleGroup other)
Parameter
Returns
public PhraseMatchRuleGroup.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public PhraseMatchRuleGroup.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
public final PhraseMatchRuleGroup.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
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
Returns
public PhraseMatchRuleGroup.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
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
Returns
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
Returns
public PhraseMatchRuleGroup.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
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
Returns
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
public final PhraseMatchRuleGroup.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides