Class RecognitionOutputConfig.Builder (4.19.0)

public static final class RecognitionOutputConfig.Builder extends GeneratedMessageV3.Builder<RecognitionOutputConfig.Builder> implements RecognitionOutputConfigOrBuilder

Configuration options for the output(s) of recognition.

Protobuf type google.cloud.speech.v2.RecognitionOutputConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RecognitionOutputConfig build()
Returns
TypeDescription
RecognitionOutputConfig

buildPartial()

public RecognitionOutputConfig buildPartial()
Returns
TypeDescription
RecognitionOutputConfig

clear()

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

clearField(Descriptors.FieldDescriptor field)

public RecognitionOutputConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
RecognitionOutputConfig.Builder
Overrides

clearGcsOutputConfig()

public RecognitionOutputConfig.Builder clearGcsOutputConfig()

If this message is populated, recognition results are written to the provided Google Cloud Storage URI.

.google.cloud.speech.v2.GcsOutputConfig gcs_output_config = 1;

Returns
TypeDescription
RecognitionOutputConfig.Builder

clearInlineResponseConfig()

public RecognitionOutputConfig.Builder clearInlineResponseConfig()

If this message is populated, recognition results are provided in the BatchRecognizeResponse message of the Operation when completed. This is only supported when calling BatchRecognize with just one audio file.

.google.cloud.speech.v2.InlineOutputConfig inline_response_config = 2;

Returns
TypeDescription
RecognitionOutputConfig.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public RecognitionOutputConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
RecognitionOutputConfig.Builder
Overrides

clearOutput()

public RecognitionOutputConfig.Builder clearOutput()
Returns
TypeDescription
RecognitionOutputConfig.Builder

clone()

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

getDefaultInstanceForType()

public RecognitionOutputConfig getDefaultInstanceForType()
Returns
TypeDescription
RecognitionOutputConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getGcsOutputConfig()

public GcsOutputConfig getGcsOutputConfig()

If this message is populated, recognition results are written to the provided Google Cloud Storage URI.

.google.cloud.speech.v2.GcsOutputConfig gcs_output_config = 1;

Returns
TypeDescription
GcsOutputConfig

The gcsOutputConfig.

getGcsOutputConfigBuilder()

public GcsOutputConfig.Builder getGcsOutputConfigBuilder()

If this message is populated, recognition results are written to the provided Google Cloud Storage URI.

.google.cloud.speech.v2.GcsOutputConfig gcs_output_config = 1;

Returns
TypeDescription
GcsOutputConfig.Builder

getGcsOutputConfigOrBuilder()

public GcsOutputConfigOrBuilder getGcsOutputConfigOrBuilder()

If this message is populated, recognition results are written to the provided Google Cloud Storage URI.

.google.cloud.speech.v2.GcsOutputConfig gcs_output_config = 1;

Returns
TypeDescription
GcsOutputConfigOrBuilder

getInlineResponseConfig()

public InlineOutputConfig getInlineResponseConfig()

If this message is populated, recognition results are provided in the BatchRecognizeResponse message of the Operation when completed. This is only supported when calling BatchRecognize with just one audio file.

.google.cloud.speech.v2.InlineOutputConfig inline_response_config = 2;

Returns
TypeDescription
InlineOutputConfig

The inlineResponseConfig.

getInlineResponseConfigBuilder()

public InlineOutputConfig.Builder getInlineResponseConfigBuilder()

If this message is populated, recognition results are provided in the BatchRecognizeResponse message of the Operation when completed. This is only supported when calling BatchRecognize with just one audio file.

.google.cloud.speech.v2.InlineOutputConfig inline_response_config = 2;

Returns
TypeDescription
InlineOutputConfig.Builder

getInlineResponseConfigOrBuilder()

public InlineOutputConfigOrBuilder getInlineResponseConfigOrBuilder()

If this message is populated, recognition results are provided in the BatchRecognizeResponse message of the Operation when completed. This is only supported when calling BatchRecognize with just one audio file.

.google.cloud.speech.v2.InlineOutputConfig inline_response_config = 2;

Returns
TypeDescription
InlineOutputConfigOrBuilder

getOutputCase()

public RecognitionOutputConfig.OutputCase getOutputCase()
Returns
TypeDescription
RecognitionOutputConfig.OutputCase

