public static final class ResponseMessage.MixedAudio.Builder extends GeneratedMessageV3.Builder<ResponseMessage.MixedAudio.Builder> implements ResponseMessage.MixedAudioOrBuilder
Represents an audio message that is composed of both segments
synthesized from the Dialogflow agent prompts and ones hosted externally
at the specified URIs.
The external URIs are specified via
play_audio.
This message is generated by Dialogflow only and not supposed to be
defined by the user.
Protobuf type google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addAllSegments(Iterable<? extends ResponseMessage.MixedAudio.Segment> values)
public ResponseMessage.MixedAudio.Builder addAllSegments(Iterable<? extends ResponseMessage.MixedAudio.Segment> values)
Segments this audio response is composed of.
repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment segments = 1;
Parameter
Name | Description |
values | Iterable<? extends com.google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment>
|
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ResponseMessage.MixedAudio.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
addSegments(ResponseMessage.MixedAudio.Segment value)
public ResponseMessage.MixedAudio.Builder addSegments(ResponseMessage.MixedAudio.Segment value)
Segments this audio response is composed of.
repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment segments = 1;
Parameter
Returns
addSegments(ResponseMessage.MixedAudio.Segment.Builder builderForValue)
public ResponseMessage.MixedAudio.Builder addSegments(ResponseMessage.MixedAudio.Segment.Builder builderForValue)
Segments this audio response is composed of.
repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment segments = 1;
Parameter
Returns
addSegments(int index, ResponseMessage.MixedAudio.Segment value)
public ResponseMessage.MixedAudio.Builder addSegments(int index, ResponseMessage.MixedAudio.Segment value)
Segments this audio response is composed of.
repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment segments = 1;
Parameters
Returns
addSegments(int index, ResponseMessage.MixedAudio.Segment.Builder builderForValue)
public ResponseMessage.MixedAudio.Builder addSegments(int index, ResponseMessage.MixedAudio.Segment.Builder builderForValue)
Segments this audio response is composed of.
repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment segments = 1;
Parameters
Returns
addSegmentsBuilder()
public ResponseMessage.MixedAudio.Segment.Builder addSegmentsBuilder()
Segments this audio response is composed of.
repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment segments = 1;
Returns
addSegmentsBuilder(int index)
public ResponseMessage.MixedAudio.Segment.Builder addSegmentsBuilder(int index)
Segments this audio response is composed of.
repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment segments = 1;
Parameter
Returns
build()
public ResponseMessage.MixedAudio build()
Returns
buildPartial()
public ResponseMessage.MixedAudio buildPartial()
Returns
clear()
public ResponseMessage.MixedAudio.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public ResponseMessage.MixedAudio.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public ResponseMessage.MixedAudio.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearSegments()
public ResponseMessage.MixedAudio.Builder clearSegments()
Segments this audio response is composed of.
repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment segments = 1;
Returns
clone()
public ResponseMessage.MixedAudio.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public ResponseMessage.MixedAudio getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getSegments(int index)
public ResponseMessage.MixedAudio.Segment getSegments(int index)
Segments this audio response is composed of.
repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment segments = 1;
Parameter
Returns
getSegmentsBuilder(int index)
public ResponseMessage.MixedAudio.Segment.Builder getSegmentsBuilder(int index)
Segments this audio response is composed of.
repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment segments = 1;
Parameter
Returns
getSegmentsBuilderList()
public List<ResponseMessage.MixedAudio.Segment.Builder> getSegmentsBuilderList()
Segments this audio response is composed of.
repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment segments = 1;
Returns
getSegmentsCount()
public int getSegmentsCount()
Segments this audio response is composed of.
repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment segments = 1;
Returns
getSegmentsList()
public List<ResponseMessage.MixedAudio.Segment> getSegmentsList()
Segments this audio response is composed of.
repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment segments = 1;
Returns
getSegmentsOrBuilder(int index)
public ResponseMessage.MixedAudio.SegmentOrBuilder getSegmentsOrBuilder(int index)
Segments this audio response is composed of.
repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment segments = 1;
Parameter
Returns
getSegmentsOrBuilderList()
public List<? extends ResponseMessage.MixedAudio.SegmentOrBuilder> getSegmentsOrBuilderList()
Segments this audio response is composed of.
repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment segments = 1;
Returns
Type | Description |
List<? extends com.google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.SegmentOrBuilder> | |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(ResponseMessage.MixedAudio other)
public ResponseMessage.MixedAudio.Builder mergeFrom(ResponseMessage.MixedAudio other)
Parameter
Returns
public ResponseMessage.MixedAudio.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ResponseMessage.MixedAudio.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ResponseMessage.MixedAudio.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
removeSegments(int index)
public ResponseMessage.MixedAudio.Builder removeSegments(int index)
Segments this audio response is composed of.
repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment segments = 1;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public ResponseMessage.MixedAudio.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ResponseMessage.MixedAudio.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setSegments(int index, ResponseMessage.MixedAudio.Segment value)
public ResponseMessage.MixedAudio.Builder setSegments(int index, ResponseMessage.MixedAudio.Segment value)
Segments this audio response is composed of.
repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment segments = 1;
Parameters
Returns
setSegments(int index, ResponseMessage.MixedAudio.Segment.Builder builderForValue)
public ResponseMessage.MixedAudio.Builder setSegments(int index, ResponseMessage.MixedAudio.Segment.Builder builderForValue)
Segments this audio response is composed of.
repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment segments = 1;
Parameters
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final ResponseMessage.MixedAudio.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides