Class Intent.Message.RbmCardContent.RbmMedia.Builder (4.50.0)

public static final class Intent.Message.RbmCardContent.RbmMedia.Builder extends GeneratedMessageV3.Builder<Intent.Message.RbmCardContent.RbmMedia.Builder> implements Intent.Message.RbmCardContent.RbmMediaOrBuilder

Rich Business Messaging (RBM) Media displayed in Cards The following media-types are currently supported:

Image Types

  • image/jpeg
  • image/jpg'
  • image/gif
  • image/png

    Video Types

  • video/h263

  • video/m4v
  • video/mp4
  • video/mpeg
  • video/mpeg4
  • video/webm

Protobuf type google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Intent.Message.RbmCardContent.RbmMedia build()
Returns
Type Description
Intent.Message.RbmCardContent.RbmMedia

buildPartial()

public Intent.Message.RbmCardContent.RbmMedia buildPartial()
Returns
Type Description
Intent.Message.RbmCardContent.RbmMedia

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearFileUri()

public Intent.Message.RbmCardContent.RbmMedia.Builder clearFileUri()

Required. Publicly reachable URI of the file. The RBM platform determines the MIME type of the file from the content-type field in the HTTP headers when the platform fetches the file. The content-type field must be present and accurate in the HTTP response from the URL.

string file_uri = 1;

Returns
Type Description
Intent.Message.RbmCardContent.RbmMedia.Builder

This builder for chaining.

clearHeight()

public Intent.Message.RbmCardContent.RbmMedia.Builder clearHeight()

Required for cards with vertical orientation. The height of the media within a rich card with a vertical layout. For a standalone card with horizontal layout, height is not customizable, and this field is ignored.

.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia.Height height = 3;

Returns
Type Description
Intent.Message.RbmCardContent.RbmMedia.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearThumbnailUri()

public Intent.Message.RbmCardContent.RbmMedia.Builder clearThumbnailUri()

Optional. Publicly reachable URI of the thumbnail.If you don't provide a thumbnail URI, the RBM platform displays a blank placeholder thumbnail until the user's device downloads the file. Depending on the user's setting, the file may not download automatically and may require the user to tap a download button.

string thumbnail_uri = 2;

Returns
Type Description
Intent.Message.RbmCardContent.RbmMedia.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public Intent.Message.RbmCardContent.RbmMedia getDefaultInstanceForType()
Returns
Type Description
Intent.Message.RbmCardContent.RbmMedia

getDescriptorForType()

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

getFileUri()

public String getFileUri()

Required. Publicly reachable URI of the file. The RBM platform determines the MIME type of the file from the content-type field in the HTTP headers when the platform fetches the file. The content-type field must be present and accurate in the HTTP response from the URL.

string file_uri = 1;

Returns
Type Description
String

The fileUri.

getFileUriBytes()

public ByteString getFileUriBytes()

Required. Publicly reachable URI of the file. The RBM platform determines the MIME type of the file from the content-type field in the HTTP headers when the platform fetches the file. The content-type field must be present and accurate in the HTTP response from the URL.

string file_uri = 1;

Returns
Type Description
ByteString

The bytes for fileUri.

getHeight()

public Intent.Message.RbmCardContent.RbmMedia.Height getHeight()

Required for cards with vertical orientation. The height of the media within a rich card with a vertical layout. For a standalone card with horizontal layout, height is not customizable, and this field is ignored.

.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia.Height height = 3;

Returns
Type Description
Intent.Message.RbmCardContent.RbmMedia.Height

The height.

getHeightValue()

public int getHeightValue()

Required for cards with vertical orientation. The height of the media within a rich card with a vertical layout. For a standalone card with horizontal layout, height is not customizable, and this field is ignored.

.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia.Height height = 3;

Returns
Type Description
int

The enum numeric value on the wire for height.

getThumbnailUri()

public String getThumbnailUri()

Optional. Publicly reachable URI of the thumbnail.If you don't provide a thumbnail URI, the RBM platform displays a blank placeholder thumbnail until the user's device downloads the file. Depending on the user's setting, the file may not download automatically and may require the user to tap a download button.

