Interface StreamingTranslateSpeechRequestOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
StreamingTranslateSpeechRequest
,StreamingTranslateSpeechRequest.Builder
public interface StreamingTranslateSpeechRequestOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.google.protobuf.ByteString
getAudioContent()
The audio data to be translated.StreamingTranslateSpeechConfig
getStreamingConfig()
Provides information to the recognizer that specifies how to process the request.StreamingTranslateSpeechConfigOrBuilder
getStreamingConfigOrBuilder()
Provides information to the recognizer that specifies how to process the request.StreamingTranslateSpeechRequest.StreamingRequestCase
getStreamingRequestCase()
boolean
hasAudioContent()
The audio data to be translated.boolean
hasStreamingConfig()
Provides information to the recognizer that specifies how to process the request.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasStreamingConfig
boolean hasStreamingConfig()
Provides information to the recognizer that specifies how to process the request. The first `StreamingTranslateSpeechRequest` message must contain a `streaming_config` message.
.google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechConfig streaming_config = 1;
- Returns:
- Whether the streamingConfig field is set.
-
getStreamingConfig
StreamingTranslateSpeechConfig getStreamingConfig()
Provides information to the recognizer that specifies how to process the request. The first `StreamingTranslateSpeechRequest` message must contain a `streaming_config` message.
.google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechConfig streaming_config = 1;
- Returns:
- The streamingConfig.
-
getStreamingConfigOrBuilder
StreamingTranslateSpeechConfigOrBuilder getStreamingConfigOrBuilder()
Provides information to the recognizer that specifies how to process the request. The first `StreamingTranslateSpeechRequest` message must contain a `streaming_config` message.
.google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechConfig streaming_config = 1;
-
hasAudioContent
boolean hasAudioContent()
The audio data to be translated. Sequential chunks of audio data are sent in sequential `StreamingTranslateSpeechRequest` messages. The first `StreamingTranslateSpeechRequest` message must not contain `audio_content` data and all subsequent `StreamingTranslateSpeechRequest` messages must contain `audio_content` data. The audio bytes must be encoded as specified in `StreamingTranslateSpeechConfig`. Note: as with all bytes fields, protobuffers use a pure binary representation (not base64).
bytes audio_content = 2;
- Returns:
- Whether the audioContent field is set.
-
getAudioContent
com.google.protobuf.ByteString getAudioContent()
The audio data to be translated. Sequential chunks of audio data are sent in sequential `StreamingTranslateSpeechRequest` messages. The first `StreamingTranslateSpeechRequest` message must not contain `audio_content` data and all subsequent `StreamingTranslateSpeechRequest` messages must contain `audio_content` data. The audio bytes must be encoded as specified in `StreamingTranslateSpeechConfig`. Note: as with all bytes fields, protobuffers use a pure binary representation (not base64).
bytes audio_content = 2;
- Returns:
- The audioContent.
-
getStreamingRequestCase
StreamingTranslateSpeechRequest.StreamingRequestCase getStreamingRequestCase()
-
-