Class CallAnnotation.Builder

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

    public static final class CallAnnotation.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<CallAnnotation.Builder>
    implements CallAnnotationOrBuilder
     A piece of metadata that applies to a window of a call.
     
    Protobuf type google.cloud.contactcenterinsights.v1.CallAnnotation
    • 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<CallAnnotation.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

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

        public CallAnnotation.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<CallAnnotation.Builder>
        Throws:
        IOException
      • hasInterruptionData

        public boolean hasInterruptionData()
         Data specifying an interruption.
         
        .google.cloud.contactcenterinsights.v1.InterruptionData interruption_data = 10;
        Specified by:
        hasInterruptionData in interface CallAnnotationOrBuilder
        Returns:
        Whether the interruptionData field is set.
      • setInterruptionData

        public CallAnnotation.Builder setInterruptionData​(InterruptionData value)
         Data specifying an interruption.
         
        .google.cloud.contactcenterinsights.v1.InterruptionData interruption_data = 10;
      • setInterruptionData

        public CallAnnotation.Builder setInterruptionData​(InterruptionData.Builder builderForValue)
         Data specifying an interruption.
         
        .google.cloud.contactcenterinsights.v1.InterruptionData interruption_data = 10;
      • mergeInterruptionData

        public CallAnnotation.Builder mergeInterruptionData​(InterruptionData value)
         Data specifying an interruption.
         
        .google.cloud.contactcenterinsights.v1.InterruptionData interruption_data = 10;
      • clearInterruptionData

        public CallAnnotation.Builder clearInterruptionData()
         Data specifying an interruption.
         
        .google.cloud.contactcenterinsights.v1.InterruptionData interruption_data = 10;
      • getInterruptionDataBuilder

        public InterruptionData.Builder getInterruptionDataBuilder()
         Data specifying an interruption.
         
        .google.cloud.contactcenterinsights.v1.InterruptionData interruption_data = 10;
      • hasSentimentData

        public boolean hasSentimentData()
         Data specifying sentiment.
         
        .google.cloud.contactcenterinsights.v1.SentimentData sentiment_data = 11;
        Specified by:
        hasSentimentData in interface CallAnnotationOrBuilder
        Returns:
        Whether the sentimentData field is set.
      • setSentimentData

        public CallAnnotation.Builder setSentimentData​(SentimentData value)
         Data specifying sentiment.
         
        .google.cloud.contactcenterinsights.v1.SentimentData sentiment_data = 11;
      • mergeSentimentData

        public CallAnnotation.Builder mergeSentimentData​(SentimentData value)
         Data specifying sentiment.
         
        .google.cloud.contactcenterinsights.v1.SentimentData sentiment_data = 11;
      • clearSentimentData

        public CallAnnotation.Builder clearSentimentData()
         Data specifying sentiment.
         
        .google.cloud.contactcenterinsights.v1.SentimentData sentiment_data = 11;
      • getSentimentDataBuilder

        public SentimentData.Builder getSentimentDataBuilder()
         Data specifying sentiment.
         
        .google.cloud.contactcenterinsights.v1.SentimentData sentiment_data = 11;
      • hasSilenceData

        public boolean hasSilenceData()
         Data specifying silence.
         
        .google.cloud.contactcenterinsights.v1.SilenceData silence_data = 12;
        Specified by:
        hasSilenceData in interface CallAnnotationOrBuilder
        Returns:
        Whether the silenceData field is set.
      • getSilenceData

        public SilenceData getSilenceData()
         Data specifying silence.
         
        .google.cloud.contactcenterinsights.v1.SilenceData silence_data = 12;
        Specified by:
        getSilenceData in interface CallAnnotationOrBuilder
        Returns:
        The silenceData.
      • setSilenceData

        public CallAnnotation.Builder setSilenceData​(SilenceData value)
         Data specifying silence.
         
        .google.cloud.contactcenterinsights.v1.SilenceData silence_data = 12;
      • mergeSilenceData

        public CallAnnotation.Builder mergeSilenceData​(SilenceData value)
         Data specifying silence.
         
        .google.cloud.contactcenterinsights.v1.SilenceData silence_data = 12;
      • clearSilenceData

        public CallAnnotation.Builder clearSilenceData()
         Data specifying silence.
         
        .google.cloud.contactcenterinsights.v1.SilenceData silence_data = 12;
      • getSilenceDataBuilder

        public SilenceData.Builder getSilenceDataBuilder()
         Data specifying silence.
         
        .google.cloud.contactcenterinsights.v1.SilenceData silence_data = 12;
      • hasHoldData

        public boolean hasHoldData()
         Data specifying a hold.
         
        .google.cloud.contactcenterinsights.v1.HoldData hold_data = 13;
        Specified by:
        hasHoldData in interface CallAnnotationOrBuilder
        Returns:
        Whether the holdData field is set.
      • getHoldData

        public HoldData getHoldData()
         Data specifying a hold.
         
        .google.cloud.contactcenterinsights.v1.HoldData hold_data = 13;
        Specified by:
        getHoldData in interface CallAnnotationOrBuilder
        Returns:
        The holdData.
      • setHoldData

        public CallAnnotation.Builder setHoldData​(HoldData value)
         Data specifying a hold.
         
        .google.cloud.contactcenterinsights.v1.HoldData hold_data = 13;
      • mergeHoldData

        public CallAnnotation.Builder mergeHoldData​(HoldData value)
         Data specifying a hold.
         
        .google.cloud.contactcenterinsights.v1.HoldData hold_data = 13;
      • clearHoldData

        public CallAnnotation.Builder clearHoldData()
         Data specifying a hold.
         
        .google.cloud.contactcenterinsights.v1.HoldData hold_data = 13;
      • getHoldDataBuilder

        public HoldData.Builder getHoldDataBuilder()
         Data specifying a hold.
         
        .google.cloud.contactcenterinsights.v1.HoldData hold_data = 13;
      • hasEntityMentionData

        public boolean hasEntityMentionData()
         Data specifying an entity mention.
         
        .google.cloud.contactcenterinsights.v1.EntityMentionData entity_mention_data = 15;
        Specified by:
        hasEntityMentionData in interface CallAnnotationOrBuilder
        Returns:
        Whether the entityMentionData field is set.
      • setEntityMentionData

        public CallAnnotation.Builder setEntityMentionData​(EntityMentionData value)
         Data specifying an entity mention.
         
        .google.cloud.contactcenterinsights.v1.EntityMentionData entity_mention_data = 15;
      • setEntityMentionData

        public CallAnnotation.Builder setEntityMentionData​(EntityMentionData.Builder builderForValue)
         Data specifying an entity mention.
         
        .google.cloud.contactcenterinsights.v1.EntityMentionData entity_mention_data = 15;
      • mergeEntityMentionData

        public CallAnnotation.Builder mergeEntityMentionData​(EntityMentionData value)
         Data specifying an entity mention.
         
        .google.cloud.contactcenterinsights.v1.EntityMentionData entity_mention_data = 15;
      • clearEntityMentionData

        public CallAnnotation.Builder clearEntityMentionData()
         Data specifying an entity mention.
         
        .google.cloud.contactcenterinsights.v1.EntityMentionData entity_mention_data = 15;
      • getEntityMentionDataBuilder

        public EntityMentionData.Builder getEntityMentionDataBuilder()
         Data specifying an entity mention.
         
        .google.cloud.contactcenterinsights.v1.EntityMentionData entity_mention_data = 15;
      • hasIntentMatchData

        public boolean hasIntentMatchData()
         Data specifying an intent match.
         
        .google.cloud.contactcenterinsights.v1.IntentMatchData intent_match_data = 16;
        Specified by:
        hasIntentMatchData in interface CallAnnotationOrBuilder
        Returns:
        Whether the intentMatchData field is set.
      • getIntentMatchData

        public IntentMatchData getIntentMatchData()
         Data specifying an intent match.
         
        .google.cloud.contactcenterinsights.v1.IntentMatchData intent_match_data = 16;
        Specified by:
        getIntentMatchData in interface CallAnnotationOrBuilder
        Returns:
        The intentMatchData.
      • setIntentMatchData

        public CallAnnotation.Builder setIntentMatchData​(IntentMatchData value)
         Data specifying an intent match.
         
        .google.cloud.contactcenterinsights.v1.IntentMatchData intent_match_data = 16;
      • setIntentMatchData

        public CallAnnotation.Builder setIntentMatchData​(IntentMatchData.Builder builderForValue)
         Data specifying an intent match.
         
        .google.cloud.contactcenterinsights.v1.IntentMatchData intent_match_data = 16;
      • mergeIntentMatchData

        public CallAnnotation.Builder mergeIntentMatchData​(IntentMatchData value)
         Data specifying an intent match.
         
        .google.cloud.contactcenterinsights.v1.IntentMatchData intent_match_data = 16;
      • clearIntentMatchData

        public CallAnnotation.Builder clearIntentMatchData()
         Data specifying an intent match.
         
        .google.cloud.contactcenterinsights.v1.IntentMatchData intent_match_data = 16;
      • getIntentMatchDataBuilder

        public IntentMatchData.Builder getIntentMatchDataBuilder()
         Data specifying an intent match.
         
        .google.cloud.contactcenterinsights.v1.IntentMatchData intent_match_data = 16;
      • hasPhraseMatchData

        public boolean hasPhraseMatchData()
         Data specifying a phrase match.
         
        .google.cloud.contactcenterinsights.v1.PhraseMatchData phrase_match_data = 17;
        Specified by:
        hasPhraseMatchData in interface CallAnnotationOrBuilder
        Returns:
        Whether the phraseMatchData field is set.
      • setPhraseMatchData

        public CallAnnotation.Builder setPhraseMatchData​(PhraseMatchData value)
         Data specifying a phrase match.
         
        .google.cloud.contactcenterinsights.v1.PhraseMatchData phrase_match_data = 17;
      • setPhraseMatchData

        public CallAnnotation.Builder setPhraseMatchData​(PhraseMatchData.Builder builderForValue)
         Data specifying a phrase match.
         
        .google.cloud.contactcenterinsights.v1.PhraseMatchData phrase_match_data = 17;
      • mergePhraseMatchData

        public CallAnnotation.Builder mergePhraseMatchData​(PhraseMatchData value)
         Data specifying a phrase match.
         
        .google.cloud.contactcenterinsights.v1.PhraseMatchData phrase_match_data = 17;
      • clearPhraseMatchData

        public CallAnnotation.Builder clearPhraseMatchData()
         Data specifying a phrase match.
         
        .google.cloud.contactcenterinsights.v1.PhraseMatchData phrase_match_data = 17;
      • getPhraseMatchDataBuilder

        public PhraseMatchData.Builder getPhraseMatchDataBuilder()
         Data specifying a phrase match.
         
        .google.cloud.contactcenterinsights.v1.PhraseMatchData phrase_match_data = 17;
      • hasIssueMatchData

        public boolean hasIssueMatchData()
         Data specifying an issue match.
         
        .google.cloud.contactcenterinsights.v1.IssueMatchData issue_match_data = 18;
        Specified by:
        hasIssueMatchData in interface CallAnnotationOrBuilder
        Returns:
        Whether the issueMatchData field is set.
      • getIssueMatchData

        public IssueMatchData getIssueMatchData()
         Data specifying an issue match.
         
        .google.cloud.contactcenterinsights.v1.IssueMatchData issue_match_data = 18;
        Specified by:
        getIssueMatchData in interface CallAnnotationOrBuilder
        Returns:
        The issueMatchData.
      • setIssueMatchData

        public CallAnnotation.Builder setIssueMatchData​(IssueMatchData value)
         Data specifying an issue match.
         
        .google.cloud.contactcenterinsights.v1.IssueMatchData issue_match_data = 18;
      • setIssueMatchData

        public CallAnnotation.Builder setIssueMatchData​(IssueMatchData.Builder builderForValue)
         Data specifying an issue match.
         
        .google.cloud.contactcenterinsights.v1.IssueMatchData issue_match_data = 18;
      • mergeIssueMatchData

        public CallAnnotation.Builder mergeIssueMatchData​(IssueMatchData value)
         Data specifying an issue match.
         
        .google.cloud.contactcenterinsights.v1.IssueMatchData issue_match_data = 18;
      • clearIssueMatchData

        public CallAnnotation.Builder clearIssueMatchData()
         Data specifying an issue match.
         
        .google.cloud.contactcenterinsights.v1.IssueMatchData issue_match_data = 18;
      • getIssueMatchDataBuilder

        public IssueMatchData.Builder getIssueMatchDataBuilder()
         Data specifying an issue match.
         
        .google.cloud.contactcenterinsights.v1.IssueMatchData issue_match_data = 18;
      • getChannelTag

        public int getChannelTag()
         The channel of the audio where the annotation occurs. For single-channel
         audio, this field is not populated.
         
        int32 channel_tag = 1;
        Specified by:
        getChannelTag in interface CallAnnotationOrBuilder
        Returns:
        The channelTag.
      • setChannelTag

        public CallAnnotation.Builder setChannelTag​(int value)
         The channel of the audio where the annotation occurs. For single-channel
         audio, this field is not populated.
         
        int32 channel_tag = 1;
        Parameters:
        value - The channelTag to set.
        Returns:
        This builder for chaining.
      • clearChannelTag

        public CallAnnotation.Builder clearChannelTag()
         The channel of the audio where the annotation occurs. For single-channel
         audio, this field is not populated.
         
        int32 channel_tag = 1;
        Returns:
        This builder for chaining.
      • hasAnnotationStartBoundary

        public boolean hasAnnotationStartBoundary()
         The boundary in the conversation where the annotation starts, inclusive.
         
        .google.cloud.contactcenterinsights.v1.AnnotationBoundary annotation_start_boundary = 4;
        Specified by:
        hasAnnotationStartBoundary in interface CallAnnotationOrBuilder
        Returns:
        Whether the annotationStartBoundary field is set.
      • getAnnotationStartBoundary

        public AnnotationBoundary getAnnotationStartBoundary()
         The boundary in the conversation where the annotation starts, inclusive.
         
        .google.cloud.contactcenterinsights.v1.AnnotationBoundary annotation_start_boundary = 4;
        Specified by:
        getAnnotationStartBoundary in interface CallAnnotationOrBuilder
        Returns:
        The annotationStartBoundary.
      • setAnnotationStartBoundary

        public CallAnnotation.Builder setAnnotationStartBoundary​(AnnotationBoundary value)
         The boundary in the conversation where the annotation starts, inclusive.
         
        .google.cloud.contactcenterinsights.v1.AnnotationBoundary annotation_start_boundary = 4;
      • setAnnotationStartBoundary

        public CallAnnotation.Builder setAnnotationStartBoundary​(AnnotationBoundary.Builder builderForValue)
         The boundary in the conversation where the annotation starts, inclusive.
         
        .google.cloud.contactcenterinsights.v1.AnnotationBoundary annotation_start_boundary = 4;
      • mergeAnnotationStartBoundary

        public CallAnnotation.Builder mergeAnnotationStartBoundary​(AnnotationBoundary value)
         The boundary in the conversation where the annotation starts, inclusive.
         
        .google.cloud.contactcenterinsights.v1.AnnotationBoundary annotation_start_boundary = 4;
      • clearAnnotationStartBoundary

        public CallAnnotation.Builder clearAnnotationStartBoundary()
         The boundary in the conversation where the annotation starts, inclusive.
         
        .google.cloud.contactcenterinsights.v1.AnnotationBoundary annotation_start_boundary = 4;
      • getAnnotationStartBoundaryBuilder

        public AnnotationBoundary.Builder getAnnotationStartBoundaryBuilder()
         The boundary in the conversation where the annotation starts, inclusive.
         
        .google.cloud.contactcenterinsights.v1.AnnotationBoundary annotation_start_boundary = 4;
      • hasAnnotationEndBoundary

        public boolean hasAnnotationEndBoundary()
         The boundary in the conversation where the annotation ends, inclusive.
         
        .google.cloud.contactcenterinsights.v1.AnnotationBoundary annotation_end_boundary = 5;
        Specified by:
        hasAnnotationEndBoundary in interface CallAnnotationOrBuilder
        Returns:
        Whether the annotationEndBoundary field is set.
      • getAnnotationEndBoundary

        public AnnotationBoundary getAnnotationEndBoundary()
         The boundary in the conversation where the annotation ends, inclusive.
         
        .google.cloud.contactcenterinsights.v1.AnnotationBoundary annotation_end_boundary = 5;
        Specified by:
        getAnnotationEndBoundary in interface CallAnnotationOrBuilder
        Returns:
        The annotationEndBoundary.
      • setAnnotationEndBoundary

        public CallAnnotation.Builder setAnnotationEndBoundary​(AnnotationBoundary value)
         The boundary in the conversation where the annotation ends, inclusive.
         
        .google.cloud.contactcenterinsights.v1.AnnotationBoundary annotation_end_boundary = 5;
      • setAnnotationEndBoundary

        public CallAnnotation.Builder setAnnotationEndBoundary​(AnnotationBoundary.Builder builderForValue)
         The boundary in the conversation where the annotation ends, inclusive.
         
        .google.cloud.contactcenterinsights.v1.AnnotationBoundary annotation_end_boundary = 5;
      • mergeAnnotationEndBoundary

        public CallAnnotation.Builder mergeAnnotationEndBoundary​(AnnotationBoundary value)
         The boundary in the conversation where the annotation ends, inclusive.
         
        .google.cloud.contactcenterinsights.v1.AnnotationBoundary annotation_end_boundary = 5;
      • clearAnnotationEndBoundary

        public CallAnnotation.Builder clearAnnotationEndBoundary()
         The boundary in the conversation where the annotation ends, inclusive.
         
        .google.cloud.contactcenterinsights.v1.AnnotationBoundary annotation_end_boundary = 5;
      • getAnnotationEndBoundaryBuilder

        public AnnotationBoundary.Builder getAnnotationEndBoundaryBuilder()
         The boundary in the conversation where the annotation ends, inclusive.
         
        .google.cloud.contactcenterinsights.v1.AnnotationBoundary annotation_end_boundary = 5;
      • setUnknownFields

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

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