public static final class StreamingTranslateSpeechRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<StreamingTranslateSpeechRequest.Builder> implements StreamingTranslateSpeechRequestOrBuilder
The top-level message sent by the client for the `StreamingTranslateSpeech` method. Multiple `StreamingTranslateSpeechRequest` messages are sent. The first message must contain a `streaming_config` message and must not contain `audio_content` data. All subsequent messages must contain `audio_content` data and must not contain a `streaming_config` message.Protobuf type
google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechRequest| Modifier and Type | Method and Description |
|---|---|
StreamingTranslateSpeechRequest.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
StreamingTranslateSpeechRequest |
build() |
StreamingTranslateSpeechRequest |
buildPartial() |
StreamingTranslateSpeechRequest.Builder |
clear() |
StreamingTranslateSpeechRequest.Builder |
clearAudioContent()
The audio data to be translated.
|
StreamingTranslateSpeechRequest.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
StreamingTranslateSpeechRequest.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
StreamingTranslateSpeechRequest.Builder |
clearStreamingConfig()
Provides information to the recognizer that specifies how to process the
request.
|
StreamingTranslateSpeechRequest.Builder |
clearStreamingRequest() |
StreamingTranslateSpeechRequest.Builder |
clone() |
com.google.protobuf.ByteString |
getAudioContent()
The audio data to be translated.
|
StreamingTranslateSpeechRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
StreamingTranslateSpeechConfig |
getStreamingConfig()
Provides information to the recognizer that specifies how to process the
request.
|
StreamingTranslateSpeechConfig.Builder |
getStreamingConfigBuilder()
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.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
StreamingTranslateSpeechRequest.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
StreamingTranslateSpeechRequest.Builder |
mergeFrom(com.google.protobuf.Message other) |
StreamingTranslateSpeechRequest.Builder |
mergeFrom(StreamingTranslateSpeechRequest other) |
StreamingTranslateSpeechRequest.Builder |
mergeStreamingConfig(StreamingTranslateSpeechConfig value)
Provides information to the recognizer that specifies how to process the
request.
|
StreamingTranslateSpeechRequest.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
StreamingTranslateSpeechRequest.Builder |
setAudioContent(com.google.protobuf.ByteString value)
The audio data to be translated.
|
StreamingTranslateSpeechRequest.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
StreamingTranslateSpeechRequest.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
StreamingTranslateSpeechRequest.Builder |
setStreamingConfig(StreamingTranslateSpeechConfig.Builder builderForValue)
Provides information to the recognizer that specifies how to process the
request.
|
StreamingTranslateSpeechRequest.Builder |
setStreamingConfig(StreamingTranslateSpeechConfig value)
Provides information to the recognizer that specifies how to process the
request.
|
StreamingTranslateSpeechRequest.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingTranslateSpeechRequest.Builder>public StreamingTranslateSpeechRequest.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingTranslateSpeechRequest.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingTranslateSpeechRequest.Builder>public StreamingTranslateSpeechRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic StreamingTranslateSpeechRequest build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic StreamingTranslateSpeechRequest buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic StreamingTranslateSpeechRequest.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingTranslateSpeechRequest.Builder>public StreamingTranslateSpeechRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingTranslateSpeechRequest.Builder>public StreamingTranslateSpeechRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingTranslateSpeechRequest.Builder>public StreamingTranslateSpeechRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingTranslateSpeechRequest.Builder>public StreamingTranslateSpeechRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingTranslateSpeechRequest.Builder>public StreamingTranslateSpeechRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingTranslateSpeechRequest.Builder>public StreamingTranslateSpeechRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<StreamingTranslateSpeechRequest.Builder>public StreamingTranslateSpeechRequest.Builder mergeFrom(StreamingTranslateSpeechRequest other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingTranslateSpeechRequest.Builder>public StreamingTranslateSpeechRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<StreamingTranslateSpeechRequest.Builder>IOExceptionpublic StreamingTranslateSpeechRequest.StreamingRequestCase getStreamingRequestCase()
getStreamingRequestCase in interface StreamingTranslateSpeechRequestOrBuilderpublic StreamingTranslateSpeechRequest.Builder clearStreamingRequest()
public 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;
hasStreamingConfig in interface StreamingTranslateSpeechRequestOrBuilderpublic 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;
getStreamingConfig in interface StreamingTranslateSpeechRequestOrBuilderpublic StreamingTranslateSpeechRequest.Builder setStreamingConfig(StreamingTranslateSpeechConfig value)
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;
public StreamingTranslateSpeechRequest.Builder setStreamingConfig(StreamingTranslateSpeechConfig.Builder builderForValue)
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;
public StreamingTranslateSpeechRequest.Builder mergeStreamingConfig(StreamingTranslateSpeechConfig value)
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;
public StreamingTranslateSpeechRequest.Builder clearStreamingConfig()
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;
public StreamingTranslateSpeechConfig.Builder getStreamingConfigBuilder()
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;
public 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;
getStreamingConfigOrBuilder in interface StreamingTranslateSpeechRequestOrBuilderpublic 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;hasAudioContent in interface StreamingTranslateSpeechRequestOrBuilderpublic 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;getAudioContent in interface StreamingTranslateSpeechRequestOrBuilderpublic StreamingTranslateSpeechRequest.Builder setAudioContent(com.google.protobuf.ByteString value)
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;value - The audioContent to set.public StreamingTranslateSpeechRequest.Builder clearAudioContent()
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;public final StreamingTranslateSpeechRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingTranslateSpeechRequest.Builder>public final StreamingTranslateSpeechRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingTranslateSpeechRequest.Builder>Copyright © 2022 Google LLC. All rights reserved.