Class Conversation.Transcript.TranscriptSegment.Builder (2.45.0)

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

A segment of a full transcript.

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

Static Methods

getDescriptor()

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

Methods

addAllWords(Iterable<? extends Conversation.Transcript.TranscriptSegment.WordInfo> values)

public Conversation.Transcript.TranscriptSegment.Builder addAllWords(Iterable<? extends Conversation.Transcript.TranscriptSegment.WordInfo> values)

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
values Iterable<? extends com.google.cloud.contactcenterinsights.v1.Conversation.Transcript.TranscriptSegment.WordInfo>
Returns
Type Description
Conversation.Transcript.TranscriptSegment.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Conversation.Transcript.TranscriptSegment.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Conversation.Transcript.TranscriptSegment.Builder
Overrides

addWords(Conversation.Transcript.TranscriptSegment.WordInfo value)

public Conversation.Transcript.TranscriptSegment.Builder addWords(Conversation.Transcript.TranscriptSegment.WordInfo value)

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
value Conversation.Transcript.TranscriptSegment.WordInfo
Returns
Type Description
Conversation.Transcript.TranscriptSegment.Builder

addWords(Conversation.Transcript.TranscriptSegment.WordInfo.Builder builderForValue)

public Conversation.Transcript.TranscriptSegment.Builder addWords(Conversation.Transcript.TranscriptSegment.WordInfo.Builder builderForValue)

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
builderForValue Conversation.Transcript.TranscriptSegment.WordInfo.Builder
Returns
Type Description
Conversation.Transcript.TranscriptSegment.Builder

addWords(int index, Conversation.Transcript.TranscriptSegment.WordInfo value)

public Conversation.Transcript.TranscriptSegment.Builder addWords(int index, Conversation.Transcript.TranscriptSegment.WordInfo value)

A list of the word-specific information for each word in the segment.

repeated .google.cloud.contactcenterinsights.v1.Conversation.Transcript.TranscriptSegment.WordInfo words = 3;

Parameters
Name Description
index int
value Conversation.Transcript.TranscriptSegment.WordInfo
Returns
Type Description
Conversation.Transcript.TranscriptSegment.Builder

addWords(int index, Conversation.Transcript.TranscriptSegment.WordInfo.Builder builderForValue)

public Conversation.Transcript.TranscriptSegment.Builder addWords(int index, Conversation.Transcript.TranscriptSegment.WordInfo.Builder builderForValue)

A list of the word-specific information for each word in the segment.

repeated .google.cloud.contactcenterinsights.v1.Conversation.Transcript.TranscriptSegment.WordInfo words = 3;

Parameters
Name Description
index int
builderForValue Conversation.Transcript.TranscriptSegment.WordInfo.Builder
Returns
Type Description
Conversation.Transcript.TranscriptSegment.Builder

addWordsBuilder()

public Conversation.Transcript.TranscriptSegment.WordInfo.Builder addWordsBuilder()

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
Conversation.Transcript.TranscriptSegment.WordInfo.Builder

addWordsBuilder(int index)

