Class ResponseMessage.MixedAudio.Builder (0.42.0)

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.v3beta1.ResponseMessage.MixedAudio

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

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.v3beta1.ResponseMessage.MixedAudio.Segment segments = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment>
Returns
Type Description
ResponseMessage.MixedAudio.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ResponseMessage.MixedAudio.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ResponseMessage.MixedAudio.Builder
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.v3beta1.ResponseMessage.MixedAudio.Segment segments = 1;

Parameter
Name Description
value ResponseMessage.MixedAudio.Segment
Returns
Type Description
ResponseMessage.MixedAudio.Builder

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.v3beta1.ResponseMessage.MixedAudio.Segment segments = 1;

Parameter
Name Description
builderForValue ResponseMessage.MixedAudio.Segment.Builder
Returns
Type Description
ResponseMessage.MixedAudio.Builder

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.v3beta1.ResponseMessage.MixedAudio.Segment segments = 1;

Parameters
Name Description
index int
value ResponseMessage.MixedAudio.Segment
Returns
Type Description
ResponseMessage.MixedAudio.Builder

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.v3beta1.ResponseMessage.MixedAudio.Segment segments = 1;

Parameters
Name Description
index int
builderForValue ResponseMessage.MixedAudio.Segment.Builder
Returns
Type Description
ResponseMessage.MixedAudio.Builder

addSegmentsBuilder()

public ResponseMessage.MixedAudio.Segment.Builder addSegmentsBuilder()

Segments this audio response is composed of.

repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment segments = 1;

Returns
Type Description
ResponseMessage.MixedAudio.Segment.Builder

addSegmentsBuilder(int index)

public ResponseMessage.MixedAudio.Segment.Builder addSegmentsBuilder(int index)

Segments this audio response is composed of.

repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment segments = 1;

Parameter
Name Description
index int
Returns
Type Description
ResponseMessage.MixedAudio.Segment.Builder

build()

public ResponseMessage.MixedAudio build()
Returns
Type Description
ResponseMessage.MixedAudio

buildPartial()

public ResponseMessage.MixedAudio buildPartial()
Returns
Type Description
ResponseMessage.MixedAudio

clear()

public ResponseMessage.MixedAudio.Builder clear()
Returns
Type Description
ResponseMessage.MixedAudio.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ResponseMessage.MixedAudio.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ResponseMessage.MixedAudio.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ResponseMessage.MixedAudio.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ResponseMessage.MixedAudio.Builder
Overrides

clearSegments()

public ResponseMessage.MixedAudio.Builder clearSegments()

Segments this audio response is composed of.

repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment segments = 1;

Returns
Type Description
ResponseMessage.MixedAudio.Builder

clone()

public ResponseMessage.MixedAudio.Builder clone()
Returns
Type Description
ResponseMessage.MixedAudio.Builder
Overrides

getDefaultInstanceForType()

public ResponseMessage.MixedAudio getDefaultInstanceForType()
Returns
Type Description
ResponseMessage.MixedAudio

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getSegments(int index)

public ResponseMessage.MixedAudio.Segment getSegments(int index)

Segments this audio response is composed of.

repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment segments = 1;

Parameter
Name Description
index int
Returns
Type Description
ResponseMessage.MixedAudio.Segment

getSegmentsBuilder(int index)

public ResponseMessage.MixedAudio.Segment.Builder getSegmentsBuilder(int index)

Segments this audio response is composed of.

repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment segments = 1;

Parameter
Name Description
index int
Returns
Type Description
ResponseMessage.MixedAudio.Segment.Builder

getSegmentsBuilderList()

public List<ResponseMessage.MixedAudio.Segment.Builder> getSegmentsBuilderList()

Segments this audio response is composed of.

repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment segments = 1;

Returns
Type Description
List<Builder>

getSegmentsCount()

public int getSegmentsCount()

Segments this audio response is composed of.

repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment segments = 1;

Returns
Type Description
int

getSegmentsList()

public List<ResponseMessage.MixedAudio.Segment> getSegmentsList()

Segments this audio response is composed of.

repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment segments = 1;

Returns
Type Description
List<Segment>

getSegmentsOrBuilder(int index)

public ResponseMessage.MixedAudio.SegmentOrBuilder getSegmentsOrBuilder(int index)

Segments this audio response is composed of.

repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment segments = 1;

Parameter
Name Description
index int
Returns
Type Description
ResponseMessage.MixedAudio.SegmentOrBuilder

getSegmentsOrBuilderList()

public List<? extends ResponseMessage.MixedAudio.SegmentOrBuilder> getSegmentsOrBuilderList()

Segments this audio response is composed of.

repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment segments = 1;

Returns
Type Description
List<? extends com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.SegmentOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ResponseMessage.MixedAudio other)

public ResponseMessage.MixedAudio.Builder mergeFrom(ResponseMessage.MixedAudio other)
Parameter
Name Description
other ResponseMessage.MixedAudio
Returns
Type Description
ResponseMessage.MixedAudio.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ResponseMessage.MixedAudio.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ResponseMessage.MixedAudio.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ResponseMessage.MixedAudio.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ResponseMessage.MixedAudio.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ResponseMessage.MixedAudio.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ResponseMessage.MixedAudio.Builder
Overrides

removeSegments(int index)

public ResponseMessage.MixedAudio.Builder removeSegments(int index)

Segments this audio response is composed of.

repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment segments = 1;

Parameter
Name Description
index int
Returns
Type Description
ResponseMessage.MixedAudio.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ResponseMessage.MixedAudio.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ResponseMessage.MixedAudio.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ResponseMessage.MixedAudio.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ResponseMessage.MixedAudio.Builder
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.v3beta1.ResponseMessage.MixedAudio.Segment segments = 1;

Parameters
Name Description
index int
value ResponseMessage.MixedAudio.Segment
Returns
Type Description
ResponseMessage.MixedAudio.Builder

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.v3beta1.ResponseMessage.MixedAudio.Segment segments = 1;

Parameters
Name Description
index int
builderForValue ResponseMessage.MixedAudio.Segment.Builder
Returns
Type Description
ResponseMessage.MixedAudio.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ResponseMessage.MixedAudio.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ResponseMessage.MixedAudio.Builder
Overrides