Class Conversation.Transcript.TranscriptSegment (2.52.0)

public static final class Conversation.Transcript.TranscriptSegment extends GeneratedMessageV3 implements Conversation.Transcript.TranscriptSegmentOrBuilder

A segment of a full transcript.

Protobuf type google.cloud.contactcenterinsights.v1.Conversation.Transcript.TranscriptSegment

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > Conversation.Transcript.TranscriptSegment

Static Fields

CHANNEL_TAG_FIELD_NUMBER

public static final int CHANNEL_TAG_FIELD_NUMBER
Field Value
Type Description
int

CONFIDENCE_FIELD_NUMBER

public static final int CONFIDENCE_FIELD_NUMBER
Field Value
Type Description
int

DIALOGFLOW_SEGMENT_METADATA_FIELD_NUMBER

public static final int DIALOGFLOW_SEGMENT_METADATA_FIELD_NUMBER
Field Value
Type Description
int

LANGUAGE_CODE_FIELD_NUMBER

public static final int LANGUAGE_CODE_FIELD_NUMBER
Field Value
Type Description
int

MESSAGE_TIME_FIELD_NUMBER

public static final int MESSAGE_TIME_FIELD_NUMBER
Field Value
Type Description
int

SEGMENT_PARTICIPANT_FIELD_NUMBER

public static final int SEGMENT_PARTICIPANT_FIELD_NUMBER
Field Value
Type Description
int

SENTIMENT_FIELD_NUMBER

public static final int SENTIMENT_FIELD_NUMBER
Field Value
Type Description
int

TEXT_FIELD_NUMBER

public static final int TEXT_FIELD_NUMBER
Field Value
Type Description
int

WORDS_FIELD_NUMBER

public static final int WORDS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Conversation.Transcript.TranscriptSegment getDefaultInstance()
Returns
Type Description
Conversation.Transcript.TranscriptSegment

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static Conversation.Transcript.TranscriptSegment.Builder newBuilder()
Returns
Type Description
Conversation.Transcript.TranscriptSegment.Builder

newBuilder(Conversation.Transcript.TranscriptSegment prototype)

public static Conversation.Transcript.TranscriptSegment.Builder newBuilder(Conversation.Transcript.TranscriptSegment prototype)
Parameter
Name Description
prototype Conversation.Transcript.TranscriptSegment
Returns
Type Description
Conversation.Transcript.TranscriptSegment.Builder

parseDelimitedFrom(InputStream input)

public static Conversation.Transcript.TranscriptSegment parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Conversation.Transcript.TranscriptSegment
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Conversation.Transcript.TranscriptSegment parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Conversation.Transcript.TranscriptSegment
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Conversation.Transcript.TranscriptSegment parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Conversation.Transcript.TranscriptSegment
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Conversation.Transcript.TranscriptSegment parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Conversation.Transcript.TranscriptSegment
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Conversation.Transcript.TranscriptSegment parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Conversation.Transcript.TranscriptSegment
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Conversation.Transcript.TranscriptSegment parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Conversation.Transcript.TranscriptSegment
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Conversation.Transcript.TranscriptSegment parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Conversation.Transcript.TranscriptSegment
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Conversation.Transcript.TranscriptSegment parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Conversation.Transcript.TranscriptSegment
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Conversation.Transcript.TranscriptSegment parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Conversation.Transcript.TranscriptSegment
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Conversation.Transcript.TranscriptSegment parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Conversation.Transcript.TranscriptSegment
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Conversation.Transcript.TranscriptSegment parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Conversation.Transcript.TranscriptSegment
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Conversation.Transcript.TranscriptSegment parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Conversation.Transcript.TranscriptSegment
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Conversation.Transcript.TranscriptSegment> parser()
Returns
Type Description
Parser<TranscriptSegment>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getChannelTag()

public 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 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.

getDefaultInstanceForType()

public Conversation.Transcript.TranscriptSegment getDefaultInstanceForType()
Returns
Type Description
Conversation.Transcript.TranscriptSegment

getDialogflowSegmentMetadata()

public 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 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 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 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 Timestamp getMessageTime()

The time that the message occurred, if provided.

.google.protobuf.Timestamp message_time = 6;

Returns
Type Description
Timestamp

The messageTime.

getMessageTimeOrBuilder()

public TimestampOrBuilder getMessageTimeOrBuilder()

The time that the message occurred, if provided.

.google.protobuf.Timestamp message_time = 6;

Returns
Type Description
TimestampOrBuilder

getParserForType()

public Parser<Conversation.Transcript.TranscriptSegment> getParserForType()
Returns
Type Description
Parser<TranscriptSegment>
Overrides

getSegmentParticipant()

public ConversationParticipant getSegmentParticipant()

The participant of this segment.

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

Returns
Type Description
ConversationParticipant

The segmentParticipant.

getSegmentParticipantOrBuilder()

public ConversationParticipantOrBuilder getSegmentParticipantOrBuilder()

The participant of this segment.

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

Returns
Type Description
ConversationParticipantOrBuilder

getSentiment()

public SentimentData getSentiment()

The sentiment for this transcript segment.

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

Returns
Type Description
SentimentData

The sentiment.

getSentimentOrBuilder()

public SentimentDataOrBuilder getSentimentOrBuilder()

The sentiment for this transcript segment.

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

Returns
Type Description
SentimentDataOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getText()

public String getText()

The text of this segment.

string text = 1;

Returns
Type Description
String

The text.

getTextBytes()

public ByteString getTextBytes()

The text of this segment.

string text = 1;

Returns
Type Description
ByteString

The bytes for text.

getWords(int index)

public 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 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 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 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 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 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 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 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 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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Conversation.Transcript.TranscriptSegment.Builder newBuilderForType()
Returns
Type Description
Conversation.Transcript.TranscriptSegment.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Conversation.Transcript.TranscriptSegment.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Conversation.Transcript.TranscriptSegment.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public Conversation.Transcript.TranscriptSegment.Builder toBuilder()
Returns
Type Description
Conversation.Transcript.TranscriptSegment.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException