Class CalculateStatsResponse.Builder

    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<CalculateStatsResponse.Builder>
      • internalGetMutableMapField

        protected com.google.protobuf.MapField internalGetMutableMapField​(int number)
        Overrides:
        internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<CalculateStatsResponse.Builder>
      • internalGetFieldAccessorTable

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

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

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

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

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

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

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

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

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

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

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

        public CalculateStatsResponse.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<CalculateStatsResponse.Builder>
        Throws:
        IOException
      • hasAverageDuration

        public boolean hasAverageDuration()
         The average duration of all conversations. The average is calculated using
         only conversations that have a time duration.
         
        .google.protobuf.Duration average_duration = 1;
        Specified by:
        hasAverageDuration in interface CalculateStatsResponseOrBuilder
        Returns:
        Whether the averageDuration field is set.
      • getAverageDuration

        public com.google.protobuf.Duration getAverageDuration()
         The average duration of all conversations. The average is calculated using
         only conversations that have a time duration.
         
        .google.protobuf.Duration average_duration = 1;
        Specified by:
        getAverageDuration in interface CalculateStatsResponseOrBuilder
        Returns:
        The averageDuration.
      • setAverageDuration

        public CalculateStatsResponse.Builder setAverageDuration​(com.google.protobuf.Duration value)
         The average duration of all conversations. The average is calculated using
         only conversations that have a time duration.
         
        .google.protobuf.Duration average_duration = 1;
      • setAverageDuration

        public CalculateStatsResponse.Builder setAverageDuration​(com.google.protobuf.Duration.Builder builderForValue)
         The average duration of all conversations. The average is calculated using
         only conversations that have a time duration.
         
        .google.protobuf.Duration average_duration = 1;
      • mergeAverageDuration

        public CalculateStatsResponse.Builder mergeAverageDuration​(com.google.protobuf.Duration value)
         The average duration of all conversations. The average is calculated using
         only conversations that have a time duration.
         
        .google.protobuf.Duration average_duration = 1;
      • clearAverageDuration

        public CalculateStatsResponse.Builder clearAverageDuration()
         The average duration of all conversations. The average is calculated using
         only conversations that have a time duration.
         
        .google.protobuf.Duration average_duration = 1;
      • getAverageDurationBuilder

        public com.google.protobuf.Duration.Builder getAverageDurationBuilder()
         The average duration of all conversations. The average is calculated using
         only conversations that have a time duration.
         
        .google.protobuf.Duration average_duration = 1;
      • getAverageDurationOrBuilder

        public com.google.protobuf.DurationOrBuilder getAverageDurationOrBuilder()
         The average duration of all conversations. The average is calculated using
         only conversations that have a time duration.
         
        .google.protobuf.Duration average_duration = 1;
        Specified by:
        getAverageDurationOrBuilder in interface CalculateStatsResponseOrBuilder
      • setAverageTurnCount

        public CalculateStatsResponse.Builder setAverageTurnCount​(int value)
         The average number of turns per conversation.
         
        int32 average_turn_count = 2;
        Parameters:
        value - The averageTurnCount to set.
        Returns:
        This builder for chaining.
      • clearAverageTurnCount

        public CalculateStatsResponse.Builder clearAverageTurnCount()
         The average number of turns per conversation.
         
        int32 average_turn_count = 2;
        Returns:
        This builder for chaining.
      • setConversationCount

        public CalculateStatsResponse.Builder setConversationCount​(int value)
         The total number of conversations.
         
        int32 conversation_count = 3;
        Parameters:
        value - The conversationCount to set.
        Returns:
        This builder for chaining.
      • clearConversationCount

        public CalculateStatsResponse.Builder clearConversationCount()
         The total number of conversations.
         
        int32 conversation_count = 3;
        Returns:
        This builder for chaining.
      • containsSmartHighlighterMatches

        public boolean containsSmartHighlighterMatches​(String key)
         A map associating each smart highlighter display name with its respective
         number of matches in the set of conversations.
         
        map<string, int32> smart_highlighter_matches = 4;
        Specified by:
        containsSmartHighlighterMatches in interface CalculateStatsResponseOrBuilder
      • getSmartHighlighterMatchesOrDefault

        public int getSmartHighlighterMatchesOrDefault​(String key,
                                                       int defaultValue)
         A map associating each smart highlighter display name with its respective
         number of matches in the set of conversations.
         
        map<string, int32> smart_highlighter_matches = 4;
        Specified by:
        getSmartHighlighterMatchesOrDefault in interface CalculateStatsResponseOrBuilder
      • getSmartHighlighterMatchesOrThrow

        public int getSmartHighlighterMatchesOrThrow​(String key)
         A map associating each smart highlighter display name with its respective
         number of matches in the set of conversations.
         
        map<string, int32> smart_highlighter_matches = 4;
        Specified by:
        getSmartHighlighterMatchesOrThrow in interface CalculateStatsResponseOrBuilder
      • removeSmartHighlighterMatches

        public CalculateStatsResponse.Builder removeSmartHighlighterMatches​(String key)
         A map associating each smart highlighter display name with its respective
         number of matches in the set of conversations.
         
        map<string, int32> smart_highlighter_matches = 4;
      • getMutableSmartHighlighterMatches

        @Deprecated
        public Map<String,​Integer> getMutableSmartHighlighterMatches()
        Deprecated.
        Use alternate mutation accessors instead.
      • putSmartHighlighterMatches

        public CalculateStatsResponse.Builder putSmartHighlighterMatches​(String key,
                                                                         int value)
         A map associating each smart highlighter display name with its respective
         number of matches in the set of conversations.
         
        map<string, int32> smart_highlighter_matches = 4;
      • putAllSmartHighlighterMatches

        public CalculateStatsResponse.Builder putAllSmartHighlighterMatches​(Map<String,​Integer> values)
         A map associating each smart highlighter display name with its respective
         number of matches in the set of conversations.
         
        map<string, int32> smart_highlighter_matches = 4;
      • containsCustomHighlighterMatches

        public boolean containsCustomHighlighterMatches​(String key)
         A map associating each custom highlighter resource name with its respective
         number of matches in the set of conversations.
         
        map<string, int32> custom_highlighter_matches = 5;
        Specified by:
        containsCustomHighlighterMatches in interface CalculateStatsResponseOrBuilder
      • getCustomHighlighterMatchesOrDefault

        public int getCustomHighlighterMatchesOrDefault​(String key,
                                                        int defaultValue)
         A map associating each custom highlighter resource name with its respective
         number of matches in the set of conversations.
         
        map<string, int32> custom_highlighter_matches = 5;
        Specified by:
        getCustomHighlighterMatchesOrDefault in interface CalculateStatsResponseOrBuilder
      • getCustomHighlighterMatchesOrThrow

        public int getCustomHighlighterMatchesOrThrow​(String key)
         A map associating each custom highlighter resource name with its respective
         number of matches in the set of conversations.
         
        map<string, int32> custom_highlighter_matches = 5;
        Specified by:
        getCustomHighlighterMatchesOrThrow in interface CalculateStatsResponseOrBuilder
      • removeCustomHighlighterMatches

        public CalculateStatsResponse.Builder removeCustomHighlighterMatches​(String key)
         A map associating each custom highlighter resource name with its respective
         number of matches in the set of conversations.
         
        map<string, int32> custom_highlighter_matches = 5;
      • getMutableCustomHighlighterMatches

        @Deprecated
        public Map<String,​Integer> getMutableCustomHighlighterMatches()
        Deprecated.
        Use alternate mutation accessors instead.
      • putCustomHighlighterMatches

        public CalculateStatsResponse.Builder putCustomHighlighterMatches​(String key,
                                                                          int value)
         A map associating each custom highlighter resource name with its respective
         number of matches in the set of conversations.
         
        map<string, int32> custom_highlighter_matches = 5;
      • putAllCustomHighlighterMatches

        public CalculateStatsResponse.Builder putAllCustomHighlighterMatches​(Map<String,​Integer> values)
         A map associating each custom highlighter resource name with its respective
         number of matches in the set of conversations.
         
        map<string, int32> custom_highlighter_matches = 5;
      • getIssueMatchesCount

        @Deprecated
        public int getIssueMatchesCount()
        Deprecated.
        Description copied from interface: CalculateStatsResponseOrBuilder
         A map associating each issue resource name with its respective number of
         matches in the set of conversations. Key has the format:
         `projects/<Project-ID>/locations/<Location-ID>/issueModels/<Issue-Model-ID>/issues/<Issue-ID>`
         Deprecated, use `issue_matches_stats` field instead.
         
        map<string, int32> issue_matches = 6 [deprecated = true];
        Specified by:
        getIssueMatchesCount in interface CalculateStatsResponseOrBuilder
      • containsIssueMatches

        @Deprecated
        public boolean containsIssueMatches​(String key)
        Deprecated.
         A map associating each issue resource name with its respective number of
         matches in the set of conversations. Key has the format:
         `projects/<Project-ID>/locations/<Location-ID>/issueModels/<Issue-Model-ID>/issues/<Issue-ID>`
         Deprecated, use `issue_matches_stats` field instead.
         
        map<string, int32> issue_matches = 6 [deprecated = true];
        Specified by:
        containsIssueMatches in interface CalculateStatsResponseOrBuilder
      • getIssueMatchesMap

        @Deprecated
        public Map<String,​Integer> getIssueMatchesMap()
        Deprecated.
         A map associating each issue resource name with its respective number of
         matches in the set of conversations. Key has the format:
         `projects/<Project-ID>/locations/<Location-ID>/issueModels/<Issue-Model-ID>/issues/<Issue-ID>`
         Deprecated, use `issue_matches_stats` field instead.
         
        map<string, int32> issue_matches = 6 [deprecated = true];
        Specified by:
        getIssueMatchesMap in interface CalculateStatsResponseOrBuilder
      • getIssueMatchesOrDefault

        @Deprecated
        public int getIssueMatchesOrDefault​(String key,
                                            int defaultValue)
        Deprecated.
         A map associating each issue resource name with its respective number of
         matches in the set of conversations. Key has the format:
         `projects/<Project-ID>/locations/<Location-ID>/issueModels/<Issue-Model-ID>/issues/<Issue-ID>`
         Deprecated, use `issue_matches_stats` field instead.
         
        map<string, int32> issue_matches = 6 [deprecated = true];
        Specified by:
        getIssueMatchesOrDefault in interface CalculateStatsResponseOrBuilder
      • getIssueMatchesOrThrow

        @Deprecated
        public int getIssueMatchesOrThrow​(String key)
        Deprecated.
         A map associating each issue resource name with its respective number of
         matches in the set of conversations. Key has the format:
         `projects/<Project-ID>/locations/<Location-ID>/issueModels/<Issue-Model-ID>/issues/<Issue-ID>`
         Deprecated, use `issue_matches_stats` field instead.
         
        map<string, int32> issue_matches = 6 [deprecated = true];
        Specified by:
        getIssueMatchesOrThrow in interface CalculateStatsResponseOrBuilder
      • removeIssueMatches

        @Deprecated
        public CalculateStatsResponse.Builder removeIssueMatches​(String key)
        Deprecated.
         A map associating each issue resource name with its respective number of
         matches in the set of conversations. Key has the format:
         `projects/<Project-ID>/locations/<Location-ID>/issueModels/<Issue-Model-ID>/issues/<Issue-ID>`
         Deprecated, use `issue_matches_stats` field instead.
         
        map<string, int32> issue_matches = 6 [deprecated = true];
      • getMutableIssueMatches

        @Deprecated
        public Map<String,​Integer> getMutableIssueMatches()
        Deprecated.
        Use alternate mutation accessors instead.
      • putIssueMatches

        @Deprecated
        public CalculateStatsResponse.Builder putIssueMatches​(String key,
                                                              int value)
        Deprecated.
         A map associating each issue resource name with its respective number of
         matches in the set of conversations. Key has the format:
         `projects/<Project-ID>/locations/<Location-ID>/issueModels/<Issue-Model-ID>/issues/<Issue-ID>`
         Deprecated, use `issue_matches_stats` field instead.
         
        map<string, int32> issue_matches = 6 [deprecated = true];
      • putAllIssueMatches

        @Deprecated
        public CalculateStatsResponse.Builder putAllIssueMatches​(Map<String,​Integer> values)
        Deprecated.
         A map associating each issue resource name with its respective number of
         matches in the set of conversations. Key has the format:
         `projects/<Project-ID>/locations/<Location-ID>/issueModels/<Issue-Model-ID>/issues/<Issue-ID>`
         Deprecated, use `issue_matches_stats` field instead.
         
        map<string, int32> issue_matches = 6 [deprecated = true];
      • getIssueMatchesStatsCount

        public int getIssueMatchesStatsCount()
        Description copied from interface: CalculateStatsResponseOrBuilder
         A map associating each issue resource name with its respective number of
         matches in the set of conversations. Key has the format:
         `projects/<Project-ID>/locations/<Location-ID>/issueModels/<Issue-Model-ID>/issues/<Issue-ID>`
         
        map<string, .google.cloud.contactcenterinsights.v1.IssueModelLabelStats.IssueStats> issue_matches_stats = 8;
        Specified by:
        getIssueMatchesStatsCount in interface CalculateStatsResponseOrBuilder
      • containsIssueMatchesStats

        public boolean containsIssueMatchesStats​(String key)
         A map associating each issue resource name with its respective number of
         matches in the set of conversations. Key has the format:
         `projects/<Project-ID>/locations/<Location-ID>/issueModels/<Issue-Model-ID>/issues/<Issue-ID>`
         
        map<string, .google.cloud.contactcenterinsights.v1.IssueModelLabelStats.IssueStats> issue_matches_stats = 8;
        Specified by:
        containsIssueMatchesStats in interface CalculateStatsResponseOrBuilder
      • getIssueMatchesStatsMap

        public Map<String,​IssueModelLabelStats.IssueStats> getIssueMatchesStatsMap()
         A map associating each issue resource name with its respective number of
         matches in the set of conversations. Key has the format:
         `projects/<Project-ID>/locations/<Location-ID>/issueModels/<Issue-Model-ID>/issues/<Issue-ID>`
         
        map<string, .google.cloud.contactcenterinsights.v1.IssueModelLabelStats.IssueStats> issue_matches_stats = 8;
        Specified by:
        getIssueMatchesStatsMap in interface CalculateStatsResponseOrBuilder
      • getIssueMatchesStatsOrThrow

        public IssueModelLabelStats.IssueStats getIssueMatchesStatsOrThrow​(String key)
         A map associating each issue resource name with its respective number of
         matches in the set of conversations. Key has the format:
         `projects/<Project-ID>/locations/<Location-ID>/issueModels/<Issue-Model-ID>/issues/<Issue-ID>`
         
        map<string, .google.cloud.contactcenterinsights.v1.IssueModelLabelStats.IssueStats> issue_matches_stats = 8;
        Specified by:
        getIssueMatchesStatsOrThrow in interface CalculateStatsResponseOrBuilder
      • removeIssueMatchesStats

        public CalculateStatsResponse.Builder removeIssueMatchesStats​(String key)
         A map associating each issue resource name with its respective number of
         matches in the set of conversations. Key has the format:
         `projects/<Project-ID>/locations/<Location-ID>/issueModels/<Issue-Model-ID>/issues/<Issue-ID>`
         
        map<string, .google.cloud.contactcenterinsights.v1.IssueModelLabelStats.IssueStats> issue_matches_stats = 8;
      • putIssueMatchesStats

        public CalculateStatsResponse.Builder putIssueMatchesStats​(String key,
                                                                   IssueModelLabelStats.IssueStats value)
         A map associating each issue resource name with its respective number of
         matches in the set of conversations. Key has the format:
         `projects/<Project-ID>/locations/<Location-ID>/issueModels/<Issue-Model-ID>/issues/<Issue-ID>`
         
        map<string, .google.cloud.contactcenterinsights.v1.IssueModelLabelStats.IssueStats> issue_matches_stats = 8;
      • putAllIssueMatchesStats

        public CalculateStatsResponse.Builder putAllIssueMatchesStats​(Map<String,​IssueModelLabelStats.IssueStats> values)
         A map associating each issue resource name with its respective number of
         matches in the set of conversations. Key has the format:
         `projects/<Project-ID>/locations/<Location-ID>/issueModels/<Issue-Model-ID>/issues/<Issue-ID>`
         
        map<string, .google.cloud.contactcenterinsights.v1.IssueModelLabelStats.IssueStats> issue_matches_stats = 8;
      • hasConversationCountTimeSeries

        public boolean hasConversationCountTimeSeries()
         A time series representing the count of conversations created over time
         that match that requested filter criteria.
         
        .google.cloud.contactcenterinsights.v1.CalculateStatsResponse.TimeSeries conversation_count_time_series = 7;
        Specified by:
        hasConversationCountTimeSeries in interface CalculateStatsResponseOrBuilder
        Returns:
        Whether the conversationCountTimeSeries field is set.
      • setConversationCountTimeSeries

        public CalculateStatsResponse.Builder setConversationCountTimeSeries​(CalculateStatsResponse.TimeSeries value)
         A time series representing the count of conversations created over time
         that match that requested filter criteria.
         
        .google.cloud.contactcenterinsights.v1.CalculateStatsResponse.TimeSeries conversation_count_time_series = 7;
      • setConversationCountTimeSeries

        public CalculateStatsResponse.Builder setConversationCountTimeSeries​(CalculateStatsResponse.TimeSeries.Builder builderForValue)
         A time series representing the count of conversations created over time
         that match that requested filter criteria.
         
        .google.cloud.contactcenterinsights.v1.CalculateStatsResponse.TimeSeries conversation_count_time_series = 7;
      • mergeConversationCountTimeSeries

        public CalculateStatsResponse.Builder mergeConversationCountTimeSeries​(CalculateStatsResponse.TimeSeries value)
         A time series representing the count of conversations created over time
         that match that requested filter criteria.
         
        .google.cloud.contactcenterinsights.v1.CalculateStatsResponse.TimeSeries conversation_count_time_series = 7;
      • clearConversationCountTimeSeries

        public CalculateStatsResponse.Builder clearConversationCountTimeSeries()
         A time series representing the count of conversations created over time
         that match that requested filter criteria.
         
        .google.cloud.contactcenterinsights.v1.CalculateStatsResponse.TimeSeries conversation_count_time_series = 7;
      • getConversationCountTimeSeriesBuilder

        public CalculateStatsResponse.TimeSeries.Builder getConversationCountTimeSeriesBuilder()
         A time series representing the count of conversations created over time
         that match that requested filter criteria.
         
        .google.cloud.contactcenterinsights.v1.CalculateStatsResponse.TimeSeries conversation_count_time_series = 7;
      • setUnknownFields

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

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