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.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(StreamingTranslateSpeechRequest other)
StreamingTranslateSpeechRequest.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
StreamingTranslateSpeechRequest.Builder
mergeFrom(com.google.protobuf.Message 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 value)
Provides information to the recognizer that specifies how to process the request.StreamingTranslateSpeechRequest.Builder
setStreamingConfig(StreamingTranslateSpeechConfig.Builder builderForValue)
Provides information to the recognizer that specifies how to process the request.StreamingTranslateSpeechRequest.Builder
setUnknownFields(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<StreamingTranslateSpeechRequest.Builder>
-
clear
public StreamingTranslateSpeechRequest.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<StreamingTranslateSpeechRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<StreamingTranslateSpeechRequest.Builder>
-
getDefaultInstanceForType
public StreamingTranslateSpeechRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public StreamingTranslateSpeechRequest build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public StreamingTranslateSpeechRequest buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public StreamingTranslateSpeechRequest.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<StreamingTranslateSpeechRequest.Builder>
-
setField
public StreamingTranslateSpeechRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<StreamingTranslateSpeechRequest.Builder>
-
clearField
public StreamingTranslateSpeechRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<StreamingTranslateSpeechRequest.Builder>
-
clearOneof
public StreamingTranslateSpeechRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<StreamingTranslateSpeechRequest.Builder>
-
setRepeatedField
public StreamingTranslateSpeechRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<StreamingTranslateSpeechRequest.Builder>
-
addRepeatedField
public StreamingTranslateSpeechRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<StreamingTranslateSpeechRequest.Builder>
-
mergeFrom
public StreamingTranslateSpeechRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<StreamingTranslateSpeechRequest.Builder>
-
mergeFrom
public StreamingTranslateSpeechRequest.Builder mergeFrom(StreamingTranslateSpeechRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<StreamingTranslateSpeechRequest.Builder>
- Throws:
IOException
-
getStreamingRequestCase
public StreamingTranslateSpeechRequest.StreamingRequestCase getStreamingRequestCase()
- Specified by:
getStreamingRequestCase
in 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:
hasStreamingConfig
in 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:
getStreamingConfig
in 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:
getStreamingConfigOrBuilder
in 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:
hasAudioContent
in 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:
getAudioContent
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<StreamingTranslateSpeechRequest.Builder>
-
mergeUnknownFields
public final StreamingTranslateSpeechRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<StreamingTranslateSpeechRequest.Builder>
-
-