Class ResponseMessage.MixedAudio.Segment.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ResponseMessage.MixedAudio.Segment.Builder>
com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment.Builder
- All Implemented Interfaces:
ResponseMessage.MixedAudio.SegmentOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ResponseMessage.MixedAudio.Segment
public static final class ResponseMessage.MixedAudio.Segment.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ResponseMessage.MixedAudio.Segment.Builder>
implements ResponseMessage.MixedAudio.SegmentOrBuilder
Represents one segment of audio.Protobuf type
google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Whether the playback of this segment can be interrupted by the end user's speech and the client should then start the next Dialogflow request.Raw audio synthesized from the Dialogflow agent's response using the output config specified in the request.clearUri()Client-specific URI that points to an audio clip accessible to the client.booleanWhether the playback of this segment can be interrupted by the end user's speech and the client should then start the next Dialogflow request.com.google.protobuf.ByteStringgetAudio()Raw audio synthesized from the Dialogflow agent's response using the output config specified in the request.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetUri()Client-specific URI that points to an audio clip accessible to the client.com.google.protobuf.ByteStringClient-specific URI that points to an audio clip accessible to the client.booleanhasAudio()Raw audio synthesized from the Dialogflow agent's response using the output config specified in the request.booleanhasUri()Client-specific URI that points to an audio clip accessible to the client.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setAllowPlaybackInterruption(boolean value) Whether the playback of this segment can be interrupted by the end user's speech and the client should then start the next Dialogflow request.setAudio(com.google.protobuf.ByteString value) Raw audio synthesized from the Dialogflow agent's response using the output config specified in the request.Client-specific URI that points to an audio clip accessible to the client.setUriBytes(com.google.protobuf.ByteString value) Client-specific URI that points to an audio clip accessible to the client.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<ResponseMessage.MixedAudio.Segment.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<ResponseMessage.MixedAudio.Segment.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<ResponseMessage.MixedAudio.Segment.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<ResponseMessage.MixedAudio.Segment.Builder>
-
mergeFrom
public ResponseMessage.MixedAudio.Segment.Builder mergeFrom(ResponseMessage.MixedAudio.Segment other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ResponseMessage.MixedAudio.Segment.Builder>
-
mergeFrom
public ResponseMessage.MixedAudio.Segment.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<ResponseMessage.MixedAudio.Segment.Builder>- Throws:
IOException
-
getContentCase
- Specified by:
getContentCasein interfaceResponseMessage.MixedAudio.SegmentOrBuilder
-
clearContent
-
hasAudio
public boolean hasAudio()Raw audio synthesized from the Dialogflow agent's response using the output config specified in the request.
bytes audio = 1;- Specified by:
hasAudioin interfaceResponseMessage.MixedAudio.SegmentOrBuilder- Returns:
- Whether the audio field is set.
-
getAudio
public com.google.protobuf.ByteString getAudio()Raw audio synthesized from the Dialogflow agent's response using the output config specified in the request.
bytes audio = 1;- Specified by:
getAudioin interfaceResponseMessage.MixedAudio.SegmentOrBuilder- Returns:
- The audio.
-
setAudio
Raw audio synthesized from the Dialogflow agent's response using the output config specified in the request.
bytes audio = 1;- Parameters:
value- The audio to set.- Returns:
- This builder for chaining.
-
clearAudio
Raw audio synthesized from the Dialogflow agent's response using the output config specified in the request.
bytes audio = 1;- Returns:
- This builder for chaining.
-
hasUri
public boolean hasUri()Client-specific URI that points to an audio clip accessible to the client.
string uri = 2;- Specified by:
hasUriin interfaceResponseMessage.MixedAudio.SegmentOrBuilder- Returns:
- Whether the uri field is set.
-
getUri
Client-specific URI that points to an audio clip accessible to the client.
string uri = 2;- Specified by:
getUriin interfaceResponseMessage.MixedAudio.SegmentOrBuilder- Returns:
- The uri.
-
getUriBytes
public com.google.protobuf.ByteString getUriBytes()Client-specific URI that points to an audio clip accessible to the client.
string uri = 2;- Specified by:
getUriBytesin interfaceResponseMessage.MixedAudio.SegmentOrBuilder- Returns:
- The bytes for uri.
-
setUri
Client-specific URI that points to an audio clip accessible to the client.
string uri = 2;- Parameters:
value- The uri to set.- Returns:
- This builder for chaining.
-
clearUri
Client-specific URI that points to an audio clip accessible to the client.
string uri = 2;- Returns:
- This builder for chaining.
-
setUriBytes
Client-specific URI that points to an audio clip accessible to the client.
string uri = 2;- Parameters:
value- The bytes for uri to set.- Returns:
- This builder for chaining.
-
getAllowPlaybackInterruption
public boolean getAllowPlaybackInterruption()Whether the playback of this segment can be interrupted by the end user's speech and the client should then start the next Dialogflow request.
bool allow_playback_interruption = 3;- Specified by:
getAllowPlaybackInterruptionin interfaceResponseMessage.MixedAudio.SegmentOrBuilder- Returns:
- The allowPlaybackInterruption.
-
setAllowPlaybackInterruption
Whether the playback of this segment can be interrupted by the end user's speech and the client should then start the next Dialogflow request.
bool allow_playback_interruption = 3;- Parameters:
value- The allowPlaybackInterruption to set.- Returns:
- This builder for chaining.
-
clearAllowPlaybackInterruption
Whether the playback of this segment can be interrupted by the end user's speech and the client should then start the next Dialogflow request.
bool allow_playback_interruption = 3;- Returns:
- This builder for chaining.
-