Class Intent.Message.MediaContent.ResponseMediaObject.Builder (4.11.0)

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

Response media object for media content card.

Protobuf type google.cloud.dialogflow.v2beta1.Intent.Message.MediaContent.ResponseMediaObject

Inheritance

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Intent.Message.MediaContent.ResponseMediaObject.Builder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearContentUrl()

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

Required. Url where the media is stored.

string content_url = 5;

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

This builder for chaining.

clearDescription()

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

Optional. Description of media card.

string description = 2;

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearIcon()

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

Optional. Icon to display above media content.

.google.cloud.dialogflow.v2beta1.Intent.Message.Image icon = 4;

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

clearImage()

public Intent.Message.MediaContent.ResponseMediaObject.Builder clearImage()
Returns
Type Description
Intent.Message.MediaContent.ResponseMediaObject.Builder

clearLargeImage()

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

Optional. Image to display above media content.

.google.cloud.dialogflow.v2beta1.Intent.Message.Image large_image = 3;

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

clearName()

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

Required. Name of media card.

string name = 1;

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getContentUrl()

public String getContentUrl()

Required. Url where the media is stored.

string content_url = 5;

Returns
Type Description
String

The contentUrl.

getContentUrlBytes()

public ByteString getContentUrlBytes()

Required. Url where the media is stored.

string content_url = 5;

Returns
Type Description
ByteString

The bytes for contentUrl.

getDefaultInstanceForType()

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

getDescription()

public String getDescription()

Optional. Description of media card.

string description = 2;

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. Description of media card.

string description = 2;

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

getIcon()

public Intent.Message.Image getIcon()

Optional. Icon to display above media content.

.google.cloud.dialogflow.v2beta1.Intent.Message.Image icon = 4;

Returns
Type Description
Intent.Message.Image

The icon.

getIconBuilder()

public Intent.Message.Image.Builder getIconBuilder()

Optional. Icon to display above media content.

.google.cloud.dialogflow.v2beta1.Intent.Message.Image icon = 4;

Returns
Type Description
Intent.Message.Image.Builder

getIconOrBuilder()

public Intent.Message.ImageOrBuilder getIconOrBuilder()

Optional. Icon to display above media content.

.google.cloud.dialogflow.v2beta1.Intent.Message.Image icon = 4;

Returns
Type Description
Intent.Message.ImageOrBuilder

getImageCase()

public Intent.Message.MediaContent.ResponseMediaObject.ImageCase getImageCase()
Returns
Type Description
Intent.Message.MediaContent.ResponseMediaObject.ImageCase

getLargeImage()

public Intent.Message.Image getLargeImage()

Optional. Image to display above media content.

.google.cloud.dialogflow.v2beta1.Intent.Message.Image large_image = 3;

Returns
Type Description
Intent.Message.Image

The largeImage.

getLargeImageBuilder()

public Intent.Message.Image.Builder getLargeImageBuilder()

Optional. Image to display above media content.

.google.cloud.dialogflow.v2beta1.Intent.Message.Image large_image = 3;

Returns
Type Description
Intent.Message.Image.Builder

getLargeImageOrBuilder()

public Intent.Message.ImageOrBuilder getLargeImageOrBuilder()

Optional. Image to display above media content.

.google.cloud.dialogflow.v2beta1.Intent.Message.Image large_image = 3;

Returns
Type Description
Intent.Message.ImageOrBuilder

getName()

public String getName()

Required. Name of media card.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Name of media card.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

hasIcon()

public boolean hasIcon()

Optional. Icon to display above media content.

.google.cloud.dialogflow.v2beta1.Intent.Message.Image icon = 4;

Returns
Type Description
boolean

Whether the icon field is set.

hasLargeImage()

public boolean hasLargeImage()

Optional. Image to display above media content.

.google.cloud.dialogflow.v2beta1.Intent.Message.Image large_image = 3;

Returns
Type Description
boolean

Whether the largeImage field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Intent.Message.MediaContent.ResponseMediaObject other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeIcon(Intent.Message.Image value)

public Intent.Message.MediaContent.ResponseMediaObject.Builder mergeIcon(Intent.Message.Image value)

Optional. Icon to display above media content.

.google.cloud.dialogflow.v2beta1.Intent.Message.Image icon = 4;

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

mergeLargeImage(Intent.Message.Image value)

public Intent.Message.MediaContent.ResponseMediaObject.Builder mergeLargeImage(Intent.Message.Image value)

Optional. Image to display above media content.

.google.cloud.dialogflow.v2beta1.Intent.Message.Image large_image = 3;

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setContentUrl(String value)

public Intent.Message.MediaContent.ResponseMediaObject.Builder setContentUrl(String value)

Required. Url where the media is stored.

string content_url = 5;

Parameter
Name Description
value String

The contentUrl to set.

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

This builder for chaining.

setContentUrlBytes(ByteString value)

public Intent.Message.MediaContent.ResponseMediaObject.Builder setContentUrlBytes(ByteString value)

Required. Url where the media is stored.

string content_url = 5;

Parameter
Name Description
value ByteString

The bytes for contentUrl to set.

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

This builder for chaining.

setDescription(String value)

public Intent.Message.MediaContent.ResponseMediaObject.Builder setDescription(String value)

Optional. Description of media card.

string description = 2;

Parameter
Name Description
value String

The description to set.

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

This builder for chaining.

setDescriptionBytes(ByteString value)

public Intent.Message.MediaContent.ResponseMediaObject.Builder setDescriptionBytes(ByteString value)

Optional. Description of media card.

string description = 2;

Parameter
Name Description
value ByteString

The bytes for description to set.

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

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setIcon(Intent.Message.Image value)

public Intent.Message.MediaContent.ResponseMediaObject.Builder setIcon(Intent.Message.Image value)

Optional. Icon to display above media content.

.google.cloud.dialogflow.v2beta1.Intent.Message.Image icon = 4;

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

setIcon(Intent.Message.Image.Builder builderForValue)

public Intent.Message.MediaContent.ResponseMediaObject.Builder setIcon(Intent.Message.Image.Builder builderForValue)

Optional. Icon to display above media content.

.google.cloud.dialogflow.v2beta1.Intent.Message.Image icon = 4;

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

setLargeImage(Intent.Message.Image value)

public Intent.Message.MediaContent.ResponseMediaObject.Builder setLargeImage(Intent.Message.Image value)

Optional. Image to display above media content.

.google.cloud.dialogflow.v2beta1.Intent.Message.Image large_image = 3;

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

setLargeImage(Intent.Message.Image.Builder builderForValue)

public Intent.Message.MediaContent.ResponseMediaObject.Builder setLargeImage(Intent.Message.Image.Builder builderForValue)

Optional. Image to display above media content.

.google.cloud.dialogflow.v2beta1.Intent.Message.Image large_image = 3;

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

setName(String value)

public Intent.Message.MediaContent.ResponseMediaObject.Builder setName(String value)

Required. Name of media card.

string name = 1;

Parameter
Name Description
value String

The name to set.

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

This builder for chaining.

setNameBytes(ByteString value)

public Intent.Message.MediaContent.ResponseMediaObject.Builder setNameBytes(ByteString value)

Required. Name of media card.

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

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

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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