public static final class CreateEntityTypeRequest.Builder extends GeneratedMessage.Builder<CreateEntityTypeRequest.Builder> implements CreateEntityTypeRequestOrBuilderThe request message for EntityTypes.CreateEntityType.
Protobuf type google.cloud.dialogflow.v2.CreateEntityTypeRequest
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > CreateEntityTypeRequest.BuilderImplements
CreateEntityTypeRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public CreateEntityTypeRequest build()| Returns | |
|---|---|
| Type | Description |
CreateEntityTypeRequest |
|
buildPartial()
public CreateEntityTypeRequest buildPartial()| Returns | |
|---|---|
| Type | Description |
CreateEntityTypeRequest |
|
clear()
public CreateEntityTypeRequest.Builder clear()| Returns | |
|---|---|
| Type | Description |
CreateEntityTypeRequest.Builder |
|
clearEntityType()
public CreateEntityTypeRequest.Builder clearEntityType()Required. The entity type to create.
.google.cloud.dialogflow.v2.EntityType entity_type = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
CreateEntityTypeRequest.Builder |
|
clearLanguageCode()
public CreateEntityTypeRequest.Builder clearLanguageCode()Optional. The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see Multilingual intent and entity data.
string language_code = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
CreateEntityTypeRequest.Builder |
This builder for chaining. |
clearParent()
public CreateEntityTypeRequest.Builder clearParent() Required. The agent to create a entity type for.
Format: projects/<Project ID>/agent.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
CreateEntityTypeRequest.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public CreateEntityTypeRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
CreateEntityTypeRequest |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getEntityType()
public EntityType getEntityType()Required. The entity type to create.
.google.cloud.dialogflow.v2.EntityType entity_type = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
EntityType |
The entityType. |
getEntityTypeBuilder()
public EntityType.Builder getEntityTypeBuilder()Required. The entity type to create.
.google.cloud.dialogflow.v2.EntityType entity_type = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
EntityType.Builder |
|
getEntityTypeOrBuilder()
public EntityTypeOrBuilder getEntityTypeOrBuilder()Required. The entity type to create.
.google.cloud.dialogflow.v2.EntityType entity_type = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
EntityTypeOrBuilder |
|
getLanguageCode()
public String getLanguageCode()Optional. The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see Multilingual intent and entity data.
string language_code = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The languageCode. |
getLanguageCodeBytes()
public ByteString getLanguageCodeBytes()Optional. The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see Multilingual intent and entity data.
string language_code = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for languageCode. |
getParent()
public String getParent() Required. The agent to create a entity type for.
Format: projects/<Project ID>/agent.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The parent. |
getParentBytes()
public ByteString getParentBytes() Required. The agent to create a entity type for.
Format: projects/<Project ID>/agent.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for parent. |
hasEntityType()
public boolean hasEntityType()Required. The entity type to create.
.google.cloud.dialogflow.v2.EntityType entity_type = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the entityType field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeEntityType(EntityType value)
public CreateEntityTypeRequest.Builder mergeEntityType(EntityType value)Required. The entity type to create.
.google.cloud.dialogflow.v2.EntityType entity_type = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
EntityType |
| Returns | |
|---|---|
| Type | Description |
CreateEntityTypeRequest.Builder |
|
mergeFrom(CreateEntityTypeRequest other)
public CreateEntityTypeRequest.Builder mergeFrom(CreateEntityTypeRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
CreateEntityTypeRequest |
| Returns | |
|---|---|
| Type | Description |
CreateEntityTypeRequest.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CreateEntityTypeRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
CreateEntityTypeRequest.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public CreateEntityTypeRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
CreateEntityTypeRequest.Builder |
|
setEntityType(EntityType value)
public CreateEntityTypeRequest.Builder setEntityType(EntityType value)Required. The entity type to create.
.google.cloud.dialogflow.v2.EntityType entity_type = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
EntityType |
| Returns | |
|---|---|
| Type | Description |
CreateEntityTypeRequest.Builder |
|
setEntityType(EntityType.Builder builderForValue)
public CreateEntityTypeRequest.Builder setEntityType(EntityType.Builder builderForValue)Required. The entity type to create.
.google.cloud.dialogflow.v2.EntityType entity_type = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
EntityType.Builder |
| Returns | |
|---|---|
| Type | Description |
CreateEntityTypeRequest.Builder |
|
setLanguageCode(String value)
public CreateEntityTypeRequest.Builder setLanguageCode(String value)Optional. The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see Multilingual intent and entity data.
string language_code = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe languageCode to set. |
| Returns | |
|---|---|
| Type | Description |
CreateEntityTypeRequest.Builder |
This builder for chaining. |
setLanguageCodeBytes(ByteString value)
public CreateEntityTypeRequest.Builder setLanguageCodeBytes(ByteString value)Optional. The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see Multilingual intent and entity data.
string language_code = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for languageCode to set. |
| Returns | |
|---|---|
| Type | Description |
CreateEntityTypeRequest.Builder |
This builder for chaining. |
setParent(String value)
public CreateEntityTypeRequest.Builder setParent(String value) Required. The agent to create a entity type for.
Format: projects/<Project ID>/agent.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe parent to set. |
| Returns | |
|---|---|
| Type | Description |
CreateEntityTypeRequest.Builder |
This builder for chaining. |
setParentBytes(ByteString value)
public CreateEntityTypeRequest.Builder setParentBytes(ByteString value) Required. The agent to create a entity type for.
Format: projects/<Project ID>/agent.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for parent to set. |
| Returns | |
|---|---|
| Type | Description |
CreateEntityTypeRequest.Builder |
This builder for chaining. |