public static final class EntityType.Entity.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<EntityType.Entity.Builder> implements EntityType.EntityOrBuilder
An **entity entry** for an associated entity type.Protobuf type
google.cloud.dialogflow.v2beta1.EntityType.Entity| Modifier and Type | Method and Description |
|---|---|
EntityType.Entity.Builder |
addAllSynonyms(Iterable<String> values)
Required.
|
EntityType.Entity.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
EntityType.Entity.Builder |
addSynonyms(String value)
Required.
|
EntityType.Entity.Builder |
addSynonymsBytes(com.google.protobuf.ByteString value)
Required.
|
EntityType.Entity |
build() |
EntityType.Entity |
buildPartial() |
EntityType.Entity.Builder |
clear() |
EntityType.Entity.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
EntityType.Entity.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
EntityType.Entity.Builder |
clearSynonyms()
Required.
|
EntityType.Entity.Builder |
clearValue()
Required.
|
EntityType.Entity.Builder |
clone() |
EntityType.Entity |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getSynonyms(int index)
Required.
|
com.google.protobuf.ByteString |
getSynonymsBytes(int index)
Required.
|
int |
getSynonymsCount()
Required.
|
com.google.protobuf.ProtocolStringList |
getSynonymsList()
Required.
|
String |
getValue()
Required.
|
com.google.protobuf.ByteString |
getValueBytes()
Required.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
EntityType.Entity.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
EntityType.Entity.Builder |
mergeFrom(EntityType.Entity other) |
EntityType.Entity.Builder |
mergeFrom(com.google.protobuf.Message other) |
EntityType.Entity.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
EntityType.Entity.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
EntityType.Entity.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
EntityType.Entity.Builder |
setSynonyms(int index,
String value)
Required.
|
EntityType.Entity.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
EntityType.Entity.Builder |
setValue(String value)
Required.
|
EntityType.Entity.Builder |
setValueBytes(com.google.protobuf.ByteString value)
Required.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<EntityType.Entity.Builder>public EntityType.Entity.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<EntityType.Entity.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<EntityType.Entity.Builder>public EntityType.Entity getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic EntityType.Entity build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic EntityType.Entity buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic EntityType.Entity.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<EntityType.Entity.Builder>public EntityType.Entity.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<EntityType.Entity.Builder>public EntityType.Entity.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<EntityType.Entity.Builder>public EntityType.Entity.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<EntityType.Entity.Builder>public EntityType.Entity.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<EntityType.Entity.Builder>public EntityType.Entity.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<EntityType.Entity.Builder>public EntityType.Entity.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<EntityType.Entity.Builder>public EntityType.Entity.Builder mergeFrom(EntityType.Entity other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<EntityType.Entity.Builder>public EntityType.Entity.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<EntityType.Entity.Builder>IOExceptionpublic 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.EntityOrBuilderpublic com.google.protobuf.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.EntityOrBuilderpublic 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(com.google.protobuf.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 com.google.protobuf.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.EntityOrBuilderpublic 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.EntityOrBuilderpublic 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.EntityOrBuilderindex - The index of the element to return.public com.google.protobuf.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.EntityOrBuilderindex - 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(com.google.protobuf.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(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<EntityType.Entity.Builder>public final EntityType.Entity.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<EntityType.Entity.Builder>Copyright © 2023 Google LLC. All rights reserved.