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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
ReturnsMethods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateEntityTypeRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
ParametersReturnsOverridesbuild()
public CreateEntityTypeRequest build()
ReturnsbuildPartial()
public CreateEntityTypeRequest buildPartial()
Returnsclear()
public CreateEntityTypeRequest.Builder clear()
ReturnsOverridesclearEntityType()
public CreateEntityTypeRequest.Builder clearEntityType()
Required. The entity type to create.
.google.cloud.dialogflow.cx.v3.EntityType entity_type = 2 [(.google.api.field_behavior) = REQUIRED];
ReturnsclearField(Descriptors.FieldDescriptor field)
public CreateEntityTypeRequest.Builder clearField(Descriptors.FieldDescriptor field)
ParameterReturnsOverridesclearLanguageCode()
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;
ReturnsclearOneof(Descriptors.OneofDescriptor oneof)
public CreateEntityTypeRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
ParameterReturnsOverridesclearParent()
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) = { ... }
Returnsclone()
public CreateEntityTypeRequest.Builder clone()
ReturnsOverridesgetDefaultInstanceForType()
public CreateEntityTypeRequest getDefaultInstanceForType()
ReturnsgetDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
ReturnsOverridesgetEntityType()
public EntityType getEntityType()
Required. The entity type to create.
.google.cloud.dialogflow.cx.v3.EntityType entity_type = 2 [(.google.api.field_behavior) = REQUIRED];
ReturnsgetEntityTypeBuilder()
public EntityType.Builder getEntityTypeBuilder()
Required. The entity type to create.
.google.cloud.dialogflow.cx.v3.EntityType entity_type = 2 [(.google.api.field_behavior) = REQUIRED];
ReturnsgetEntityTypeOrBuilder()
public EntityTypeOrBuilder getEntityTypeOrBuilder()
Required. The entity type to create.
.google.cloud.dialogflow.cx.v3.EntityType entity_type = 2 [(.google.api.field_behavior) = REQUIRED];
ReturnsgetLanguageCode()
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;
ReturnsType | 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;
ReturnsType | 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) = { ... }
ReturnsType | 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) = { ... }
ReturnshasEntityType()
public boolean hasEntityType()
Required. The entity type to create.
.google.cloud.dialogflow.cx.v3.EntityType entity_type = 2 [(.google.api.field_behavior) = REQUIRED];
ReturnsType | Description |
boolean | Whether the entityType field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
ReturnsOverridesisInitialized()
public final boolean isInitialized()
ReturnsOverridesmergeEntityType(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];
ParameterReturnsmergeFrom(CreateEntityTypeRequest other)
public CreateEntityTypeRequest.Builder mergeFrom(CreateEntityTypeRequest other)
ParameterReturnspublic CreateEntityTypeRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
ParametersReturnsOverridesExceptionsmergeFrom(Message other)
public CreateEntityTypeRequest.Builder mergeFrom(Message other)
ParameterReturnsOverridesmergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateEntityTypeRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
ParameterReturnsOverridessetEntityType(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];
ParameterReturnssetEntityType(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];
ParameterReturnssetField(Descriptors.FieldDescriptor field, Object value)
public CreateEntityTypeRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
ParametersReturnsOverridessetLanguageCode(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;
ParameterName | Description |
value | String
The languageCode to set. |
ReturnssetLanguageCodeBytes(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;
ParameterName | Description |
value | ByteString
The bytes for languageCode to set. |
ReturnssetParent(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) = { ... }
ParameterName | Description |
value | String
The parent to set. |
ReturnssetParentBytes(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) = { ... }
ParameterName | Description |
value | ByteString
The bytes for parent to set. |
ReturnssetRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateEntityTypeRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
ParametersReturnsOverridessetUnknownFields(UnknownFieldSet unknownFields)
public final CreateEntityTypeRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
ParameterReturnsOverrides