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.v2beta1.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.v2beta1.EntityType.Entity
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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(EntityType.Entity other)
EntityType.Entity.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
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.-
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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<EntityType.Entity.Builder>
-
clear
public EntityType.Entity.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<EntityType.Entity.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<EntityType.Entity.Builder>
-
getDefaultInstanceForType
public EntityType.Entity getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public EntityType.Entity build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public EntityType.Entity buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public EntityType.Entity.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<EntityType.Entity.Builder>
-
setField
public EntityType.Entity.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<EntityType.Entity.Builder>
-
clearField
public EntityType.Entity.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<EntityType.Entity.Builder>
-
clearOneof
public EntityType.Entity.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in 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:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<EntityType.Entity.Builder>
-
addRepeatedField
public EntityType.Entity.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<EntityType.Entity.Builder>
-
mergeFrom
public EntityType.Entity.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<EntityType.Entity.Builder>
-
mergeFrom
public EntityType.Entity.Builder mergeFrom(EntityType.Entity other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getValue
in 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:
getValueBytes
in 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;
- Specified by:
getSynonymsList
in 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;
- Specified by:
getSynonymsCount
in 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;
- Specified by:
getSynonyms
in 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;
- Specified by:
getSynonymsBytes
in 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;
- 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;
- 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;
- 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;
- 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;
- 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<EntityType.Entity.Builder>
-
mergeUnknownFields
public final EntityType.Entity.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<EntityType.Entity.Builder>
-
-