Class Intent.Message.MediaContent.ResponseMediaObject.Builder (4.6.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

public Intent.Message.MediaContent.ResponseMediaObject.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
Intent.Message.MediaContent.ResponseMediaObject.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Intent.Message.MediaContent.ResponseMediaObject.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
Intent.Message.MediaContent.ResponseMediaObject.Builder

clearImage()

public Intent.Message.MediaContent.ResponseMediaObject.Builder clearImage()
Returns
TypeDescription
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
TypeDescription
Intent.Message.MediaContent.ResponseMediaObject.Builder

clearName()

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

Required. Name of media card.

string name = 1;

Returns
TypeDescription
Intent.Message.MediaContent.ResponseMediaObject.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getContentUrl()

public String getContentUrl()

Required. Url where the media is stored.

string content_url = 5;

Returns
TypeDescription
String

The contentUrl.

getContentUrlBytes()

public ByteString getContentUrlBytes()

Required. Url where the media is stored.

string content_url = 5;

Returns
TypeDescription
ByteString

The bytes for contentUrl.

getDefaultInstanceForType()

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

getDescription()

public String getDescription()

Optional. Description of media card.

string description = 2;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. Description of media card.

string description = 2;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
Intent.Message.ImageOrBuilder

getImageCase()

public Intent.Message.MediaContent.ResponseMediaObject.ImageCase getImageCase()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
Intent.Message.ImageOrBuilder

getName()

public String getName()

Required. Name of media card.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Name of media card.

string name = 1;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the largeImage field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Intent.Message.MediaContent.ResponseMediaObject other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public Intent.Message.MediaContent.ResponseMediaObject.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueIntent.Message.Image
Returns
TypeDescription
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
NameDescription
valueIntent.Message.Image
Returns
TypeDescription
Intent.Message.MediaContent.ResponseMediaObject.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

The contentUrl to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for contentUrl to set.

Returns
TypeDescription
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
NameDescription
valueString

The description to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueIntent.Message.Image
Returns
TypeDescription
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
NameDescription
builderForValueIntent.Message.Image.Builder
Returns
TypeDescription
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
NameDescription
valueIntent.Message.Image
Returns
TypeDescription
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
NameDescription
builderForValueIntent.Message.Image.Builder
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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