Class ImportEntityTypesRequest.Builder (0.58.0)

public static final class ImportEntityTypesRequest.Builder extends GeneratedMessageV3.Builder<ImportEntityTypesRequest.Builder> implements ImportEntityTypesRequestOrBuilder

The request message for EntityTypes.ImportEntityTypes.

Protobuf type google.cloud.dialogflow.cx.v3.ImportEntityTypesRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ImportEntityTypesRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ImportEntityTypesRequest.Builder
Overrides

build()

public ImportEntityTypesRequest build()
Returns
Type Description
ImportEntityTypesRequest

buildPartial()

public ImportEntityTypesRequest buildPartial()
Returns
Type Description
ImportEntityTypesRequest

clear()

public ImportEntityTypesRequest.Builder clear()
Returns
Type Description
ImportEntityTypesRequest.Builder
Overrides

clearEntityTypes()

public ImportEntityTypesRequest.Builder clearEntityTypes()
Returns
Type Description
ImportEntityTypesRequest.Builder

clearEntityTypesContent()

public ImportEntityTypesRequest.Builder clearEntityTypesContent()

Uncompressed byte content of entity types.

.google.cloud.dialogflow.cx.v3.InlineSource entity_types_content = 3;

Returns
Type Description
ImportEntityTypesRequest.Builder

clearEntityTypesUri()

public ImportEntityTypesRequest.Builder clearEntityTypesUri()

The Google Cloud Storage URI to import entity types from. The format of this URI must be gs://<bucket-name>/<object-name>.

Dialogflow performs a read operation for the Cloud Storage object on the caller's behalf, so your request authentication must have read permissions for the object. For more information, see Dialogflow access control.

string entity_types_uri = 2;

Returns
Type Description
ImportEntityTypesRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ImportEntityTypesRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ImportEntityTypesRequest.Builder
Overrides

clearMergeOption()

public ImportEntityTypesRequest.Builder clearMergeOption()

Required. Merge option for importing entity types.

.google.cloud.dialogflow.cx.v3.ImportEntityTypesRequest.MergeOption merge_option = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ImportEntityTypesRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ImportEntityTypesRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ImportEntityTypesRequest.Builder
Overrides

clearParent()

public ImportEntityTypesRequest.Builder clearParent()

Required. The agent to import the entity types into. 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
ImportEntityTypesRequest.Builder

This builder for chaining.

clearTargetEntityType()

public ImportEntityTypesRequest.Builder clearTargetEntityType()

Optional. The target entity type to import into. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/entity_types/<EntityType ID>. If set, there should be only one entity type included in entity_types, of which the type should match the type of the target entity type. All entities in the imported entity type will be added to the target entity type.

string target_entity_type = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ImportEntityTypesRequest.Builder

This builder for chaining.

clone()

public ImportEntityTypesRequest.Builder clone()
Returns
Type Description
ImportEntityTypesRequest.Builder
Overrides

getDefaultInstanceForType()

public ImportEntityTypesRequest getDefaultInstanceForType()
Returns
Type Description
ImportEntityTypesRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEntityTypesCase()

public ImportEntityTypesRequest.EntityTypesCase getEntityTypesCase()
Returns
Type Description
ImportEntityTypesRequest.EntityTypesCase

getEntityTypesContent()

public InlineSource getEntityTypesContent()

Uncompressed byte content of entity types.

.google.cloud.dialogflow.cx.v3.InlineSource entity_types_content = 3;

Returns
Type Description
InlineSource

The entityTypesContent.

getEntityTypesContentBuilder()

public InlineSource.Builder getEntityTypesContentBuilder()

Uncompressed byte content of entity types.

.google.cloud.dialogflow.cx.v3.InlineSource entity_types_content = 3;

Returns
Type Description
InlineSource.Builder

getEntityTypesContentOrBuilder()

public InlineSourceOrBuilder getEntityTypesContentOrBuilder()

Uncompressed byte content of entity types.

.google.cloud.dialogflow.cx.v3.InlineSource entity_types_content = 3;

Returns
Type Description
InlineSourceOrBuilder

getEntityTypesUri()

public String getEntityTypesUri()

The Google Cloud Storage URI to import entity types from. The format of this URI must be gs://<bucket-name>/<object-name>.

Dialogflow performs a read operation for the Cloud Storage object on the caller's behalf, so your request authentication must have read permissions for the object. For more information, see Dialogflow access control.

string entity_types_uri = 2;

Returns
Type Description
String

The entityTypesUri.

getEntityTypesUriBytes()

public ByteString getEntityTypesUriBytes()

The Google Cloud Storage URI to import entity types from. The format of this URI must be gs://<bucket-name>/<object-name>.

Dialogflow performs a read operation for the Cloud Storage object on the caller's behalf, so your request authentication must have read permissions for the object. For more information, see Dialogflow access control.

string entity_types_uri = 2;

Returns
Type Description
ByteString

The bytes for entityTypesUri.

getMergeOption()

public ImportEntityTypesRequest.MergeOption getMergeOption()

Required. Merge option for importing entity types.

.google.cloud.dialogflow.cx.v3.ImportEntityTypesRequest.MergeOption merge_option = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ImportEntityTypesRequest.MergeOption

The mergeOption.

getMergeOptionValue()

public int getMergeOptionValue()

Required. Merge option for importing entity types.

.google.cloud.dialogflow.cx.v3.ImportEntityTypesRequest.MergeOption merge_option = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for mergeOption.

getParent()

public String getParent()

Required. The agent to import the entity types into. 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 import the entity types into. 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
ByteString

The bytes for parent.

getTargetEntityType()

public String getTargetEntityType()

Optional. The target entity type to import into. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/entity_types/<EntityType ID>. If set, there should be only one entity type included in entity_types, of which the type should match the type of the target entity type. All entities in the imported entity type will be added to the target entity type.

string target_entity_type = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The targetEntityType.

getTargetEntityTypeBytes()

public ByteString getTargetEntityTypeBytes()

Optional. The target entity type to import into. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/entity_types/<EntityType ID>. If set, there should be only one entity type included in entity_types, of which the type should match the type of the target entity type. All entities in the imported entity type will be added to the target entity type.

string target_entity_type = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for targetEntityType.

hasEntityTypesContent()

public boolean hasEntityTypesContent()

Uncompressed byte content of entity types.

.google.cloud.dialogflow.cx.v3.InlineSource entity_types_content = 3;

Returns
Type Description
boolean

Whether the entityTypesContent field is set.

hasEntityTypesUri()

public boolean hasEntityTypesUri()

The Google Cloud Storage URI to import entity types from. The format of this URI must be gs://<bucket-name>/<object-name>.

Dialogflow performs a read operation for the Cloud Storage object on the caller's behalf, so your request authentication must have read permissions for the object. For more information, see Dialogflow access control.

string entity_types_uri = 2;

Returns
Type Description
boolean

Whether the entityTypesUri field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeEntityTypesContent(InlineSource value)

public ImportEntityTypesRequest.Builder mergeEntityTypesContent(InlineSource value)

Uncompressed byte content of entity types.

.google.cloud.dialogflow.cx.v3.InlineSource entity_types_content = 3;

Parameter
Name Description
value InlineSource
Returns
Type Description
ImportEntityTypesRequest.Builder

mergeFrom(ImportEntityTypesRequest other)

public ImportEntityTypesRequest.Builder mergeFrom(ImportEntityTypesRequest other)
Parameter
Name Description
other ImportEntityTypesRequest
Returns
Type Description
ImportEntityTypesRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ImportEntityTypesRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ImportEntityTypesRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ImportEntityTypesRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ImportEntityTypesRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ImportEntityTypesRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ImportEntityTypesRequest.Builder
Overrides

setEntityTypesContent(InlineSource value)

public ImportEntityTypesRequest.Builder setEntityTypesContent(InlineSource value)

Uncompressed byte content of entity types.

.google.cloud.dialogflow.cx.v3.InlineSource entity_types_content = 3;

