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

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

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>

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

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;

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

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;

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

build()

public Conversation.Transcript.TranscriptSegment build()

buildPartial()

public Conversation.Transcript.TranscriptSegment buildPartial()

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public Conversation.Transcript.TranscriptSegment.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Overrides

clearSegmentParticipant()

public Conversation.Transcript.TranscriptSegment.Builder clearSegmentParticipant()

The participant of this segment.

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

clearSentiment()

public Conversation.Transcript.TranscriptSegment.Builder clearSentiment()

The sentiment for this transcript segment.

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

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;

clone()

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

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;

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;

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

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

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

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;

mergeFrom(Conversation.Transcript.TranscriptSegment other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

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

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

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;

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;

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

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

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

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

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

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