public static final class CreateEntityTypeRequest.Builder extends GeneratedMessageV3.Builder<CreateEntityTypeRequest.Builder> implements CreateEntityTypeRequestOrBuilder
The request message for EntityTypes.CreateEntityType.
Protobuf type google.cloud.dialogflow.v2beta1.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()
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.v2beta1.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()
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
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.
Supported formats:
projects/<Project ID>/agent
projects/<Project ID>/locations/<Location ID>/agent
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.v2beta1.EntityType entity_type = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
getEntityTypeBuilder()
public EntityType.Builder getEntityTypeBuilder()
Required. The entity type to create.
.google.cloud.dialogflow.v2beta1.EntityType entity_type = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
getEntityTypeOrBuilder()
public EntityTypeOrBuilder getEntityTypeOrBuilder()
Required. The entity type to create.
.google.cloud.dialogflow.v2beta1.EntityType entity_type = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
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.
Supported formats:
projects/<Project ID>/agent
projects/<Project ID>/locations/<Location 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.
Supported formats:
projects/<Project ID>/agent
projects/<Project ID>/locations/<Location ID>/agent
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.v2beta1.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.v2beta1.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.v2beta1.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.v2beta1.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)
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.
|
Returns
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.
|
Returns
setParent(String value)
public CreateEntityTypeRequest.Builder setParent(String value)
Required. The agent to create a entity type for.
Supported formats:
projects/<Project ID>/agent
projects/<Project ID>/locations/<Location ID>/agent
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.
Supported formats:
projects/<Project ID>/agent
projects/<Project ID>/locations/<Location 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.
|
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