Class ImportEntityTypesRequest.Builder (0.52.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.v3beta1.ImportEntityTypesRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ImportEntityTypesRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ImportEntityTypesRequest.Builder
Overrides

build()

public ImportEntityTypesRequest build()
Returns
TypeDescription
ImportEntityTypesRequest

buildPartial()

public ImportEntityTypesRequest buildPartial()
Returns
TypeDescription
ImportEntityTypesRequest

clear()

public ImportEntityTypesRequest.Builder clear()
Returns
TypeDescription
ImportEntityTypesRequest.Builder
Overrides

clearEntityTypes()

public ImportEntityTypesRequest.Builder clearEntityTypes()
Returns
TypeDescription
ImportEntityTypesRequest.Builder

clearEntityTypesContent()

public ImportEntityTypesRequest.Builder clearEntityTypesContent()

Uncompressed byte content of entity types.

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

Returns
TypeDescription
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
TypeDescription
ImportEntityTypesRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ImportEntityTypesRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ImportEntityTypesRequest.Builder
Overrides

clearMergeOption()

public ImportEntityTypesRequest.Builder clearMergeOption()

Required. Merge option for importing entity types.

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

Returns
TypeDescription
ImportEntityTypesRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ImportEntityTypesRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ImportEntityTypesRequest.Builder

This builder for chaining.

clone()

public ImportEntityTypesRequest.Builder clone()
Returns
TypeDescription
ImportEntityTypesRequest.Builder
Overrides

getDefaultInstanceForType()

public ImportEntityTypesRequest getDefaultInstanceForType()
Returns
TypeDescription
ImportEntityTypesRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEntityTypesCase()

public ImportEntityTypesRequest.EntityTypesCase getEntityTypesCase()
Returns
TypeDescription
ImportEntityTypesRequest.EntityTypesCase

getEntityTypesContent()

public InlineSource getEntityTypesContent()

Uncompressed byte content of entity types.

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

Returns
TypeDescription
InlineSource

The entityTypesContent.

getEntityTypesContentBuilder()

public InlineSource.Builder getEntityTypesContentBuilder()

Uncompressed byte content of entity types.

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

Returns
TypeDescription
InlineSource.Builder

getEntityTypesContentOrBuilder()

public InlineSourceOrBuilder getEntityTypesContentOrBuilder()

Uncompressed byte content of entity types.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for entityTypesUri.

getMergeOption()

public ImportEntityTypesRequest.MergeOption getMergeOption()

Required. Merge option for importing entity types.

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

Returns
TypeDescription
ImportEntityTypesRequest.MergeOption

The mergeOption.

getMergeOptionValue()

public int getMergeOptionValue()

Required. Merge option for importing entity types.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for targetEntityType.

hasEntityTypesContent()

public boolean hasEntityTypesContent()

Uncompressed byte content of entity types.

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

Returns
TypeDescription
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
TypeDescription
boolean

Whether the entityTypesUri field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeEntityTypesContent(InlineSource value)

public ImportEntityTypesRequest.Builder mergeEntityTypesContent(InlineSource value)

Uncompressed byte content of entity types.

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

Parameter
NameDescription
valueInlineSource
Returns
TypeDescription
ImportEntityTypesRequest.Builder

mergeFrom(ImportEntityTypesRequest other)

public ImportEntityTypesRequest.Builder mergeFrom(ImportEntityTypesRequest other)
Parameter
NameDescription
otherImportEntityTypesRequest
Returns
TypeDescription
ImportEntityTypesRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ImportEntityTypesRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ImportEntityTypesRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ImportEntityTypesRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ImportEntityTypesRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ImportEntityTypesRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ImportEntityTypesRequest.Builder
Overrides

setEntityTypesContent(InlineSource value)

public ImportEntityTypesRequest.Builder setEntityTypesContent(InlineSource value)

Uncompressed byte content of entity types.

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

Parameter
NameDescription
valueInlineSource
Returns
TypeDescription
ImportEntityTypesRequest.Builder

setEntityTypesContent(InlineSource.Builder builderForValue)

public ImportEntityTypesRequest.Builder setEntityTypesContent(InlineSource.Builder builderForValue)

Uncompressed byte content of entity types.

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

Parameter
NameDescription
builderForValueInlineSource.Builder
Returns
TypeDescription
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
NameDescription
valueString

The entityTypesUri to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for entityTypesUri to set.

Returns
TypeDescription
ImportEntityTypesRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ImportEntityTypesRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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.v3beta1.ImportEntityTypesRequest.MergeOption merge_option = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueImportEntityTypesRequest.MergeOption

The mergeOption to set.

Returns
TypeDescription
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.v3beta1.ImportEntityTypesRequest.MergeOption merge_option = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
valueString

The parent to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The targetEntityType to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for targetEntityType to set.

Returns
TypeDescription
ImportEntityTypesRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ImportEntityTypesRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ImportEntityTypesRequest.Builder
Overrides