public final class MessageAnnotation extends GeneratedMessageV3 implements MessageAnnotationOrBuilder
Represents the result of annotation for the message.
Protobuf type google.cloud.dialogflow.v2.MessageAnnotation
Static Fields
CONTAIN_ENTITIES_FIELD_NUMBER
public static final int CONTAIN_ENTITIES_FIELD_NUMBER
Field Value
PARTS_FIELD_NUMBER
public static final int PARTS_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static MessageAnnotation getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static MessageAnnotation.Builder newBuilder()
Returns
newBuilder(MessageAnnotation prototype)
public static MessageAnnotation.Builder newBuilder(MessageAnnotation prototype)
Parameter
Returns
public static MessageAnnotation parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static MessageAnnotation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static MessageAnnotation parseFrom(byte[] data)
Parameter
Name |
Description |
data |
byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static MessageAnnotation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static MessageAnnotation parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static MessageAnnotation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static MessageAnnotation parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static MessageAnnotation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static MessageAnnotation parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static MessageAnnotation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static MessageAnnotation parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static MessageAnnotation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<MessageAnnotation> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getContainEntities()
public boolean getContainEntities()
Indicates whether the text message contains entities.
bool contain_entities = 2;
Returns
Type |
Description |
boolean |
The containEntities.
|
getDefaultInstanceForType()
public MessageAnnotation getDefaultInstanceForType()
Returns
getParserForType()
public Parser<MessageAnnotation> getParserForType()
Returns
Overrides
getParts(int index)
public AnnotatedMessagePart getParts(int index)
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.v2.AnnotatedMessagePart parts = 1;
Parameter
Name |
Description |
index |
int
|
Returns
getPartsCount()
public int getPartsCount()
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.v2.AnnotatedMessagePart parts = 1;
Returns
getPartsList()
public List<AnnotatedMessagePart> getPartsList()
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.v2.AnnotatedMessagePart parts = 1;
Returns
getPartsOrBuilder(int index)
public AnnotatedMessagePartOrBuilder getPartsOrBuilder(int index)
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.v2.AnnotatedMessagePart parts = 1;
Parameter
Name |
Description |
index |
int
|
Returns
getPartsOrBuilderList()
public List<? extends AnnotatedMessagePartOrBuilder> getPartsOrBuilderList()
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.v2.AnnotatedMessagePart parts = 1;
Returns
Type |
Description |
List<? extends com.google.cloud.dialogflow.v2.AnnotatedMessagePartOrBuilder> |
|
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public MessageAnnotation.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected MessageAnnotation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public MessageAnnotation.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions