Send feedback
Class CreateEntityTypeRequest.Builder (0.11.5)
Stay organized with collections
Save and categorize content based on your preferences.
Version 0.11.5 keyboard_arrow_down
public static final class CreateEntityTypeRequest . Builder extends GeneratedMessageV3 . Builder<CreateEntityTypeRequest . Builder > implements CreateEntityTypeRequestOrBuilder
The request message for EntityTypes.CreateEntityType .
Protobuf type google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateEntityTypeRequest . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
build()
public CreateEntityTypeRequest build ()
Returns
buildPartial()
public CreateEntityTypeRequest buildPartial ()
Returns
clear()
public CreateEntityTypeRequest . Builder clear ()
Returns
Overrides
clearEntityType()
public CreateEntityTypeRequest . Builder clearEntityType ()
Required. The entity type to create.
.google.cloud.dialogflow.cx.v3.EntityType entity_type = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
clearField(Descriptors.FieldDescriptor field)
public CreateEntityTypeRequest . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
Overrides
clearLanguageCode()
public CreateEntityTypeRequest . Builder clearLanguageCode ()
The language of the following fields in entity_type
:
EntityType.entities.value
EntityType.entities.synonyms
EntityType.excluded_phrases.value
If not specified, the agent's default language is used.
Many
languages
are supported.
Note: languages must be enabled in the agent before they can be used.
string language_code = 3;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateEntityTypeRequest . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
Overrides
clearParent()
public CreateEntityTypeRequest . Builder clearParent ()
Required. The agent to create a entity type for.
Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>
.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
clone()
public CreateEntityTypeRequest . Builder clone ()
Returns
Overrides
getDefaultInstanceForType()
public CreateEntityTypeRequest getDefaultInstanceForType ()
Returns
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Returns
Overrides
getEntityType()
public EntityType getEntityType ()
Required. The entity type to create.
.google.cloud.dialogflow.cx.v3.EntityType entity_type = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
getEntityTypeBuilder()
public EntityType . Builder getEntityTypeBuilder ()
Required. The entity type to create.
.google.cloud.dialogflow.cx.v3.EntityType entity_type = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
getEntityTypeOrBuilder()
public EntityTypeOrBuilder getEntityTypeOrBuilder ()
Required. The entity type to create.
.google.cloud.dialogflow.cx.v3.EntityType entity_type = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
getLanguageCode()
public String getLanguageCode ()
The language of the following fields in entity_type
:
EntityType.entities.value
EntityType.entities.synonyms
EntityType.excluded_phrases.value
If not specified, the agent's default language is used.
Many
languages
are supported.
Note: languages must be enabled in the agent before they can be used.
string language_code = 3;
Returns
Type
Description
String
The languageCode.
getLanguageCodeBytes()
public ByteString getLanguageCodeBytes ()
The language of the following fields in entity_type
:
EntityType.entities.value
EntityType.entities.synonyms
EntityType.excluded_phrases.value
If not specified, the agent's default language is used.
Many
languages
are supported.
Note: languages must be enabled in the agent before they can be used.
string language_code = 3;
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>/locations/<Location ID>/agents/<Agent ID>
.
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>/locations/<Location ID>/agents/<Agent ID>
.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
hasEntityType()
public boolean hasEntityType ()
Required. The entity type to create.
.google.cloud.dialogflow.cx.v3.EntityType entity_type = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
boolean
Whether the entityType field is set.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
mergeEntityType(EntityType value)
public CreateEntityTypeRequest . Builder mergeEntityType ( EntityType value )
Required. The entity type to create.
.google.cloud.dialogflow.cx.v3.EntityType entity_type = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
mergeFrom(CreateEntityTypeRequest other)
public CreateEntityTypeRequest . Builder mergeFrom ( CreateEntityTypeRequest other )
Parameter
Returns
public CreateEntityTypeRequest . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public CreateEntityTypeRequest . Builder mergeFrom ( Message other )
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateEntityTypeRequest . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
setEntityType(EntityType value)
public CreateEntityTypeRequest . Builder setEntityType ( EntityType value )
Required. The entity type to create.
.google.cloud.dialogflow.cx.v3.EntityType entity_type = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
setEntityType(EntityType.Builder builderForValue)
public CreateEntityTypeRequest . Builder setEntityType ( EntityType . Builder builderForValue )
Required. The entity type to create.
.google.cloud.dialogflow.cx.v3.EntityType entity_type = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public CreateEntityTypeRequest . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
setLanguageCode(String value)
public CreateEntityTypeRequest . Builder setLanguageCode ( String value )
The language of the following fields in entity_type
:
EntityType.entities.value
EntityType.entities.synonyms
EntityType.excluded_phrases.value
If not specified, the agent's default language is used.
Many
languages
are supported.
Note: languages must be enabled in the agent before they can be used.
string language_code = 3;
Parameter
Name
Description
value
String
The languageCode to set.
Returns
setLanguageCodeBytes(ByteString value)
public CreateEntityTypeRequest . Builder setLanguageCodeBytes ( ByteString value )
The language of the following fields in entity_type
:
EntityType.entities.value
EntityType.entities.synonyms
EntityType.excluded_phrases.value
If not specified, the agent's default language is used.
Many
languages
are supported.
Note: languages must be enabled in the agent before they can be used.
string language_code = 3;
Parameter
Name
Description
value
ByteString
The bytes for languageCode to set.
Returns
setParent(String value)
public CreateEntityTypeRequest . Builder setParent ( String value )
Required. The agent to create a entity type for.
Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>
.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter
Name
Description
value
String
The parent to set.
Returns
setParentBytes(ByteString value)
public CreateEntityTypeRequest . Builder setParentBytes ( ByteString value )
Required. The agent to create a entity type for.
Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>
.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter
Name
Description
value
ByteString
The bytes for parent to set.
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateEntityTypeRequest . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateEntityTypeRequest . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-28 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-28 UTC."],[],[]]