Package com.google.cloud.dialogflow.v2
Class MessageAnnotation.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<MessageAnnotation.Builder>
-
- com.google.cloud.dialogflow.v2.MessageAnnotation.Builder
-
- All Implemented Interfaces:
MessageAnnotationOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- MessageAnnotation
public static final class MessageAnnotation.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<MessageAnnotation.Builder> implements MessageAnnotationOrBuilder
Represents the result of annotation for the message.
Protobuf typegoogle.cloud.dialogflow.v2.MessageAnnotation
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageAnnotation.BuilderaddAllParts(Iterable<? extends AnnotatedMessagePart> values)The collection of annotated message parts ordered by their position in the message.MessageAnnotation.BuilderaddParts(int index, AnnotatedMessagePart value)The collection of annotated message parts ordered by their position in the message.MessageAnnotation.BuilderaddParts(int index, AnnotatedMessagePart.Builder builderForValue)The collection of annotated message parts ordered by their position in the message.MessageAnnotation.BuilderaddParts(AnnotatedMessagePart value)The collection of annotated message parts ordered by their position in the message.MessageAnnotation.BuilderaddParts(AnnotatedMessagePart.Builder builderForValue)The collection of annotated message parts ordered by their position in the message.AnnotatedMessagePart.BuilderaddPartsBuilder()The collection of annotated message parts ordered by their position in the message.AnnotatedMessagePart.BuilderaddPartsBuilder(int index)The collection of annotated message parts ordered by their position in the message.MessageAnnotation.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)MessageAnnotationbuild()MessageAnnotationbuildPartial()MessageAnnotation.Builderclear()MessageAnnotation.BuilderclearContainEntities()Indicates whether the text message contains entities.MessageAnnotation.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)MessageAnnotation.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)MessageAnnotation.BuilderclearParts()The collection of annotated message parts ordered by their position in the message.MessageAnnotation.Builderclone()booleangetContainEntities()Indicates whether the text message contains entities.MessageAnnotationgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()AnnotatedMessagePartgetParts(int index)The collection of annotated message parts ordered by their position in the message.AnnotatedMessagePart.BuildergetPartsBuilder(int index)The collection of annotated message parts ordered by their position in the message.List<AnnotatedMessagePart.Builder>getPartsBuilderList()The collection of annotated message parts ordered by their position in the message.intgetPartsCount()The collection of annotated message parts ordered by their position in the message.List<AnnotatedMessagePart>getPartsList()The collection of annotated message parts ordered by their position in the message.AnnotatedMessagePartOrBuildergetPartsOrBuilder(int index)The collection of annotated message parts ordered by their position in the message.List<? extends AnnotatedMessagePartOrBuilder>getPartsOrBuilderList()The collection of annotated message parts ordered by their position in the message.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()MessageAnnotation.BuildermergeFrom(MessageAnnotation other)MessageAnnotation.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)MessageAnnotation.BuildermergeFrom(com.google.protobuf.Message other)MessageAnnotation.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)MessageAnnotation.BuilderremoveParts(int index)The collection of annotated message parts ordered by their position in the message.MessageAnnotation.BuildersetContainEntities(boolean value)Indicates whether the text message contains entities.MessageAnnotation.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)MessageAnnotation.BuildersetParts(int index, AnnotatedMessagePart value)The collection of annotated message parts ordered by their position in the message.MessageAnnotation.BuildersetParts(int index, AnnotatedMessagePart.Builder builderForValue)The collection of annotated message parts ordered by their position in the message.MessageAnnotation.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)MessageAnnotation.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<MessageAnnotation.Builder>
-
clear
public MessageAnnotation.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<MessageAnnotation.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<MessageAnnotation.Builder>
-
getDefaultInstanceForType
public MessageAnnotation getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public MessageAnnotation build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public MessageAnnotation buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public MessageAnnotation.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<MessageAnnotation.Builder>
-
setField
public MessageAnnotation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<MessageAnnotation.Builder>
-
clearField
public MessageAnnotation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<MessageAnnotation.Builder>
-
clearOneof
public MessageAnnotation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<MessageAnnotation.Builder>
-
setRepeatedField
public MessageAnnotation.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<MessageAnnotation.Builder>
-
addRepeatedField
public MessageAnnotation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<MessageAnnotation.Builder>
-
mergeFrom
public MessageAnnotation.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<MessageAnnotation.Builder>
-
mergeFrom
public MessageAnnotation.Builder mergeFrom(MessageAnnotation other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<MessageAnnotation.Builder>
-
mergeFrom
public MessageAnnotation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<MessageAnnotation.Builder>- Throws:
IOException
-
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;- Specified by:
getPartsListin interfaceMessageAnnotationOrBuilder
-
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;- Specified by:
getPartsCountin interfaceMessageAnnotationOrBuilder
-
getParts
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;- Specified by:
getPartsin interfaceMessageAnnotationOrBuilder
-
setParts
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
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;
-
addParts
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
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
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
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;
-
addAllParts
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;
-
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;
-
removeParts
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;
-
getPartsBuilder
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;
-
getPartsOrBuilder
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;- Specified by:
getPartsOrBuilderin interfaceMessageAnnotationOrBuilder
-
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;- Specified by:
getPartsOrBuilderListin interfaceMessageAnnotationOrBuilder
-
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
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;
-
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;
-
getContainEntities
public boolean getContainEntities()
Indicates whether the text message contains entities.
bool contain_entities = 2;- Specified by:
getContainEntitiesin interfaceMessageAnnotationOrBuilder- Returns:
- The containEntities.
-
setContainEntities
public MessageAnnotation.Builder setContainEntities(boolean value)
Indicates whether the text message contains entities.
bool contain_entities = 2;- Parameters:
value- The containEntities to set.- Returns:
- This builder for chaining.
-
clearContainEntities
public MessageAnnotation.Builder clearContainEntities()
Indicates whether the text message contains entities.
bool contain_entities = 2;- Returns:
- This builder for chaining.
-
setUnknownFields
public final MessageAnnotation.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<MessageAnnotation.Builder>
-
mergeUnknownFields
public final MessageAnnotation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<MessageAnnotation.Builder>
-
-