Class Conversation.Transcript.TranscriptSegment.Builder (2.19.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.contactcenterinsights.v1.Conversation.Transcript.TranscriptSegment.WordInfo>
Returns
TypeDescription
Conversation.Transcript.TranscriptSegment.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Conversation.Transcript.TranscriptSegment.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueConversation.Transcript.TranscriptSegment.WordInfo
Returns
TypeDescription
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
NameDescription
builderForValueConversation.Transcript.TranscriptSegment.WordInfo.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueConversation.Transcript.TranscriptSegment.WordInfo
Returns
TypeDescription
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
NameDescription
indexint
builderForValueConversation.Transcript.TranscriptSegment.WordInfo.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Conversation.Transcript.TranscriptSegment.WordInfo.Builder

build()

public Conversation.Transcript.TranscriptSegment build()
Returns
TypeDescription
Conversation.Transcript.TranscriptSegment

buildPartial()

public Conversation.Transcript.TranscriptSegment buildPartial()
Returns
TypeDescription
Conversation.Transcript.TranscriptSegment

clear()

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

clearField(Descriptors.FieldDescriptor field)

public Conversation.Transcript.TranscriptSegment.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
Conversation.Transcript.TranscriptSegment.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public Conversation.Transcript.TranscriptSegment.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
Conversation.Transcript.TranscriptSegment.Builder

clearText()

public Conversation.Transcript.TranscriptSegment.Builder clearText()

The text of this segment.

string text = 1;

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

clone()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
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.

getMessageTimeBuilder()

public Timestamp.Builder getMessageTimeBuilder()

The time that the message occurred, if provided.

.google.protobuf.Timestamp message_time = 6;

Returns
TypeDescription
Builder

getMessageTimeOrBuilder()

public TimestampOrBuilder getMessageTimeOrBuilder()

The time that the message occurred, if provided.

.google.protobuf.Timestamp message_time = 6;

Returns
TypeDescription
TimestampOrBuilder

getSegmentParticipant()

public ConversationParticipant getSegmentParticipant()

The participant of this segment.

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

Returns
TypeDescription
ConversationParticipant

The segmentParticipant.

getSegmentParticipantBuilder()

public ConversationParticipant.Builder getSegmentParticipantBuilder()

The participant of this segment.

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

Returns
TypeDescription
ConversationParticipant.Builder

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.

getSentimentBuilder()

public SentimentData.Builder getSentimentBuilder()

The sentiment for this transcript segment.

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

Returns
TypeDescription
SentimentData.Builder

getSentimentOrBuilder()

public SentimentDataOrBuilder getSentimentOrBuilder()

The sentiment for this transcript segment.

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

Returns
TypeDescription
SentimentDataOrBuilder

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.

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

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueConversation.Transcript.TranscriptSegment.DialogflowSegmentMetadata
Returns
TypeDescription
Conversation.Transcript.TranscriptSegment.Builder

mergeFrom(Conversation.Transcript.TranscriptSegment other)

public Conversation.Transcript.TranscriptSegment.Builder mergeFrom(Conversation.Transcript.TranscriptSegment other)
Parameter
NameDescription
otherConversation.Transcript.TranscriptSegment
Returns
TypeDescription
Conversation.Transcript.TranscriptSegment.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public Conversation.Transcript.TranscriptSegment.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
valueConversationParticipant
Returns
TypeDescription
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
NameDescription
valueSentimentData
Returns
TypeDescription
Conversation.Transcript.TranscriptSegment.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Conversation.Transcript.TranscriptSegment.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueint

The channelTag to set.

Returns
TypeDescription
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
NameDescription
valuefloat

The confidence to set.

Returns
TypeDescription
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
NameDescription
valueConversation.Transcript.TranscriptSegment.DialogflowSegmentMetadata
Returns
TypeDescription
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
NameDescription
builderForValueConversation.Transcript.TranscriptSegment.DialogflowSegmentMetadata.Builder
Returns
TypeDescription
Conversation.Transcript.TranscriptSegment.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Conversation.Transcript.TranscriptSegment.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The languageCode to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for languageCode to set.

Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueConversationParticipant
Returns
TypeDescription
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
NameDescription
builderForValueConversationParticipant.Builder
Returns
TypeDescription
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
NameDescription
valueSentimentData
Returns
TypeDescription
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
NameDescription
builderForValueSentimentData.Builder
Returns
TypeDescription
Conversation.Transcript.TranscriptSegment.Builder

setText(String value)

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

The text of this segment.

string text = 1;

Parameter
NameDescription
valueString

The text to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for text to set.

Returns
TypeDescription
Conversation.Transcript.TranscriptSegment.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Conversation.Transcript.TranscriptSegment.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
valueConversation.Transcript.TranscriptSegment.WordInfo
Returns
TypeDescription
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
NameDescription
indexint
builderForValueConversation.Transcript.TranscriptSegment.WordInfo.Builder
Returns
TypeDescription
Conversation.Transcript.TranscriptSegment.Builder