Class OutputFormatConfig.Builder (4.78.0)

public static final class OutputFormatConfig.Builder extends GeneratedMessage.Builder<OutputFormatConfig.Builder> implements OutputFormatConfigOrBuilder

Configuration for the format of the results stored to output.

Protobuf type google.cloud.speech.v2.OutputFormatConfig

Static Methods

getDescriptor()

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

Methods

build()

public OutputFormatConfig build()
Returns
Type Description
OutputFormatConfig

buildPartial()

public OutputFormatConfig buildPartial()
Returns
Type Description
OutputFormatConfig

clear()

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

clearNative()

public OutputFormatConfig.Builder clearNative()

Configuration for the native output format. If this field is set or if no other output format field is set, then transcripts will be written to the sink in the native format.

.google.cloud.speech.v2.NativeOutputFileFormatConfig native = 1;

Returns
Type Description
OutputFormatConfig.Builder

clearSrt()

public OutputFormatConfig.Builder clearSrt()

Configuration for the SRT output format. If this field is set, then transcripts will be written to the sink in the SRT format.

.google.cloud.speech.v2.SrtOutputFileFormatConfig srt = 3;

Returns
Type Description
OutputFormatConfig.Builder

clearVtt()

public OutputFormatConfig.Builder clearVtt()

Configuration for the VTT output format. If this field is set, then transcripts will be written to the sink in the VTT format.

.google.cloud.speech.v2.VttOutputFileFormatConfig vtt = 2;

Returns
Type Description
OutputFormatConfig.Builder

getDefaultInstanceForType()

public OutputFormatConfig getDefaultInstanceForType()
Returns
Type Description
OutputFormatConfig

getDescriptorForType()

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

getNative()

public NativeOutputFileFormatConfig getNative()

Configuration for the native output format. If this field is set or if no other output format field is set, then transcripts will be written to the sink in the native format.

.google.cloud.speech.v2.NativeOutputFileFormatConfig native = 1;

Returns
Type Description
NativeOutputFileFormatConfig

The native.

getNativeBuilder()

public NativeOutputFileFormatConfig.Builder getNativeBuilder()

Configuration for the native output format. If this field is set or if no other output format field is set, then transcripts will be written to the sink in the native format.

.google.cloud.speech.v2.NativeOutputFileFormatConfig native = 1;

Returns
Type Description
NativeOutputFileFormatConfig.Builder

getNativeOrBuilder()

public NativeOutputFileFormatConfigOrBuilder getNativeOrBuilder()

Configuration for the native output format. If this field is set or if no other output format field is set, then transcripts will be written to the sink in the native format.

.google.cloud.speech.v2.NativeOutputFileFormatConfig native = 1;

Returns
Type Description
NativeOutputFileFormatConfigOrBuilder

getSrt()

public SrtOutputFileFormatConfig getSrt()

Configuration for the SRT output format. If this field is set, then transcripts will be written to the sink in the SRT format.

.google.cloud.speech.v2.SrtOutputFileFormatConfig srt = 3;

Returns
Type Description
SrtOutputFileFormatConfig

The srt.

getSrtBuilder()

public SrtOutputFileFormatConfig.Builder getSrtBuilder()

Configuration for the SRT output format. If this field is set, then transcripts will be written to the sink in the SRT format.

.google.cloud.speech.v2.SrtOutputFileFormatConfig srt = 3;

Returns
Type Description
SrtOutputFileFormatConfig.Builder

getSrtOrBuilder()

public SrtOutputFileFormatConfigOrBuilder getSrtOrBuilder()

Configuration for the SRT output format. If this field is set, then transcripts will be written to the sink in the SRT format.

.google.cloud.speech.v2.SrtOutputFileFormatConfig srt = 3;

Returns
Type Description
SrtOutputFileFormatConfigOrBuilder

getVtt()

public VttOutputFileFormatConfig getVtt()

Configuration for the VTT output format. If this field is set, then transcripts will be written to the sink in the VTT format.

.google.cloud.speech.v2.VttOutputFileFormatConfig vtt = 2;

Returns
Type Description
VttOutputFileFormatConfig

The vtt.

getVttBuilder()

public VttOutputFileFormatConfig.Builder getVttBuilder()

Configuration for the VTT output format. If this field is set, then transcripts will be written to the sink in the VTT format.

.google.cloud.speech.v2.VttOutputFileFormatConfig vtt = 2;

Returns
Type Description
VttOutputFileFormatConfig.Builder

getVttOrBuilder()

public VttOutputFileFormatConfigOrBuilder getVttOrBuilder()

Configuration for the VTT output format. If this field is set, then transcripts will be written to the sink in the VTT format.

.google.cloud.speech.v2.VttOutputFileFormatConfig vtt = 2;

Returns
Type Description
VttOutputFileFormatConfigOrBuilder

hasNative()

public boolean hasNative()

Configuration for the native output format. If this field is set or if no other output format field is set, then transcripts will be written to the sink in the native format.

