Class ExportEntityTypesRequest.Builder (0.52.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
TypeDescription
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
NameDescription
valuesIterable<String>

The entityTypes to add.

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

The entityTypes to add.

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

The bytes of the entityTypes to add.

Returns
TypeDescription
ExportEntityTypesRequest.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ExportEntityTypesRequest build()
Returns
TypeDescription
ExportEntityTypesRequest

buildPartial()

public ExportEntityTypesRequest buildPartial()
Returns
TypeDescription
ExportEntityTypesRequest

clear()

public ExportEntityTypesRequest.Builder clear()
Returns
TypeDescription
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
TypeDescription
ExportEntityTypesRequest.Builder

This builder for chaining.

clearDestination()

public ExportEntityTypesRequest.Builder clearDestination()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ExportEntityTypesRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ExportEntityTypesRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
ExportEntityTypesRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

public ExportEntityTypesRequest.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
int

The enum numeric value on the wire for dataFormat.

getDefaultInstanceForType()

public ExportEntityTypesRequest getDefaultInstanceForType()
Returns
TypeDescription
ExportEntityTypesRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDestinationCase()

public ExportEntityTypesRequest.DestinationCase getDestinationCase()
Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

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

The index of the value to return.

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

mergeFrom(ExportEntityTypesRequest other)

public ExportEntityTypesRequest.Builder mergeFrom(ExportEntityTypesRequest other)
Parameter
NameDescription
otherExportEntityTypesRequest
Returns
TypeDescription
ExportEntityTypesRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ExportEntityTypesRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueExportEntityTypesRequest.DataFormat

The dataFormat to set.

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

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

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

The index to set the value at.

valueString

The entityTypes to set.

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

The entityTypesContentInline to set.

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

The entityTypesUri to set.

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

The bytes for entityTypesUri to set.

Returns
TypeDescription
ExportEntityTypesRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ExportEntityTypesRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The languageCode to set.

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

The bytes for languageCode to set.

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

The parent to set.

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

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ExportEntityTypesRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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