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.Builder
addAllParts(Iterable<? extends AnnotatedMessagePart> values)
The collection of annotated message parts ordered by their position in the message.MessageAnnotation.Builder
addParts(int index, AnnotatedMessagePart value)
The collection of annotated message parts ordered by their position in the message.MessageAnnotation.Builder
addParts(int index, AnnotatedMessagePart.Builder builderForValue)
The collection of annotated message parts ordered by their position in the message.MessageAnnotation.Builder
addParts(AnnotatedMessagePart value)
The collection of annotated message parts ordered by their position in the message.MessageAnnotation.Builder
addParts(AnnotatedMessagePart.Builder builderForValue)
The collection of annotated message parts ordered by their position in the message.AnnotatedMessagePart.Builder
addPartsBuilder()
The collection of annotated message parts ordered by their position in the message.AnnotatedMessagePart.Builder
addPartsBuilder(int index)
The collection of annotated message parts ordered by their position in the message.MessageAnnotation.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
MessageAnnotation
build()
MessageAnnotation
buildPartial()
MessageAnnotation.Builder
clear()
MessageAnnotation.Builder
clearContainEntities()
Indicates whether the text message contains entities.MessageAnnotation.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
MessageAnnotation.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
MessageAnnotation.Builder
clearParts()
The collection of annotated message parts ordered by their position in the message.MessageAnnotation.Builder
clone()
boolean
getContainEntities()
Indicates whether the text message contains entities.MessageAnnotation
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
AnnotatedMessagePart
getParts(int index)
The collection of annotated message parts ordered by their position in the message.AnnotatedMessagePart.Builder
getPartsBuilder(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.int
getPartsCount()
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.AnnotatedMessagePartOrBuilder
getPartsOrBuilder(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.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
MessageAnnotation.Builder
mergeFrom(MessageAnnotation other)
MessageAnnotation.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
MessageAnnotation.Builder
mergeFrom(com.google.protobuf.Message other)
MessageAnnotation.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
MessageAnnotation.Builder
removeParts(int index)
The collection of annotated message parts ordered by their position in the message.MessageAnnotation.Builder
setContainEntities(boolean value)
Indicates whether the text message contains entities.MessageAnnotation.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
MessageAnnotation.Builder
setParts(int index, AnnotatedMessagePart value)
The collection of annotated message parts ordered by their position in the message.MessageAnnotation.Builder
setParts(int index, AnnotatedMessagePart.Builder builderForValue)
The collection of annotated message parts ordered by their position in the message.MessageAnnotation.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
MessageAnnotation.Builder
setUnknownFields(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<MessageAnnotation.Builder>
-
clear
public MessageAnnotation.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<MessageAnnotation.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<MessageAnnotation.Builder>
-
getDefaultInstanceForType
public MessageAnnotation getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public MessageAnnotation build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public MessageAnnotation buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public MessageAnnotation.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<MessageAnnotation.Builder>
-
setField
public MessageAnnotation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<MessageAnnotation.Builder>
-
clearField
public MessageAnnotation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<MessageAnnotation.Builder>
-
clearOneof
public MessageAnnotation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<MessageAnnotation.Builder>
-
setRepeatedField
public MessageAnnotation.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<MessageAnnotation.Builder>
-
addRepeatedField
public MessageAnnotation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<MessageAnnotation.Builder>
-
mergeFrom
public MessageAnnotation.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<MessageAnnotation.Builder>
-
mergeFrom
public MessageAnnotation.Builder mergeFrom(MessageAnnotation other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getPartsList
in 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:
getPartsCount
in 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:
getParts
in 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:
getPartsOrBuilder
in 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:
getPartsOrBuilderList
in 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:
getContainEntities
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<MessageAnnotation.Builder>
-
mergeUnknownFields
public final MessageAnnotation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<MessageAnnotation.Builder>
-
-