public static final class CalculateStatsResponse.Builder extends GeneratedMessageV3.Builder<CalculateStatsResponse.Builder> implements CalculateStatsResponseOrBuilder
The response for calculating conversation statistics.
Protobuf type google.cloud.contactcenterinsights.v1.CalculateStatsResponse
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
public CalculateStatsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public CalculateStatsResponse build()
Returns
public CalculateStatsResponse buildPartial()
Returns
public CalculateStatsResponse.Builder clear()
Returns
Overrides
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;
Returns
public CalculateStatsResponse.Builder clearAverageTurnCount()
The average number of turns per conversation.
int32 average_turn_count = 2;
Returns
public CalculateStatsResponse.Builder clearConversationCount()
The total number of conversations.
int32 conversation_count = 3;
Returns
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;
Returns
public CalculateStatsResponse.Builder clearCustomHighlighterMatches()
Returns
public CalculateStatsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
public CalculateStatsResponse.Builder clearIssueMatches()
Returns
public CalculateStatsResponse.Builder clearIssueMatchesStats()
Returns
public CalculateStatsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
public CalculateStatsResponse.Builder clearSmartHighlighterMatches()
Returns
public CalculateStatsResponse.Builder clone()
Returns
Overrides
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;
Parameter
Returns
public boolean containsIssueMatches(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>
Deprecated, use issue_matches_stats
field instead.
map<string, int32> issue_matches = 6 [deprecated = true];
Parameter
Returns
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;
Parameter
Returns
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;
Parameter
Returns
public 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;
Returns
Type | Description |
Duration | The averageDuration.
|
public 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;
Returns
public 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;
Returns
public int getAverageTurnCount()
The average number of turns per conversation.
int32 average_turn_count = 2;
Returns
Type | Description |
int | The averageTurnCount.
|
public int getConversationCount()
The total number of conversations.
int32 conversation_count = 3;
Returns
Type | Description |
int | The conversationCount.
|
public CalculateStatsResponse.TimeSeries getConversationCountTimeSeries()
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;
Returns
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;
Returns
public CalculateStatsResponse.TimeSeriesOrBuilder getConversationCountTimeSeriesOrBuilder()
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;
Returns
public Map<String,Integer> getCustomHighlighterMatches()
Returns
public int getCustomHighlighterMatchesCount()
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;
Returns
public Map<String,Integer> getCustomHighlighterMatchesMap()
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;
Returns
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;
Parameters
Returns
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;
Parameter
Returns
public CalculateStatsResponse getDefaultInstanceForType()
Returns
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
public Map<String,Integer> getIssueMatches()
Returns
public int getIssueMatchesCount()
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];
Returns
public Map<String,Integer> getIssueMatchesMap()
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];
Returns
public int getIssueMatchesOrDefault(String key, int defaultValue)
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];
Parameters
Returns
public int getIssueMatchesOrThrow(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>
Deprecated, use issue_matches_stats
field instead.
map<string, int32> issue_matches = 6 [deprecated = true];
Parameter
Returns
public Map<String,IssueModelLabelStats.IssueStats> getIssueMatchesStats()
Returns
public int getIssueMatchesStatsCount()
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;
Returns
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;
Returns
public IssueModelLabelStats.IssueStats getIssueMatchesStatsOrDefault(String key, IssueModelLabelStats.IssueStats defaultValue)
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;
Parameters
Returns
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;
Parameter
Returns
public Map<String,Integer> getMutableCustomHighlighterMatches()
Use alternate mutation accessors instead.
Returns
public Map<String,Integer> getMutableIssueMatches()
Use alternate mutation accessors instead.
Returns
public Map<String,IssueModelLabelStats.IssueStats> getMutableIssueMatchesStats()
Use alternate mutation accessors instead.
Returns
public Map<String,Integer> getMutableSmartHighlighterMatches()
Use alternate mutation accessors instead.
Returns
public Map<String,Integer> getSmartHighlighterMatches()
Returns
public int getSmartHighlighterMatchesCount()
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;
Returns
public Map<String,Integer> getSmartHighlighterMatchesMap()
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;
Returns
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;
Parameters
Returns
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;
Parameter
Returns
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;
Returns
Type | Description |
boolean | Whether the averageDuration field is set.
|
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;
Returns
Type | Description |
boolean | Whether the conversationCountTimeSeries field is set.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
protected MapField internalGetMapField(int number)
Parameter
Returns
Overrides
protected MapField internalGetMutableMapField(int number)
Parameter
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public CalculateStatsResponse.Builder mergeAverageDuration(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;
Parameter
Returns
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;
Parameter
Returns
public CalculateStatsResponse.Builder mergeFrom(CalculateStatsResponse other)
Parameter
Returns
public CalculateStatsResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public CalculateStatsResponse.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
public final CalculateStatsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
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;
Parameter
Name | Description |
values | Map<String,java.lang.Integer>
|
Returns
public CalculateStatsResponse.Builder putAllIssueMatches(Map<String,Integer> 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>
Deprecated, use issue_matches_stats
field instead.
map<string, int32> issue_matches = 6 [deprecated = true];
Parameter
Name | Description |
values | Map<String,java.lang.Integer>
|
Returns
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;
Parameter
Returns
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;
Parameter
Name | Description |
values | Map<String,java.lang.Integer>
|
Returns
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;
Parameters
Returns
public CalculateStatsResponse.Builder putIssueMatches(String key, int 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>
Deprecated, use issue_matches_stats
field instead.
map<string, int32> issue_matches = 6 [deprecated = true];
Parameters
Returns
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;
Parameters
Returns
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;
Parameters
Returns
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;
Parameter
Returns
public CalculateStatsResponse.Builder removeIssueMatches(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>
Deprecated, use issue_matches_stats
field instead.
map<string, int32> issue_matches = 6 [deprecated = true];
Parameter
Returns
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;
Parameter
Returns
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;
Parameter
Returns
public CalculateStatsResponse.Builder setAverageDuration(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;
Parameter
Returns
public CalculateStatsResponse.Builder setAverageDuration(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;
Parameter
Name | Description |
builderForValue | Builder
|
Returns
public CalculateStatsResponse.Builder setAverageTurnCount(int value)
The average number of turns per conversation.
int32 average_turn_count = 2;
Parameter
Name | Description |
value | int
The averageTurnCount to set.
|
Returns
public CalculateStatsResponse.Builder setConversationCount(int value)
The total number of conversations.
int32 conversation_count = 3;
Parameter
Name | Description |
value | int
The conversationCount to set.
|
Returns
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;
Parameter
Returns
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;
Parameter
Returns
public CalculateStatsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public CalculateStatsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
public final CalculateStatsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides