Class LongRunningRecognizeRequest (2.6.1)

public final class LongRunningRecognizeRequest extends GeneratedMessageV3 implements LongRunningRecognizeRequestOrBuilder

The top-level message sent by the client for the LongRunningRecognize method.

Protobuf type google.cloud.speech.v1.LongRunningRecognizeRequest

Static Fields

AUDIO_FIELD_NUMBER

public static final int AUDIO_FIELD_NUMBER
Field Value
TypeDescription
int

CONFIG_FIELD_NUMBER

public static final int CONFIG_FIELD_NUMBER
Field Value
TypeDescription
int

OUTPUT_CONFIG_FIELD_NUMBER

public static final int OUTPUT_CONFIG_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static LongRunningRecognizeRequest getDefaultInstance()
Returns
TypeDescription
LongRunningRecognizeRequest

getDescriptor()

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

newBuilder()

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

newBuilder(LongRunningRecognizeRequest prototype)

public static LongRunningRecognizeRequest.Builder newBuilder(LongRunningRecognizeRequest prototype)
Parameter
NameDescription
prototypeLongRunningRecognizeRequest
Returns
TypeDescription
LongRunningRecognizeRequest.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getAudio()

public RecognitionAudio getAudio()

Required. The audio data to be recognized.

.google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
RecognitionAudio

The audio.

getAudioOrBuilder()

public RecognitionAudioOrBuilder getAudioOrBuilder()

Required. The audio data to be recognized.

.google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
RecognitionAudioOrBuilder

getConfig()

public RecognitionConfig getConfig()

Required. Provides information to the recognizer that specifies how to process the request.

.google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
RecognitionConfig

The config.

getConfigOrBuilder()

public RecognitionConfigOrBuilder getConfigOrBuilder()

Required. Provides information to the recognizer that specifies how to process the request.

.google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
RecognitionConfigOrBuilder

getDefaultInstanceForType()

public LongRunningRecognizeRequest getDefaultInstanceForType()
Returns
TypeDescription
LongRunningRecognizeRequest

getOutputConfig()

public TranscriptOutputConfig getOutputConfig()

Optional. Specifies an optional destination for the recognition results.

.google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
TranscriptOutputConfig

The outputConfig.

getOutputConfigOrBuilder()

public TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder()

Optional. Specifies an optional destination for the recognition results.

.google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
TranscriptOutputConfigOrBuilder

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasAudio()

public boolean hasAudio()

Required. The audio data to be recognized.

.google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the audio field is set.

hasConfig()

public boolean hasConfig()

Required. Provides information to the recognizer that specifies how to process the request.

.google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the config field is set.

hasOutputConfig()

public boolean hasOutputConfig()

Optional. Specifies an optional destination for the recognition results.

.google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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