Class ExportEntityTypesRequest.Builder (0.64.0)

public static final class ExportEntityTypesRequest.Builder extends GeneratedMessageV3.Builder<ExportEntityTypesRequest.Builder> implements ExportEntityTypesRequestOrBuilder

The request message for EntityTypes.ExportEntityTypes.

Protobuf type google.cloud.dialogflow.cx.v3beta1.ExportEntityTypesRequest

Static Methods

getDescriptor()

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

Methods

addAllEntityTypes(Iterable<String> values)

public ExportEntityTypesRequest.Builder addAllEntityTypes(Iterable<String> values)

Required. The name of the entity types to export. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/entityTypes/<EntityType ID>.

repeated string entity_types = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<String>

The entityTypes to add.

Returns
Type Description
ExportEntityTypesRequest.Builder

This builder for chaining.

addEntityTypes(String value)

public ExportEntityTypesRequest.Builder addEntityTypes(String value)

Required. The name of the entity types to export. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/entityTypes/<EntityType ID>.

repeated string entity_types = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The entityTypes to add.

Returns
Type Description
ExportEntityTypesRequest.Builder

This builder for chaining.

addEntityTypesBytes(ByteString value)

public ExportEntityTypesRequest.Builder addEntityTypesBytes(ByteString value)

Required. The name of the entity types to export. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/entityTypes/<EntityType ID>.

repeated string entity_types = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes of the entityTypes to add.

Returns
Type Description
ExportEntityTypesRequest.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ExportEntityTypesRequest build()
Returns
Type Description
ExportEntityTypesRequest

buildPartial()

public ExportEntityTypesRequest buildPartial()
Returns
Type Description
ExportEntityTypesRequest

clear()

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

clearDataFormat()

public ExportEntityTypesRequest.Builder clearDataFormat()

Optional. The data format of the exported entity types. If not specified, BLOB is assumed.

.google.cloud.dialogflow.cx.v3beta1.ExportEntityTypesRequest.DataFormat data_format = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ExportEntityTypesRequest.Builder

This builder for chaining.

clearDestination()

public ExportEntityTypesRequest.Builder clearDestination()
Returns
Type Description
ExportEntityTypesRequest.Builder

clearEntityTypes()

public ExportEntityTypesRequest.Builder clearEntityTypes()

Required. The name of the entity types to export. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/entityTypes/<EntityType ID>.

repeated string entity_types = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ExportEntityTypesRequest.Builder

This builder for chaining.

clearEntityTypesContentInline()

public ExportEntityTypesRequest.Builder clearEntityTypesContentInline()

Optional. The option to return the serialized entity types inline.

bool entity_types_content_inline = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ExportEntityTypesRequest.Builder

This builder for chaining.

clearEntityTypesUri()

public ExportEntityTypesRequest.Builder clearEntityTypesUri()

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

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

string entity_types_uri = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ExportEntityTypesRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearLanguageCode()

public ExportEntityTypesRequest.Builder clearLanguageCode()

Optional. The language to retrieve the entity type for. The following fields are language dependent:

  • EntityType.entities.value
  • EntityType.entities.synonyms
  • EntityType.excluded_phrases.value

    If not specified, all language dependent fields will be retrieved. Many languages are supported. Note: languages must be enabled in the agent before they can be used.

string language_code = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ExportEntityTypesRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public ExportEntityTypesRequest.Builder clearParent()

Required. The name of the parent agent to export entity types. 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
ExportEntityTypesRequest.Builder

This builder for chaining.

clone()

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

getDataFormat()

public ExportEntityTypesRequest.DataFormat getDataFormat()

Optional. The data format of the exported entity types. If not specified, BLOB is assumed.

.google.cloud.dialogflow.cx.v3beta1.ExportEntityTypesRequest.DataFormat data_format = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ExportEntityTypesRequest.DataFormat

The dataFormat.

getDataFormatValue()

public int getDataFormatValue()

Optional. The data format of the exported entity types. If not specified, BLOB is assumed.

.google.cloud.dialogflow.cx.v3beta1.ExportEntityTypesRequest.DataFormat data_format = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for dataFormat.

getDefaultInstanceForType()

public ExportEntityTypesRequest getDefaultInstanceForType()
Returns
Type Description
ExportEntityTypesRequest

getDescriptorForType()

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

getDestinationCase()

public ExportEntityTypesRequest.DestinationCase getDestinationCase()
Returns
Type Description
ExportEntityTypesRequest.DestinationCase

getEntityTypes(int index)

public String getEntityTypes(int index)

Required. The name of the entity types to export. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/entityTypes/<EntityType ID>.

repeated string entity_types = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The entityTypes at the given index.

getEntityTypesBytes(int index)

public ByteString getEntityTypesBytes(int index)

Required. The name of the entity types to export. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/entityTypes/<EntityType ID>.

repeated string entity_types = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the entityTypes at the given index.

getEntityTypesContentInline()

public boolean getEntityTypesContentInline()

Optional. The option to return the serialized entity types inline.

bool entity_types_content_inline = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The entityTypesContentInline.

getEntityTypesCount()

public int getEntityTypesCount()

Required. The name of the entity types to export. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/entityTypes/<EntityType ID>.

repeated string entity_types = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The count of entityTypes.

getEntityTypesList()

public ProtocolStringList getEntityTypesList()

