Class Intent.Message.MediaContent.Builder (4.5.11)

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.v2beta1.Intent.Message.MediaContent

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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.v2beta1.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject>
Returns
TypeDescription
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.v2beta1.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;

Parameter
NameDescription
valueIntent.Message.MediaContent.ResponseMediaObject
Returns
TypeDescription
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.v2beta1.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;

Parameter
NameDescription
builderForValueIntent.Message.MediaContent.ResponseMediaObject.Builder
Returns
TypeDescription
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.v2beta1.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;

Parameters
NameDescription
indexint
valueIntent.Message.MediaContent.ResponseMediaObject
Returns
TypeDescription
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.v2beta1.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;

Parameters
NameDescription
indexint
builderForValueIntent.Message.MediaContent.ResponseMediaObject.Builder
Returns
TypeDescription
Intent.Message.MediaContent.Builder

addMediaObjectsBuilder()

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

Required. List of media objects.

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

Returns
TypeDescription
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.v2beta1.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
Intent.Message.MediaContent.ResponseMediaObject.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Intent.Message.MediaContent.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Intent.Message.MediaContent.Builder
Overrides

build()

public Intent.Message.MediaContent build()
Returns
TypeDescription
Intent.Message.MediaContent

buildPartial()

public Intent.Message.MediaContent buildPartial()
Returns
TypeDescription
Intent.Message.MediaContent

clear()

public Intent.Message.MediaContent.Builder clear()
Returns
TypeDescription
Intent.Message.MediaContent.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Intent.Message.MediaContent.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Intent.Message.MediaContent.Builder
Overrides

clearMediaObjects()

public Intent.Message.MediaContent.Builder clearMediaObjects()

Required. List of media objects.

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

Returns
TypeDescription
Intent.Message.MediaContent.Builder

clearMediaType()

public Intent.Message.MediaContent.Builder clearMediaType()

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

.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaType media_type = 1;

Returns
TypeDescription
Intent.Message.MediaContent.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Intent.Message.MediaContent.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Intent.Message.MediaContent.Builder
Overrides

clone()

public Intent.Message.MediaContent.Builder clone()
Returns
TypeDescription
Intent.Message.MediaContent.Builder
Overrides

getDefaultInstanceForType()

public Intent.Message.MediaContent getDefaultInstanceForType()
Returns
TypeDescription
Intent.Message.MediaContent

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMediaObjects(int index)

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

Required. List of media objects.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v2beta1.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
Intent.Message.MediaContent.ResponseMediaObject.Builder

getMediaObjectsBuilderList()

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

Required. List of media objects.

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

Returns
TypeDescription
List<Builder>

getMediaObjectsCount()

public int getMediaObjectsCount()

Required. List of media objects.

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

Returns
TypeDescription
int

getMediaObjectsList()

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

Required. List of media objects.

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

Returns
TypeDescription
List<ResponseMediaObject>

getMediaObjectsOrBuilder(int index)

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

Required. List of media objects.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Intent.Message.MediaContent.ResponseMediaObjectOrBuilder

getMediaObjectsOrBuilderList()

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

Required. List of media objects.

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

Returns
TypeDescription
List<? extends com.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObjectOrBuilder>

getMediaType()

public Intent.Message.MediaContent.ResponseMediaType getMediaType()

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

.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaType media_type = 1;

Returns
TypeDescription
Intent.Message.MediaContent.ResponseMediaType

The mediaType.

getMediaTypeValue()

public int getMediaTypeValue()

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

.google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaType media_type = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for mediaType.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Intent.Message.MediaContent other)

public Intent.Message.MediaContent.Builder mergeFrom(Intent.Message.MediaContent other)
Parameter
NameDescription
otherIntent.Message.MediaContent
Returns
TypeDescription
Intent.Message.MediaContent.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public Intent.Message.MediaContent.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Intent.Message.MediaContent.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Intent.Message.MediaContent.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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.v2beta1.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
Intent.Message.MediaContent.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Intent.Message.MediaContent.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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.v2beta1.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;

Parameters
NameDescription
indexint
valueIntent.Message.MediaContent.ResponseMediaObject
Returns
TypeDescription
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.v2beta1.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;

Parameters
NameDescription
indexint
builderForValueIntent.Message.MediaContent.ResponseMediaObject.Builder
Returns
TypeDescription
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.v2beta1.Intent.Message.MediaContent.ResponseMediaType media_type = 1;

Parameter
NameDescription
valueIntent.Message.MediaContent.ResponseMediaType

The mediaType to set.

Returns
TypeDescription
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.v2beta1.Intent.Message.MediaContent.ResponseMediaType media_type = 1;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Intent.Message.MediaContent.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Intent.Message.MediaContent.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Intent.Message.MediaContent.Builder
Overrides