Class StreamingTranslateSpeechRequest.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<StreamingTranslateSpeechRequest.Builder>
-
- com.google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechRequest.Builder
-
- All Implemented Interfaces:
StreamingTranslateSpeechRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- StreamingTranslateSpeechRequest
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 typegoogle.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechRequest
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StreamingTranslateSpeechRequest.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)StreamingTranslateSpeechRequestbuild()StreamingTranslateSpeechRequestbuildPartial()StreamingTranslateSpeechRequest.Builderclear()StreamingTranslateSpeechRequest.BuilderclearAudioContent()The audio data to be translated.StreamingTranslateSpeechRequest.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)StreamingTranslateSpeechRequest.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)StreamingTranslateSpeechRequest.BuilderclearStreamingConfig()Provides information to the recognizer that specifies how to process the request.StreamingTranslateSpeechRequest.BuilderclearStreamingRequest()StreamingTranslateSpeechRequest.Builderclone()com.google.protobuf.ByteStringgetAudioContent()The audio data to be translated.StreamingTranslateSpeechRequestgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StreamingTranslateSpeechConfiggetStreamingConfig()Provides information to the recognizer that specifies how to process the request.StreamingTranslateSpeechConfig.BuildergetStreamingConfigBuilder()Provides information to the recognizer that specifies how to process the request.StreamingTranslateSpeechConfigOrBuildergetStreamingConfigOrBuilder()Provides information to the recognizer that specifies how to process the request.StreamingTranslateSpeechRequest.StreamingRequestCasegetStreamingRequestCase()booleanhasAudioContent()The audio data to be translated.booleanhasStreamingConfig()Provides information to the recognizer that specifies how to process the request.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()StreamingTranslateSpeechRequest.BuildermergeFrom(StreamingTranslateSpeechRequest other)StreamingTranslateSpeechRequest.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)StreamingTranslateSpeechRequest.BuildermergeFrom(com.google.protobuf.Message other)StreamingTranslateSpeechRequest.BuildermergeStreamingConfig(StreamingTranslateSpeechConfig value)Provides information to the recognizer that specifies how to process the request.StreamingTranslateSpeechRequest.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)StreamingTranslateSpeechRequest.BuildersetAudioContent(com.google.protobuf.ByteString value)The audio data to be translated.StreamingTranslateSpeechRequest.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)StreamingTranslateSpeechRequest.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)StreamingTranslateSpeechRequest.BuildersetStreamingConfig(StreamingTranslateSpeechConfig value)Provides information to the recognizer that specifies how to process the request.StreamingTranslateSpeechRequest.BuildersetStreamingConfig(StreamingTranslateSpeechConfig.Builder builderForValue)Provides information to the recognizer that specifies how to process the request.StreamingTranslateSpeechRequest.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<StreamingTranslateSpeechRequest.Builder>
-
clear
public StreamingTranslateSpeechRequest.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<StreamingTranslateSpeechRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<StreamingTranslateSpeechRequest.Builder>
-
getDefaultInstanceForType
public StreamingTranslateSpeechRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public StreamingTranslateSpeechRequest build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public StreamingTranslateSpeechRequest buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public StreamingTranslateSpeechRequest.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<StreamingTranslateSpeechRequest.Builder>
-
setField
public StreamingTranslateSpeechRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<StreamingTranslateSpeechRequest.Builder>
-
clearField
public StreamingTranslateSpeechRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<StreamingTranslateSpeechRequest.Builder>
-
clearOneof
public StreamingTranslateSpeechRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<StreamingTranslateSpeechRequest.Builder>
-
setRepeatedField
public StreamingTranslateSpeechRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<StreamingTranslateSpeechRequest.Builder>
-
addRepeatedField
public StreamingTranslateSpeechRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<StreamingTranslateSpeechRequest.Builder>
-
mergeFrom
public StreamingTranslateSpeechRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<StreamingTranslateSpeechRequest.Builder>
-
mergeFrom
public StreamingTranslateSpeechRequest.Builder mergeFrom(StreamingTranslateSpeechRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<StreamingTranslateSpeechRequest.Builder>
-
mergeFrom
public StreamingTranslateSpeechRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<StreamingTranslateSpeechRequest.Builder>- Throws:
IOException
-
getStreamingRequestCase
public StreamingTranslateSpeechRequest.StreamingRequestCase getStreamingRequestCase()
- Specified by:
getStreamingRequestCasein interfaceStreamingTranslateSpeechRequestOrBuilder
-
clearStreamingRequest
public StreamingTranslateSpeechRequest.Builder clearStreamingRequest()
-
hasStreamingConfig
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;- Specified by:
hasStreamingConfigin interfaceStreamingTranslateSpeechRequestOrBuilder- Returns:
- Whether the streamingConfig field is set.
-
getStreamingConfig
public 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;- Specified by:
getStreamingConfigin interfaceStreamingTranslateSpeechRequestOrBuilder- Returns:
- The streamingConfig.
-
setStreamingConfig
public 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;
-
setStreamingConfig
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;
-
mergeStreamingConfig
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;
-
clearStreamingConfig
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;
-
getStreamingConfigBuilder
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;
-
getStreamingConfigOrBuilder
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;- Specified by:
getStreamingConfigOrBuilderin interfaceStreamingTranslateSpeechRequestOrBuilder
-
hasAudioContent
public 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;- Specified by:
hasAudioContentin interfaceStreamingTranslateSpeechRequestOrBuilder- Returns:
- Whether the audioContent field is set.
-
getAudioContent
public 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;- Specified by:
getAudioContentin interfaceStreamingTranslateSpeechRequestOrBuilder- Returns:
- The audioContent.
-
setAudioContent
public 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;- Parameters:
value- The audioContent to set.- Returns:
- This builder for chaining.
-
clearAudioContent
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;- Returns:
- This builder for chaining.
-
setUnknownFields
public final StreamingTranslateSpeechRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<StreamingTranslateSpeechRequest.Builder>
-
mergeUnknownFields
public final StreamingTranslateSpeechRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<StreamingTranslateSpeechRequest.Builder>
-
-