Class RecognitionOutputConfig.Builder (4.32.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

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

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

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
TypeDescription
boolean

Whether the outputFormatConfig 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

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
NameDescription
valueOutputFormatConfig
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

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
NameDescription
valueOutputFormatConfig
Returns
TypeDescription
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
NameDescription
builderForValueOutputFormatConfig.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