Package com.google.cloud.speech.v2
Class InlineResult.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<InlineResult.Builder>
com.google.cloud.speech.v2.InlineResult.Builder
- All Implemented Interfaces:
InlineResultOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- InlineResult
public static final class InlineResult.Builder
extends com.google.protobuf.GeneratedMessage.Builder<InlineResult.Builder>
implements InlineResultOrBuilder
Final results returned inline in the recognition response.Protobuf type
google.cloud.speech.v2.InlineResult-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The transcript for the audio file as SRT formatted captions.The transcript for the audio file.The transcript for the audio file as VTT formatted captions.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe transcript for the audio file as SRT formatted captions.com.google.protobuf.ByteStringThe transcript for the audio file as SRT formatted captions.The transcript for the audio file.The transcript for the audio file.The transcript for the audio file.The transcript for the audio file as VTT formatted captions.com.google.protobuf.ByteStringThe transcript for the audio file as VTT formatted captions.booleanThe transcript for the audio file.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(InlineResult other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) The transcript for the audio file.setSrtCaptions(String value) The transcript for the audio file as SRT formatted captions.setSrtCaptionsBytes(com.google.protobuf.ByteString value) The transcript for the audio file as SRT formatted captions.The transcript for the audio file.setTranscript(BatchRecognizeResults.Builder builderForValue) The transcript for the audio file.setVttCaptions(String value) The transcript for the audio file as VTT formatted captions.setVttCaptionsBytes(com.google.protobuf.ByteString value) The transcript for the audio file as VTT formatted captions.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<InlineResult.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<InlineResult.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.GeneratedMessage.Builder<InlineResult.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<InlineResult.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<InlineResult.Builder>
-
mergeFrom
public InlineResult.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<InlineResult.Builder>- Throws:
IOException
-
hasTranscript
public boolean hasTranscript()The transcript for the audio file.
.google.cloud.speech.v2.BatchRecognizeResults transcript = 1;- Specified by:
hasTranscriptin interfaceInlineResultOrBuilder- Returns:
- Whether the transcript field is set.
-
getTranscript
The transcript for the audio file.
.google.cloud.speech.v2.BatchRecognizeResults transcript = 1;- Specified by:
getTranscriptin interfaceInlineResultOrBuilder- Returns:
- The transcript.
-
setTranscript
The transcript for the audio file.
.google.cloud.speech.v2.BatchRecognizeResults transcript = 1; -
setTranscript
The transcript for the audio file.
.google.cloud.speech.v2.BatchRecognizeResults transcript = 1; -
mergeTranscript
The transcript for the audio file.
.google.cloud.speech.v2.BatchRecognizeResults transcript = 1; -
clearTranscript
The transcript for the audio file.
.google.cloud.speech.v2.BatchRecognizeResults transcript = 1; -
getTranscriptBuilder
The transcript for the audio file.
.google.cloud.speech.v2.BatchRecognizeResults transcript = 1; -
getTranscriptOrBuilder
The transcript for the audio file.
.google.cloud.speech.v2.BatchRecognizeResults transcript = 1;- Specified by:
getTranscriptOrBuilderin interfaceInlineResultOrBuilder
-
getVttCaptions
The transcript for the audio file as VTT formatted captions. This is populated only when `VTT` output is requested.
string vtt_captions = 2;- Specified by:
getVttCaptionsin interfaceInlineResultOrBuilder- Returns:
- The vttCaptions.
-
getVttCaptionsBytes
public com.google.protobuf.ByteString getVttCaptionsBytes()The transcript for the audio file as VTT formatted captions. This is populated only when `VTT` output is requested.
string vtt_captions = 2;- Specified by:
getVttCaptionsBytesin interfaceInlineResultOrBuilder- Returns:
- The bytes for vttCaptions.
-
setVttCaptions
The transcript for the audio file as VTT formatted captions. This is populated only when `VTT` output is requested.
string vtt_captions = 2;- Parameters:
value- The vttCaptions to set.- Returns:
- This builder for chaining.
-
clearVttCaptions
The transcript for the audio file as VTT formatted captions. This is populated only when `VTT` output is requested.
string vtt_captions = 2;- Returns:
- This builder for chaining.
-
setVttCaptionsBytes
The transcript for the audio file as VTT formatted captions. This is populated only when `VTT` output is requested.
string vtt_captions = 2;- Parameters:
value- The bytes for vttCaptions to set.- Returns:
- This builder for chaining.
-
getSrtCaptions
The transcript for the audio file as SRT formatted captions. This is populated only when `SRT` output is requested.
string srt_captions = 3;- Specified by:
getSrtCaptionsin interfaceInlineResultOrBuilder- Returns:
- The srtCaptions.
-
getSrtCaptionsBytes
public com.google.protobuf.ByteString getSrtCaptionsBytes()The transcript for the audio file as SRT formatted captions. This is populated only when `SRT` output is requested.
string srt_captions = 3;- Specified by:
getSrtCaptionsBytesin interfaceInlineResultOrBuilder- Returns:
- The bytes for srtCaptions.
-
setSrtCaptions
The transcript for the audio file as SRT formatted captions. This is populated only when `SRT` output is requested.
string srt_captions = 3;- Parameters:
value- The srtCaptions to set.- Returns:
- This builder for chaining.
-
clearSrtCaptions
The transcript for the audio file as SRT formatted captions. This is populated only when `SRT` output is requested.
string srt_captions = 3;- Returns:
- This builder for chaining.
-
setSrtCaptionsBytes
The transcript for the audio file as SRT formatted captions. This is populated only when `SRT` output is requested.
string srt_captions = 3;- Parameters:
value- The bytes for srtCaptions to set.- Returns:
- This builder for chaining.
-