Class Intent.Message.RbmCardContent.Builder (4.55.0)

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

Rich Business Messaging (RBM) Card content

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

Static Methods

getDescriptor()

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

Methods

addAllSuggestions(Iterable<? extends Intent.Message.RbmSuggestion> values)

public Intent.Message.RbmCardContent.Builder addAllSuggestions(Iterable<? extends Intent.Message.RbmSuggestion> values)

Optional. List of suggestions to include in the card.

repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;

Parameter
Name Description
values Iterable<? extends com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion>
Returns
Type Description
Intent.Message.RbmCardContent.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addSuggestions(Intent.Message.RbmSuggestion value)

public Intent.Message.RbmCardContent.Builder addSuggestions(Intent.Message.RbmSuggestion value)

Optional. List of suggestions to include in the card.

repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;

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

addSuggestions(Intent.Message.RbmSuggestion.Builder builderForValue)

public Intent.Message.RbmCardContent.Builder addSuggestions(Intent.Message.RbmSuggestion.Builder builderForValue)

Optional. List of suggestions to include in the card.

repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;

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

addSuggestions(int index, Intent.Message.RbmSuggestion value)

public Intent.Message.RbmCardContent.Builder addSuggestions(int index, Intent.Message.RbmSuggestion value)

Optional. List of suggestions to include in the card.

repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;

Parameters
Name Description
index int
value Intent.Message.RbmSuggestion
Returns
Type Description
Intent.Message.RbmCardContent.Builder

addSuggestions(int index, Intent.Message.RbmSuggestion.Builder builderForValue)

public Intent.Message.RbmCardContent.Builder addSuggestions(int index, Intent.Message.RbmSuggestion.Builder builderForValue)

Optional. List of suggestions to include in the card.

repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;

Parameters
Name Description
index int
builderForValue Intent.Message.RbmSuggestion.Builder
Returns
Type Description
Intent.Message.RbmCardContent.Builder

addSuggestionsBuilder()

public Intent.Message.RbmSuggestion.Builder addSuggestionsBuilder()

Optional. List of suggestions to include in the card.

repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;

Returns
Type Description
Intent.Message.RbmSuggestion.Builder

addSuggestionsBuilder(int index)

public Intent.Message.RbmSuggestion.Builder addSuggestionsBuilder(int index)

Optional. List of suggestions to include in the card.

repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;

Parameter
Name Description
index int
Returns
Type Description
Intent.Message.RbmSuggestion.Builder

build()

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

buildPartial()

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

clear()

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

clearDescription()

public Intent.Message.RbmCardContent.Builder clearDescription()

Optional. Description of the card (at most 2000 bytes).

At least one of the title, description or media must be set.

string description = 2;

Returns
Type Description
Intent.Message.RbmCardContent.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearMedia()

public Intent.Message.RbmCardContent.Builder clearMedia()

Optional. However at least one of the title, description or media must be set. Media (image, GIF or a video) to include in the card.

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

Returns
Type Description
Intent.Message.RbmCardContent.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSuggestions()

public Intent.Message.RbmCardContent.Builder clearSuggestions()

Optional. List of suggestions to include in the card.

repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;

Returns
Type Description
Intent.Message.RbmCardContent.Builder

clearTitle()

public Intent.Message.RbmCardContent.Builder clearTitle()

Optional. Title of the card (at most 200 bytes).

At least one of the title, description or media must be set.

string title = 1;

Returns
Type Description
Intent.Message.RbmCardContent.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

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

getDescription()

public String getDescription()

Optional. Description of the card (at most 2000 bytes).

At least one of the title, description or media must be set.

string description = 2;

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. Description of the card (at most 2000 bytes).

At least one of the title, description or media must be set.

string description = 2;

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

getMedia()

public Intent.Message.RbmCardContent.RbmMedia getMedia()

Optional. However at least one of the title, description or media must be set. Media (image, GIF or a video) to include in the card.

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

Returns
Type Description
Intent.Message.RbmCardContent.RbmMedia

The media.

getMediaBuilder()

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

Optional. However at least one of the title, description or media must be set. Media (image, GIF or a video) to include in the card.

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

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

getMediaOrBuilder()

public Intent.Message.RbmCardContent.RbmMediaOrBuilder getMediaOrBuilder()

Optional. However at least one of the title, description or media must be set. Media (image, GIF or a video) to include in the card.

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

Returns
Type Description
Intent.Message.RbmCardContent.RbmMediaOrBuilder

getSuggestions(int index)

public Intent.Message.RbmSuggestion getSuggestions(int index)

Optional. List of suggestions to include in the card.

repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;

Parameter
Name Description
index int
Returns
Type Description
Intent.Message.RbmSuggestion

getSuggestionsBuilder(int index)

public Intent.Message.RbmSuggestion.Builder getSuggestionsBuilder(int index)

Optional. List of suggestions to include in the card.

repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;

Parameter
Name Description
index int
Returns
Type Description
Intent.Message.RbmSuggestion.Builder

getSuggestionsBuilderList()

