Class Conversation.Transcript.TranscriptSegment (2.3.5)

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

CONFIDENCE_FIELD_NUMBER

public static final int CONFIDENCE_FIELD_NUMBER
Field Value
TypeDescription
int

DIALOGFLOW_SEGMENT_METADATA_FIELD_NUMBER

public static final int DIALOGFLOW_SEGMENT_METADATA_FIELD_NUMBER
Field Value
TypeDescription
int

LANGUAGE_CODE_FIELD_NUMBER

public static final int LANGUAGE_CODE_FIELD_NUMBER
Field Value
TypeDescription
int

MESSAGE_TIME_FIELD_NUMBER

public static final int MESSAGE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

SEGMENT_PARTICIPANT_FIELD_NUMBER

public static final int SEGMENT_PARTICIPANT_FIELD_NUMBER
Field Value
TypeDescription
int

SENTIMENT_FIELD_NUMBER

public static final int SENTIMENT_FIELD_NUMBER
Field Value
TypeDescription
int

TEXT_FIELD_NUMBER

public static final int TEXT_FIELD_NUMBER
Field Value
TypeDescription
int

WORDS_FIELD_NUMBER

public static final int WORDS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Conversation.Transcript.TranscriptSegment getDefaultInstance()
Returns
TypeDescription
Conversation.Transcript.TranscriptSegment

getDescriptor()

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

newBuilder()

public static Conversation.Transcript.TranscriptSegment.Builder newBuilder()
Returns
TypeDescription
Conversation.Transcript.TranscriptSegment.Builder

newBuilder(Conversation.Transcript.TranscriptSegment prototype)

public static Conversation.Transcript.TranscriptSegment.Builder newBuilder(Conversation.Transcript.TranscriptSegment prototype)
Parameter
NameDescription
prototypeConversation.Transcript.TranscriptSegment
Returns
TypeDescription
Conversation.Transcript.TranscriptSegment.Builder

parseDelimitedFrom(InputStream input)

public static Conversation.Transcript.TranscriptSegment parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Conversation.Transcript.TranscriptSegment
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Conversation.Transcript.TranscriptSegment parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Conversation.Transcript.TranscriptSegment
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Conversation.Transcript.TranscriptSegment parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Conversation.Transcript.TranscriptSegment
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static Conversation.Transcript.TranscriptSegment parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Conversation.Transcript.TranscriptSegment
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Conversation.Transcript.TranscriptSegment parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Conversation.Transcript.TranscriptSegment
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Conversation.Transcript.TranscriptSegment parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Conversation.Transcript.TranscriptSegment
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Conversation.Transcript.TranscriptSegment parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Conversation.Transcript.TranscriptSegment
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Conversation.Transcript.TranscriptSegment parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Conversation.Transcript.TranscriptSegment
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Conversation.Transcript.TranscriptSegment parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Conversation.Transcript.TranscriptSegment
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Conversation.Transcript.TranscriptSegment parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Conversation.Transcript.TranscriptSegment
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Conversation.Transcript.TranscriptSegment parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Conversation.Transcript.TranscriptSegment
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
float

The confidence.

getDefaultInstanceForType()

public Conversation.Transcript.TranscriptSegment getDefaultInstanceForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for languageCode.

getMessageTime()

public Timestamp getMessageTime()

The time that the message occurred, if provided.

.google.protobuf.Timestamp message_time = 6;

Returns
TypeDescription
Timestamp

The messageTime.

getMessageTimeOrBuilder()

public TimestampOrBuilder getMessageTimeOrBuilder()

The time that the message occurred, if provided.

.google.protobuf.Timestamp message_time = 6;

Returns
TypeDescription
TimestampOrBuilder

getParserForType()

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

getSegmentParticipant()

public ConversationParticipant getSegmentParticipant()

The participant of this segment.

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

Returns
TypeDescription
ConversationParticipant

The segmentParticipant.

getSegmentParticipantOrBuilder()

public ConversationParticipantOrBuilder getSegmentParticipantOrBuilder()

The participant of this segment.

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

Returns
TypeDescription
ConversationParticipantOrBuilder

getSentiment()

public SentimentData getSentiment()

The sentiment for this transcript segment.

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

Returns
TypeDescription
SentimentData

The sentiment.

getSentimentOrBuilder()

public SentimentDataOrBuilder getSentimentOrBuilder()

The sentiment for this transcript segment.

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

Returns
TypeDescription
SentimentDataOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getText()

public String getText()

The text of this segment.

string text = 1;

Returns
TypeDescription
String

The text.

getTextBytes()

public ByteString getTextBytes()

The text of this segment.

string text = 1;

Returns
TypeDescription
ByteString

The bytes for text.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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

Whether the sentiment field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Conversation.Transcript.TranscriptSegment.Builder newBuilderForType()
Returns
TypeDescription
Conversation.Transcript.TranscriptSegment.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Conversation.Transcript.TranscriptSegment.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Conversation.Transcript.TranscriptSegment.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public Conversation.Transcript.TranscriptSegment.Builder toBuilder()
Returns
TypeDescription
Conversation.Transcript.TranscriptSegment.Builder

writeTo(CodedOutputStream output)

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