Parameter
Name Description
value InlineSource
Returns
Type Description
ImportEntityTypesRequest.Builder

setEntityTypesContent(InlineSource.Builder builderForValue)

public ImportEntityTypesRequest.Builder setEntityTypesContent(InlineSource.Builder builderForValue)

Uncompressed byte content of entity types.

.google.cloud.dialogflow.cx.v3.InlineSource entity_types_content = 3;

Parameter
Name Description
builderForValue InlineSource.Builder
Returns
Type Description
ImportEntityTypesRequest.Builder

setEntityTypesUri(String value)

public ImportEntityTypesRequest.Builder setEntityTypesUri(String value)

The Google Cloud Storage URI to import entity types from. The format of this URI must be gs://<bucket-name>/<object-name>.

Dialogflow performs a read operation for the Cloud Storage object on the caller's behalf, so your request authentication must have read permissions for the object. For more information, see Dialogflow access control.

string entity_types_uri = 2;

Parameter
Name Description
value String

The entityTypesUri to set.

Returns
Type Description
ImportEntityTypesRequest.Builder

This builder for chaining.

setEntityTypesUriBytes(ByteString value)

public ImportEntityTypesRequest.Builder setEntityTypesUriBytes(ByteString value)

The Google Cloud Storage URI to import entity types from. The format of this URI must be gs://<bucket-name>/<object-name>.

Dialogflow performs a read operation for the Cloud Storage object on the caller's behalf, so your request authentication must have read permissions for the object. For more information, see Dialogflow access control.

string entity_types_uri = 2;

Parameter
Name Description
value ByteString

The bytes for entityTypesUri to set.

Returns
Type Description
ImportEntityTypesRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ImportEntityTypesRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ImportEntityTypesRequest.Builder
Overrides

setMergeOption(ImportEntityTypesRequest.MergeOption value)

public ImportEntityTypesRequest.Builder setMergeOption(ImportEntityTypesRequest.MergeOption value)

Required. Merge option for importing entity types.

.google.cloud.dialogflow.cx.v3.ImportEntityTypesRequest.MergeOption merge_option = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ImportEntityTypesRequest.MergeOption

The mergeOption to set.

Returns
Type Description
ImportEntityTypesRequest.Builder

This builder for chaining.

setMergeOptionValue(int value)

public ImportEntityTypesRequest.Builder setMergeOptionValue(int value)

Required. Merge option for importing entity types.

.google.cloud.dialogflow.cx.v3.ImportEntityTypesRequest.MergeOption merge_option = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The enum numeric value on the wire for mergeOption to set.

Returns
Type Description
ImportEntityTypesRequest.Builder

This builder for chaining.

setParent(String value)

public ImportEntityTypesRequest.Builder setParent(String value)

Required. The agent to import the entity types into. 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
Type Description
ImportEntityTypesRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public ImportEntityTypesRequest.Builder setParentBytes(ByteString value)

Required. The agent to import the entity types into. 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
Type Description
ImportEntityTypesRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ImportEntityTypesRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ImportEntityTypesRequest.Builder
Overrides

setTargetEntityType(String value)

public ImportEntityTypesRequest.Builder setTargetEntityType(String value)

Optional. The target entity type to import into. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/entity_types/<EntityType ID>. If set, there should be only one entity type included in entity_types, of which the type should match the type of the target entity type. All entities in the imported entity type will be added to the target entity type.

string target_entity_type = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The targetEntityType to set.

Returns
Type Description
ImportEntityTypesRequest.Builder

This builder for chaining.

setTargetEntityTypeBytes(ByteString value)

public ImportEntityTypesRequest.Builder setTargetEntityTypeBytes(ByteString value)

Optional. The target entity type to import into. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/entity_types/<EntityType ID>. If set, there should be only one entity type included in entity_types, of which the type should match the type of the target entity type. All entities in the imported entity type will be added to the target entity type.

string target_entity_type = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for targetEntityType to set.

Returns
Type Description
ImportEntityTypesRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ImportEntityTypesRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ImportEntityTypesRequest.Builder
Overrides