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
Static Fields
public static final int CHANNEL_TAG_FIELD_NUMBER
Field Value
public static final int CONFIDENCE_FIELD_NUMBER
Field Value
public static final int DIALOGFLOW_SEGMENT_METADATA_FIELD_NUMBER
Field Value
public static final int LANGUAGE_CODE_FIELD_NUMBER
Field Value
public static final int MESSAGE_TIME_FIELD_NUMBER
Field Value
public static final int SEGMENT_PARTICIPANT_FIELD_NUMBER
Field Value
public static final int SENTIMENT_FIELD_NUMBER
Field Value
TEXT_FIELD_NUMBER
public static final int TEXT_FIELD_NUMBER
Field Value
public static final int WORDS_FIELD_NUMBER
Field Value
Static Methods
public static Conversation.Transcript.TranscriptSegment getDefaultInstance()
Returns
public static final Descriptors.Descriptor getDescriptor()
Returns
public static Conversation.Transcript.TranscriptSegment.Builder newBuilder()
Returns
public static Conversation.Transcript.TranscriptSegment.Builder newBuilder(Conversation.Transcript.TranscriptSegment prototype)
Parameter
Returns
public static Conversation.Transcript.TranscriptSegment parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static Conversation.Transcript.TranscriptSegment parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Conversation.Transcript.TranscriptSegment parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
public static Conversation.Transcript.TranscriptSegment parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Conversation.Transcript.TranscriptSegment parseFrom(ByteString data)
Parameter
Returns
Exceptions
public static Conversation.Transcript.TranscriptSegment parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Conversation.Transcript.TranscriptSegment parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static Conversation.Transcript.TranscriptSegment parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Conversation.Transcript.TranscriptSegment parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static Conversation.Transcript.TranscriptSegment parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Conversation.Transcript.TranscriptSegment parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
public static Conversation.Transcript.TranscriptSegment parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Parser<Conversation.Transcript.TranscriptSegment> parser()
Returns
Methods
public boolean equals(Object obj)
Parameter
Returns
Overrides
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.
|
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.
|
public Conversation.Transcript.TranscriptSegment getDefaultInstanceForType()
Returns
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
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
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.
|
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.
|
public Timestamp getMessageTime()
The time that the message occurred, if provided.
.google.protobuf.Timestamp message_time = 6;
Returns
public TimestampOrBuilder getMessageTimeOrBuilder()
The time that the message occurred, if provided.
.google.protobuf.Timestamp message_time = 6;
Returns
public Parser<Conversation.Transcript.TranscriptSegment> getParserForType()
Returns
Overrides
public ConversationParticipant getSegmentParticipant()
The participant of this segment.
.google.cloud.contactcenterinsights.v1.ConversationParticipant segment_participant = 9;
Returns
public ConversationParticipantOrBuilder getSegmentParticipantOrBuilder()
The participant of this segment.
.google.cloud.contactcenterinsights.v1.ConversationParticipant segment_participant = 9;
Returns
public SentimentData getSentiment()
The sentiment for this transcript segment.
.google.cloud.contactcenterinsights.v1.SentimentData sentiment = 11;
Returns
public SentimentDataOrBuilder getSentimentOrBuilder()
The sentiment for this transcript segment.
.google.cloud.contactcenterinsights.v1.SentimentData sentiment = 11;
Returns
public int getSerializedSize()
Returns
Overrides
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
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
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
Returns
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
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
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
Returns
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> | |
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.
|
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.
|
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.
|
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.
|
Returns
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public Conversation.Transcript.TranscriptSegment.Builder newBuilderForType()
Returns
protected Conversation.Transcript.TranscriptSegment.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public Conversation.Transcript.TranscriptSegment.Builder toBuilder()
Returns
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions