public static final class StreamingRecognizeRequest.Builder extends GeneratedMessageV3.Builder<StreamingRecognizeRequest.Builder> implements StreamingRecognizeRequestOrBuilder
The top-level message sent by the client for the `StreamingRecognize` method. Multiple `StreamingRecognizeRequest` messages are sent. The first message must contain a `streaming_config` message and must not contain `audio` data. All subsequent messages must contain `audio` data and must not contain a `streaming_config` message.Protobuf type
google.cloud.speech.v1beta1.StreamingRecognizeRequest
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<StreamingRecognizeRequest.Builder>
public StreamingRecognizeRequest.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<StreamingRecognizeRequest.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<StreamingRecognizeRequest.Builder>
public StreamingRecognizeRequest getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public StreamingRecognizeRequest build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public StreamingRecognizeRequest buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public StreamingRecognizeRequest.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<StreamingRecognizeRequest.Builder>
public StreamingRecognizeRequest.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<StreamingRecognizeRequest.Builder>
public StreamingRecognizeRequest.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<StreamingRecognizeRequest.Builder>
public StreamingRecognizeRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<StreamingRecognizeRequest.Builder>
public StreamingRecognizeRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<StreamingRecognizeRequest.Builder>
public StreamingRecognizeRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<StreamingRecognizeRequest.Builder>
public StreamingRecognizeRequest.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<StreamingRecognizeRequest.Builder>
public StreamingRecognizeRequest.Builder mergeFrom(StreamingRecognizeRequest other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<StreamingRecognizeRequest.Builder>
public StreamingRecognizeRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<StreamingRecognizeRequest.Builder>
java.io.IOException
public StreamingRecognizeRequest.StreamingRequestCase getStreamingRequestCase()
getStreamingRequestCase
in interface StreamingRecognizeRequestOrBuilder
public StreamingRecognizeRequest.Builder clearStreamingRequest()
public boolean hasStreamingConfig()
Provides information to the recognizer that specifies how to process the request. The first `StreamingRecognizeRequest` message must contain a `streaming_config` message.
.google.cloud.speech.v1beta1.StreamingRecognitionConfig streaming_config = 1;
hasStreamingConfig
in interface StreamingRecognizeRequestOrBuilder
public StreamingRecognitionConfig getStreamingConfig()
Provides information to the recognizer that specifies how to process the request. The first `StreamingRecognizeRequest` message must contain a `streaming_config` message.
.google.cloud.speech.v1beta1.StreamingRecognitionConfig streaming_config = 1;
getStreamingConfig
in interface StreamingRecognizeRequestOrBuilder
public StreamingRecognizeRequest.Builder setStreamingConfig(StreamingRecognitionConfig value)
Provides information to the recognizer that specifies how to process the request. The first `StreamingRecognizeRequest` message must contain a `streaming_config` message.
.google.cloud.speech.v1beta1.StreamingRecognitionConfig streaming_config = 1;
public StreamingRecognizeRequest.Builder setStreamingConfig(StreamingRecognitionConfig.Builder builderForValue)
Provides information to the recognizer that specifies how to process the request. The first `StreamingRecognizeRequest` message must contain a `streaming_config` message.
.google.cloud.speech.v1beta1.StreamingRecognitionConfig streaming_config = 1;
public StreamingRecognizeRequest.Builder mergeStreamingConfig(StreamingRecognitionConfig value)
Provides information to the recognizer that specifies how to process the request. The first `StreamingRecognizeRequest` message must contain a `streaming_config` message.
.google.cloud.speech.v1beta1.StreamingRecognitionConfig streaming_config = 1;
public StreamingRecognizeRequest.Builder clearStreamingConfig()
Provides information to the recognizer that specifies how to process the request. The first `StreamingRecognizeRequest` message must contain a `streaming_config` message.
.google.cloud.speech.v1beta1.StreamingRecognitionConfig streaming_config = 1;
public StreamingRecognitionConfig.Builder getStreamingConfigBuilder()
Provides information to the recognizer that specifies how to process the request. The first `StreamingRecognizeRequest` message must contain a `streaming_config` message.
.google.cloud.speech.v1beta1.StreamingRecognitionConfig streaming_config = 1;
public StreamingRecognitionConfigOrBuilder getStreamingConfigOrBuilder()
Provides information to the recognizer that specifies how to process the request. The first `StreamingRecognizeRequest` message must contain a `streaming_config` message.
.google.cloud.speech.v1beta1.StreamingRecognitionConfig streaming_config = 1;
getStreamingConfigOrBuilder
in interface StreamingRecognizeRequestOrBuilder
public ByteString getAudioContent()
The audio data to be recognized. Sequential chunks of audio data are sent in sequential `StreamingRecognizeRequest` messages. The first `StreamingRecognizeRequest` message must not contain `audio_content` data and all subsequent `StreamingRecognizeRequest` messages must contain `audio_content` data. The audio bytes must be encoded as specified in `RecognitionConfig`. Note: as with all bytes fields, protobuffers use a pure binary representation (not base64). See [audio limits](https://cloud.google.com/speech/limits#content).
bytes audio_content = 2;
getAudioContent
in interface StreamingRecognizeRequestOrBuilder
public StreamingRecognizeRequest.Builder setAudioContent(ByteString value)
The audio data to be recognized. Sequential chunks of audio data are sent in sequential `StreamingRecognizeRequest` messages. The first `StreamingRecognizeRequest` message must not contain `audio_content` data and all subsequent `StreamingRecognizeRequest` messages must contain `audio_content` data. The audio bytes must be encoded as specified in `RecognitionConfig`. Note: as with all bytes fields, protobuffers use a pure binary representation (not base64). See [audio limits](https://cloud.google.com/speech/limits#content).
bytes audio_content = 2;
public StreamingRecognizeRequest.Builder clearAudioContent()
The audio data to be recognized. Sequential chunks of audio data are sent in sequential `StreamingRecognizeRequest` messages. The first `StreamingRecognizeRequest` message must not contain `audio_content` data and all subsequent `StreamingRecognizeRequest` messages must contain `audio_content` data. The audio bytes must be encoded as specified in `RecognitionConfig`. Note: as with all bytes fields, protobuffers use a pure binary representation (not base64). See [audio limits](https://cloud.google.com/speech/limits#content).
bytes audio_content = 2;
public final StreamingRecognizeRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<StreamingRecognizeRequest.Builder>
public final StreamingRecognizeRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<StreamingRecognizeRequest.Builder>