Class Intent.Message.RbmStandaloneCard.Builder (4.7.5)

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Intent.Message.RbmStandaloneCard build()
Returns
TypeDescription
Intent.Message.RbmStandaloneCard

buildPartial()

public Intent.Message.RbmStandaloneCard buildPartial()
Returns
TypeDescription
Intent.Message.RbmStandaloneCard

clear()

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Intent.Message.RbmStandaloneCard.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Intent.Message.RbmStandaloneCard.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

public Intent.Message.RbmStandaloneCard.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
Intent.Message.RbmCardContent.Builder

getCardContentOrBuilder()

public Intent.Message.RbmCardContentOrBuilder getCardContentOrBuilder()

Required. Card content.

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

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

The enum numeric value on the wire for cardOrientation.

getDefaultInstanceForType()

public Intent.Message.RbmStandaloneCard getDefaultInstanceForType()
Returns
TypeDescription
Intent.Message.RbmStandaloneCard

getDescriptorForType()

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

Whether the cardContent field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueIntent.Message.RbmCardContent
Returns
TypeDescription
Intent.Message.RbmStandaloneCard.Builder

mergeFrom(Intent.Message.RbmStandaloneCard other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Intent.Message.RbmStandaloneCard.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueIntent.Message.RbmCardContent
Returns
TypeDescription
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
NameDescription
builderForValueIntent.Message.RbmCardContent.Builder
Returns
TypeDescription
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
NameDescription
valueIntent.Message.RbmStandaloneCard.CardOrientation

The cardOrientation to set.

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

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

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueIntent.Message.RbmStandaloneCard.ThumbnailImageAlignment

The thumbnailImageAlignment to set.

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

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

Returns
TypeDescription
Intent.Message.RbmStandaloneCard.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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