Class PhraseMatchRuleGroup.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<PhraseMatchRuleGroup.Builder>
com.google.cloud.contactcenterinsights.v1.PhraseMatchRuleGroup.Builder
All Implemented Interfaces:
PhraseMatchRuleGroupOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
PhraseMatchRuleGroup

public static final class PhraseMatchRuleGroup.Builder extends com.google.protobuf.GeneratedMessage.Builder<PhraseMatchRuleGroup.Builder> implements PhraseMatchRuleGroupOrBuilder
 A message representing a rule in the phrase matcher.
 
Protobuf type google.cloud.contactcenterinsights.v1.PhraseMatchRuleGroup
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<PhraseMatchRuleGroup.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<PhraseMatchRuleGroup.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<PhraseMatchRuleGroup.Builder>
    • getDefaultInstanceForType

      public PhraseMatchRuleGroup getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public PhraseMatchRuleGroup build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public PhraseMatchRuleGroup buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public PhraseMatchRuleGroup.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<PhraseMatchRuleGroup.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<PhraseMatchRuleGroup.Builder>
    • mergeFrom

      public PhraseMatchRuleGroup.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<PhraseMatchRuleGroup.Builder>
      Throws:
      IOException
    • 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];
      Specified by:
      getTypeValue in interface PhraseMatchRuleGroupOrBuilder
      Returns:
      The enum numeric value on the wire for type.
    • setTypeValue

      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];
      Parameters:
      value - The enum numeric value on the wire for type to set.
      Returns:
      This builder for chaining.
    • getType

       Required. The type of this phrase match rule group.
       
      .google.cloud.contactcenterinsights.v1.PhraseMatchRuleGroup.PhraseMatchRuleGroupType type = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getType in interface PhraseMatchRuleGroupOrBuilder
      Returns:
      The type.
    • setType

       Required. The type of this phrase match rule group.
       
      .google.cloud.contactcenterinsights.v1.PhraseMatchRuleGroup.PhraseMatchRuleGroupType type = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • 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;
      Specified by:
      getPhraseMatchRulesList in interface PhraseMatchRuleGroupOrBuilder
    • 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;
      Specified by:
      getPhraseMatchRulesCount in interface PhraseMatchRuleGroupOrBuilder
    • getPhraseMatchRules

      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;
      Specified by:
      getPhraseMatchRules in interface PhraseMatchRuleGroupOrBuilder
    • setPhraseMatchRules

      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;
    • setPhraseMatchRules

      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;
    • addPhraseMatchRules

      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;
    • addPhraseMatchRules

      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;
    • addPhraseMatchRules

      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;
    • addPhraseMatchRules

      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;
    • addAllPhraseMatchRules

      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;
    • 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;
    • removePhraseMatchRules

      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;
    • getPhraseMatchRulesBuilder

      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;
    • getPhraseMatchRulesOrBuilder

      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;
      Specified by:
      getPhraseMatchRulesOrBuilder in interface PhraseMatchRuleGroupOrBuilder
    • 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;
      Specified by:
      getPhraseMatchRulesOrBuilderList in interface PhraseMatchRuleGroupOrBuilder
    • 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;
    • addPhraseMatchRulesBuilder

      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;
    • 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;