public static final class MessageAnnotation.Builder extends GeneratedMessageV3.Builder<MessageAnnotation.Builder> implements MessageAnnotationOrBuilder
Represents the result of annotation for the message.
Protobuf type google.cloud.dialogflow.v2beta1.MessageAnnotation
Methods
addAllParts(Iterable<? extends AnnotatedMessagePart> values)
public MessageAnnotation.Builder addAllParts(Iterable<? extends AnnotatedMessagePart> values)
Optional. 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.v2beta1.AnnotatedMessagePart parts = 1;
Parameter
Name | Description |
values | Iterable<? extends com.google.cloud.dialogflow.v2beta1.AnnotatedMessagePart>
|
Returns
addParts(AnnotatedMessagePart value)
public MessageAnnotation.Builder addParts(AnnotatedMessagePart value)
Optional. 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.v2beta1.AnnotatedMessagePart parts = 1;
Parameter
Returns
addParts(AnnotatedMessagePart.Builder builderForValue)
public MessageAnnotation.Builder addParts(AnnotatedMessagePart.Builder builderForValue)
Optional. 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.v2beta1.AnnotatedMessagePart parts = 1;
Parameter
Returns
addParts(int index, AnnotatedMessagePart value)
public MessageAnnotation.Builder addParts(int index, AnnotatedMessagePart value)
Optional. 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.v2beta1.AnnotatedMessagePart parts = 1;
Parameters
Returns
addParts(int index, AnnotatedMessagePart.Builder builderForValue)
public MessageAnnotation.Builder addParts(int index, AnnotatedMessagePart.Builder builderForValue)
Optional. 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.v2beta1.AnnotatedMessagePart parts = 1;
Parameters
Returns
addPartsBuilder()
public AnnotatedMessagePart.Builder addPartsBuilder()
Optional. 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.v2beta1.AnnotatedMessagePart parts = 1;
Returns
addPartsBuilder(int index)
public AnnotatedMessagePart.Builder addPartsBuilder(int index)
Optional. 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.v2beta1.AnnotatedMessagePart parts = 1;
Parameter
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public MessageAnnotation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public MessageAnnotation build()
Returns
buildPartial()
public MessageAnnotation buildPartial()
Returns
clear()
public MessageAnnotation.Builder clear()
Returns
Overrides
clearContainEntities()
public MessageAnnotation.Builder clearContainEntities()
Required. Indicates whether the text message contains entities.
bool contain_entities = 2;
Returns
clearField(Descriptors.FieldDescriptor field)
public MessageAnnotation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public MessageAnnotation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearParts()
public MessageAnnotation.Builder clearParts()
Optional. 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.v2beta1.AnnotatedMessagePart parts = 1;
Returns
clone()
public MessageAnnotation.Builder clone()
Returns
Overrides
getContainEntities()
public boolean getContainEntities()
Required. Indicates whether the text message contains entities.
bool contain_entities = 2;
Returns
Type | Description |
boolean | The containEntities.
|
getDefaultInstanceForType()
public MessageAnnotation getDefaultInstanceForType()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getParts(int index)
public AnnotatedMessagePart getParts(int index)
Optional. 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.v2beta1.AnnotatedMessagePart parts = 1;
Parameter
Returns
getPartsBuilder(int index)
public AnnotatedMessagePart.Builder getPartsBuilder(int index)
Optional. 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.v2beta1.AnnotatedMessagePart parts = 1;
Parameter
Returns
getPartsBuilderList()
public List<AnnotatedMessagePart.Builder> getPartsBuilderList()
Optional. 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.v2beta1.AnnotatedMessagePart parts = 1;
Returns
getPartsCount()
public int getPartsCount()
Optional. 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.v2beta1.AnnotatedMessagePart parts = 1;
Returns
getPartsList()
public List<AnnotatedMessagePart> getPartsList()
Optional. 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.v2beta1.AnnotatedMessagePart parts = 1;
Returns
getPartsOrBuilder(int index)
public AnnotatedMessagePartOrBuilder getPartsOrBuilder(int index)
Optional. 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.v2beta1.AnnotatedMessagePart parts = 1;
Parameter
Returns
getPartsOrBuilderList()
public List<? extends AnnotatedMessagePartOrBuilder> getPartsOrBuilderList()
Optional. 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.v2beta1.AnnotatedMessagePart parts = 1;
Returns
Type | Description |
List<? extends com.google.cloud.dialogflow.v2beta1.AnnotatedMessagePartOrBuilder> | |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(MessageAnnotation other)
public MessageAnnotation.Builder mergeFrom(MessageAnnotation other)
Parameter
Returns
public MessageAnnotation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public MessageAnnotation.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final MessageAnnotation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
removeParts(int index)
public MessageAnnotation.Builder removeParts(int index)
Optional. 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.v2beta1.AnnotatedMessagePart parts = 1;
Parameter
Returns
setContainEntities(boolean value)
public MessageAnnotation.Builder setContainEntities(boolean value)
Required. Indicates whether the text message contains entities.
bool contain_entities = 2;
Parameter
Name | Description |
value | boolean
The containEntities to set.
|
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public MessageAnnotation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setParts(int index, AnnotatedMessagePart value)
public MessageAnnotation.Builder setParts(int index, AnnotatedMessagePart value)
Optional. 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.v2beta1.AnnotatedMessagePart parts = 1;
Parameters
Returns
setParts(int index, AnnotatedMessagePart.Builder builderForValue)
public MessageAnnotation.Builder setParts(int index, AnnotatedMessagePart.Builder builderForValue)
Optional. 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.v2beta1.AnnotatedMessagePart parts = 1;
Parameters
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public MessageAnnotation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final MessageAnnotation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides