Class SyncRecognizeResponse (4.1.0)

public final class SyncRecognizeResponse extends GeneratedMessageV3 implements SyncRecognizeResponseOrBuilder

The only message returned to the client by SyncRecognize. method. It contains the result as zero or more sequential SpeechRecognitionResult messages.

Protobuf type google.cloud.speech.v1beta1.SyncRecognizeResponse

Static Fields

RESULTS_FIELD_NUMBER

public static final int RESULTS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static SyncRecognizeResponse getDefaultInstance()
Returns
TypeDescription
SyncRecognizeResponse

getDescriptor()

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

newBuilder()

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

newBuilder(SyncRecognizeResponse prototype)

public static SyncRecognizeResponse.Builder newBuilder(SyncRecognizeResponse prototype)
Parameter
NameDescription
prototypeSyncRecognizeResponse
Returns
TypeDescription
SyncRecognizeResponse.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public SyncRecognizeResponse getDefaultInstanceForType()
Returns
TypeDescription
SyncRecognizeResponse

getParserForType()

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

getResults(int index)

public SpeechRecognitionResult getResults(int index)

Output-only Sequential list of transcription results corresponding to sequential portions of audio.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
SpeechRecognitionResult

getResultsCount()

public int getResultsCount()

Output-only Sequential list of transcription results corresponding to sequential portions of audio.

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

Returns
TypeDescription
int

getResultsList()

public List<SpeechRecognitionResult> getResultsList()

Output-only Sequential list of transcription results corresponding to sequential portions of audio.

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

Returns
TypeDescription
List<SpeechRecognitionResult>

getResultsOrBuilder(int index)

public SpeechRecognitionResultOrBuilder getResultsOrBuilder(int index)

Output-only Sequential list of transcription results corresponding to sequential portions of audio.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
SpeechRecognitionResultOrBuilder

getResultsOrBuilderList()

public List<? extends SpeechRecognitionResultOrBuilder> getResultsOrBuilderList()

Output-only Sequential list of transcription results corresponding to sequential portions of audio.

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

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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 SyncRecognizeResponse.Builder newBuilderForType()
Returns
TypeDescription
SyncRecognizeResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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