string thumbnail_uri = 2;

Returns
Type Description
String

The thumbnailUri.

getThumbnailUriBytes()

public ByteString getThumbnailUriBytes()

Optional. Publicly reachable URI of the thumbnail.If you don't provide a thumbnail URI, the RBM platform displays a blank placeholder thumbnail until the user's device downloads the file. Depending on the user's setting, the file may not download automatically and may require the user to tap a download button.

string thumbnail_uri = 2;

Returns
Type Description
ByteString

The bytes for thumbnailUri.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Intent.Message.RbmCardContent.RbmMedia other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setFileUri(String value)

public Intent.Message.RbmCardContent.RbmMedia.Builder setFileUri(String value)

Required. Publicly reachable URI of the file. The RBM platform determines the MIME type of the file from the content-type field in the HTTP headers when the platform fetches the file. The content-type field must be present and accurate in the HTTP response from the URL.

string file_uri = 1;

Parameter
Name Description
value String

The fileUri to set.

Returns
Type Description
Intent.Message.RbmCardContent.RbmMedia.Builder

This builder for chaining.

setFileUriBytes(ByteString value)

public Intent.Message.RbmCardContent.RbmMedia.Builder setFileUriBytes(ByteString value)

Required. Publicly reachable URI of the file. The RBM platform determines the MIME type of the file from the content-type field in the HTTP headers when the platform fetches the file. The content-type field must be present and accurate in the HTTP response from the URL.

string file_uri = 1;

Parameter
Name Description
value ByteString

The bytes for fileUri to set.

Returns
Type Description
Intent.Message.RbmCardContent.RbmMedia.Builder

This builder for chaining.

setHeight(Intent.Message.RbmCardContent.RbmMedia.Height value)

public Intent.Message.RbmCardContent.RbmMedia.Builder setHeight(Intent.Message.RbmCardContent.RbmMedia.Height value)

Required for cards with vertical orientation. The height of the media within a rich card with a vertical layout. For a standalone card with horizontal layout, height is not customizable, and this field is ignored.

.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia.Height height = 3;

Parameter
Name Description
value Intent.Message.RbmCardContent.RbmMedia.Height

The height to set.

Returns
Type Description
Intent.Message.RbmCardContent.RbmMedia.Builder

This builder for chaining.

setHeightValue(int value)

public Intent.Message.RbmCardContent.RbmMedia.Builder setHeightValue(int value)

Required for cards with vertical orientation. The height of the media within a rich card with a vertical layout. For a standalone card with horizontal layout, height is not customizable, and this field is ignored.

.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent.RbmMedia.Height height = 3;

Parameter
Name Description
value int

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

Returns
Type Description
Intent.Message.RbmCardContent.RbmMedia.Builder

This builder for chaining.

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

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

setThumbnailUri(String value)

public Intent.Message.RbmCardContent.RbmMedia.Builder setThumbnailUri(String value)

Optional. Publicly reachable URI of the thumbnail.If you don't provide a thumbnail URI, the RBM platform displays a blank placeholder thumbnail until the user's device downloads the file. Depending on the user's setting, the file may not download automatically and may require the user to tap a download button.

string thumbnail_uri = 2;

Parameter
Name Description
value String

The thumbnailUri to set.

Returns
Type Description
Intent.Message.RbmCardContent.RbmMedia.Builder

This builder for chaining.

setThumbnailUriBytes(ByteString value)

public Intent.Message.RbmCardContent.RbmMedia.Builder setThumbnailUriBytes(ByteString value)

Optional. Publicly reachable URI of the thumbnail.If you don't provide a thumbnail URI, the RBM platform displays a blank placeholder thumbnail until the user's device downloads the file. Depending on the user's setting, the file may not download automatically and may require the user to tap a download button.

string thumbnail_uri = 2;

Parameter
Name Description
value ByteString

The bytes for thumbnailUri to set.

Returns
Type Description
Intent.Message.RbmCardContent.RbmMedia.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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