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