Class MultiSpeakerMarkup.Turn.Builder (2.54.0)

public static final class MultiSpeakerMarkup.Turn.Builder extends GeneratedMessageV3.Builder<MultiSpeakerMarkup.Turn.Builder> implements MultiSpeakerMarkup.TurnOrBuilder

A Multi-speaker turn.

Protobuf type google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.Turn

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public MultiSpeakerMarkup.Turn.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
MultiSpeakerMarkup.Turn.Builder
Overrides

build()

public MultiSpeakerMarkup.Turn build()
Returns
Type Description
MultiSpeakerMarkup.Turn

buildPartial()

public MultiSpeakerMarkup.Turn buildPartial()
Returns
Type Description
MultiSpeakerMarkup.Turn

clear()

public MultiSpeakerMarkup.Turn.Builder clear()
Returns
Type Description
MultiSpeakerMarkup.Turn.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public MultiSpeakerMarkup.Turn.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
MultiSpeakerMarkup.Turn.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public MultiSpeakerMarkup.Turn.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
MultiSpeakerMarkup.Turn.Builder
Overrides

clearSpeaker()

public MultiSpeakerMarkup.Turn.Builder clearSpeaker()

Required. The speaker of the turn, for example, 'O' or 'Q'. Please refer to documentation for available speakers.

string speaker = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
MultiSpeakerMarkup.Turn.Builder

This builder for chaining.

clearText()

public MultiSpeakerMarkup.Turn.Builder clearText()

Required. The text to speak.

string text = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
MultiSpeakerMarkup.Turn.Builder

This builder for chaining.

clone()

public MultiSpeakerMarkup.Turn.Builder clone()
Returns
Type Description
MultiSpeakerMarkup.Turn.Builder
Overrides

getDefaultInstanceForType()

public MultiSpeakerMarkup.Turn getDefaultInstanceForType()
Returns
Type Description
MultiSpeakerMarkup.Turn

getDescriptorForType()

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

getSpeaker()

public String getSpeaker()

Required. The speaker of the turn, for example, 'O' or 'Q'. Please refer to documentation for available speakers.

string speaker = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The speaker.

getSpeakerBytes()

public ByteString getSpeakerBytes()

Required. The speaker of the turn, for example, 'O' or 'Q'. Please refer to documentation for available speakers.

string speaker = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for speaker.

getText()

public String getText()

Required. The text to speak.

string text = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The text.

getTextBytes()

public ByteString getTextBytes()

Required. The text to speak.

string text = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for text.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(MultiSpeakerMarkup.Turn other)

public MultiSpeakerMarkup.Turn.Builder mergeFrom(MultiSpeakerMarkup.Turn other)
Parameter
Name Description
other MultiSpeakerMarkup.Turn
Returns
Type Description
MultiSpeakerMarkup.Turn.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public MultiSpeakerMarkup.Turn.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MultiSpeakerMarkup.Turn.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public MultiSpeakerMarkup.Turn.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
MultiSpeakerMarkup.Turn.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final MultiSpeakerMarkup.Turn.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
MultiSpeakerMarkup.Turn.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public MultiSpeakerMarkup.Turn.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
MultiSpeakerMarkup.Turn.Builder
Overrides

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

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

setSpeaker(String value)

public MultiSpeakerMarkup.Turn.Builder setSpeaker(String value)

Required. The speaker of the turn, for example, 'O' or 'Q'. Please refer to documentation for available speakers.

string speaker = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The speaker to set.

Returns
Type Description
MultiSpeakerMarkup.Turn.Builder

This builder for chaining.

setSpeakerBytes(ByteString value)

public MultiSpeakerMarkup.Turn.Builder setSpeakerBytes(ByteString value)

Required. The speaker of the turn, for example, 'O' or 'Q'. Please refer to documentation for available speakers.

string speaker = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for speaker to set.

Returns
Type Description
MultiSpeakerMarkup.Turn.Builder

This builder for chaining.

setText(String value)

public MultiSpeakerMarkup.Turn.Builder setText(String value)

Required. The text to speak.

string text = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The text to set.

Returns
Type Description
MultiSpeakerMarkup.Turn.Builder

This builder for chaining.

setTextBytes(ByteString value)

public MultiSpeakerMarkup.Turn.Builder setTextBytes(ByteString value)

Required. The text to speak.

string text = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for text to set.

Returns
Type Description
MultiSpeakerMarkup.Turn.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final MultiSpeakerMarkup.Turn.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
MultiSpeakerMarkup.Turn.Builder
Overrides