Class RecognitionOutputConfig.Builder (4.78.0)

public static final class RecognitionOutputConfig.Builder extends GeneratedMessage.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
Type Description
Descriptor

Methods

build()

public RecognitionOutputConfig build()
Returns
Type Description
RecognitionOutputConfig

buildPartial()

public RecognitionOutputConfig buildPartial()
Returns
Type Description
RecognitionOutputConfig

clear()

public RecognitionOutputConfig.Builder clear()
Returns
Type Description
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
Type Description
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
Type Description
RecognitionOutputConfig.Builder

clearOutput()

public RecognitionOutputConfig.Builder clearOutput()
Returns
Type Description
RecognitionOutputConfig.Builder

clearOutputFormatConfig()

public RecognitionOutputConfig.Builder clearOutputFormatConfig()

Optional. Configuration for the format of the results stored to output. If unspecified transcripts will be written in the NATIVE format only.

.google.cloud.speech.v2.OutputFormatConfig output_format_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RecognitionOutputConfig.Builder

getDefaultInstanceForType()

public RecognitionOutputConfig getDefaultInstanceForType()
Returns
Type Description
RecognitionOutputConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
InlineOutputConfigOrBuilder

getOutputCase()

public RecognitionOutputConfig.OutputCase getOutputCase()
Returns
Type Description
RecognitionOutputConfig.OutputCase

getOutputFormatConfig()

public OutputFormatConfig getOutputFormatConfig()

Optional. Configuration for the format of the results stored to output. If unspecified transcripts will be written in the NATIVE format only.

.google.cloud.speech.v2.OutputFormatConfig output_format_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
OutputFormatConfig

The outputFormatConfig.

getOutputFormatConfigBuilder()

public OutputFormatConfig.Builder getOutputFormatConfigBuilder()

Optional. Configuration for the format of the results stored to output. If unspecified transcripts will be written in the NATIVE format only.

.google.cloud.speech.v2.OutputFormatConfig output_format_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
OutputFormatConfig.Builder

getOutputFormatConfigOrBuilder()

public OutputFormatConfigOrBuilder getOutputFormatConfigOrBuilder()

Optional. Configuration for the format of the results stored to output. If unspecified transcripts will be written in the NATIVE format only.

.google.cloud.speech.v2.OutputFormatConfig output_format_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
OutputFormatConfigOrBuilder

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
Type Description
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
Type Description
boolean

Whether the inlineResponseConfig field is set.

hasOutputFormatConfig()

public boolean hasOutputFormatConfig()

Optional. Configuration for the format of the results stored to output. If unspecified transcripts will be written in the NATIVE format only.

.google.cloud.speech.v2.OutputFormatConfig output_format_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the outputFormatConfig field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RecognitionOutputConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public RecognitionOutputConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
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
Name Description
value GcsOutputConfig
Returns
Type Description
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
Name Description
value InlineOutputConfig
Returns
Type Description
RecognitionOutputConfig.Builder

mergeOutputFormatConfig(OutputFormatConfig value)

public RecognitionOutputConfig.Builder mergeOutputFormatConfig(OutputFormatConfig value)

Optional. Configuration for the format of the results stored to output. If unspecified transcripts will be written in the NATIVE format only.

.google.cloud.speech.v2.OutputFormatConfig output_format_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value OutputFormatConfig
Returns
Type Description
RecognitionOutputConfig.Builder

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
Name Description
value GcsOutputConfig
Returns
Type Description
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
Name Description
builderForValue GcsOutputConfig.Builder
Returns
Type Description
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
Name Description
value InlineOutputConfig
Returns
Type Description
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
Name Description
builderForValue InlineOutputConfig.Builder
Returns
Type Description
RecognitionOutputConfig.Builder

setOutputFormatConfig(OutputFormatConfig value)

public RecognitionOutputConfig.Builder setOutputFormatConfig(OutputFormatConfig value)

Optional. Configuration for the format of the results stored to output. If unspecified transcripts will be written in the NATIVE format only.

.google.cloud.speech.v2.OutputFormatConfig output_format_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value OutputFormatConfig
Returns
Type Description
RecognitionOutputConfig.Builder

setOutputFormatConfig(OutputFormatConfig.Builder builderForValue)

public RecognitionOutputConfig.Builder setOutputFormatConfig(OutputFormatConfig.Builder builderForValue)

Optional. Configuration for the format of the results stored to output. If unspecified transcripts will be written in the NATIVE format only.

.google.cloud.speech.v2.OutputFormatConfig output_format_config = 3 [(.google.api.field_behavior) = OPTIONAL];

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