Class PhraseMatchData.Builder

  • All Implemented Interfaces:
    PhraseMatchDataOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    PhraseMatchData

    public static final class PhraseMatchData.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<PhraseMatchData.Builder>
    implements PhraseMatchDataOrBuilder
     The data for a matched phrase matcher.
     Represents information identifying a phrase matcher for a given match.
     
    Protobuf type google.cloud.contactcenterinsights.v1.PhraseMatchData
    • 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<PhraseMatchData.Builder>
      • clear

        public PhraseMatchData.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<PhraseMatchData.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<PhraseMatchData.Builder>
      • getDefaultInstanceForType

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

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

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

        public PhraseMatchData.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<PhraseMatchData.Builder>
      • setField

        public PhraseMatchData.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<PhraseMatchData.Builder>
      • clearField

        public PhraseMatchData.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<PhraseMatchData.Builder>
      • clearOneof

        public PhraseMatchData.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<PhraseMatchData.Builder>
      • setRepeatedField

        public PhraseMatchData.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<PhraseMatchData.Builder>
      • addRepeatedField

        public PhraseMatchData.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<PhraseMatchData.Builder>
      • mergeFrom

        public PhraseMatchData.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<PhraseMatchData.Builder>
      • isInitialized

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

        public PhraseMatchData.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<PhraseMatchData.Builder>
        Throws:
        IOException
      • getPhraseMatcher

        public String getPhraseMatcher()
         The unique identifier (the resource name) of the phrase matcher.
         
        string phrase_matcher = 1;
        Specified by:
        getPhraseMatcher in interface PhraseMatchDataOrBuilder
        Returns:
        The phraseMatcher.
      • getPhraseMatcherBytes

        public com.google.protobuf.ByteString getPhraseMatcherBytes()
         The unique identifier (the resource name) of the phrase matcher.
         
        string phrase_matcher = 1;
        Specified by:
        getPhraseMatcherBytes in interface PhraseMatchDataOrBuilder
        Returns:
        The bytes for phraseMatcher.
      • setPhraseMatcher

        public PhraseMatchData.Builder setPhraseMatcher​(String value)
         The unique identifier (the resource name) of the phrase matcher.
         
        string phrase_matcher = 1;
        Parameters:
        value - The phraseMatcher to set.
        Returns:
        This builder for chaining.
      • clearPhraseMatcher

        public PhraseMatchData.Builder clearPhraseMatcher()
         The unique identifier (the resource name) of the phrase matcher.
         
        string phrase_matcher = 1;
        Returns:
        This builder for chaining.
      • setPhraseMatcherBytes

        public PhraseMatchData.Builder setPhraseMatcherBytes​(com.google.protobuf.ByteString value)
         The unique identifier (the resource name) of the phrase matcher.
         
        string phrase_matcher = 1;
        Parameters:
        value - The bytes for phraseMatcher to set.
        Returns:
        This builder for chaining.
      • getDisplayNameBytes

        public com.google.protobuf.ByteString getDisplayNameBytes()
         The human-readable name of the phrase matcher.
         
        string display_name = 2;
        Specified by:
        getDisplayNameBytes in interface PhraseMatchDataOrBuilder
        Returns:
        The bytes for displayName.
      • setDisplayName

        public PhraseMatchData.Builder setDisplayName​(String value)
         The human-readable name of the phrase matcher.
         
        string display_name = 2;
        Parameters:
        value - The displayName to set.
        Returns:
        This builder for chaining.
      • clearDisplayName

        public PhraseMatchData.Builder clearDisplayName()
         The human-readable name of the phrase matcher.
         
        string display_name = 2;
        Returns:
        This builder for chaining.
      • setDisplayNameBytes

        public PhraseMatchData.Builder setDisplayNameBytes​(com.google.protobuf.ByteString value)
         The human-readable name of the phrase matcher.
         
        string display_name = 2;
        Parameters:
        value - The bytes for displayName to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final PhraseMatchData.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<PhraseMatchData.Builder>
      • mergeUnknownFields

        public final PhraseMatchData.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<PhraseMatchData.Builder>