Class LongRunningRecognizeResponse (4.27.0)

public final class LongRunningRecognizeResponse extends GeneratedMessageV3 implements LongRunningRecognizeResponseOrBuilder

The only message returned to the client by the LongRunningRecognize method. It contains the result as zero or more sequential SpeechRecognitionResult messages. It is included in the result.response field of the Operation returned by the GetOperation call of the google::longrunning::Operations service.

Protobuf type google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse

Static Fields

OUTPUT_CONFIG_FIELD_NUMBER

public static final int OUTPUT_CONFIG_FIELD_NUMBER
Field Value
TypeDescription
int

OUTPUT_ERROR_FIELD_NUMBER

public static final int OUTPUT_ERROR_FIELD_NUMBER
Field Value
TypeDescription
int

REQUEST_ID_FIELD_NUMBER

public static final int REQUEST_ID_FIELD_NUMBER
Field Value
TypeDescription
int

RESULTS_FIELD_NUMBER

public static final int RESULTS_FIELD_NUMBER
Field Value
TypeDescription
int

SPEECH_ADAPTATION_INFO_FIELD_NUMBER

public static final int SPEECH_ADAPTATION_INFO_FIELD_NUMBER
Field Value
TypeDescription
int

TOTAL_BILLED_TIME_FIELD_NUMBER

public static final int TOTAL_BILLED_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static LongRunningRecognizeResponse getDefaultInstance()
Returns
TypeDescription
LongRunningRecognizeResponse

getDescriptor()

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

newBuilder()

public static LongRunningRecognizeResponse.Builder newBuilder()
Returns
TypeDescription
LongRunningRecognizeResponse.Builder

newBuilder(LongRunningRecognizeResponse prototype)

public static LongRunningRecognizeResponse.Builder newBuilder(LongRunningRecognizeResponse prototype)
Parameter
NameDescription
prototypeLongRunningRecognizeResponse
Returns
TypeDescription
LongRunningRecognizeResponse.Builder

parseDelimitedFrom(InputStream input)

public static LongRunningRecognizeResponse parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
LongRunningRecognizeResponse
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static LongRunningRecognizeResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LongRunningRecognizeResponse
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static LongRunningRecognizeResponse parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
LongRunningRecognizeResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static LongRunningRecognizeResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LongRunningRecognizeResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static LongRunningRecognizeResponse parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
LongRunningRecognizeResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static LongRunningRecognizeResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LongRunningRecognizeResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static LongRunningRecognizeResponse parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
LongRunningRecognizeResponse
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static LongRunningRecognizeResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LongRunningRecognizeResponse
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static LongRunningRecognizeResponse parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
LongRunningRecognizeResponse
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static LongRunningRecognizeResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LongRunningRecognizeResponse
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static LongRunningRecognizeResponse parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
LongRunningRecognizeResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static LongRunningRecognizeResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LongRunningRecognizeResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<LongRunningRecognizeResponse> parser()
Returns
TypeDescription
Parser<LongRunningRecognizeResponse>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public LongRunningRecognizeResponse getDefaultInstanceForType()
Returns
TypeDescription
LongRunningRecognizeResponse

getOutputConfig()

public TranscriptOutputConfig getOutputConfig()

Original output config if present in the request.

.google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 6;

Returns
TypeDescription
TranscriptOutputConfig

The outputConfig.

getOutputConfigOrBuilder()

public TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder()

Original output config if present in the request.

.google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 6;

Returns
TypeDescription
TranscriptOutputConfigOrBuilder

getOutputError()

public Status getOutputError()

If the transcript output fails this field contains the relevant error.

.google.rpc.Status output_error = 7;

Returns
TypeDescription
com.google.rpc.Status

The outputError.

getOutputErrorOrBuilder()

public StatusOrBuilder getOutputErrorOrBuilder()

If the transcript output fails this field contains the relevant error.

.google.rpc.Status output_error = 7;

Returns
TypeDescription
com.google.rpc.StatusOrBuilder

getParserForType()

public Parser<LongRunningRecognizeResponse> getParserForType()
Returns
TypeDescription
Parser<LongRunningRecognizeResponse>
Overrides

getRequestId()

public long getRequestId()

The ID associated with the request. This is a unique ID specific only to the given request.

int64 request_id = 9;

Returns
TypeDescription
long

The requestId.

getResults(int index)

public SpeechRecognitionResult getResults(int index)

Sequential list of transcription results corresponding to sequential portions of audio.

repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
SpeechRecognitionResult

getResultsCount()

public int getResultsCount()

Sequential list of transcription results corresponding to sequential portions of audio.

repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;

Returns
TypeDescription
int

getResultsList()

public List<SpeechRecognitionResult> getResultsList()

Sequential list of transcription results corresponding to sequential portions of audio.

repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;

Returns
TypeDescription
List<SpeechRecognitionResult>

getResultsOrBuilder(int index)

public SpeechRecognitionResultOrBuilder getResultsOrBuilder(int index)

Sequential list of transcription results corresponding to sequential portions of audio.

repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
SpeechRecognitionResultOrBuilder

getResultsOrBuilderList()

public List<? extends SpeechRecognitionResultOrBuilder> getResultsOrBuilderList()

Sequential list of transcription results corresponding to sequential portions of audio.

repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;

Returns
TypeDescription
List<? extends com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder>

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSpeechAdaptationInfo()

public SpeechAdaptationInfo getSpeechAdaptationInfo()

Provides information on speech adaptation behavior in response

.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 8;

Returns
TypeDescription
SpeechAdaptationInfo

The speechAdaptationInfo.

getSpeechAdaptationInfoOrBuilder()

public SpeechAdaptationInfoOrBuilder getSpeechAdaptationInfoOrBuilder()

Provides information on speech adaptation behavior in response

.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 8;

Returns
TypeDescription
SpeechAdaptationInfoOrBuilder

getTotalBilledTime()

public Duration getTotalBilledTime()

When available, billed audio seconds for the corresponding request.

.google.protobuf.Duration total_billed_time = 3;

Returns
TypeDescription
Duration

The totalBilledTime.

getTotalBilledTimeOrBuilder()

public DurationOrBuilder getTotalBilledTimeOrBuilder()

When available, billed audio seconds for the corresponding request.

.google.protobuf.Duration total_billed_time = 3;

Returns
TypeDescription
DurationOrBuilder

hasOutputConfig()

public boolean hasOutputConfig()

Original output config if present in the request.

.google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 6;

Returns
TypeDescription
boolean

Whether the outputConfig field is set.

hasOutputError()

public boolean hasOutputError()

If the transcript output fails this field contains the relevant error.

.google.rpc.Status output_error = 7;

Returns
TypeDescription
boolean

Whether the outputError field is set.

hasSpeechAdaptationInfo()

public boolean hasSpeechAdaptationInfo()

Provides information on speech adaptation behavior in response

.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 8;

Returns
TypeDescription
boolean

Whether the speechAdaptationInfo field is set.

hasTotalBilledTime()

public boolean hasTotalBilledTime()

When available, billed audio seconds for the corresponding request.

.google.protobuf.Duration total_billed_time = 3;

Returns
TypeDescription
boolean

Whether the totalBilledTime field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public LongRunningRecognizeResponse.Builder newBuilderForType()
Returns
TypeDescription
LongRunningRecognizeResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected LongRunningRecognizeResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
LongRunningRecognizeResponse.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public LongRunningRecognizeResponse.Builder toBuilder()
Returns
TypeDescription
LongRunningRecognizeResponse.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException