Class InlineResult (4.29.0)

public final class InlineResult extends GeneratedMessageV3 implements InlineResultOrBuilder

Final results returned inline in the recognition response.

Protobuf type google.cloud.speech.v2.InlineResult

Static Fields

TRANSCRIPT_FIELD_NUMBER

public static final int TRANSCRIPT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static InlineResult getDefaultInstance()
Returns
TypeDescription
InlineResult

getDescriptor()

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

newBuilder()

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

newBuilder(InlineResult prototype)

public static InlineResult.Builder newBuilder(InlineResult prototype)
Parameter
NameDescription
prototypeInlineResult
Returns
TypeDescription
InlineResult.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public InlineResult getDefaultInstanceForType()
Returns
TypeDescription
InlineResult

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getTranscript()

public BatchRecognizeResults getTranscript()

The transcript for the audio file.

.google.cloud.speech.v2.BatchRecognizeResults transcript = 1;

Returns
TypeDescription
BatchRecognizeResults

The transcript.

getTranscriptOrBuilder()

public BatchRecognizeResultsOrBuilder getTranscriptOrBuilder()

The transcript for the audio file.

.google.cloud.speech.v2.BatchRecognizeResults transcript = 1;

Returns
TypeDescription
BatchRecognizeResultsOrBuilder

hasTranscript()

public boolean hasTranscript()

The transcript for the audio file.

.google.cloud.speech.v2.BatchRecognizeResults transcript = 1;

Returns
TypeDescription
boolean

Whether the transcript 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 InlineResult.Builder newBuilderForType()
Returns
TypeDescription
InlineResult.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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