public final class RecognizeResponse extends GeneratedMessageV3 implements RecognizeResponseOrBuilder
Response message for the
Recognize method.
Protobuf type google.cloud.speech.v2.RecognizeResponse
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
public static final int METADATA_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
RESULTS_FIELD_NUMBER
public static final int RESULTS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static RecognizeResponse getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static RecognizeResponse.Builder newBuilder()
newBuilder(RecognizeResponse prototype)
public static RecognizeResponse.Builder newBuilder(RecognizeResponse prototype)
public static RecognizeResponse parseDelimitedFrom(InputStream input)
public static RecognizeResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static RecognizeResponse parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static RecognizeResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static RecognizeResponse parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static RecognizeResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static RecognizeResponse parseFrom(CodedInputStream input)
public static RecognizeResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static RecognizeResponse parseFrom(InputStream input)
public static RecognizeResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static RecognizeResponse parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static RecognizeResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<RecognizeResponse> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public RecognizeResponse getDefaultInstanceForType()
public RecognitionResponseMetadata getMetadata()
Metadata about the recognition.
.google.cloud.speech.v2.RecognitionResponseMetadata metadata = 2;
public RecognitionResponseMetadataOrBuilder getMetadataOrBuilder()
Metadata about the recognition.
.google.cloud.speech.v2.RecognitionResponseMetadata metadata = 2;
getParserForType()
public Parser<RecognizeResponse> getParserForType()
Overrides
getResults(int index)
public SpeechRecognitionResult getResults(int index)
Sequential list of transcription results corresponding to sequential
portions of audio.
repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 3;
Parameter |
Name |
Description |
index |
int
|
getResultsCount()
public int getResultsCount()
Sequential list of transcription results corresponding to sequential
portions of audio.
repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 3;
Returns |
Type |
Description |
int |
|
getResultsList()
public List<SpeechRecognitionResult> getResultsList()
Sequential list of transcription results corresponding to sequential
portions of audio.
repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 3;
getResultsOrBuilder(int index)
public SpeechRecognitionResultOrBuilder getResultsOrBuilder(int index)
Sequential list of transcription results corresponding to sequential
portions of audio.
repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 3;
Parameter |
Name |
Description |
index |
int
|
getResultsOrBuilderList()
public List<? extends SpeechRecognitionResultOrBuilder> getResultsOrBuilderList()
Sequential list of transcription results corresponding to sequential
portions of audio.
repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 3;
Returns |
Type |
Description |
List<? extends com.google.cloud.speech.v2.SpeechRecognitionResultOrBuilder> |
|
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
public boolean hasMetadata()
Metadata about the recognition.
.google.cloud.speech.v2.RecognitionResponseMetadata metadata = 2;
Returns |
Type |
Description |
boolean |
Whether the metadata field is set.
|
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public RecognizeResponse.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected RecognizeResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public RecognizeResponse.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides