Interface Conversation.Transcript.TranscriptSegmentOrBuilder (2.55.0)

public static interface Conversation.Transcript.TranscriptSegmentOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getChannelTag()

public abstract int getChannelTag()

For conversations derived from multi-channel audio, this is the channel number corresponding to the audio from that channel. For audioChannelCount = N, its output values can range from '1' to 'N'. A channel tag of 0 indicates that the audio is mono.

int32 channel_tag = 5;

Returns
Type Description
int

The channelTag.

getConfidence()

public abstract float getConfidence()

A confidence estimate between 0.0 and 1.0 of the fidelity of this segment. A default value of 0.0 indicates that the value is unset.

float confidence = 2;

Returns
Type Description
float

The confidence.

getDialogflowSegmentMetadata()

public abstract Conversation.Transcript.TranscriptSegment.DialogflowSegmentMetadata getDialogflowSegmentMetadata()

CCAI metadata relating to the current transcript segment.

.google.cloud.contactcenterinsights.v1.Conversation.Transcript.TranscriptSegment.DialogflowSegmentMetadata dialogflow_segment_metadata = 10;

Returns
Type Description
Conversation.Transcript.TranscriptSegment.DialogflowSegmentMetadata

The dialogflowSegmentMetadata.

getDialogflowSegmentMetadataOrBuilder()

public abstract Conversation.Transcript.TranscriptSegment.DialogflowSegmentMetadataOrBuilder getDialogflowSegmentMetadataOrBuilder()

CCAI metadata relating to the current transcript segment.

.google.cloud.contactcenterinsights.v1.Conversation.Transcript.TranscriptSegment.DialogflowSegmentMetadata dialogflow_segment_metadata = 10;

Returns
Type Description
Conversation.Transcript.TranscriptSegment.DialogflowSegmentMetadataOrBuilder

getLanguageCode()

public abstract String getLanguageCode()

The language code of this segment as a BCP-47 language tag. Example: "en-US".

string language_code = 4;

Returns
Type Description
String

The languageCode.

getLanguageCodeBytes()

public abstract ByteString getLanguageCodeBytes()

The language code of this segment as a BCP-47 language tag. Example: "en-US".

string language_code = 4;

Returns
Type Description
ByteString

The bytes for languageCode.

getMessageTime()

public abstract Timestamp getMessageTime()

The time that the message occurred, if provided.

.google.protobuf.Timestamp message_time = 6;

Returns
Type Description
Timestamp

The messageTime.

getMessageTimeOrBuilder()

public abstract TimestampOrBuilder getMessageTimeOrBuilder()

The time that the message occurred, if provided.

.google.protobuf.Timestamp message_time = 6;

Returns
Type Description
TimestampOrBuilder

getSegmentParticipant()

public abstract ConversationParticipant getSegmentParticipant()

The participant of this segment.

.google.cloud.contactcenterinsights.v1.ConversationParticipant segment_participant = 9;

Returns
Type Description
ConversationParticipant

The segmentParticipant.

getSegmentParticipantOrBuilder()

public abstract ConversationParticipantOrBuilder getSegmentParticipantOrBuilder()

The participant of this segment.

.google.cloud.contactcenterinsights.v1.ConversationParticipant segment_participant = 9;

Returns
Type Description
ConversationParticipantOrBuilder

getSentiment()

public abstract SentimentData getSentiment()

The sentiment for this transcript segment.

.google.cloud.contactcenterinsights.v1.SentimentData sentiment = 11;

Returns
Type Description
SentimentData

The sentiment.

getSentimentOrBuilder()

public abstract SentimentDataOrBuilder getSentimentOrBuilder()

The sentiment for this transcript segment.

.google.cloud.contactcenterinsights.v1.SentimentData sentiment = 11;

Returns
Type Description
SentimentDataOrBuilder

getText()

public abstract String getText()

The text of this segment.

string text = 1;

Returns
Type Description
String

The text.

getTextBytes()

public abstract ByteString getTextBytes()

The text of this segment.

string text = 1;

Returns
Type Description
ByteString

The bytes for text.

getWords(int index)

public abstract Conversation.Transcript.TranscriptSegment.WordInfo getWords(int index)

A list of the word-specific information for each word in the segment.

repeated .google.cloud.contactcenterinsights.v1.Conversation.Transcript.TranscriptSegment.WordInfo words = 3;

Parameter
Name Description
index int
Returns
Type Description
Conversation.Transcript.TranscriptSegment.WordInfo

getWordsCount()

public abstract int getWordsCount()

A list of the word-specific information for each word in the segment.

repeated .google.cloud.contactcenterinsights.v1.Conversation.Transcript.TranscriptSegment.WordInfo words = 3;

Returns
Type Description
int

getWordsList()

public abstract List<Conversation.Transcript.TranscriptSegment.WordInfo> getWordsList()

A list of the word-specific information for each word in the segment.

repeated .google.cloud.contactcenterinsights.v1.Conversation.Transcript.TranscriptSegment.WordInfo words = 3;

Returns
Type Description
List<WordInfo>

getWordsOrBuilder(int index)

public abstract Conversation.Transcript.TranscriptSegment.WordInfoOrBuilder getWordsOrBuilder(int index)

A list of the word-specific information for each word in the segment.

repeated .google.cloud.contactcenterinsights.v1.Conversation.Transcript.TranscriptSegment.WordInfo words = 3;

Parameter
Name Description
index int
Returns
Type Description
Conversation.Transcript.TranscriptSegment.WordInfoOrBuilder

getWordsOrBuilderList()

public abstract List<? extends Conversation.Transcript.TranscriptSegment.WordInfoOrBuilder> getWordsOrBuilderList()

A list of the word-specific information for each word in the segment.

repeated .google.cloud.contactcenterinsights.v1.Conversation.Transcript.TranscriptSegment.WordInfo words = 3;

Returns
Type Description
List<? extends com.google.cloud.contactcenterinsights.v1.Conversation.Transcript.TranscriptSegment.WordInfoOrBuilder>

hasDialogflowSegmentMetadata()

public abstract boolean hasDialogflowSegmentMetadata()

CCAI metadata relating to the current transcript segment.

.google.cloud.contactcenterinsights.v1.Conversation.Transcript.TranscriptSegment.DialogflowSegmentMetadata dialogflow_segment_metadata = 10;

Returns
Type Description
boolean

Whether the dialogflowSegmentMetadata field is set.

hasMessageTime()

public abstract boolean hasMessageTime()

The time that the message occurred, if provided.

.google.protobuf.Timestamp message_time = 6;

Returns
Type Description
boolean

Whether the messageTime field is set.

hasSegmentParticipant()

public abstract boolean hasSegmentParticipant()

The participant of this segment.

.google.cloud.contactcenterinsights.v1.ConversationParticipant segment_participant = 9;

Returns
Type Description
boolean

Whether the segmentParticipant field is set.

hasSentiment()

public abstract boolean hasSentiment()

The sentiment for this transcript segment.

.google.cloud.contactcenterinsights.v1.SentimentData sentiment = 11;

Returns
Type Description
boolean

Whether the sentiment field is set.