Class Conversation.Transcript.TranscriptSegment
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.contactcenterinsights.v1.Conversation.Transcript.TranscriptSegment
- All Implemented Interfaces:
Conversation.Transcript.TranscriptSegmentOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
- Enclosing class:
- Conversation.Transcript
public static final class Conversation.Transcript.TranscriptSegment
extends com.google.protobuf.GeneratedMessage
implements Conversation.Transcript.TranscriptSegmentOrBuilder
A segment of a full transcript.Protobuf type
google.cloud.contactcenterinsights.v1.Conversation.Transcript.TranscriptSegment- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA segment of a full transcript.static final classMetadata from Dialogflow relating to the current transcript segment.static interfacestatic final classWord-level info for words in a transcript.static interfaceNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanintFor conversations derived from multi-channel audio, this is the channel number corresponding to the audio from that channel.floatA confidence estimate between 0.0 and 1.0 of the fidelity of this segment.static final com.google.protobuf.Descriptors.DescriptorCCAI metadata relating to the current transcript segment.CCAI metadata relating to the current transcript segment.The language code of this segment as a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.com.google.protobuf.ByteStringThe language code of this segment as a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.com.google.protobuf.TimestampThe time that the message occurred, if provided.com.google.protobuf.TimestampOrBuilderThe time that the message occurred, if provided.com.google.protobuf.Parser<Conversation.Transcript.TranscriptSegment>The participant of this segment.The participant of this segment.The sentiment for this transcript segment.The sentiment for this transcript segment.intgetText()The text of this segment.com.google.protobuf.ByteStringThe text of this segment.getWords(int index) A list of the word-specific information for each word in the segment.intA list of the word-specific information for each word in the segment.A list of the word-specific information for each word in the segment.getWordsOrBuilder(int index) A list of the word-specific information for each word in the segment.A list of the word-specific information for each word in the segment.booleanCCAI metadata relating to the current transcript segment.inthashCode()booleanThe time that the message occurred, if provided.booleanThe participant of this segment.booleanThe sentiment for this transcript segment.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) parseDelimitedFrom(InputStream input) parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(byte[] data) parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.ByteString data) parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.CodedInputStream input) parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(InputStream input) parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(ByteBuffer data) parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Conversation.Transcript.TranscriptSegment>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
MESSAGE_TIME_FIELD_NUMBER
public static final int MESSAGE_TIME_FIELD_NUMBER- See Also:
-
TEXT_FIELD_NUMBER
public static final int TEXT_FIELD_NUMBER- See Also:
-
CONFIDENCE_FIELD_NUMBER
public static final int CONFIDENCE_FIELD_NUMBER- See Also:
-
WORDS_FIELD_NUMBER
public static final int WORDS_FIELD_NUMBER- See Also:
-
LANGUAGE_CODE_FIELD_NUMBER
public static final int LANGUAGE_CODE_FIELD_NUMBER- See Also:
-
CHANNEL_TAG_FIELD_NUMBER
public static final int CHANNEL_TAG_FIELD_NUMBER- See Also:
-
SEGMENT_PARTICIPANT_FIELD_NUMBER
public static final int SEGMENT_PARTICIPANT_FIELD_NUMBER- See Also:
-
DIALOGFLOW_SEGMENT_METADATA_FIELD_NUMBER
public static final int DIALOGFLOW_SEGMENT_METADATA_FIELD_NUMBER- See Also:
-
SENTIMENT_FIELD_NUMBER
public static final int SENTIMENT_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
hasMessageTime
public boolean hasMessageTime()The time that the message occurred, if provided.
.google.protobuf.Timestamp message_time = 6;- Specified by:
hasMessageTimein interfaceConversation.Transcript.TranscriptSegmentOrBuilder- Returns:
- Whether the messageTime field is set.
-
getMessageTime
public com.google.protobuf.Timestamp getMessageTime()The time that the message occurred, if provided.
.google.protobuf.Timestamp message_time = 6;- Specified by:
getMessageTimein interfaceConversation.Transcript.TranscriptSegmentOrBuilder- Returns:
- The messageTime.
-
getMessageTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getMessageTimeOrBuilder()The time that the message occurred, if provided.
.google.protobuf.Timestamp message_time = 6;- Specified by:
getMessageTimeOrBuilderin interfaceConversation.Transcript.TranscriptSegmentOrBuilder
-
getText
The text of this segment.
string text = 1;- Specified by:
getTextin interfaceConversation.Transcript.TranscriptSegmentOrBuilder- Returns:
- The text.
-
getTextBytes
public com.google.protobuf.ByteString getTextBytes()The text of this segment.
string text = 1;- Specified by:
getTextBytesin interfaceConversation.Transcript.TranscriptSegmentOrBuilder- Returns:
- The bytes for text.
-
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;- Specified by:
getConfidencein interfaceConversation.Transcript.TranscriptSegmentOrBuilder- Returns:
- The confidence.
-
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;- Specified by:
getWordsListin interfaceConversation.Transcript.TranscriptSegmentOrBuilder
-
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;- Specified by:
getWordsOrBuilderListin interfaceConversation.Transcript.TranscriptSegmentOrBuilder
-
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;- Specified by:
getWordsCountin interfaceConversation.Transcript.TranscriptSegmentOrBuilder
-
getWords
A list of the word-specific information for each word in the segment.
repeated .google.cloud.contactcenterinsights.v1.Conversation.Transcript.TranscriptSegment.WordInfo words = 3;- Specified by:
getWordsin interfaceConversation.Transcript.TranscriptSegmentOrBuilder
-
getWordsOrBuilder
A list of the word-specific information for each word in the segment.
repeated .google.cloud.contactcenterinsights.v1.Conversation.Transcript.TranscriptSegment.WordInfo words = 3;- Specified by:
getWordsOrBuilderin interfaceConversation.Transcript.TranscriptSegmentOrBuilder
-
getLanguageCode
The language code of this segment as a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. Example: "en-US".
string language_code = 4;- Specified by:
getLanguageCodein interfaceConversation.Transcript.TranscriptSegmentOrBuilder- Returns:
- The languageCode.
-
getLanguageCodeBytes
public com.google.protobuf.ByteString getLanguageCodeBytes()The language code of this segment as a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. Example: "en-US".
string language_code = 4;- Specified by:
getLanguageCodeBytesin interfaceConversation.Transcript.TranscriptSegmentOrBuilder- Returns:
- The bytes for languageCode.
-
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;- Specified by:
getChannelTagin interfaceConversation.Transcript.TranscriptSegmentOrBuilder- Returns:
- The channelTag.
-
hasSegmentParticipant
public boolean hasSegmentParticipant()The participant of this segment.
.google.cloud.contactcenterinsights.v1.ConversationParticipant segment_participant = 9;- Specified by:
hasSegmentParticipantin interfaceConversation.Transcript.TranscriptSegmentOrBuilder- Returns:
- Whether the segmentParticipant field is set.
-
getSegmentParticipant
The participant of this segment.
.google.cloud.contactcenterinsights.v1.ConversationParticipant segment_participant = 9;- Specified by:
getSegmentParticipantin interfaceConversation.Transcript.TranscriptSegmentOrBuilder- Returns:
- The segmentParticipant.
-
getSegmentParticipantOrBuilder
The participant of this segment.
.google.cloud.contactcenterinsights.v1.ConversationParticipant segment_participant = 9;- Specified by:
getSegmentParticipantOrBuilderin interfaceConversation.Transcript.TranscriptSegmentOrBuilder
-
hasDialogflowSegmentMetadata
public boolean hasDialogflowSegmentMetadata()CCAI metadata relating to the current transcript segment.
.google.cloud.contactcenterinsights.v1.Conversation.Transcript.TranscriptSegment.DialogflowSegmentMetadata dialogflow_segment_metadata = 10;- Specified by:
hasDialogflowSegmentMetadatain interfaceConversation.Transcript.TranscriptSegmentOrBuilder- Returns:
- Whether the dialogflowSegmentMetadata field is set.
-
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;- Specified by:
getDialogflowSegmentMetadatain interfaceConversation.Transcript.TranscriptSegmentOrBuilder- Returns:
- 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;- Specified by:
getDialogflowSegmentMetadataOrBuilderin interfaceConversation.Transcript.TranscriptSegmentOrBuilder
-
hasSentiment
public boolean hasSentiment()The sentiment for this transcript segment.
.google.cloud.contactcenterinsights.v1.SentimentData sentiment = 11;- Specified by:
hasSentimentin interfaceConversation.Transcript.TranscriptSegmentOrBuilder- Returns:
- Whether the sentiment field is set.
-
getSentiment
The sentiment for this transcript segment.
.google.cloud.contactcenterinsights.v1.SentimentData sentiment = 11;- Specified by:
getSentimentin interfaceConversation.Transcript.TranscriptSegmentOrBuilder- Returns:
- The sentiment.
-
getSentimentOrBuilder
The sentiment for this transcript segment.
.google.cloud.contactcenterinsights.v1.SentimentData sentiment = 11;- Specified by:
getSentimentOrBuilderin interfaceConversation.Transcript.TranscriptSegmentOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Conversation.Transcript.TranscriptSegment parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Conversation.Transcript.TranscriptSegment parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Conversation.Transcript.TranscriptSegment parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Conversation.Transcript.TranscriptSegment parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Conversation.Transcript.TranscriptSegment parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Conversation.Transcript.TranscriptSegment parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Conversation.Transcript.TranscriptSegment parseFrom(InputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static Conversation.Transcript.TranscriptSegment parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static Conversation.Transcript.TranscriptSegment parseDelimitedFrom(InputStream input) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static Conversation.Transcript.TranscriptSegment parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static Conversation.Transcript.TranscriptSegment parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static Conversation.Transcript.TranscriptSegment parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
public static Conversation.Transcript.TranscriptSegment.Builder newBuilder(Conversation.Transcript.TranscriptSegment prototype) -
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Conversation.Transcript.TranscriptSegment.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-