Package com.google.cloud.dialogflow.v2
Class EntityType.Entity.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<EntityType.Entity.Builder>
-
- com.google.cloud.dialogflow.v2.EntityType.Entity.Builder
-
- All Implemented Interfaces:
EntityType.EntityOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- EntityType.Entity
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 typegoogle.cloud.dialogflow.v2.EntityType.Entity
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description EntityType.Entity.BuilderaddAllSynonyms(Iterable<String> values)Required.EntityType.Entity.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)EntityType.Entity.BuilderaddSynonyms(String value)Required.EntityType.Entity.BuilderaddSynonymsBytes(com.google.protobuf.ByteString value)Required.EntityType.Entitybuild()EntityType.EntitybuildPartial()EntityType.Entity.Builderclear()EntityType.Entity.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)EntityType.Entity.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)EntityType.Entity.BuilderclearSynonyms()Required.EntityType.Entity.BuilderclearValue()Required.EntityType.Entity.Builderclone()EntityType.EntitygetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetSynonyms(int index)Required.com.google.protobuf.ByteStringgetSynonymsBytes(int index)Required.intgetSynonymsCount()Required.com.google.protobuf.ProtocolStringListgetSynonymsList()Required.StringgetValue()Required.com.google.protobuf.ByteStringgetValueBytes()Required.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()EntityType.Entity.BuildermergeFrom(EntityType.Entity other)EntityType.Entity.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)EntityType.Entity.BuildermergeFrom(com.google.protobuf.Message other)EntityType.Entity.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)EntityType.Entity.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)EntityType.Entity.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)EntityType.Entity.BuildersetSynonyms(int index, String value)Required.EntityType.Entity.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)EntityType.Entity.BuildersetValue(String value)Required.EntityType.Entity.BuildersetValueBytes(com.google.protobuf.ByteString value)Required.-
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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<EntityType.Entity.Builder>
-
clear
public EntityType.Entity.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<EntityType.Entity.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<EntityType.Entity.Builder>
-
getDefaultInstanceForType
public EntityType.Entity getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public EntityType.Entity build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public EntityType.Entity buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public EntityType.Entity.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<EntityType.Entity.Builder>
-
setField
public EntityType.Entity.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<EntityType.Entity.Builder>
-
clearField
public EntityType.Entity.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<EntityType.Entity.Builder>
-
clearOneof
public EntityType.Entity.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<EntityType.Entity.Builder>
-
setRepeatedField
public EntityType.Entity.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<EntityType.Entity.Builder>
-
addRepeatedField
public EntityType.Entity.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<EntityType.Entity.Builder>
-
mergeFrom
public EntityType.Entity.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<EntityType.Entity.Builder>
-
mergeFrom
public EntityType.Entity.Builder mergeFrom(EntityType.Entity other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<EntityType.Entity.Builder>
-
mergeFrom
public EntityType.Entity.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<EntityType.Entity.Builder>- Throws:
IOException
-
getValue
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];- Specified by:
getValuein interfaceEntityType.EntityOrBuilder- Returns:
- The value.
-
getValueBytes
public 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];- Specified by:
getValueBytesin interfaceEntityType.EntityOrBuilder- Returns:
- The bytes for value.
-
setValue
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];- Parameters:
value- The value to set.- Returns:
- This builder for chaining.
-
clearValue
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];- Returns:
- This builder for chaining.
-
setValueBytes
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];- Parameters:
value- The bytes for value to set.- Returns:
- This builder for chaining.
-
getSynonymsList
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 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getSynonymsListin interfaceEntityType.EntityOrBuilder- Returns:
- A list containing the synonyms.
-
getSynonymsCount
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 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getSynonymsCountin interfaceEntityType.EntityOrBuilder- Returns:
- The count of synonyms.
-
getSynonyms
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 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getSynonymsin interfaceEntityType.EntityOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The synonyms at the given index.
-
getSynonymsBytes
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 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getSynonymsBytesin interfaceEntityType.EntityOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the synonyms at the given index.
-
setSynonyms
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 [(.google.api.field_behavior) = REQUIRED];- Parameters:
index- The index to set the value at.value- The synonyms to set.- Returns:
- This builder for chaining.
-
addSynonyms
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 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The synonyms to add.- Returns:
- This builder for chaining.
-
addAllSynonyms
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 [(.google.api.field_behavior) = REQUIRED];- Parameters:
values- The synonyms to add.- Returns:
- This builder for chaining.
-
clearSynonyms
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 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
addSynonymsBytes
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 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes of the synonyms to add.- Returns:
- This builder for chaining.
-
setUnknownFields
public final EntityType.Entity.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<EntityType.Entity.Builder>
-
mergeUnknownFields
public final EntityType.Entity.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<EntityType.Entity.Builder>
-
-