Interface MessageAnnotationOrBuilder (4.47.0)

public interface MessageAnnotationOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getContainEntities()

public abstract boolean getContainEntities()

Required. Indicates whether the text message contains entities.

bool contain_entities = 2;

Returns
TypeDescription
boolean

The containEntities.

getParts(int index)

public abstract AnnotatedMessagePart getParts(int index)

Optional. The collection of annotated message parts ordered by their position in the message. You can recover the annotated message by concatenating [AnnotatedMessagePart.text].

repeated .google.cloud.dialogflow.v2beta1.AnnotatedMessagePart parts = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
AnnotatedMessagePart

getPartsCount()

public abstract int getPartsCount()

Optional. The collection of annotated message parts ordered by their position in the message. You can recover the annotated message by concatenating [AnnotatedMessagePart.text].

repeated .google.cloud.dialogflow.v2beta1.AnnotatedMessagePart parts = 1;

Returns
TypeDescription
int

getPartsList()

public abstract List<AnnotatedMessagePart> getPartsList()

Optional. The collection of annotated message parts ordered by their position in the message. You can recover the annotated message by concatenating [AnnotatedMessagePart.text].

repeated .google.cloud.dialogflow.v2beta1.AnnotatedMessagePart parts = 1;

Returns
TypeDescription
List<AnnotatedMessagePart>

getPartsOrBuilder(int index)

public abstract AnnotatedMessagePartOrBuilder getPartsOrBuilder(int index)

Optional. The collection of annotated message parts ordered by their position in the message. You can recover the annotated message by concatenating [AnnotatedMessagePart.text].

repeated .google.cloud.dialogflow.v2beta1.AnnotatedMessagePart parts = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
AnnotatedMessagePartOrBuilder

getPartsOrBuilderList()

public abstract List<? extends AnnotatedMessagePartOrBuilder> getPartsOrBuilderList()

Optional. The collection of annotated message parts ordered by their position in the message. You can recover the annotated message by concatenating [AnnotatedMessagePart.text].

repeated .google.cloud.dialogflow.v2beta1.AnnotatedMessagePart parts = 1;

Returns
TypeDescription
List<? extends com.google.cloud.dialogflow.v2beta1.AnnotatedMessagePartOrBuilder>