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.v2.MessageAnnotation
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addAllParts(Iterable<? extends AnnotatedMessagePart> values)
public MessageAnnotation.Builder addAllParts(Iterable<? extends AnnotatedMessagePart> values)
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 |
Name |
Description |
values |
Iterable<? extends com.google.cloud.dialogflow.v2.AnnotatedMessagePart>
|
addParts(AnnotatedMessagePart value)
public MessageAnnotation.Builder addParts(AnnotatedMessagePart value)
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;
addParts(AnnotatedMessagePart.Builder builderForValue)
public MessageAnnotation.Builder addParts(AnnotatedMessagePart.Builder builderForValue)
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;
addParts(int index, AnnotatedMessagePart value)
public MessageAnnotation.Builder addParts(int index, AnnotatedMessagePart value)
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;
addParts(int index, AnnotatedMessagePart.Builder builderForValue)
public MessageAnnotation.Builder addParts(int index, AnnotatedMessagePart.Builder builderForValue)
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;
addPartsBuilder()
public AnnotatedMessagePart.Builder addPartsBuilder()
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;
addPartsBuilder(int index)
public AnnotatedMessagePart.Builder addPartsBuilder(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 |
Name |
Description |
index |
int
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public MessageAnnotation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public MessageAnnotation build()
buildPartial()
public MessageAnnotation buildPartial()
clear()
public MessageAnnotation.Builder clear()
Overrides
clearContainEntities()
public MessageAnnotation.Builder clearContainEntities()
Indicates whether the text message contains entities.
bool contain_entities = 2;
clearField(Descriptors.FieldDescriptor field)
public MessageAnnotation.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public MessageAnnotation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearParts()
public MessageAnnotation.Builder clearParts()
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;
clone()
public MessageAnnotation.Builder clone()
Overrides
getContainEntities()
public boolean getContainEntities()
Indicates whether the text message contains entities.
bool contain_entities = 2;
Returns |
Type |
Description |
boolean |
The containEntities.
|
getDefaultInstanceForType()
public MessageAnnotation getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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 |
Name |
Description |
index |
int
|
getPartsBuilder(int index)
public AnnotatedMessagePart.Builder getPartsBuilder(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 |
Name |
Description |
index |
int
|
getPartsBuilderList()
public List<AnnotatedMessagePart.Builder> getPartsBuilderList()
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;
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 |
Type |
Description |
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;
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 |
Name |
Description |
index |
int
|
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 |
Type |
Description |
List<? extends com.google.cloud.dialogflow.v2.AnnotatedMessagePartOrBuilder> |
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(MessageAnnotation other)
public MessageAnnotation.Builder mergeFrom(MessageAnnotation other)
public MessageAnnotation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public MessageAnnotation.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final MessageAnnotation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
removeParts(int index)
public MessageAnnotation.Builder removeParts(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 |
Name |
Description |
index |
int
|
setContainEntities(boolean value)
public MessageAnnotation.Builder setContainEntities(boolean value)
Indicates whether the text message contains entities.
bool contain_entities = 2;
Parameter |
Name |
Description |
value |
boolean
The containEntities to set.
|
setField(Descriptors.FieldDescriptor field, Object value)
public MessageAnnotation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setParts(int index, AnnotatedMessagePart value)
public MessageAnnotation.Builder setParts(int index, AnnotatedMessagePart value)
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;
setParts(int index, AnnotatedMessagePart.Builder builderForValue)
public MessageAnnotation.Builder setParts(int index, AnnotatedMessagePart.Builder builderForValue)
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;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public MessageAnnotation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final MessageAnnotation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides