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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Intent.Message.RbmCardContent.RbmMedia build()
Returns
TypeDescription
Intent.Message.RbmCardContent.RbmMedia

buildPartial()

public Intent.Message.RbmCardContent.RbmMedia buildPartial()
Returns
TypeDescription
Intent.Message.RbmCardContent.RbmMedia

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Intent.Message.RbmCardContent.RbmMedia.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
Intent.Message.RbmCardContent.RbmMedia.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public Intent.Message.RbmCardContent.RbmMedia getDefaultInstanceForType()
Returns
TypeDescription
Intent.Message.RbmCardContent.RbmMedia

getDescriptorForType()

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

The bytes for thumbnailUri.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Intent.Message.RbmCardContent.RbmMedia other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

The fileUri to set.

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

The bytes for fileUri to set.

Returns
TypeDescription
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
NameDescription
valueIntent.Message.RbmCardContent.RbmMedia.Height

The height to set.

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

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

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

The thumbnailUri to set.

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

The bytes for thumbnailUri to set.

Returns
TypeDescription
Intent.Message.RbmCardContent.RbmMedia.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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