Class Intent.Message.BasicCard.Builder (4.8.5)

public static final class Intent.Message.BasicCard.Builder extends GeneratedMessageV3.Builder<Intent.Message.BasicCard.Builder> implements Intent.Message.BasicCardOrBuilder

The basic card message. Useful for displaying information.

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllButtons(Iterable<? extends Intent.Message.BasicCard.Button> values)

public Intent.Message.BasicCard.Builder addAllButtons(Iterable<? extends Intent.Message.BasicCard.Button> values)

Optional. The collection of card buttons.

repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 5;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button>
Returns
TypeDescription
Intent.Message.BasicCard.Builder

addButtons(Intent.Message.BasicCard.Button value)

public Intent.Message.BasicCard.Builder addButtons(Intent.Message.BasicCard.Button value)

Optional. The collection of card buttons.

repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 5;

Parameter
NameDescription
valueIntent.Message.BasicCard.Button
Returns
TypeDescription
Intent.Message.BasicCard.Builder

addButtons(Intent.Message.BasicCard.Button.Builder builderForValue)

public Intent.Message.BasicCard.Builder addButtons(Intent.Message.BasicCard.Button.Builder builderForValue)

Optional. The collection of card buttons.

repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 5;

Parameter
NameDescription
builderForValueIntent.Message.BasicCard.Button.Builder
Returns
TypeDescription
Intent.Message.BasicCard.Builder

addButtons(int index, Intent.Message.BasicCard.Button value)

public Intent.Message.BasicCard.Builder addButtons(int index, Intent.Message.BasicCard.Button value)

Optional. The collection of card buttons.

repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 5;

Parameters
NameDescription
indexint
valueIntent.Message.BasicCard.Button
Returns
TypeDescription
Intent.Message.BasicCard.Builder

addButtons(int index, Intent.Message.BasicCard.Button.Builder builderForValue)

public Intent.Message.BasicCard.Builder addButtons(int index, Intent.Message.BasicCard.Button.Builder builderForValue)

Optional. The collection of card buttons.

repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 5;

Parameters
NameDescription
indexint
builderForValueIntent.Message.BasicCard.Button.Builder
Returns
TypeDescription
Intent.Message.BasicCard.Builder

addButtonsBuilder()

public Intent.Message.BasicCard.Button.Builder addButtonsBuilder()

Optional. The collection of card buttons.

repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 5;

Returns
TypeDescription
Intent.Message.BasicCard.Button.Builder

addButtonsBuilder(int index)

public Intent.Message.BasicCard.Button.Builder addButtonsBuilder(int index)

Optional. The collection of card buttons.

repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
Intent.Message.BasicCard.Button.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

public Intent.Message.BasicCard.Builder clear()
Returns
TypeDescription
Intent.Message.BasicCard.Builder
Overrides

clearButtons()

public Intent.Message.BasicCard.Builder clearButtons()

Optional. The collection of card buttons.

repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 5;

Returns
TypeDescription
Intent.Message.BasicCard.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearFormattedText()

public Intent.Message.BasicCard.Builder clearFormattedText()

Required, unless image is present. The body text of the card.

string formatted_text = 3;

Returns
TypeDescription
Intent.Message.BasicCard.Builder

This builder for chaining.

clearImage()

public Intent.Message.BasicCard.Builder clearImage()

Optional. The image for the card.

.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4;

Returns
TypeDescription
Intent.Message.BasicCard.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public Intent.Message.BasicCard.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Intent.Message.BasicCard.Builder
Overrides

clearSubtitle()

public Intent.Message.BasicCard.Builder clearSubtitle()

Optional. The subtitle of the card.

string subtitle = 2;

Returns
TypeDescription
Intent.Message.BasicCard.Builder

This builder for chaining.

clearTitle()

public Intent.Message.BasicCard.Builder clearTitle()

Optional. The title of the card.

string title = 1;

Returns
TypeDescription
Intent.Message.BasicCard.Builder

This builder for chaining.

clone()

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

getButtons(int index)

public Intent.Message.BasicCard.Button getButtons(int index)

Optional. The collection of card buttons.

repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
Intent.Message.BasicCard.Button

getButtonsBuilder(int index)

public Intent.Message.BasicCard.Button.Builder getButtonsBuilder(int index)

Optional. The collection of card buttons.

repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
Intent.Message.BasicCard.Button.Builder

getButtonsBuilderList()

public List<Intent.Message.BasicCard.Button.Builder> getButtonsBuilderList()

Optional. The collection of card buttons.

repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 5;

Returns
TypeDescription
List<Builder>

getButtonsCount()

public int getButtonsCount()

Optional. The collection of card buttons.

repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 5;

Returns
TypeDescription
int

getButtonsList()

public List<Intent.Message.BasicCard.Button> getButtonsList()

Optional. The collection of card buttons.

repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 5;

Returns
TypeDescription
List<Button>

getButtonsOrBuilder(int index)

public Intent.Message.BasicCard.ButtonOrBuilder getButtonsOrBuilder(int index)

Optional. The collection of card buttons.

repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
Intent.Message.BasicCard.ButtonOrBuilder

getButtonsOrBuilderList()

public List<? extends Intent.Message.BasicCard.ButtonOrBuilder> getButtonsOrBuilderList()

Optional. The collection of card buttons.

repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 5;

Returns
TypeDescription
List<? extends com.google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.ButtonOrBuilder>

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFormattedText()

public String getFormattedText()

Required, unless image is present. The body text of the card.

string formatted_text = 3;

Returns
TypeDescription
String

