Class PhraseMatchRuleGroup.Builder

    • Method Detail

      • getDescriptor

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

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

        public 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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public PhraseMatchRuleGroup.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<PhraseMatchRuleGroup.Builder>
      • setField

        public PhraseMatchRuleGroup.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                     Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<PhraseMatchRuleGroup.Builder>
      • clearField

        public PhraseMatchRuleGroup.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<PhraseMatchRuleGroup.Builder>
      • clearOneof

        public PhraseMatchRuleGroup.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<PhraseMatchRuleGroup.Builder>
      • setRepeatedField

        public PhraseMatchRuleGroup.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                             int index,
                                                             Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<PhraseMatchRuleGroup.Builder>
      • addRepeatedField

        public PhraseMatchRuleGroup.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                             Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<PhraseMatchRuleGroup.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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.
      • setType

        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];
        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.
      • 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
      • 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;
      • 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;
      • setUnknownFields

        public final PhraseMatchRuleGroup.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<PhraseMatchRuleGroup.Builder>
      • mergeUnknownFields

        public final PhraseMatchRuleGroup.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<PhraseMatchRuleGroup.Builder>