public static final class EntityType.Entity.Builder extends GeneratedMessageV3.Builder<EntityType.Entity.Builder> implements EntityType.EntityOrBuilder
An **entity entry** for an associated entity type.Protobuf type
google.cloud.dialogflow.v2beta1.EntityType.Entity
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<EntityType.Entity.Builder>
public EntityType.Entity.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<EntityType.Entity.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<EntityType.Entity.Builder>
public EntityType.Entity getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public EntityType.Entity build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public EntityType.Entity buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public EntityType.Entity.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<EntityType.Entity.Builder>
public EntityType.Entity.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<EntityType.Entity.Builder>
public EntityType.Entity.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<EntityType.Entity.Builder>
public EntityType.Entity.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<EntityType.Entity.Builder>
public EntityType.Entity.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<EntityType.Entity.Builder>
public EntityType.Entity.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<EntityType.Entity.Builder>
public EntityType.Entity.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<EntityType.Entity.Builder>
public EntityType.Entity.Builder mergeFrom(EntityType.Entity other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<EntityType.Entity.Builder>
public EntityType.Entity.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<EntityType.Entity.Builder>
IOException
public String getValue()
Required. The primary value associated with this entity entry. For example, if the entity type is *vegetable*, the value could be *scallions*. For `KIND_MAP` entity types: * A reference value to be used in place of synonyms. For `KIND_LIST` entity types: * A string that can contain references to other entity types (with or without aliases).
string value = 1 [(.google.api.field_behavior) = REQUIRED];
getValue
in interface EntityType.EntityOrBuilder
public ByteString getValueBytes()
Required. The primary value associated with this entity entry. For example, if the entity type is *vegetable*, the value could be *scallions*. For `KIND_MAP` entity types: * A reference value to be used in place of synonyms. For `KIND_LIST` entity types: * A string that can contain references to other entity types (with or without aliases).
string value = 1 [(.google.api.field_behavior) = REQUIRED];
getValueBytes
in interface EntityType.EntityOrBuilder
public EntityType.Entity.Builder setValue(String value)
Required. The primary value associated with this entity entry. For example, if the entity type is *vegetable*, the value could be *scallions*. For `KIND_MAP` entity types: * A reference value to be used in place of synonyms. For `KIND_LIST` entity types: * A string that can contain references to other entity types (with or without aliases).
string value = 1 [(.google.api.field_behavior) = REQUIRED];
value
- The value to set.public EntityType.Entity.Builder clearValue()
Required. The primary value associated with this entity entry. For example, if the entity type is *vegetable*, the value could be *scallions*. For `KIND_MAP` entity types: * A reference value to be used in place of synonyms. For `KIND_LIST` entity types: * A string that can contain references to other entity types (with or without aliases).
string value = 1 [(.google.api.field_behavior) = REQUIRED];
public EntityType.Entity.Builder setValueBytes(ByteString value)
Required. The primary value associated with this entity entry. For example, if the entity type is *vegetable*, the value could be *scallions*. For `KIND_MAP` entity types: * A reference value to be used in place of synonyms. For `KIND_LIST` entity types: * A string that can contain references to other entity types (with or without aliases).
string value = 1 [(.google.api.field_behavior) = REQUIRED];
value
- The bytes for value to set.public ProtocolStringList getSynonymsList()
Required. A collection of value synonyms. For example, if the entity type is *vegetable*, and `value` is *scallions*, a synonym could be *green onions*. For `KIND_LIST` entity types: * This collection must contain exactly one synonym equal to `value`.
repeated string synonyms = 2;
getSynonymsList
in interface EntityType.EntityOrBuilder
public int getSynonymsCount()
Required. A collection of value synonyms. For example, if the entity type is *vegetable*, and `value` is *scallions*, a synonym could be *green onions*. For `KIND_LIST` entity types: * This collection must contain exactly one synonym equal to `value`.
repeated string synonyms = 2;
getSynonymsCount
in interface EntityType.EntityOrBuilder
public String getSynonyms(int index)
Required. A collection of value synonyms. For example, if the entity type is *vegetable*, and `value` is *scallions*, a synonym could be *green onions*. For `KIND_LIST` entity types: * This collection must contain exactly one synonym equal to `value`.
repeated string synonyms = 2;
getSynonyms
in interface EntityType.EntityOrBuilder
index
- The index of the element to return.public ByteString getSynonymsBytes(int index)
Required. A collection of value synonyms. For example, if the entity type is *vegetable*, and `value` is *scallions*, a synonym could be *green onions*. For `KIND_LIST` entity types: * This collection must contain exactly one synonym equal to `value`.
repeated string synonyms = 2;
getSynonymsBytes
in interface EntityType.EntityOrBuilder
index
- The index of the value to return.public EntityType.Entity.Builder setSynonyms(int index, String value)
Required. A collection of value synonyms. For example, if the entity type is *vegetable*, and `value` is *scallions*, a synonym could be *green onions*. For `KIND_LIST` entity types: * This collection must contain exactly one synonym equal to `value`.
repeated string synonyms = 2;
index
- The index to set the value at.value
- The synonyms to set.public EntityType.Entity.Builder addSynonyms(String value)
Required. A collection of value synonyms. For example, if the entity type is *vegetable*, and `value` is *scallions*, a synonym could be *green onions*. For `KIND_LIST` entity types: * This collection must contain exactly one synonym equal to `value`.
repeated string synonyms = 2;
value
- The synonyms to add.public EntityType.Entity.Builder addAllSynonyms(Iterable<String> values)
Required. A collection of value synonyms. For example, if the entity type is *vegetable*, and `value` is *scallions*, a synonym could be *green onions*. For `KIND_LIST` entity types: * This collection must contain exactly one synonym equal to `value`.
repeated string synonyms = 2;
values
- The synonyms to add.public EntityType.Entity.Builder clearSynonyms()
Required. A collection of value synonyms. For example, if the entity type is *vegetable*, and `value` is *scallions*, a synonym could be *green onions*. For `KIND_LIST` entity types: * This collection must contain exactly one synonym equal to `value`.
repeated string synonyms = 2;
public EntityType.Entity.Builder addSynonymsBytes(ByteString value)
Required. A collection of value synonyms. For example, if the entity type is *vegetable*, and `value` is *scallions*, a synonym could be *green onions*. For `KIND_LIST` entity types: * This collection must contain exactly one synonym equal to `value`.
repeated string synonyms = 2;
value
- The bytes of the synonyms to add.public final EntityType.Entity.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<EntityType.Entity.Builder>
public final EntityType.Entity.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<EntityType.Entity.Builder>
Copyright © 2021 Google LLC. All rights reserved.