Class Intent.Message.CarouselSelect.Item.Builder (4.6.0)

public static final class Intent.Message.CarouselSelect.Item.Builder extends GeneratedMessageV3.Builder<Intent.Message.CarouselSelect.Item.Builder> implements Intent.Message.CarouselSelect.ItemOrBuilder

An item in the carousel.

Protobuf type google.cloud.dialogflow.v2beta1.Intent.Message.CarouselSelect.Item

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Intent.Message.CarouselSelect.Item build()
Returns
TypeDescription
Intent.Message.CarouselSelect.Item

buildPartial()

public Intent.Message.CarouselSelect.Item buildPartial()
Returns
TypeDescription
Intent.Message.CarouselSelect.Item

clear()

public Intent.Message.CarouselSelect.Item.Builder clear()
Returns
TypeDescription
Intent.Message.CarouselSelect.Item.Builder
Overrides

clearDescription()

public Intent.Message.CarouselSelect.Item.Builder clearDescription()

Optional. The body text of the card.

string description = 3;

Returns
TypeDescription
Intent.Message.CarouselSelect.Item.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearImage()

public Intent.Message.CarouselSelect.Item.Builder clearImage()

Optional. The image to display.

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

Returns
TypeDescription
Intent.Message.CarouselSelect.Item.Builder

clearInfo()

public Intent.Message.CarouselSelect.Item.Builder clearInfo()

Required. Additional info about the option item.

.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo info = 1;

Returns
TypeDescription
Intent.Message.CarouselSelect.Item.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTitle()

public Intent.Message.CarouselSelect.Item.Builder clearTitle()

Required. Title of the carousel item.

string title = 2;

Returns
TypeDescription
Intent.Message.CarouselSelect.Item.Builder

This builder for chaining.

clone()

public Intent.Message.CarouselSelect.Item.Builder clone()
Returns
TypeDescription
Intent.Message.CarouselSelect.Item.Builder
Overrides

getDefaultInstanceForType()

public Intent.Message.CarouselSelect.Item getDefaultInstanceForType()
Returns
TypeDescription
Intent.Message.CarouselSelect.Item

getDescription()

public String getDescription()

Optional. The body text of the card.

string description = 3;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. The body text of the card.

string description = 3;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getImage()

public Intent.Message.Image getImage()

Optional. The image to display.

.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 to display.

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

Returns
TypeDescription
Intent.Message.Image.Builder

getImageOrBuilder()

public Intent.Message.ImageOrBuilder getImageOrBuilder()

Optional. The image to display.

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

Returns
TypeDescription
Intent.Message.ImageOrBuilder

getInfo()

public Intent.Message.SelectItemInfo getInfo()

Required. Additional info about the option item.

.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo info = 1;

Returns
TypeDescription
Intent.Message.SelectItemInfo

The info.

getInfoBuilder()

public Intent.Message.SelectItemInfo.Builder getInfoBuilder()

Required. Additional info about the option item.

.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo info = 1;

Returns
TypeDescription
Intent.Message.SelectItemInfo.Builder

getInfoOrBuilder()

public Intent.Message.SelectItemInfoOrBuilder getInfoOrBuilder()

Required. Additional info about the option item.

.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo info = 1;

Returns
TypeDescription
Intent.Message.SelectItemInfoOrBuilder

getTitle()

public String getTitle()

Required. Title of the carousel item.

string title = 2;

Returns
TypeDescription
String

The title.

getTitleBytes()

public ByteString getTitleBytes()

Required. Title of the carousel item.

string title = 2;

Returns
TypeDescription
ByteString

The bytes for title.

hasImage()

public boolean hasImage()

Optional. The image to display.

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

Returns
TypeDescription
boolean

Whether the image field is set.

hasInfo()

public boolean hasInfo()

Required. Additional info about the option item.

.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo info = 1;

Returns
TypeDescription
boolean

Whether the info field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Intent.Message.CarouselSelect.Item other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeImage(Intent.Message.Image value)

public Intent.Message.CarouselSelect.Item.Builder mergeImage(Intent.Message.Image value)

Optional. The image to display.

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

Parameter
NameDescription
valueIntent.Message.Image
Returns
TypeDescription
Intent.Message.CarouselSelect.Item.Builder

mergeInfo(Intent.Message.SelectItemInfo value)

public Intent.Message.CarouselSelect.Item.Builder mergeInfo(Intent.Message.SelectItemInfo value)

Required. Additional info about the option item.

.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo info = 1;

Parameter
NameDescription
valueIntent.Message.SelectItemInfo
Returns
TypeDescription
Intent.Message.CarouselSelect.Item.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDescription(String value)

public Intent.Message.CarouselSelect.Item.Builder setDescription(String value)

Optional. The body text of the card.

string description = 3;

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
Intent.Message.CarouselSelect.Item.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public Intent.Message.CarouselSelect.Item.Builder setDescriptionBytes(ByteString value)

Optional. The body text of the card.

string description = 3;

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
Intent.Message.CarouselSelect.Item.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setImage(Intent.Message.Image value)

public Intent.Message.CarouselSelect.Item.Builder setImage(Intent.Message.Image value)

Optional. The image to display.

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

Parameter
NameDescription
valueIntent.Message.Image
Returns
TypeDescription
Intent.Message.CarouselSelect.Item.Builder

setImage(Intent.Message.Image.Builder builderForValue)

public Intent.Message.CarouselSelect.Item.Builder setImage(Intent.Message.Image.Builder builderForValue)

Optional. The image to display.

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

Parameter
NameDescription
builderForValueIntent.Message.Image.Builder
Returns
TypeDescription
Intent.Message.CarouselSelect.Item.Builder

setInfo(Intent.Message.SelectItemInfo value)

public Intent.Message.CarouselSelect.Item.Builder setInfo(Intent.Message.SelectItemInfo value)

Required. Additional info about the option item.

.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo info = 1;

Parameter
NameDescription
valueIntent.Message.SelectItemInfo
Returns
TypeDescription
Intent.Message.CarouselSelect.Item.Builder

setInfo(Intent.Message.SelectItemInfo.Builder builderForValue)

public Intent.Message.CarouselSelect.Item.Builder setInfo(Intent.Message.SelectItemInfo.Builder builderForValue)

Required. Additional info about the option item.

.google.cloud.dialogflow.v2beta1.Intent.Message.SelectItemInfo info = 1;

Parameter
NameDescription
builderForValueIntent.Message.SelectItemInfo.Builder
Returns
TypeDescription
Intent.Message.CarouselSelect.Item.Builder

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

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

setTitle(String value)

public Intent.Message.CarouselSelect.Item.Builder setTitle(String value)

Required. Title of the carousel item.

string title = 2;

Parameter
NameDescription
valueString

The title to set.

Returns
TypeDescription
Intent.Message.CarouselSelect.Item.Builder

This builder for chaining.

setTitleBytes(ByteString value)

public Intent.Message.CarouselSelect.Item.Builder setTitleBytes(ByteString value)

Required. Title of the carousel item.

string title = 2;

Parameter
NameDescription
valueByteString

The bytes for title to set.

Returns
TypeDescription
Intent.Message.CarouselSelect.Item.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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