Class CalculateStatsResponse (2.39.0)

public final class CalculateStatsResponse extends GeneratedMessageV3 implements CalculateStatsResponseOrBuilder

The response for calculating conversation statistics.

Protobuf type google.cloud.contactcenterinsights.v1.CalculateStatsResponse

Static Fields

AVERAGE_DURATION_FIELD_NUMBER

public static final int AVERAGE_DURATION_FIELD_NUMBER
Field Value
TypeDescription
int

AVERAGE_TURN_COUNT_FIELD_NUMBER

public static final int AVERAGE_TURN_COUNT_FIELD_NUMBER
Field Value
TypeDescription
int

CONVERSATION_COUNT_FIELD_NUMBER

public static final int CONVERSATION_COUNT_FIELD_NUMBER
Field Value
TypeDescription
int

CONVERSATION_COUNT_TIME_SERIES_FIELD_NUMBER

public static final int CONVERSATION_COUNT_TIME_SERIES_FIELD_NUMBER
Field Value
TypeDescription
int

CUSTOM_HIGHLIGHTER_MATCHES_FIELD_NUMBER

public static final int CUSTOM_HIGHLIGHTER_MATCHES_FIELD_NUMBER
Field Value
TypeDescription
int

ISSUE_MATCHES_FIELD_NUMBER

public static final int ISSUE_MATCHES_FIELD_NUMBER
Field Value
TypeDescription
int

ISSUE_MATCHES_STATS_FIELD_NUMBER

public static final int ISSUE_MATCHES_STATS_FIELD_NUMBER
Field Value
TypeDescription
int

SMART_HIGHLIGHTER_MATCHES_FIELD_NUMBER

public static final int SMART_HIGHLIGHTER_MATCHES_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static CalculateStatsResponse getDefaultInstance()
Returns
TypeDescription
CalculateStatsResponse

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static CalculateStatsResponse.Builder newBuilder()
Returns
TypeDescription
CalculateStatsResponse.Builder

newBuilder(CalculateStatsResponse prototype)

public static CalculateStatsResponse.Builder newBuilder(CalculateStatsResponse prototype)
Parameter
NameDescription
prototypeCalculateStatsResponse
Returns
TypeDescription
CalculateStatsResponse.Builder

parseDelimitedFrom(InputStream input)

public static CalculateStatsResponse parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CalculateStatsResponse
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CalculateStatsResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CalculateStatsResponse
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static CalculateStatsResponse parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
CalculateStatsResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CalculateStatsResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CalculateStatsResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CalculateStatsResponse parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
CalculateStatsResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CalculateStatsResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CalculateStatsResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CalculateStatsResponse parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
CalculateStatsResponse
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CalculateStatsResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CalculateStatsResponse
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static CalculateStatsResponse parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CalculateStatsResponse
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CalculateStatsResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CalculateStatsResponse
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static CalculateStatsResponse parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
CalculateStatsResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CalculateStatsResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CalculateStatsResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<CalculateStatsResponse> parser()
Returns
TypeDescription
Parser<CalculateStatsResponse>

Methods

containsCustomHighlighterMatches(String key)

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
NameDescription
keyString
Returns
TypeDescription
boolean

containsIssueMatches(String key) (deprecated)

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
NameDescription
keyString
Returns
TypeDescription
boolean

containsIssueMatchesStats(String key)

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
NameDescription
keyString
Returns
TypeDescription
boolean

containsSmartHighlighterMatches(String key)

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
NameDescription
keyString
Returns
TypeDescription
boolean

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getAverageDuration()

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
TypeDescription
Duration

The averageDuration.

getAverageDurationOrBuilder()

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
TypeDescription
DurationOrBuilder

getAverageTurnCount()

public int getAverageTurnCount()

The average number of turns per conversation.

int32 average_turn_count = 2;

Returns
TypeDescription
int

The averageTurnCount.

getConversationCount()

public int getConversationCount()

The total number of conversations.

int32 conversation_count = 3;

Returns
TypeDescription
int

The conversationCount.

getConversationCountTimeSeries()

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
TypeDescription
CalculateStatsResponse.TimeSeries

The conversationCountTimeSeries.

getConversationCountTimeSeriesOrBuilder()

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
TypeDescription
CalculateStatsResponse.TimeSeriesOrBuilder

getCustomHighlighterMatches() (deprecated)

public Map<String,Integer> getCustomHighlighterMatches()
Returns
TypeDescription
Map<String,java.lang.Integer>

getCustomHighlighterMatchesCount()

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
TypeDescription
int

getCustomHighlighterMatchesMap()

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
TypeDescription
Map<String,java.lang.Integer>

getCustomHighlighterMatchesOrDefault(String key, int defaultValue)

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
NameDescription
keyString
defaultValueint
Returns
TypeDescription
int

getCustomHighlighterMatchesOrThrow(String key)

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
NameDescription
keyString
Returns
TypeDescription
int

getDefaultInstanceForType()

public CalculateStatsResponse getDefaultInstanceForType()
Returns
TypeDescription
CalculateStatsResponse

getIssueMatches() (deprecated)

public Map<String,Integer> getIssueMatches()

Use #getIssueMatchesMap() instead.

Returns
TypeDescription
Map<String,java.lang.Integer>

getIssueMatchesCount() (deprecated)

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
TypeDescription
int

getIssueMatchesMap() (deprecated)

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
TypeDescription
Map<String,java.lang.Integer>

getIssueMatchesOrDefault(String key, int defaultValue) (deprecated)

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
NameDescription
keyString
defaultValueint
Returns
TypeDescription
int

getIssueMatchesOrThrow(String key) (deprecated)

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
NameDescription
keyString
Returns
TypeDescription
int

getIssueMatchesStats() (deprecated)

public Map<String,IssueModelLabelStats.IssueStats> getIssueMatchesStats()
Returns
TypeDescription
Map<String,IssueStats>

getIssueMatchesStatsCount()

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
TypeDescription
int

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;

Returns
TypeDescription
Map<String,IssueStats>

getIssueMatchesStatsOrDefault(String key, IssueModelLabelStats.IssueStats defaultValue)

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
NameDescription
keyString
defaultValueIssueModelLabelStats.IssueStats
Returns
TypeDescription
IssueModelLabelStats.IssueStats

getIssueMatchesStatsOrThrow(String key)

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
NameDescription
keyString
Returns
TypeDescription
IssueModelLabelStats.IssueStats

getParserForType()

public Parser<CalculateStatsResponse> getParserForType()
Returns
TypeDescription
Parser<CalculateStatsResponse>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSmartHighlighterMatches() (deprecated)

public Map<String,Integer> getSmartHighlighterMatches()
Returns
TypeDescription
Map<String,java.lang.Integer>

getSmartHighlighterMatchesCount()

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
TypeDescription
int

getSmartHighlighterMatchesMap()

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
TypeDescription
Map<String,java.lang.Integer>

getSmartHighlighterMatchesOrDefault(String key, int defaultValue)

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
NameDescription
keyString
defaultValueint
Returns
TypeDescription
int

getSmartHighlighterMatchesOrThrow(String key)

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
NameDescription
keyString
Returns
TypeDescription
int

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;

Returns
TypeDescription
boolean

Whether the averageDuration field is set.

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;

Returns
TypeDescription
boolean

Whether the conversationCountTimeSeries field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public CalculateStatsResponse.Builder newBuilderForType()
Returns
TypeDescription
CalculateStatsResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CalculateStatsResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
CalculateStatsResponse.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public CalculateStatsResponse.Builder toBuilder()
Returns
TypeDescription
CalculateStatsResponse.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException