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
Modifier and Type | Method and Description |
---|---|
MessageAnnotation.Builder |
addAllParts(Iterable<? extends AnnotatedMessagePart> values)
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.
|
MessageAnnotation.Builder |
addParts(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(int index,
AnnotatedMessagePart value)
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(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(Descriptors.FieldDescriptor field) |
MessageAnnotation.Builder |
clearOneof(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 Descriptors.Descriptor |
getDescriptor() |
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 GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
MessageAnnotation.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
MessageAnnotation.Builder |
mergeFrom(Message other) |
MessageAnnotation.Builder |
mergeFrom(MessageAnnotation other) |
MessageAnnotation.Builder |
mergeUnknownFields(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(Descriptors.FieldDescriptor field,
Object value) |
MessageAnnotation.Builder |
setParts(int index,
AnnotatedMessagePart.Builder builderForValue)
The collection of annotated message parts ordered by their
position in the message.
|
MessageAnnotation.Builder |
setParts(int index,
AnnotatedMessagePart value)
The collection of annotated message parts ordered by their
position in the message.
|
MessageAnnotation.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
Object value) |
MessageAnnotation.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
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()
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;
getPartsList
in interface MessageAnnotationOrBuilder
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;
getPartsCount
in interface MessageAnnotationOrBuilder
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;
getParts
in interface MessageAnnotationOrBuilder
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
getPartsOrBuilder
in interface MessageAnnotationOrBuilder
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;
getPartsOrBuilderList
in interface MessageAnnotationOrBuilder
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;
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;
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;
public boolean getContainEntities()
Indicates whether the text message contains entities.
bool contain_entities = 2;
getContainEntities
in interface MessageAnnotationOrBuilder
public MessageAnnotation.Builder setContainEntities(boolean value)
Indicates whether the text message contains entities.
bool contain_entities = 2;
value
- The containEntities to set.public MessageAnnotation.Builder clearContainEntities()
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.