The formattedText.

getFormattedTextBytes()

public ByteString getFormattedTextBytes()

Required, unless image is present. The body text of the card.

string formatted_text = 3;

Returns
TypeDescription
ByteString

The bytes for formattedText.

getImage()

public Intent.Message.Image getImage()

Optional. The image for the card.

.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4;

Returns
TypeDescription
Intent.Message.Image

The image.

getImageBuilder()

public Intent.Message.Image.Builder getImageBuilder()

Optional. The image for the card.

.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4;

Returns
TypeDescription
Intent.Message.Image.Builder

getImageOrBuilder()

public Intent.Message.ImageOrBuilder getImageOrBuilder()

Optional. The image for the card.

.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4;

Returns
TypeDescription
Intent.Message.ImageOrBuilder

getSubtitle()

public String getSubtitle()

Optional. The subtitle of the card.

string subtitle = 2;

Returns
TypeDescription
String

The subtitle.

getSubtitleBytes()

public ByteString getSubtitleBytes()

Optional. The subtitle of the card.

string subtitle = 2;

Returns
TypeDescription
ByteString

The bytes for subtitle.

getTitle()

public String getTitle()

Optional. The title of the card.

string title = 1;

Returns
TypeDescription
String

The title.

getTitleBytes()

public ByteString getTitleBytes()

Optional. The title of the card.

string title = 1;

Returns
TypeDescription
ByteString

The bytes for title.

hasImage()

public boolean hasImage()

Optional. The image for the card.

.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4;

Returns
TypeDescription
boolean

Whether the image field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Intent.Message.BasicCard other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeImage(Intent.Message.Image value)

public Intent.Message.BasicCard.Builder mergeImage(Intent.Message.Image value)

Optional. The image for the card.

.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4;

Parameter
NameDescription
valueIntent.Message.Image
Returns
TypeDescription
Intent.Message.BasicCard.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeButtons(int index)

public Intent.Message.BasicCard.Builder removeButtons(int index)

Optional. The collection of card buttons.

repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
Intent.Message.BasicCard.Builder

setButtons(int index, Intent.Message.BasicCard.Button value)

public Intent.Message.BasicCard.Builder setButtons(int index, Intent.Message.BasicCard.Button value)

Optional. The collection of card buttons.

repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 5;

Parameters
NameDescription
indexint
valueIntent.Message.BasicCard.Button
Returns
TypeDescription
Intent.Message.BasicCard.Builder

setButtons(int index, Intent.Message.BasicCard.Button.Builder builderForValue)

public Intent.Message.BasicCard.Builder setButtons(int index, Intent.Message.BasicCard.Button.Builder builderForValue)

Optional. The collection of card buttons.

repeated .google.cloud.dialogflow.v2beta1.Intent.Message.BasicCard.Button buttons = 5;

Parameters
NameDescription
indexint
builderForValueIntent.Message.BasicCard.Button.Builder
Returns
TypeDescription
Intent.Message.BasicCard.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setFormattedText(String value)

public Intent.Message.BasicCard.Builder setFormattedText(String value)

Required, unless image is present. The body text of the card.

string formatted_text = 3;

Parameter
NameDescription
valueString

The formattedText to set.

Returns
TypeDescription
Intent.Message.BasicCard.Builder

This builder for chaining.

setFormattedTextBytes(ByteString value)

public Intent.Message.BasicCard.Builder setFormattedTextBytes(ByteString value)

Required, unless image is present. The body text of the card.

string formatted_text = 3;

Parameter
NameDescription
valueByteString

The bytes for formattedText to set.

Returns
TypeDescription
Intent.Message.BasicCard.Builder

This builder for chaining.

setImage(Intent.Message.Image value)

public Intent.Message.BasicCard.Builder setImage(Intent.Message.Image value)

Optional. The image for the card.

.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4;

Parameter
NameDescription
valueIntent.Message.Image
Returns
TypeDescription
Intent.Message.BasicCard.Builder

setImage(Intent.Message.Image.Builder builderForValue)

public Intent.Message.BasicCard.Builder setImage(Intent.Message.Image.Builder builderForValue)

Optional. The image for the card.

.google.cloud.dialogflow.v2beta1.Intent.Message.Image image = 4;

Parameter
NameDescription
builderForValueIntent.Message.Image.Builder
Returns
TypeDescription
Intent.Message.BasicCard.Builder

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

public Intent.Message.BasicCard.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Intent.Message.BasicCard.Builder
Overrides

setSubtitle(String value)

public Intent.Message.BasicCard.Builder setSubtitle(String value)

Optional. The subtitle of the card.

string subtitle = 2;

Parameter
NameDescription
valueString

The subtitle to set.

Returns
TypeDescription
Intent.Message.BasicCard.Builder

This builder for chaining.

setSubtitleBytes(ByteString value)

public Intent.Message.BasicCard.Builder setSubtitleBytes(ByteString value)

Optional. The subtitle of the card.

string subtitle = 2;

Parameter
NameDescription
valueByteString

The bytes for subtitle to set.

Returns
TypeDescription
Intent.Message.BasicCard.Builder

This builder for chaining.

setTitle(String value)

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

Optional. The title of the card.

string title = 1;

Parameter
NameDescription
valueString

The title to set.

Returns
TypeDescription
Intent.Message.BasicCard.Builder

This builder for chaining.

setTitleBytes(ByteString value)

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

Optional. The title of the card.

string title = 1;

Parameter
NameDescription
valueByteString

The bytes for title to set.

Returns
TypeDescription
Intent.Message.BasicCard.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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