.google.cloud.speech.v2.NativeOutputFileFormatConfig native = 1;

Returns
Type Description
boolean

Whether the native field is set.

hasSrt()

public boolean hasSrt()

Configuration for the SRT output format. If this field is set, then transcripts will be written to the sink in the SRT format.

.google.cloud.speech.v2.SrtOutputFileFormatConfig srt = 3;

Returns
Type Description
boolean

Whether the srt field is set.

hasVtt()

public boolean hasVtt()

Configuration for the VTT output format. If this field is set, then transcripts will be written to the sink in the VTT format.

.google.cloud.speech.v2.VttOutputFileFormatConfig vtt = 2;

Returns
Type Description
boolean

Whether the vtt field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(OutputFormatConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeNative(NativeOutputFileFormatConfig value)

public OutputFormatConfig.Builder mergeNative(NativeOutputFileFormatConfig value)

Configuration for the native output format. If this field is set or if no other output format field is set, then transcripts will be written to the sink in the native format.

.google.cloud.speech.v2.NativeOutputFileFormatConfig native = 1;

Parameter
Name Description
value NativeOutputFileFormatConfig
Returns
Type Description
OutputFormatConfig.Builder

mergeSrt(SrtOutputFileFormatConfig value)

public OutputFormatConfig.Builder mergeSrt(SrtOutputFileFormatConfig value)

Configuration for the SRT output format. If this field is set, then transcripts will be written to the sink in the SRT format.

.google.cloud.speech.v2.SrtOutputFileFormatConfig srt = 3;

Parameter
Name Description
value SrtOutputFileFormatConfig
Returns
Type Description
OutputFormatConfig.Builder

mergeVtt(VttOutputFileFormatConfig value)

public OutputFormatConfig.Builder mergeVtt(VttOutputFileFormatConfig value)

Configuration for the VTT output format. If this field is set, then transcripts will be written to the sink in the VTT format.

.google.cloud.speech.v2.VttOutputFileFormatConfig vtt = 2;

Parameter
Name Description
value VttOutputFileFormatConfig
Returns
Type Description
OutputFormatConfig.Builder

setNative(NativeOutputFileFormatConfig value)

public OutputFormatConfig.Builder setNative(NativeOutputFileFormatConfig value)

Configuration for the native output format. If this field is set or if no other output format field is set, then transcripts will be written to the sink in the native format.

.google.cloud.speech.v2.NativeOutputFileFormatConfig native = 1;

Parameter
Name Description
value NativeOutputFileFormatConfig
Returns
Type Description
OutputFormatConfig.Builder

setNative(NativeOutputFileFormatConfig.Builder builderForValue)

public OutputFormatConfig.Builder setNative(NativeOutputFileFormatConfig.Builder builderForValue)

Configuration for the native output format. If this field is set or if no other output format field is set, then transcripts will be written to the sink in the native format.

.google.cloud.speech.v2.NativeOutputFileFormatConfig native = 1;

Parameter
Name Description
builderForValue NativeOutputFileFormatConfig.Builder
Returns
Type Description
OutputFormatConfig.Builder

setSrt(SrtOutputFileFormatConfig value)

public OutputFormatConfig.Builder setSrt(SrtOutputFileFormatConfig value)

Configuration for the SRT output format. If this field is set, then transcripts will be written to the sink in the SRT format.

.google.cloud.speech.v2.SrtOutputFileFormatConfig srt = 3;

Parameter
Name Description
value SrtOutputFileFormatConfig
Returns
Type Description
OutputFormatConfig.Builder

setSrt(SrtOutputFileFormatConfig.Builder builderForValue)

public OutputFormatConfig.Builder setSrt(SrtOutputFileFormatConfig.Builder builderForValue)

Configuration for the SRT output format. If this field is set, then transcripts will be written to the sink in the SRT format.

.google.cloud.speech.v2.SrtOutputFileFormatConfig srt = 3;

Parameter
Name Description
builderForValue SrtOutputFileFormatConfig.Builder
Returns
Type Description
OutputFormatConfig.Builder

setVtt(VttOutputFileFormatConfig value)

public OutputFormatConfig.Builder setVtt(VttOutputFileFormatConfig value)

Configuration for the VTT output format. If this field is set, then transcripts will be written to the sink in the VTT format.

.google.cloud.speech.v2.VttOutputFileFormatConfig vtt = 2;

Parameter
Name Description
value VttOutputFileFormatConfig
Returns
Type Description
OutputFormatConfig.Builder

setVtt(VttOutputFileFormatConfig.Builder builderForValue)

public OutputFormatConfig.Builder setVtt(VttOutputFileFormatConfig.Builder builderForValue)

Configuration for the VTT output format. If this field is set, then transcripts will be written to the sink in the VTT format.

.google.cloud.speech.v2.VttOutputFileFormatConfig vtt = 2;

Parameter
Name Description
builderForValue VttOutputFileFormatConfig.Builder
Returns
Type Description
OutputFormatConfig.Builder