Class Transcription.Builder (3.88.0)

public static final class Transcription.Builder extends GeneratedMessage.Builder<Transcription.Builder> implements TranscriptionOrBuilder

Audio transcription in Server Content.

Protobuf type google.cloud.aiplatform.v1.Transcription

Static Methods

getDescriptor()

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

Methods

build()

public Transcription build()
Returns
Type Description
Transcription

buildPartial()

public Transcription buildPartial()
Returns
Type Description
Transcription

clear()

public Transcription.Builder clear()
Returns
Type Description
Transcription.Builder
Overrides

clearFinished()

public Transcription.Builder clearFinished()

Optional. The bool indicates the end of the transcription.

bool finished = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Transcription.Builder

This builder for chaining.

clearText()

public Transcription.Builder clearText()

Optional. Transcription text.

string text = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Transcription.Builder

This builder for chaining.

getDefaultInstanceForType()

public Transcription getDefaultInstanceForType()
Returns
Type Description
Transcription

getDescriptorForType()

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

getFinished()

public boolean getFinished()

Optional. The bool indicates the end of the transcription.

bool finished = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The finished.

getText()

public String getText()

Optional. Transcription text.

string text = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The text.

getTextBytes()

public ByteString getTextBytes()

Optional. Transcription text.

string text = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for text.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Transcription other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setFinished(boolean value)

public Transcription.Builder setFinished(boolean value)

Optional. The bool indicates the end of the transcription.

bool finished = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The finished to set.

Returns
Type Description
Transcription.Builder

This builder for chaining.

setText(String value)

public Transcription.Builder setText(String value)

Optional. Transcription text.

string text = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The text to set.

Returns
Type Description
Transcription.Builder

This builder for chaining.

setTextBytes(ByteString value)

public Transcription.Builder setTextBytes(ByteString value)

Optional. Transcription text.

string text = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for text to set.

Returns
Type Description
Transcription.Builder

This builder for chaining.