Class SpeechAdaptationInfo (4.24.0)

public final class SpeechAdaptationInfo extends GeneratedMessageV3 implements SpeechAdaptationInfoOrBuilder

Information on speech adaptation use in results

Protobuf type google.cloud.speech.v1.SpeechAdaptationInfo

Static Fields

ADAPTATION_TIMEOUT_FIELD_NUMBER

public static final int ADAPTATION_TIMEOUT_FIELD_NUMBER
Field Value
TypeDescription
int

TIMEOUT_MESSAGE_FIELD_NUMBER

public static final int TIMEOUT_MESSAGE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static SpeechAdaptationInfo getDefaultInstance()
Returns
TypeDescription
SpeechAdaptationInfo

getDescriptor()

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

newBuilder()

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

newBuilder(SpeechAdaptationInfo prototype)

public static SpeechAdaptationInfo.Builder newBuilder(SpeechAdaptationInfo prototype)
Parameter
NameDescription
prototypeSpeechAdaptationInfo
Returns
TypeDescription
SpeechAdaptationInfo.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getAdaptationTimeout()

public boolean getAdaptationTimeout()

Whether there was a timeout when applying speech adaptation. If true, adaptation had no effect in the response transcript.

bool adaptation_timeout = 1;

Returns
TypeDescription
boolean

The adaptationTimeout.

getDefaultInstanceForType()

public SpeechAdaptationInfo getDefaultInstanceForType()
Returns
TypeDescription
SpeechAdaptationInfo

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getTimeoutMessage()

public String getTimeoutMessage()

If set, returns a message specifying which part of the speech adaptation request timed out.

string timeout_message = 4;

Returns
TypeDescription
String

The timeoutMessage.

getTimeoutMessageBytes()

public ByteString getTimeoutMessageBytes()

If set, returns a message specifying which part of the speech adaptation request timed out.

string timeout_message = 4;

Returns
TypeDescription
ByteString

The bytes for timeoutMessage.

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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