Package com.google.cloud.texttospeech.v1
Interface SynthesisInputOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
SynthesisInput
,SynthesisInput.Builder
public interface SynthesisInputOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SynthesisInput.InputSourceCase
getInputSourceCase()
String
getSsml()
The SSML document to be synthesized.com.google.protobuf.ByteString
getSsmlBytes()
The SSML document to be synthesized.String
getText()
The raw text to be synthesized.com.google.protobuf.ByteString
getTextBytes()
The raw text to be synthesized.boolean
hasSsml()
The SSML document to be synthesized.boolean
hasText()
The raw text to be synthesized.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasText
boolean hasText()
The raw text to be synthesized.
string text = 1;
- Returns:
- Whether the text field is set.
-
getText
String getText()
The raw text to be synthesized.
string text = 1;
- Returns:
- The text.
-
getTextBytes
com.google.protobuf.ByteString getTextBytes()
The raw text to be synthesized.
string text = 1;
- Returns:
- The bytes for text.
-
hasSsml
boolean hasSsml()
The SSML document to be synthesized. The SSML document must be valid and well-formed. Otherwise the RPC will fail and return [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. For more information, see [SSML](https://cloud.google.com/text-to-speech/docs/ssml).
string ssml = 2;
- Returns:
- Whether the ssml field is set.
-
getSsml
String getSsml()
The SSML document to be synthesized. The SSML document must be valid and well-formed. Otherwise the RPC will fail and return [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. For more information, see [SSML](https://cloud.google.com/text-to-speech/docs/ssml).
string ssml = 2;
- Returns:
- The ssml.
-
getSsmlBytes
com.google.protobuf.ByteString getSsmlBytes()
The SSML document to be synthesized. The SSML document must be valid and well-formed. Otherwise the RPC will fail and return [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. For more information, see [SSML](https://cloud.google.com/text-to-speech/docs/ssml).
string ssml = 2;
- Returns:
- The bytes for ssml.
-
getInputSourceCase
SynthesisInput.InputSourceCase getInputSourceCase()
-
-