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
TIMEOUT_MESSAGE_FIELD_NUMBER
public static final int TIMEOUT_MESSAGE_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static SpeechAdaptationInfo getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static SpeechAdaptationInfo.Builder newBuilder()
Returns
newBuilder(SpeechAdaptationInfo prototype)
public static SpeechAdaptationInfo.Builder newBuilder(SpeechAdaptationInfo prototype)
Parameter
Returns
public static SpeechAdaptationInfo parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static SpeechAdaptationInfo parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static SpeechAdaptationInfo parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static SpeechAdaptationInfo parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static SpeechAdaptationInfo parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static SpeechAdaptationInfo parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static SpeechAdaptationInfo parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static SpeechAdaptationInfo parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static SpeechAdaptationInfo parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static SpeechAdaptationInfo parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static SpeechAdaptationInfo parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static SpeechAdaptationInfo parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<SpeechAdaptationInfo> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
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
Type | Description |
boolean | The adaptationTimeout.
|
getDefaultInstanceForType()
public SpeechAdaptationInfo getDefaultInstanceForType()
Returns
getParserForType()
public Parser<SpeechAdaptationInfo> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
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
Type | Description |
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
Type | Description |
ByteString | The bytes for timeoutMessage.
|
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public SpeechAdaptationInfo.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected SpeechAdaptationInfo.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public SpeechAdaptationInfo.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions