Class ResponseMessage.MixedAudio.Builder (4.6.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.

Protobuf type google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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.v2beta1.ResponseMessage.MixedAudio.Segment segments = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.Segment>
Returns
TypeDescription
ResponseMessage.MixedAudio.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ResponseMessage.MixedAudio.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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.v2beta1.ResponseMessage.MixedAudio.Segment segments = 1;

Parameter
NameDescription
valueResponseMessage.MixedAudio.Segment
Returns
TypeDescription
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.v2beta1.ResponseMessage.MixedAudio.Segment segments = 1;

Parameter
NameDescription
builderForValueResponseMessage.MixedAudio.Segment.Builder
Returns
TypeDescription
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.v2beta1.ResponseMessage.MixedAudio.Segment segments = 1;

Parameters
NameDescription
indexint
valueResponseMessage.MixedAudio.Segment
Returns
TypeDescription
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.v2beta1.ResponseMessage.MixedAudio.Segment segments = 1;

Parameters
NameDescription
indexint
builderForValueResponseMessage.MixedAudio.Segment.Builder
Returns
TypeDescription
ResponseMessage.MixedAudio.Builder

addSegmentsBuilder()

public ResponseMessage.MixedAudio.Segment.Builder addSegmentsBuilder()

Segments this audio response is composed of.

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

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ResponseMessage.MixedAudio.Segment.Builder

build()

public ResponseMessage.MixedAudio build()
Returns
TypeDescription
ResponseMessage.MixedAudio

buildPartial()

public ResponseMessage.MixedAudio buildPartial()
Returns
TypeDescription
ResponseMessage.MixedAudio

clear()

public ResponseMessage.MixedAudio.Builder clear()
Returns
TypeDescription
ResponseMessage.MixedAudio.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ResponseMessage.MixedAudio.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ResponseMessage.MixedAudio.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ResponseMessage.MixedAudio.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ResponseMessage.MixedAudio.Builder
Overrides

clearSegments()

public ResponseMessage.MixedAudio.Builder clearSegments()

Segments this audio response is composed of.

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

Returns
TypeDescription
ResponseMessage.MixedAudio.Builder

clone()

public ResponseMessage.MixedAudio.Builder clone()
Returns
TypeDescription
ResponseMessage.MixedAudio.Builder
Overrides

getDefaultInstanceForType()

public ResponseMessage.MixedAudio getDefaultInstanceForType()
Returns
TypeDescription
ResponseMessage.MixedAudio

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getSegments(int index)

public ResponseMessage.MixedAudio.Segment getSegments(int index)

Segments this audio response is composed of.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v2beta1.ResponseMessage.MixedAudio.Segment segments = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ResponseMessage.MixedAudio.Segment.Builder

getSegmentsBuilderList()

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

Segments this audio response is composed of.

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

Returns
TypeDescription
List<Builder>

getSegmentsCount()

public int getSegmentsCount()

Segments this audio response is composed of.

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

Returns
TypeDescription
int

getSegmentsList()

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

Segments this audio response is composed of.

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

Returns
TypeDescription
List<Segment>

getSegmentsOrBuilder(int index)

public ResponseMessage.MixedAudio.SegmentOrBuilder getSegmentsOrBuilder(int index)

Segments this audio response is composed of.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ResponseMessage.MixedAudio.SegmentOrBuilder

getSegmentsOrBuilderList()

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

Segments this audio response is composed of.

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

Returns
TypeDescription
List<? extends com.google.cloud.dialogflow.v2beta1.ResponseMessage.MixedAudio.SegmentOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ResponseMessage.MixedAudio other)

public ResponseMessage.MixedAudio.Builder mergeFrom(ResponseMessage.MixedAudio other)
Parameter
NameDescription
otherResponseMessage.MixedAudio
Returns
TypeDescription
ResponseMessage.MixedAudio.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ResponseMessage.MixedAudio.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ResponseMessage.MixedAudio.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ResponseMessage.MixedAudio.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ResponseMessage.MixedAudio.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ResponseMessage.MixedAudio.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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.v2beta1.ResponseMessage.MixedAudio.Segment segments = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ResponseMessage.MixedAudio.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ResponseMessage.MixedAudio.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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.v2beta1.ResponseMessage.MixedAudio.Segment segments = 1;

Parameters
NameDescription
indexint
valueResponseMessage.MixedAudio.Segment
Returns
TypeDescription
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.v2beta1.ResponseMessage.MixedAudio.Segment segments = 1;

Parameters
NameDescription
indexint
builderForValueResponseMessage.MixedAudio.Segment.Builder
Returns
TypeDescription
ResponseMessage.MixedAudio.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ResponseMessage.MixedAudio.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ResponseMessage.MixedAudio.Builder
Overrides