hasGcsOutputConfig()

public boolean hasGcsOutputConfig()

If this message is populated, recognition results are written to the provided Google Cloud Storage URI.

.google.cloud.speech.v2.GcsOutputConfig gcs_output_config = 1;

Returns
TypeDescription
boolean

Whether the gcsOutputConfig field is set.

hasInlineResponseConfig()

public boolean hasInlineResponseConfig()

If this message is populated, recognition results are provided in the BatchRecognizeResponse message of the Operation when completed. This is only supported when calling BatchRecognize with just one audio file.

.google.cloud.speech.v2.InlineOutputConfig inline_response_config = 2;

Returns
TypeDescription
boolean

Whether the inlineResponseConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(RecognitionOutputConfig other)

public RecognitionOutputConfig.Builder mergeFrom(RecognitionOutputConfig other)
Parameter
NameDescription
otherRecognitionOutputConfig
Returns
TypeDescription
RecognitionOutputConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public RecognitionOutputConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
RecognitionOutputConfig.Builder
Overrides

mergeGcsOutputConfig(GcsOutputConfig value)

public RecognitionOutputConfig.Builder mergeGcsOutputConfig(GcsOutputConfig value)

If this message is populated, recognition results are written to the provided Google Cloud Storage URI.

.google.cloud.speech.v2.GcsOutputConfig gcs_output_config = 1;

Parameter
NameDescription
valueGcsOutputConfig
Returns
TypeDescription
RecognitionOutputConfig.Builder

mergeInlineResponseConfig(InlineOutputConfig value)

public RecognitionOutputConfig.Builder mergeInlineResponseConfig(InlineOutputConfig value)

If this message is populated, recognition results are provided in the BatchRecognizeResponse message of the Operation when completed. This is only supported when calling BatchRecognize with just one audio file.

.google.cloud.speech.v2.InlineOutputConfig inline_response_config = 2;

Parameter
NameDescription
valueInlineOutputConfig
Returns
TypeDescription
RecognitionOutputConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RecognitionOutputConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
RecognitionOutputConfig.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

setGcsOutputConfig(GcsOutputConfig value)

public RecognitionOutputConfig.Builder setGcsOutputConfig(GcsOutputConfig value)

If this message is populated, recognition results are written to the provided Google Cloud Storage URI.

.google.cloud.speech.v2.GcsOutputConfig gcs_output_config = 1;

Parameter
NameDescription
valueGcsOutputConfig
Returns
TypeDescription
RecognitionOutputConfig.Builder

setGcsOutputConfig(GcsOutputConfig.Builder builderForValue)

public RecognitionOutputConfig.Builder setGcsOutputConfig(GcsOutputConfig.Builder builderForValue)

If this message is populated, recognition results are written to the provided Google Cloud Storage URI.

.google.cloud.speech.v2.GcsOutputConfig gcs_output_config = 1;

Parameter
NameDescription
builderForValueGcsOutputConfig.Builder
Returns
TypeDescription
RecognitionOutputConfig.Builder

setInlineResponseConfig(InlineOutputConfig value)

public RecognitionOutputConfig.Builder setInlineResponseConfig(InlineOutputConfig value)

If this message is populated, recognition results are provided in the BatchRecognizeResponse message of the Operation when completed. This is only supported when calling BatchRecognize with just one audio file.

.google.cloud.speech.v2.InlineOutputConfig inline_response_config = 2;

Parameter
NameDescription
valueInlineOutputConfig
Returns
TypeDescription
RecognitionOutputConfig.Builder

setInlineResponseConfig(InlineOutputConfig.Builder builderForValue)

public RecognitionOutputConfig.Builder setInlineResponseConfig(InlineOutputConfig.Builder builderForValue)

If this message is populated, recognition results are provided in the BatchRecognizeResponse message of the Operation when completed. This is only supported when calling BatchRecognize with just one audio file.

.google.cloud.speech.v2.InlineOutputConfig inline_response_config = 2;

Parameter
NameDescription
builderForValueInlineOutputConfig.Builder
Returns
TypeDescription
RecognitionOutputConfig.Builder

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

public RecognitionOutputConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
RecognitionOutputConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final RecognitionOutputConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
RecognitionOutputConfig.Builder
Overrides