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
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
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
Returns
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
Returns
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
Returns
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
Returns
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
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
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Intent.Message.MediaContent.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public Intent.Message.MediaContent build()
Returns
buildPartial()
public Intent.Message.MediaContent buildPartial()
Returns
clear()
public Intent.Message.MediaContent.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public Intent.Message.MediaContent.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
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
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
clearOneof(Descriptors.OneofDescriptor oneof)
public Intent.Message.MediaContent.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public Intent.Message.MediaContent.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public Intent.Message.MediaContent getDefaultInstanceForType()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
Returns
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
Returns
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
getMediaObjectsCount()
public int getMediaObjectsCount()
Required. List of media objects.
repeated .google.cloud.dialogflow.v2.Intent.Message.MediaContent.ResponseMediaObject media_objects = 2;
Returns
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
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
Returns
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
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(Intent.Message.MediaContent other)
public Intent.Message.MediaContent.Builder mergeFrom(Intent.Message.MediaContent other)
Parameter
Returns
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Intent.Message.MediaContent.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public Intent.Message.MediaContent.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Intent.Message.MediaContent.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public Intent.Message.MediaContent.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
Returns
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
Returns
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
Returns
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
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Intent.Message.MediaContent.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final Intent.Message.MediaContent.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides