Class OutputFormatConfig.Builder (4.34.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public OutputFormatConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
OutputFormatConfig.Builder
Overrides

build()

public OutputFormatConfig build()
Returns
TypeDescription
OutputFormatConfig

buildPartial()

public OutputFormatConfig buildPartial()
Returns
TypeDescription
OutputFormatConfig

clear()

public OutputFormatConfig.Builder clear()
Returns
TypeDescription
OutputFormatConfig.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public OutputFormatConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
OutputFormatConfig.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public OutputFormatConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
OutputFormatConfig.Builder

clone()

public OutputFormatConfig.Builder clone()
Returns
TypeDescription
OutputFormatConfig.Builder
Overrides

getDefaultInstanceForType()

public OutputFormatConfig getDefaultInstanceForType()
Returns
TypeDescription
OutputFormatConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the vtt field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(OutputFormatConfig other)

public OutputFormatConfig.Builder mergeFrom(OutputFormatConfig other)
Parameter
NameDescription
otherOutputFormatConfig
Returns
TypeDescription
OutputFormatConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public OutputFormatConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OutputFormatConfig.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public OutputFormatConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueNativeOutputFileFormatConfig
Returns
TypeDescription
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
NameDescription
valueSrtOutputFileFormatConfig
Returns
TypeDescription
OutputFormatConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final OutputFormatConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueVttOutputFileFormatConfig
Returns
TypeDescription
OutputFormatConfig.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public OutputFormatConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueNativeOutputFileFormatConfig
Returns
TypeDescription
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
NameDescription
builderForValueNativeOutputFileFormatConfig.Builder
Returns
TypeDescription
OutputFormatConfig.Builder

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

public OutputFormatConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueSrtOutputFileFormatConfig
Returns
TypeDescription
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
NameDescription
builderForValueSrtOutputFileFormatConfig.Builder
Returns
TypeDescription
OutputFormatConfig.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final OutputFormatConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueVttOutputFileFormatConfig
Returns
TypeDescription
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
NameDescription
builderForValueVttOutputFileFormatConfig.Builder
Returns
TypeDescription
OutputFormatConfig.Builder