Class Intent.Message.RbmCardContent.Builder (4.47.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.dialogflow.v2beta1.Intent.Message.RbmSuggestion>
Returns
TypeDescription
Intent.Message.RbmCardContent.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Intent.Message.RbmCardContent.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueIntent.Message.RbmSuggestion
Returns
TypeDescription
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
NameDescription
builderForValueIntent.Message.RbmSuggestion.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueIntent.Message.RbmSuggestion
Returns
TypeDescription
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
NameDescription
indexint
builderForValueIntent.Message.RbmSuggestion.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Intent.Message.RbmSuggestion.Builder

build()

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

buildPartial()

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

clear()

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public Intent.Message.RbmCardContent getDefaultInstanceForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

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

Whether the media field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Intent.Message.RbmCardContent other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public Intent.Message.RbmCardContent.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueIntent.Message.RbmCardContent.RbmMedia
Returns
TypeDescription
Intent.Message.RbmCardContent.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

The description to set.

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

The bytes for description to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueIntent.Message.RbmCardContent.RbmMedia
Returns
TypeDescription
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
NameDescription
builderForValueIntent.Message.RbmCardContent.RbmMedia.Builder
Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueIntent.Message.RbmSuggestion
Returns
TypeDescription
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
NameDescription
indexint
builderForValueIntent.Message.RbmSuggestion.Builder
Returns
TypeDescription
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
NameDescription
valueString

The title to set.

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

The bytes for title to set.

Returns
TypeDescription
Intent.Message.RbmCardContent.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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