public List<Intent.Message.RbmSuggestion.Builder> getSuggestionsBuilderList()

Optional. List of suggestions to include in the card.

repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;

Returns
Type Description
List<Builder>

getSuggestionsCount()

public int getSuggestionsCount()

Optional. List of suggestions to include in the card.

repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;

Returns
Type Description
int

getSuggestionsList()

public List<Intent.Message.RbmSuggestion> getSuggestionsList()

Optional. List of suggestions to include in the card.

repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;

Returns
Type Description
List<RbmSuggestion>

getSuggestionsOrBuilder(int index)

public Intent.Message.RbmSuggestionOrBuilder getSuggestionsOrBuilder(int index)

Optional. List of suggestions to include in the card.

repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;

Parameter
Name Description
index int
Returns
Type Description
Intent.Message.RbmSuggestionOrBuilder

getSuggestionsOrBuilderList()

public List<? extends Intent.Message.RbmSuggestionOrBuilder> getSuggestionsOrBuilderList()

Optional. List of suggestions to include in the card.

repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;

Returns
Type Description
List<? extends com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestionOrBuilder>

getTitle()

public String getTitle()

Optional. Title of the card (at most 200 bytes).

At least one of the title, description or media must be set.

string title = 1;

Returns
Type Description
String

The title.

getTitleBytes()

public ByteString getTitleBytes()

Optional. Title of the card (at most 200 bytes).

At least one of the title, description or media must be set.

string title = 1;

Returns
Type Description
ByteString

The bytes for title.

hasMedia()

public boolean hasMedia()

Optional. However at least one of the title, description or media must be set. Media (image, GIF or a video) to include in the card.

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

Returns
Type Description
boolean

Whether the media field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Intent.Message.RbmCardContent other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeMedia(Intent.Message.RbmCardContent.RbmMedia value)

public Intent.Message.RbmCardContent.Builder mergeMedia(Intent.Message.RbmCardContent.RbmMedia value)

Optional. However at least one of the title, description or media must be set. Media (image, GIF or a video) to include in the card.

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

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeSuggestions(int index)

public Intent.Message.RbmCardContent.Builder removeSuggestions(int index)

Optional. List of suggestions to include in the card.

repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;

Parameter
Name Description
index int
Returns
Type Description
Intent.Message.RbmCardContent.Builder

setDescription(String value)

public Intent.Message.RbmCardContent.Builder setDescription(String value)

Optional. Description of the card (at most 2000 bytes).

At least one of the title, description or media must be set.

string description = 2;

Parameter
Name Description
value String

The description to set.

Returns
Type Description
Intent.Message.RbmCardContent.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public Intent.Message.RbmCardContent.Builder setDescriptionBytes(ByteString value)

Optional. Description of the card (at most 2000 bytes).

At least one of the title, description or media must be set.

string description = 2;

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
Intent.Message.RbmCardContent.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setMedia(Intent.Message.RbmCardContent.RbmMedia value)

public Intent.Message.RbmCardContent.Builder setMedia(Intent.Message.RbmCardContent.RbmMedia value)

Optional. However at least one of the title, description or media must be set. Media (image, GIF or a video) to include in the card.

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

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

setMedia(Intent.Message.RbmCardContent.RbmMedia.Builder builderForValue)

public Intent.Message.RbmCardContent.Builder setMedia(Intent.Message.RbmCardContent.RbmMedia.Builder builderForValue)

Optional. However at least one of the title, description or media must be set. Media (image, GIF or a video) to include in the card.

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

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

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

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

setSuggestions(int index, Intent.Message.RbmSuggestion value)

public Intent.Message.RbmCardContent.Builder setSuggestions(int index, Intent.Message.RbmSuggestion value)

Optional. List of suggestions to include in the card.

repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;

Parameters
Name Description
index int
value Intent.Message.RbmSuggestion
Returns
Type Description
Intent.Message.RbmCardContent.Builder

setSuggestions(int index, Intent.Message.RbmSuggestion.Builder builderForValue)

public Intent.Message.RbmCardContent.Builder setSuggestions(int index, Intent.Message.RbmSuggestion.Builder builderForValue)

Optional. List of suggestions to include in the card.

repeated .google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion suggestions = 4;

Parameters
Name Description
index int
builderForValue Intent.Message.RbmSuggestion.Builder
Returns
Type Description
Intent.Message.RbmCardContent.Builder

setTitle(String value)

public Intent.Message.RbmCardContent.Builder setTitle(String value)

Optional. Title of the card (at most 200 bytes).

At least one of the title, description or media must be set.

string title = 1;

Parameter
Name Description
value String

The title to set.

Returns
Type Description
Intent.Message.RbmCardContent.Builder

This builder for chaining.

setTitleBytes(ByteString value)

public Intent.Message.RbmCardContent.Builder setTitleBytes(ByteString value)

Optional. Title of the card (at most 200 bytes).

At least one of the title, description or media must be set.

string title = 1;

Parameter
Name Description
value ByteString

The bytes for title to set.

Returns
Type Description
Intent.Message.RbmCardContent.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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