Required. The name of the entity types to export. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/entityTypes/<EntityType ID>.

repeated string entity_types = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ProtocolStringList

A list containing the entityTypes.

getEntityTypesUri()

public String getEntityTypesUri()

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

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

string entity_types_uri = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The entityTypesUri.

getEntityTypesUriBytes()

public ByteString getEntityTypesUriBytes()

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

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

string entity_types_uri = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for entityTypesUri.

getLanguageCode()

public String getLanguageCode()

Optional. The language to retrieve the entity type for. The following fields are language dependent:

  • EntityType.entities.value
  • EntityType.entities.synonyms
  • EntityType.excluded_phrases.value

    If not specified, all language dependent fields will be retrieved. Many languages are supported. Note: languages must be enabled in the agent before they can be used.

string language_code = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The languageCode.

getLanguageCodeBytes()

public ByteString getLanguageCodeBytes()

Optional. The language to retrieve the entity type for. The following fields are language dependent:

  • EntityType.entities.value
  • EntityType.entities.synonyms
  • EntityType.excluded_phrases.value

    If not specified, all language dependent fields will be retrieved. Many languages are supported. Note: languages must be enabled in the agent before they can be used.

string language_code = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for languageCode.

getParent()

public String getParent()

Required. The name of the parent agent to export entity types. 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 name of the parent agent to export entity types. 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.

hasEntityTypesContentInline()

public boolean hasEntityTypesContentInline()

Optional. The option to return the serialized entity types inline.

bool entity_types_content_inline = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the entityTypesContentInline field is set.

hasEntityTypesUri()

public boolean hasEntityTypesUri()

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

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

string entity_types_uri = 3 [(.google.api.field_behavior) = OPTIONAL];

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

mergeFrom(ExportEntityTypesRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDataFormat(ExportEntityTypesRequest.DataFormat value)

public ExportEntityTypesRequest.Builder setDataFormat(ExportEntityTypesRequest.DataFormat value)

Optional. The data format of the exported entity types. If not specified, BLOB is assumed.

.google.cloud.dialogflow.cx.v3beta1.ExportEntityTypesRequest.DataFormat data_format = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ExportEntityTypesRequest.DataFormat

The dataFormat to set.

Returns
Type Description
ExportEntityTypesRequest.Builder

This builder for chaining.

setDataFormatValue(int value)

public ExportEntityTypesRequest.Builder setDataFormatValue(int value)

Optional. The data format of the exported entity types. If not specified, BLOB is assumed.

.google.cloud.dialogflow.cx.v3beta1.ExportEntityTypesRequest.DataFormat data_format = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

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

Returns
Type Description
ExportEntityTypesRequest.Builder

This builder for chaining.

setEntityTypes(int index, String value)

public ExportEntityTypesRequest.Builder setEntityTypes(int index, String value)

Required. The name of the entity types to export. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/entityTypes/<EntityType ID>.

repeated string entity_types = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int

The index to set the value at.

value String

The entityTypes to set.

Returns
Type Description
ExportEntityTypesRequest.Builder

This builder for chaining.

setEntityTypesContentInline(boolean value)

public ExportEntityTypesRequest.Builder setEntityTypesContentInline(boolean value)

Optional. The option to return the serialized entity types inline.

bool entity_types_content_inline = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The entityTypesContentInline to set.

Returns
Type Description
ExportEntityTypesRequest.Builder

This builder for chaining.

setEntityTypesUri(String value)

public ExportEntityTypesRequest.Builder setEntityTypesUri(String value)

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

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

string entity_types_uri = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The entityTypesUri to set.

Returns
Type Description
ExportEntityTypesRequest.Builder

This builder for chaining.

setEntityTypesUriBytes(ByteString value)

public ExportEntityTypesRequest.Builder setEntityTypesUriBytes(ByteString value)

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

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

string entity_types_uri = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for entityTypesUri to set.

Returns
Type Description
ExportEntityTypesRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setLanguageCode(String value)

public ExportEntityTypesRequest.Builder setLanguageCode(String value)

Optional. The language to retrieve the entity type for. The following fields are language dependent:

  • EntityType.entities.value
  • EntityType.entities.synonyms
  • EntityType.excluded_phrases.value

    If not specified, all language dependent fields will be retrieved. Many languages are supported. Note: languages must be enabled in the agent before they can be used.

string language_code = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The languageCode to set.

Returns
Type Description
ExportEntityTypesRequest.Builder

This builder for chaining.

setLanguageCodeBytes(ByteString value)

public ExportEntityTypesRequest.Builder setLanguageCodeBytes(ByteString value)

Optional. The language to retrieve the entity type for. The following fields are language dependent:

  • EntityType.entities.value
  • EntityType.entities.synonyms
  • EntityType.excluded_phrases.value

    If not specified, all language dependent fields will be retrieved. Many languages are supported. Note: languages must be enabled in the agent before they can be used.

string language_code = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for languageCode to set.

Returns
Type Description
ExportEntityTypesRequest.Builder

This builder for chaining.

setParent(String value)

public ExportEntityTypesRequest.Builder setParent(String value)

Required. The name of the parent agent to export entity types. 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
ExportEntityTypesRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public ExportEntityTypesRequest.Builder setParentBytes(ByteString value)

Required. The name of the parent agent to export entity types. 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
ExportEntityTypesRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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