public static final class AnnotatedMessagePart.Builder extends 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
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<AnnotatedMessagePart.Builder>
public AnnotatedMessagePart.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<AnnotatedMessagePart.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<AnnotatedMessagePart.Builder>
public AnnotatedMessagePart getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public AnnotatedMessagePart build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public AnnotatedMessagePart buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public AnnotatedMessagePart.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<AnnotatedMessagePart.Builder>
public AnnotatedMessagePart.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<AnnotatedMessagePart.Builder>
public AnnotatedMessagePart.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<AnnotatedMessagePart.Builder>
public AnnotatedMessagePart.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<AnnotatedMessagePart.Builder>
public AnnotatedMessagePart.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<AnnotatedMessagePart.Builder>
public AnnotatedMessagePart.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<AnnotatedMessagePart.Builder>
public AnnotatedMessagePart.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<AnnotatedMessagePart.Builder>
public AnnotatedMessagePart.Builder mergeFrom(AnnotatedMessagePart other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<AnnotatedMessagePart.Builder>
public AnnotatedMessagePart.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<AnnotatedMessagePart.Builder>
IOException
public String getText()
Required. A part of a message possibly annotated with an entity.
string text = 1;
getText
in interface AnnotatedMessagePartOrBuilder
public ByteString getTextBytes()
Required. A part of a message possibly annotated with an entity.
string text = 1;
getTextBytes
in interface AnnotatedMessagePartOrBuilder
public 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(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 AnnotatedMessagePartOrBuilder
public 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 AnnotatedMessagePartOrBuilder
public 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(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 AnnotatedMessagePartOrBuilder
public 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 AnnotatedMessagePartOrBuilder
public AnnotatedMessagePart.Builder setFormattedValue(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(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(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 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 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 AnnotatedMessagePartOrBuilder
public final AnnotatedMessagePart.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<AnnotatedMessagePart.Builder>
public final AnnotatedMessagePart.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<AnnotatedMessagePart.Builder>
Copyright © 2022 Google LLC. All rights reserved.