Class Intent.Message.RbmStandaloneCard.Builder (4.33.0)

public static final class Intent.Message.RbmStandaloneCard.Builder extends GeneratedMessageV3.Builder<Intent.Message.RbmStandaloneCard.Builder> implements Intent.Message.RbmStandaloneCardOrBuilder

Standalone Rich Business Messaging (RBM) rich card.

Rich cards allow you to respond to users with more vivid content, e.g. with media and suggestions.

You can group multiple rich cards into one using RbmCarouselCard but carousel cards will give you less control over the card layout.

Protobuf type google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Intent.Message.RbmStandaloneCard build()
Returns
Type Description
Intent.Message.RbmStandaloneCard

buildPartial()

public Intent.Message.RbmStandaloneCard buildPartial()
Returns
Type Description
Intent.Message.RbmStandaloneCard

clear()

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

clearCardContent()

public Intent.Message.RbmStandaloneCard.Builder clearCardContent()

Required. Card content.

.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_content = 3;

Returns
Type Description
Intent.Message.RbmStandaloneCard.Builder

clearCardOrientation()

public Intent.Message.RbmStandaloneCard.Builder clearCardOrientation()

Required. Orientation of the card.

.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.CardOrientation card_orientation = 1;

Returns
Type Description
Intent.Message.RbmStandaloneCard.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearThumbnailImageAlignment()

public Intent.Message.RbmStandaloneCard.Builder clearThumbnailImageAlignment()

Required if orientation is horizontal. Image preview alignment for standalone cards with horizontal layout.

.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.ThumbnailImageAlignment thumbnail_image_alignment = 2;

Returns
Type Description
Intent.Message.RbmStandaloneCard.Builder

This builder for chaining.

clone()

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

getCardContent()

public Intent.Message.RbmCardContent getCardContent()

Required. Card content.

.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_content = 3;

Returns
Type Description
Intent.Message.RbmCardContent

The cardContent.

getCardContentBuilder()

public Intent.Message.RbmCardContent.Builder getCardContentBuilder()

Required. Card content.

.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_content = 3;

Returns
Type Description
Intent.Message.RbmCardContent.Builder

getCardContentOrBuilder()

public Intent.Message.RbmCardContentOrBuilder getCardContentOrBuilder()

Required. Card content.

.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_content = 3;

Returns
Type Description
Intent.Message.RbmCardContentOrBuilder

getCardOrientation()

public Intent.Message.RbmStandaloneCard.CardOrientation getCardOrientation()

Required. Orientation of the card.

.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.CardOrientation card_orientation = 1;

Returns
Type Description
Intent.Message.RbmStandaloneCard.CardOrientation

The cardOrientation.

getCardOrientationValue()

public int getCardOrientationValue()

Required. Orientation of the card.

.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.CardOrientation card_orientation = 1;

Returns
Type Description
int

The enum numeric value on the wire for cardOrientation.

getDefaultInstanceForType()

public Intent.Message.RbmStandaloneCard getDefaultInstanceForType()
Returns
Type Description
Intent.Message.RbmStandaloneCard

getDescriptorForType()

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

getThumbnailImageAlignment()

public Intent.Message.RbmStandaloneCard.ThumbnailImageAlignment getThumbnailImageAlignment()

Required if orientation is horizontal. Image preview alignment for standalone cards with horizontal layout.

.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.ThumbnailImageAlignment thumbnail_image_alignment = 2;

Returns
Type Description
Intent.Message.RbmStandaloneCard.ThumbnailImageAlignment

The thumbnailImageAlignment.

getThumbnailImageAlignmentValue()

public int getThumbnailImageAlignmentValue()

Required if orientation is horizontal. Image preview alignment for standalone cards with horizontal layout.

.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.ThumbnailImageAlignment thumbnail_image_alignment = 2;

Returns
Type Description
int

The enum numeric value on the wire for thumbnailImageAlignment.

hasCardContent()

public boolean hasCardContent()

Required. Card content.

.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_content = 3;

Returns
Type Description
boolean

Whether the cardContent field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCardContent(Intent.Message.RbmCardContent value)

public Intent.Message.RbmStandaloneCard.Builder mergeCardContent(Intent.Message.RbmCardContent value)

Required. Card content.

.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_content = 3;

Parameter
Name Description
value Intent.Message.RbmCardContent
Returns
Type Description
Intent.Message.RbmStandaloneCard.Builder

mergeFrom(Intent.Message.RbmStandaloneCard other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCardContent(Intent.Message.RbmCardContent value)

public Intent.Message.RbmStandaloneCard.Builder setCardContent(Intent.Message.RbmCardContent value)

Required. Card content.

.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_content = 3;

Parameter
Name Description
value Intent.Message.RbmCardContent
Returns
Type Description
Intent.Message.RbmStandaloneCard.Builder

setCardContent(Intent.Message.RbmCardContent.Builder builderForValue)

public Intent.Message.RbmStandaloneCard.Builder setCardContent(Intent.Message.RbmCardContent.Builder builderForValue)

Required. Card content.

.google.cloud.dialogflow.v2beta1.Intent.Message.RbmCardContent card_content = 3;

Parameter
Name Description
builderForValue Intent.Message.RbmCardContent.Builder
Returns
Type Description
Intent.Message.RbmStandaloneCard.Builder

setCardOrientation(Intent.Message.RbmStandaloneCard.CardOrientation value)

public Intent.Message.RbmStandaloneCard.Builder setCardOrientation(Intent.Message.RbmStandaloneCard.CardOrientation value)

Required. Orientation of the card.

.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.CardOrientation card_orientation = 1;

Parameter
Name Description
value Intent.Message.RbmStandaloneCard.CardOrientation

The cardOrientation to set.

Returns
Type Description
Intent.Message.RbmStandaloneCard.Builder

This builder for chaining.

setCardOrientationValue(int value)

public Intent.Message.RbmStandaloneCard.Builder setCardOrientationValue(int value)

Required. Orientation of the card.

.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.CardOrientation card_orientation = 1;

Parameter
Name Description
value int

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

Returns
Type Description
Intent.Message.RbmStandaloneCard.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setThumbnailImageAlignment(Intent.Message.RbmStandaloneCard.ThumbnailImageAlignment value)

public Intent.Message.RbmStandaloneCard.Builder setThumbnailImageAlignment(Intent.Message.RbmStandaloneCard.ThumbnailImageAlignment value)

Required if orientation is horizontal. Image preview alignment for standalone cards with horizontal layout.

.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.ThumbnailImageAlignment thumbnail_image_alignment = 2;

Parameter
Name Description
value Intent.Message.RbmStandaloneCard.ThumbnailImageAlignment

The thumbnailImageAlignment to set.

Returns
Type Description
Intent.Message.RbmStandaloneCard.Builder

This builder for chaining.

setThumbnailImageAlignmentValue(int value)

public Intent.Message.RbmStandaloneCard.Builder setThumbnailImageAlignmentValue(int value)

Required if orientation is horizontal. Image preview alignment for standalone cards with horizontal layout.

.google.cloud.dialogflow.v2beta1.Intent.Message.RbmStandaloneCard.ThumbnailImageAlignment thumbnail_image_alignment = 2;

Parameter
Name Description
value int

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

Returns
Type Description
Intent.Message.RbmStandaloneCard.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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