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
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<MessageAnnotation.Builder>
public MessageAnnotation.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<MessageAnnotation.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<MessageAnnotation.Builder>
public MessageAnnotation getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public MessageAnnotation build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public MessageAnnotation buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public MessageAnnotation.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<MessageAnnotation.Builder>
public MessageAnnotation.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<MessageAnnotation.Builder>
public MessageAnnotation.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<MessageAnnotation.Builder>
public MessageAnnotation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<MessageAnnotation.Builder>
public MessageAnnotation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<MessageAnnotation.Builder>
public MessageAnnotation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<MessageAnnotation.Builder>
public MessageAnnotation.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<MessageAnnotation.Builder>
public MessageAnnotation.Builder mergeFrom(MessageAnnotation other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<MessageAnnotation.Builder>
public MessageAnnotation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<MessageAnnotation.Builder>
IOException
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;
getPartsList
in interface MessageAnnotationOrBuilder
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;
getPartsCount
in interface MessageAnnotationOrBuilder
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;
getParts
in interface MessageAnnotationOrBuilder
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
getPartsOrBuilder
in interface MessageAnnotationOrBuilder
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;
getPartsOrBuilderList
in interface MessageAnnotationOrBuilder
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;
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;
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;
public boolean getContainEntities()
Required. Indicates whether the text message contains entities.
bool contain_entities = 2;
getContainEntities
in interface MessageAnnotationOrBuilder
public MessageAnnotation.Builder setContainEntities(boolean value)
Required. Indicates whether the text message contains entities.
bool contain_entities = 2;
value
- The containEntities to set.public MessageAnnotation.Builder clearContainEntities()
Required. Indicates whether the text message contains entities.
bool contain_entities = 2;
public final MessageAnnotation.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<MessageAnnotation.Builder>
public final MessageAnnotation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<MessageAnnotation.Builder>
Copyright © 2022 Google LLC. All rights reserved.