public Conversation.Transcript.TranscriptSegment.WordInfo.Builder addWordsBuilder(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.Builder

build()

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

buildPartial()

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

clear()

public Conversation.Transcript.TranscriptSegment.Builder clear()
Returns
Type Description
Conversation.Transcript.TranscriptSegment.Builder
Overrides

clearChannelTag()

public Conversation.Transcript.TranscriptSegment.Builder clearChannelTag()

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
Conversation.Transcript.TranscriptSegment.Builder

This builder for chaining.

clearConfidence()

public Conversation.Transcript.TranscriptSegment.Builder clearConfidence()

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
Conversation.Transcript.TranscriptSegment.Builder

This builder for chaining.

clearDialogflowSegmentMetadata()

public Conversation.Transcript.TranscriptSegment.Builder clearDialogflowSegmentMetadata()

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

clearField(Descriptors.FieldDescriptor field)

public Conversation.Transcript.TranscriptSegment.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Conversation.Transcript.TranscriptSegment.Builder
Overrides

clearLanguageCode()

public Conversation.Transcript.TranscriptSegment.Builder clearLanguageCode()

The language code of this segment as a BCP-47 language tag. Example: "en-US".

string language_code = 4;

Returns
Type Description
Conversation.Transcript.TranscriptSegment.Builder

This builder for chaining.

clearMessageTime()

public Conversation.Transcript.TranscriptSegment.Builder clearMessageTime()

The time that the message occurred, if provided.

.google.protobuf.Timestamp message_time = 6;

Returns
Type Description
Conversation.Transcript.TranscriptSegment.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public Conversation.Transcript.TranscriptSegment.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Conversation.Transcript.TranscriptSegment.Builder
Overrides

clearSegmentParticipant()

public Conversation.Transcript.TranscriptSegment.Builder clearSegmentParticipant()

The participant of this segment.

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

Returns
Type Description
Conversation.Transcript.TranscriptSegment.Builder

clearSentiment()

public Conversation.Transcript.TranscriptSegment.Builder clearSentiment()

The sentiment for this transcript segment.

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

Returns
Type Description
Conversation.Transcript.TranscriptSegment.Builder

clearText()

public Conversation.Transcript.TranscriptSegment.Builder clearText()

The text of this segment.

string text = 1;

Returns
Type Description
Conversation.Transcript.TranscriptSegment.Builder

This builder for chaining.

clearWords()

public Conversation.Transcript.TranscriptSegment.Builder clearWords()

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
Conversation.Transcript.TranscriptSegment.Builder

clone()

public Conversation.Transcript.TranscriptSegment.Builder clone()
Returns
Type Description
Conversation.Transcript.TranscriptSegment.Builder
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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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.

getDialogflowSegmentMetadataBuilder()

public Conversation.Transcript.TranscriptSegment.DialogflowSegmentMetadata.Builder getDialogflowSegmentMetadataBuilder()

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

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.

getMessageTimeBuilder()

public Timestamp.Builder getMessageTimeBuilder()

The time that the message occurred, if provided.

.google.protobuf.Timestamp message_time = 6;

Returns
Type Description
Builder

getMessageTimeOrBuilder()

public TimestampOrBuilder getMessageTimeOrBuilder()

The time that the message occurred, if provided.

.google.protobuf.Timestamp message_time = 6;

Returns
Type Description
TimestampOrBuilder

getSegmentParticipant()

public ConversationParticipant getSegmentParticipant()

The participant of this segment.

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

Returns
Type Description
ConversationParticipant

The segmentParticipant.

getSegmentParticipantBuilder()

public ConversationParticipant.Builder getSegmentParticipantBuilder()

The participant of this segment.

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

Returns
Type Description
ConversationParticipant.Builder

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.

getSentimentBuilder()

public SentimentData.Builder getSentimentBuilder()

The sentiment for this transcript segment.

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

Returns
Type Description
SentimentData.Builder

getSentimentOrBuilder()

public SentimentDataOrBuilder getSentimentOrBuilder()

The sentiment for this transcript segment.

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

Returns
Type Description
SentimentDataOrBuilder

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

getWordsBuilder(int index)

public Conversation.Transcript.TranscriptSegment.WordInfo.Builder getWordsBuilder(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.Builder

getWordsBuilderList()

public List<Conversation.Transcript.TranscriptSegment.WordInfo.Builder> getWordsBuilderList()

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<Builder>

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDialogflowSegmentMetadata(Conversation.Transcript.TranscriptSegment.DialogflowSegmentMetadata value)

public Conversation.Transcript.TranscriptSegment.Builder mergeDialogflowSegmentMetadata(Conversation.Transcript.TranscriptSegment.DialogflowSegmentMetadata value)

CCAI metadata relating to the current transcript segment.

.google.cloud.contactcenterinsights.v1.Conversation.Transcript.TranscriptSegment.DialogflowSegmentMetadata dialogflow_segment_metadata = 10;

Parameter
Name Description
value Conversation.Transcript.TranscriptSegment.DialogflowSegmentMetadata
Returns
Type Description
Conversation.Transcript.TranscriptSegment.Builder

mergeFrom(Conversation.Transcript.TranscriptSegment other)

public Conversation.Transcript.TranscriptSegment.Builder mergeFrom(Conversation.Transcript.TranscriptSegment other)
Parameter
Name Description
other Conversation.Transcript.TranscriptSegment
Returns
Type Description
Conversation.Transcript.TranscriptSegment.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Conversation.Transcript.TranscriptSegment.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Conversation.Transcript.TranscriptSegment.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Conversation.Transcript.TranscriptSegment.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Conversation.Transcript.TranscriptSegment.Builder
Overrides

mergeMessageTime(Timestamp value)

public Conversation.Transcript.TranscriptSegment.Builder mergeMessageTime(Timestamp value)

The time that the message occurred, if provided.

.google.protobuf.Timestamp message_time = 6;

Parameter
Name Description
value Timestamp
Returns
Type Description
Conversation.Transcript.TranscriptSegment.Builder

mergeSegmentParticipant(ConversationParticipant value)

public Conversation.Transcript.TranscriptSegment.Builder mergeSegmentParticipant(ConversationParticipant value)

The participant of this segment.

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

Parameter
Name Description
value ConversationParticipant
Returns
Type Description
Conversation.Transcript.TranscriptSegment.Builder

mergeSentiment(SentimentData value)

public Conversation.Transcript.TranscriptSegment.Builder mergeSentiment(SentimentData value)

The sentiment for this transcript segment.

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

Parameter
Name Description
value SentimentData
Returns
Type Description
Conversation.Transcript.TranscriptSegment.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Conversation.Transcript.TranscriptSegment.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Conversation.Transcript.TranscriptSegment.Builder
Overrides

removeWords(int index)

public Conversation.Transcript.TranscriptSegment.Builder removeWords(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.Builder

setChannelTag(int value)

public Conversation.Transcript.TranscriptSegment.Builder setChannelTag(int value)

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;

Parameter
Name Description
value int

The channelTag to set.

Returns
Type Description
Conversation.Transcript.TranscriptSegment.Builder

This builder for chaining.

setConfidence(float value)

public Conversation.Transcript.TranscriptSegment.Builder setConfidence(float value)

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;

Parameter
Name Description
value float

The confidence to set.

Returns
Type Description
Conversation.Transcript.TranscriptSegment.Builder

This builder for chaining.

setDialogflowSegmentMetadata(Conversation.Transcript.TranscriptSegment.DialogflowSegmentMetadata value)

public Conversation.Transcript.TranscriptSegment.Builder setDialogflowSegmentMetadata(Conversation.Transcript.TranscriptSegment.DialogflowSegmentMetadata value)

CCAI metadata relating to the current transcript segment.

.google.cloud.contactcenterinsights.v1.Conversation.Transcript.TranscriptSegment.DialogflowSegmentMetadata dialogflow_segment_metadata = 10;

Parameter
Name Description
value Conversation.Transcript.TranscriptSegment.DialogflowSegmentMetadata
Returns
Type Description
Conversation.Transcript.TranscriptSegment.Builder

setDialogflowSegmentMetadata(Conversation.Transcript.TranscriptSegment.DialogflowSegmentMetadata.Builder builderForValue)

public Conversation.Transcript.TranscriptSegment.Builder setDialogflowSegmentMetadata(Conversation.Transcript.TranscriptSegment.DialogflowSegmentMetadata.Builder builderForValue)

CCAI metadata relating to the current transcript segment.

.google.cloud.contactcenterinsights.v1.Conversation.Transcript.TranscriptSegment.DialogflowSegmentMetadata dialogflow_segment_metadata = 10;

Parameter
Name Description
builderForValue Conversation.Transcript.TranscriptSegment.DialogflowSegmentMetadata.Builder
Returns
Type Description
Conversation.Transcript.TranscriptSegment.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Conversation.Transcript.TranscriptSegment.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Conversation.Transcript.TranscriptSegment.Builder
Overrides

setLanguageCode(String value)

public Conversation.Transcript.TranscriptSegment.Builder setLanguageCode(String value)

The language code of this segment as a BCP-47 language tag. Example: "en-US".

string language_code = 4;

Parameter
Name Description
value String

The languageCode to set.

Returns
Type Description
Conversation.Transcript.TranscriptSegment.Builder

This builder for chaining.

setLanguageCodeBytes(ByteString value)

public Conversation.Transcript.TranscriptSegment.Builder setLanguageCodeBytes(ByteString value)

The language code of this segment as a BCP-47 language tag. Example: "en-US".

string language_code = 4;

Parameter
Name Description
value ByteString

The bytes for languageCode to set.

Returns
Type Description
Conversation.Transcript.TranscriptSegment.Builder

This builder for chaining.

setMessageTime(Timestamp value)

public Conversation.Transcript.TranscriptSegment.Builder setMessageTime(Timestamp value)

The time that the message occurred, if provided.

.google.protobuf.Timestamp message_time = 6;

Parameter
Name Description
value Timestamp
Returns
Type Description
Conversation.Transcript.TranscriptSegment.Builder

setMessageTime(Timestamp.Builder builderForValue)

public Conversation.Transcript.TranscriptSegment.Builder setMessageTime(Timestamp.Builder builderForValue)

The time that the message occurred, if provided.

.google.protobuf.Timestamp message_time = 6;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Conversation.Transcript.TranscriptSegment.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Conversation.Transcript.TranscriptSegment.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Conversation.Transcript.TranscriptSegment.Builder
Overrides

setSegmentParticipant(ConversationParticipant value)

public Conversation.Transcript.TranscriptSegment.Builder setSegmentParticipant(ConversationParticipant value)

The participant of this segment.

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

Parameter
Name Description
value ConversationParticipant
Returns
Type Description
Conversation.Transcript.TranscriptSegment.Builder

setSegmentParticipant(ConversationParticipant.Builder builderForValue)

public Conversation.Transcript.TranscriptSegment.Builder setSegmentParticipant(ConversationParticipant.Builder builderForValue)

The participant of this segment.

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

Parameter
Name Description
builderForValue ConversationParticipant.Builder
Returns
Type Description
Conversation.Transcript.TranscriptSegment.Builder

setSentiment(SentimentData value)

public Conversation.Transcript.TranscriptSegment.Builder setSentiment(SentimentData value)

The sentiment for this transcript segment.

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

Parameter
Name Description
value SentimentData
Returns
Type Description
Conversation.Transcript.TranscriptSegment.Builder

setSentiment(SentimentData.Builder builderForValue)

public Conversation.Transcript.TranscriptSegment.Builder setSentiment(SentimentData.Builder builderForValue)

The sentiment for this transcript segment.

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

Parameter
Name Description
builderForValue SentimentData.Builder
Returns
Type Description
Conversation.Transcript.TranscriptSegment.Builder

setText(String value)

public Conversation.Transcript.TranscriptSegment.Builder setText(String value)

The text of this segment.

string text = 1;

Parameter
Name Description
value String

The text to set.

Returns
Type Description
Conversation.Transcript.TranscriptSegment.Builder

This builder for chaining.

setTextBytes(ByteString value)

public Conversation.Transcript.TranscriptSegment.Builder setTextBytes(ByteString value)

The text of this segment.

string text = 1;

Parameter
Name Description
value ByteString

The bytes for text to set.

Returns
Type Description
Conversation.Transcript.TranscriptSegment.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Conversation.Transcript.TranscriptSegment.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Conversation.Transcript.TranscriptSegment.Builder
Overrides

setWords(int index, Conversation.Transcript.TranscriptSegment.WordInfo value)

public Conversation.Transcript.TranscriptSegment.Builder setWords(int index, Conversation.Transcript.TranscriptSegment.WordInfo value)

A list of the word-specific information for each word in the segment.

repeated .google.cloud.contactcenterinsights.v1.Conversation.Transcript.TranscriptSegment.WordInfo words = 3;

Parameters
Name Description
index int
value Conversation.Transcript.TranscriptSegment.WordInfo
Returns
Type Description
Conversation.Transcript.TranscriptSegment.Builder

setWords(int index, Conversation.Transcript.TranscriptSegment.WordInfo.Builder builderForValue)

public Conversation.Transcript.TranscriptSegment.Builder setWords(int index, Conversation.Transcript.TranscriptSegment.WordInfo.Builder builderForValue)

A list of the word-specific information for each word in the segment.

repeated .google.cloud.contactcenterinsights.v1.Conversation.Transcript.TranscriptSegment.WordInfo words = 3;

Parameters
Name Description
index int
builderForValue Conversation.Transcript.TranscriptSegment.WordInfo.Builder
Returns
Type Description
Conversation.Transcript.TranscriptSegment.Builder