Class AnnotatedMessagePart (4.3.1)

public final class AnnotatedMessagePart extends GeneratedMessageV3 implements AnnotatedMessagePartOrBuilder

Represents a part of a message possibly annotated with an entity. The part can be an entity or purely a part of the message between two entities or message start/end.

Protobuf type google.cloud.dialogflow.v2beta1.AnnotatedMessagePart

Fields

ENTITY_TYPE_FIELD_NUMBER

public static final int ENTITY_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

FORMATTED_VALUE_FIELD_NUMBER

public static final int FORMATTED_VALUE_FIELD_NUMBER
Field Value
TypeDescription
int

TEXT_FIELD_NUMBER

public static final int TEXT_FIELD_NUMBER
Field Value
TypeDescription
int

Methods

equals(Object obj)

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

getDefaultInstance()

public static AnnotatedMessagePart getDefaultInstance()
Returns
TypeDescription
AnnotatedMessagePart

getDefaultInstanceForType()

public AnnotatedMessagePart getDefaultInstanceForType()
Returns
TypeDescription
AnnotatedMessagePart

getDescriptor()

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

getEntityType()

public String getEntityType()

Optional. The Dialogflow system entity type of this message part. If this is empty, Dialogflow could not annotate the phrase part with a system entity.

string entity_type = 2;

Returns
TypeDescription
String

The entityType.

getEntityTypeBytes()

public ByteString getEntityTypeBytes()

Optional. The Dialogflow system entity type of this message part. If this is empty, Dialogflow could not annotate the phrase part with a system entity.

string entity_type = 2;

Returns
TypeDescription
ByteString

The bytes for entityType.

getFormattedValue()

public Value getFormattedValue()

Optional. The Dialogflow system entity formatted value of this message part. For example for a system entity of type @sys.unit-currency, this may contain: <pre> { "amount": 5, "currency": "USD" } </pre>

.google.protobuf.Value formatted_value = 3;

Returns
TypeDescription
Value

The formattedValue.

getFormattedValueOrBuilder()

public ValueOrBuilder getFormattedValueOrBuilder()

Optional. The Dialogflow system entity formatted value of this message part. For example for a system entity of type @sys.unit-currency, this may contain: <pre> { "amount": 5, "currency": "USD" } </pre>

.google.protobuf.Value formatted_value = 3;

Returns
TypeDescription
ValueOrBuilder

getParserForType()

public Parser<AnnotatedMessagePart> getParserForType()
Returns
TypeDescription
Parser<AnnotatedMessagePart>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getText()

public String getText()

Required. A part of a message possibly annotated with an entity.

string text = 1;

Returns
TypeDescription
String

The text.

getTextBytes()

public ByteString getTextBytes()

Required. A part of a message possibly annotated with an entity.

string text = 1;

Returns
TypeDescription
ByteString

The bytes for text.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasFormattedValue()

public boolean hasFormattedValue()

Optional. The Dialogflow system entity formatted value of this message part. For example for a system entity of type @sys.unit-currency, this may contain: <pre> { "amount": 5, "currency": "USD" } </pre>

.google.protobuf.Value formatted_value = 3;

Returns
TypeDescription
boolean

Whether the formattedValue field is set.

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 AnnotatedMessagePart.Builder newBuilder()
Returns
TypeDescription
AnnotatedMessagePart.Builder

newBuilder(AnnotatedMessagePart prototype)

public static AnnotatedMessagePart.Builder newBuilder(AnnotatedMessagePart prototype)
Parameter
NameDescription
prototypeAnnotatedMessagePart
Returns
TypeDescription
AnnotatedMessagePart.Builder

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

toBuilder()

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

writeTo(CodedOutputStream output)

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