Class Intent.Message.MediaContent.Builder (4.40.0)

public static final class Intent.Message.MediaContent.Builder extends GeneratedMessageV3.Builder<Intent.Message.MediaContent.Builder> implements Intent.Message.MediaContentOrBuilder

The media content card for Actions on Google.

Protobuf type google.cloud.dialogflow.v2.Intent.Message.MediaContent

Static Methods

getDescriptor()

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

Methods

addAllMediaObjects(Iterable<? extends Intent.Message.MediaContent.ResponseMediaObject> values)

public Intent.Message.MediaContent.Builder addAllMediaObjects(Iterable<? extends Intent.Message.MediaContent.ResponseMediaObject> values)

Required. List of media objects.

repeated .google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;

Parameter
Name Description
values Iterable<? extends com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject>
Returns
Type Description
Intent.Message.MediaContent.Builder

addMediaObjects(Intent.Message.MediaContent.ResponseMediaObject value)

public Intent.Message.MediaContent.Builder addMediaObjects(Intent.Message.MediaContent.ResponseMediaObject value)

Required. List of media objects.

repeated .google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;

Parameter
Name Description
value Intent.Message.MediaContent.ResponseMediaObject
Returns
Type Description
Intent.Message.MediaContent.Builder

addMediaObjects(Intent.Message.MediaContent.ResponseMediaObject.Builder builderForValue)

public Intent.Message.MediaContent.Builder addMediaObjects(Intent.Message.MediaContent.ResponseMediaObject.Builder builderForValue)

Required. List of media objects.

repeated .google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;

Parameter
Name Description
builderForValue Intent.Message.MediaContent.ResponseMediaObject.Builder
Returns
Type Description
Intent.Message.MediaContent.Builder

addMediaObjects(int index, Intent.Message.MediaContent.ResponseMediaObject value)

public Intent.Message.MediaContent.Builder addMediaObjects(int index, Intent.Message.MediaContent.ResponseMediaObject value)

Required. List of media objects.

repeated .google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;

Parameters
Name Description
index int
value Intent.Message.MediaContent.ResponseMediaObject
Returns
Type Description
Intent.Message.MediaContent.Builder

addMediaObjects(int index, Intent.Message.MediaContent.ResponseMediaObject.Builder builderForValue)

public Intent.Message.MediaContent.Builder addMediaObjects(int index, Intent.Message.MediaContent.ResponseMediaObject.Builder builderForValue)

Required. List of media objects.

repeated .google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;

Parameters
Name Description
index int
builderForValue Intent.Message.MediaContent.ResponseMediaObject.Builder
Returns
Type Description
Intent.Message.MediaContent.Builder

addMediaObjectsBuilder()

public Intent.Message.MediaContent.ResponseMediaObject.Builder addMediaObjectsBuilder()

Required. List of media objects.

repeated .google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;

Returns
Type Description
Intent.Message.MediaContent.ResponseMediaObject.Builder

addMediaObjectsBuilder(int index)

public Intent.Message.MediaContent.ResponseMediaObject.Builder addMediaObjectsBuilder(int index)

Required. List of media objects.

repeated .google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;

Parameter
Name Description
index int
Returns
Type Description
Intent.Message.MediaContent.ResponseMediaObject.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Intent.Message.MediaContent.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Intent.Message.MediaContent.Builder
Overrides

build()

public Intent.Message.MediaContent build()
Returns
Type Description
Intent.Message.MediaContent

buildPartial()

public Intent.Message.MediaContent buildPartial()
Returns
Type Description
Intent.Message.MediaContent

clear()

public Intent.Message.MediaContent.Builder clear()
Returns
Type Description
Intent.Message.MediaContent.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Intent.Message.MediaContent.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Intent.Message.MediaContent.Builder
Overrides

clearMediaObjects()

public Intent.Message.MediaContent.Builder clearMediaObjects()

Required. List of media objects.

repeated .google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;

Returns
Type Description
Intent.Message.MediaContent.Builder

clearMediaType()

public Intent.Message.MediaContent.Builder clearMediaType()

Optional. What type of media is the content (ie "audio").

.google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaType media_type = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Intent.Message.MediaContent.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Intent.Message.MediaContent.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Intent.Message.MediaContent.Builder
Overrides

clone()

public Intent.Message.MediaContent.Builder clone()
Returns
Type Description
Intent.Message.MediaContent.Builder
Overrides

getDefaultInstanceForType()

public Intent.Message.MediaContent getDefaultInstanceForType()
Returns
Type Description
Intent.Message.MediaContent

getDescriptorForType()

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

getMediaObjects(int index)

public Intent.Message.MediaContent.ResponseMediaObject getMediaObjects(int index)

Required. List of media objects.

repeated .google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;

Parameter
Name Description
index int
Returns
Type Description
Intent.Message.MediaContent.ResponseMediaObject

getMediaObjectsBuilder(int index)

public Intent.Message.MediaContent.ResponseMediaObject.Builder getMediaObjectsBuilder(int index)

Required. List of media objects.

repeated .google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;

Parameter
Name Description
index int
Returns
Type Description
Intent.Message.MediaContent.ResponseMediaObject.Builder

getMediaObjectsBuilderList()

public List<Intent.Message.MediaContent.ResponseMediaObject.Builder> getMediaObjectsBuilderList()

Required. List of media objects.

repeated .google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;

Returns
Type Description
List<Builder>

getMediaObjectsCount()

public int getMediaObjectsCount()

Required. List of media objects.

repeated .google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;

Returns
Type Description
int

getMediaObjectsList()

public List<Intent.Message.MediaContent.ResponseMediaObject> getMediaObjectsList()

Required. List of media objects.

repeated .google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;

Returns
Type Description
List<ResponseMediaObject>

getMediaObjectsOrBuilder(int index)

public Intent.Message.MediaContent.ResponseMediaObjectOrBuilder getMediaObjectsOrBuilder(int index)

Required. List of media objects.

repeated .google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;

Parameter
Name Description
index int
Returns
Type Description
Intent.Message.MediaContent.ResponseMediaObjectOrBuilder

getMediaObjectsOrBuilderList()

public List<? extends Intent.Message.MediaContent.ResponseMediaObjectOrBuilder> getMediaObjectsOrBuilderList()

Required. List of media objects.

repeated .google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;

Returns
Type Description
List<? extends com.google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObjectOrBuilder>

getMediaType()

public Intent.Message.MediaContent.ResponseMediaType getMediaType()

Optional. What type of media is the content (ie "audio").

.google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaType media_type = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Intent.Message.MediaContent.ResponseMediaType

The mediaType.

getMediaTypeValue()

public int getMediaTypeValue()

Optional. What type of media is the content (ie "audio").

.google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaType media_type = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for mediaType.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Intent.Message.MediaContent other)

public Intent.Message.MediaContent.Builder mergeFrom(Intent.Message.MediaContent other)
Parameter
Name Description
other Intent.Message.MediaContent
Returns
Type Description
Intent.Message.MediaContent.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Intent.Message.MediaContent.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Intent.Message.MediaContent.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Intent.Message.MediaContent.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Intent.Message.MediaContent.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Intent.Message.MediaContent.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Intent.Message.MediaContent.Builder
Overrides

removeMediaObjects(int index)

public Intent.Message.MediaContent.Builder removeMediaObjects(int index)

Required. List of media objects.

repeated .google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;

Parameter
Name Description
index int
Returns
Type Description
Intent.Message.MediaContent.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Intent.Message.MediaContent.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Intent.Message.MediaContent.Builder
Overrides

setMediaObjects(int index, Intent.Message.MediaContent.ResponseMediaObject value)

public Intent.Message.MediaContent.Builder setMediaObjects(int index, Intent.Message.MediaContent.ResponseMediaObject value)

Required. List of media objects.

repeated .google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;

Parameters
Name Description
index int
value Intent.Message.MediaContent.ResponseMediaObject
Returns
Type Description
Intent.Message.MediaContent.Builder

setMediaObjects(int index, Intent.Message.MediaContent.ResponseMediaObject.Builder builderForValue)

public Intent.Message.MediaContent.Builder setMediaObjects(int index, Intent.Message.MediaContent.ResponseMediaObject.Builder builderForValue)

Required. List of media objects.

repeated .google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;

Parameters
Name Description
index int
builderForValue Intent.Message.MediaContent.ResponseMediaObject.Builder
Returns
Type Description
Intent.Message.MediaContent.Builder

setMediaType(Intent.Message.MediaContent.ResponseMediaType value)

public Intent.Message.MediaContent.Builder setMediaType(Intent.Message.MediaContent.ResponseMediaType value)

Optional. What type of media is the content (ie "audio").

.google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaType media_type = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Intent.Message.MediaContent.ResponseMediaType

The mediaType to set.

Returns
Type Description
Intent.Message.MediaContent.Builder

This builder for chaining.

setMediaTypeValue(int value)

public Intent.Message.MediaContent.Builder setMediaTypeValue(int value)

Optional. What type of media is the content (ie "audio").

.google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaType media_type = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The enum numeric value on the wire for mediaType to set.

Returns
Type Description
Intent.Message.MediaContent.Builder

This builder for chaining.

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

public Intent.Message.MediaContent.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Intent.Message.MediaContent.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Intent.Message.MediaContent.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Intent.Message.MediaContent.Builder
Overrides