Class OutputFormatConfig.Builder (4.50.0)

public static final class OutputFormatConfig.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

clearField(Descriptors.FieldDescriptor field)

public OutputFormatConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
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

clearOneof(Descriptors.OneofDescriptor oneof)

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

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

clone()

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

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

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