Class MessageAnnotation (4.4.0)

public final class MessageAnnotation extends GeneratedMessageV3 implements MessageAnnotationOrBuilder

Represents the result of annotation for the message.

Protobuf type google.cloud.dialogflow.v2.MessageAnnotation

Fields

CONTAIN_ENTITIES_FIELD_NUMBER

public static final int CONTAIN_ENTITIES_FIELD_NUMBER
Field Value
TypeDescription
int

PARTS_FIELD_NUMBER

public static final int PARTS_FIELD_NUMBER
Field Value
TypeDescription
int

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getContainEntities()

public boolean getContainEntities()

Indicates whether the text message contains entities.

bool contain_entities = 2;

Returns
TypeDescription
boolean

The containEntities.

getDefaultInstance()

public static MessageAnnotation getDefaultInstance()
Returns
TypeDescription
MessageAnnotation

getDefaultInstanceForType()

public MessageAnnotation getDefaultInstanceForType()
Returns
TypeDescription
MessageAnnotation

getDescriptor()

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

getParserForType()

public Parser<MessageAnnotation> getParserForType()
Returns
TypeDescription
Parser<MessageAnnotation>
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
NameDescription
indexint
Returns
TypeDescription
AnnotatedMessagePart

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
TypeDescription
int

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
TypeDescription
List<AnnotatedMessagePart>

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
NameDescription
indexint
Returns
TypeDescription
AnnotatedMessagePartOrBuilder

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
TypeDescription
List<? extends com.google.cloud.dialogflow.v2.AnnotatedMessagePartOrBuilder>

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilder()

public static MessageAnnotation.Builder newBuilder()
Returns
TypeDescription
MessageAnnotation.Builder

newBuilder(MessageAnnotation prototype)

public static MessageAnnotation.Builder newBuilder(MessageAnnotation prototype)
Parameter
NameDescription
prototypeMessageAnnotation
Returns
TypeDescription
MessageAnnotation.Builder

newBuilderForType()

public MessageAnnotation.Builder newBuilderForType()
Returns
TypeDescription
MessageAnnotation.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected MessageAnnotation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
MessageAnnotation.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

parseDelimitedFrom(InputStream input)

public static MessageAnnotation parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
MessageAnnotation
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static MessageAnnotation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MessageAnnotation
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static MessageAnnotation parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
MessageAnnotation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static MessageAnnotation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MessageAnnotation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static MessageAnnotation parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
MessageAnnotation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static MessageAnnotation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MessageAnnotation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static MessageAnnotation parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
MessageAnnotation
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static MessageAnnotation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MessageAnnotation
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static MessageAnnotation parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
MessageAnnotation
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static MessageAnnotation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MessageAnnotation
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static MessageAnnotation parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
MessageAnnotation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static MessageAnnotation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MessageAnnotation
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<MessageAnnotation> parser()
Returns
TypeDescription
Parser<MessageAnnotation>

toBuilder()

public MessageAnnotation.Builder toBuilder()
Returns
TypeDescription
MessageAnnotation.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException