public static final class AnnotatedMessagePart.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AnnotatedMessagePart.Builder> 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| Modifier and Type | Method and Description |
|---|---|
AnnotatedMessagePart.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
AnnotatedMessagePart |
build() |
AnnotatedMessagePart |
buildPartial() |
AnnotatedMessagePart.Builder |
clear() |
AnnotatedMessagePart.Builder |
clearEntityType()
Optional.
|
AnnotatedMessagePart.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
AnnotatedMessagePart.Builder |
clearFormattedValue()
Optional.
|
AnnotatedMessagePart.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
AnnotatedMessagePart.Builder |
clearText()
Required.
|
AnnotatedMessagePart.Builder |
clone() |
AnnotatedMessagePart |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getEntityType()
Optional.
|
com.google.protobuf.ByteString |
getEntityTypeBytes()
Optional.
|
com.google.protobuf.Value |
getFormattedValue()
Optional.
|
com.google.protobuf.Value.Builder |
getFormattedValueBuilder()
Optional.
|
com.google.protobuf.ValueOrBuilder |
getFormattedValueOrBuilder()
Optional.
|
String |
getText()
Required.
|
com.google.protobuf.ByteString |
getTextBytes()
Required.
|
boolean |
hasFormattedValue()
Optional.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
AnnotatedMessagePart.Builder |
mergeFormattedValue(com.google.protobuf.Value value)
Optional.
|
AnnotatedMessagePart.Builder |
mergeFrom(AnnotatedMessagePart other) |
AnnotatedMessagePart.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
AnnotatedMessagePart.Builder |
mergeFrom(com.google.protobuf.Message other) |
AnnotatedMessagePart.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
AnnotatedMessagePart.Builder |
setEntityType(String value)
Optional.
|
AnnotatedMessagePart.Builder |
setEntityTypeBytes(com.google.protobuf.ByteString value)
Optional.
|
AnnotatedMessagePart.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
AnnotatedMessagePart.Builder |
setFormattedValue(com.google.protobuf.Value.Builder builderForValue)
Optional.
|
AnnotatedMessagePart.Builder |
setFormattedValue(com.google.protobuf.Value value)
Optional.
|
AnnotatedMessagePart.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
AnnotatedMessagePart.Builder |
setText(String value)
Required.
|
AnnotatedMessagePart.Builder |
setTextBytes(com.google.protobuf.ByteString value)
Required.
|
AnnotatedMessagePart.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<AnnotatedMessagePart.Builder>public AnnotatedMessagePart.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<AnnotatedMessagePart.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<AnnotatedMessagePart.Builder>public AnnotatedMessagePart getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic AnnotatedMessagePart build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic AnnotatedMessagePart buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic AnnotatedMessagePart.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<AnnotatedMessagePart.Builder>public AnnotatedMessagePart.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<AnnotatedMessagePart.Builder>public AnnotatedMessagePart.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<AnnotatedMessagePart.Builder>public AnnotatedMessagePart.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<AnnotatedMessagePart.Builder>public AnnotatedMessagePart.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AnnotatedMessagePart.Builder>public AnnotatedMessagePart.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AnnotatedMessagePart.Builder>public AnnotatedMessagePart.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AnnotatedMessagePart.Builder>public AnnotatedMessagePart.Builder mergeFrom(AnnotatedMessagePart other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<AnnotatedMessagePart.Builder>public AnnotatedMessagePart.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AnnotatedMessagePart.Builder>IOExceptionpublic String getText()
Required. A part of a message possibly annotated with an entity.
string text = 1;getText in interface AnnotatedMessagePartOrBuilderpublic com.google.protobuf.ByteString getTextBytes()
Required. A part of a message possibly annotated with an entity.
string text = 1;getTextBytes in interface AnnotatedMessagePartOrBuilderpublic AnnotatedMessagePart.Builder setText(String value)
Required. A part of a message possibly annotated with an entity.
string text = 1;value - The text to set.public AnnotatedMessagePart.Builder clearText()
Required. A part of a message possibly annotated with an entity.
string text = 1;public AnnotatedMessagePart.Builder setTextBytes(com.google.protobuf.ByteString value)
Required. A part of a message possibly annotated with an entity.
string text = 1;value - The bytes for text to set.public String getEntityType()
Optional. The [Dialogflow system entity type](https://cloud.google.com/dialogflow/docs/reference/system-entities) of this message part. If this is empty, Dialogflow could not annotate the phrase part with a system entity.
string entity_type = 2;getEntityType in interface AnnotatedMessagePartOrBuilderpublic com.google.protobuf.ByteString getEntityTypeBytes()
Optional. The [Dialogflow system entity type](https://cloud.google.com/dialogflow/docs/reference/system-entities) of this message part. If this is empty, Dialogflow could not annotate the phrase part with a system entity.
string entity_type = 2;getEntityTypeBytes in interface AnnotatedMessagePartOrBuilderpublic AnnotatedMessagePart.Builder setEntityType(String value)
Optional. The [Dialogflow system entity type](https://cloud.google.com/dialogflow/docs/reference/system-entities) of this message part. If this is empty, Dialogflow could not annotate the phrase part with a system entity.
string entity_type = 2;value - The entityType to set.public AnnotatedMessagePart.Builder clearEntityType()
Optional. The [Dialogflow system entity type](https://cloud.google.com/dialogflow/docs/reference/system-entities) of this message part. If this is empty, Dialogflow could not annotate the phrase part with a system entity.
string entity_type = 2;public AnnotatedMessagePart.Builder setEntityTypeBytes(com.google.protobuf.ByteString value)
Optional. The [Dialogflow system entity type](https://cloud.google.com/dialogflow/docs/reference/system-entities) of this message part. If this is empty, Dialogflow could not annotate the phrase part with a system entity.
string entity_type = 2;value - The bytes for entityType to set.public boolean hasFormattedValue()
Optional. The [Dialogflow system entity formatted value
](https://cloud.google.com/dialogflow/docs/reference/system-entities) 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;hasFormattedValue in interface AnnotatedMessagePartOrBuilderpublic com.google.protobuf.Value getFormattedValue()
Optional. The [Dialogflow system entity formatted value
](https://cloud.google.com/dialogflow/docs/reference/system-entities) 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;getFormattedValue in interface AnnotatedMessagePartOrBuilderpublic AnnotatedMessagePart.Builder setFormattedValue(com.google.protobuf.Value value)
Optional. The [Dialogflow system entity formatted value
](https://cloud.google.com/dialogflow/docs/reference/system-entities) 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;public AnnotatedMessagePart.Builder setFormattedValue(com.google.protobuf.Value.Builder builderForValue)
Optional. The [Dialogflow system entity formatted value
](https://cloud.google.com/dialogflow/docs/reference/system-entities) 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;public AnnotatedMessagePart.Builder mergeFormattedValue(com.google.protobuf.Value value)
Optional. The [Dialogflow system entity formatted value
](https://cloud.google.com/dialogflow/docs/reference/system-entities) 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;public AnnotatedMessagePart.Builder clearFormattedValue()
Optional. The [Dialogflow system entity formatted value
](https://cloud.google.com/dialogflow/docs/reference/system-entities) 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;public com.google.protobuf.Value.Builder getFormattedValueBuilder()
Optional. The [Dialogflow system entity formatted value
](https://cloud.google.com/dialogflow/docs/reference/system-entities) 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;public com.google.protobuf.ValueOrBuilder getFormattedValueOrBuilder()
Optional. The [Dialogflow system entity formatted value
](https://cloud.google.com/dialogflow/docs/reference/system-entities) 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;getFormattedValueOrBuilder in interface AnnotatedMessagePartOrBuilderpublic final AnnotatedMessagePart.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AnnotatedMessagePart.Builder>public final AnnotatedMessagePart.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AnnotatedMessagePart.Builder>Copyright © 2023 Google LLC. All rights reserved.