public static final class CreateEntityTypeRequest.Builder extends GeneratedMessageV3.Builder<CreateEntityTypeRequest.Builder> implements CreateEntityTypeRequestOrBuilder
The request message for
EntityTypes.CreateEntityType.
Protobuf type google.cloud.dialogflow.v2.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()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateEntityTypeRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public CreateEntityTypeRequest build()
buildPartial()
public CreateEntityTypeRequest buildPartial()
clear()
public CreateEntityTypeRequest.Builder clear()
Overrides
clearEntityType()
public CreateEntityTypeRequest.Builder clearEntityType()
Required. The entity type to create.
.google.cloud.dialogflow.v2.EntityType entity_type = 2 [(.google.api.field_behavior) = REQUIRED];
clearField(Descriptors.FieldDescriptor field)
public CreateEntityTypeRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
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];
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateEntityTypeRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
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) = { ... }
clone()
public CreateEntityTypeRequest.Builder clone()
Overrides
getDefaultInstanceForType()
public CreateEntityTypeRequest getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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];
getEntityTypeOrBuilder()
public EntityTypeOrBuilder getEntityTypeOrBuilder()
Required. The entity type to create.
.google.cloud.dialogflow.v2.EntityType entity_type = 2 [(.google.api.field_behavior) = REQUIRED];
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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
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];
mergeFrom(CreateEntityTypeRequest other)
public CreateEntityTypeRequest.Builder mergeFrom(CreateEntityTypeRequest other)
public CreateEntityTypeRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public CreateEntityTypeRequest.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateEntityTypeRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
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];
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];
setField(Descriptors.FieldDescriptor field, Object value)
public CreateEntityTypeRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
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 |
String
The languageCode to set.
|
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 |
ByteString
The bytes for languageCode to set.
|
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 |
String
The parent to set.
|
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 |
ByteString
The bytes for parent to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateEntityTypeRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateEntityTypeRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides