Class ExportIntentsRequest.Builder (0.52.0)

public static final class ExportIntentsRequest.Builder extends GeneratedMessageV3.Builder<ExportIntentsRequest.Builder> implements ExportIntentsRequestOrBuilder

The request message for Intents.ExportIntents.

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

Static Methods

getDescriptor()

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

Methods

addAllIntents(Iterable<String> values)

public ExportIntentsRequest.Builder addAllIntents(Iterable<String> values)

Required. The name of the intents to export. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/intents/<Intent ID>.

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

Parameter
NameDescription
valuesIterable<String>

The intents to add.

Returns
TypeDescription
ExportIntentsRequest.Builder

This builder for chaining.

addIntents(String value)

public ExportIntentsRequest.Builder addIntents(String value)

Required. The name of the intents to export. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/intents/<Intent ID>.

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

Parameter
NameDescription
valueString

The intents to add.

Returns
TypeDescription
ExportIntentsRequest.Builder

This builder for chaining.

addIntentsBytes(ByteString value)

public ExportIntentsRequest.Builder addIntentsBytes(ByteString value)

Required. The name of the intents to export. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/intents/<Intent ID>.

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

Parameter
NameDescription
valueByteString

The bytes of the intents to add.

Returns
TypeDescription
ExportIntentsRequest.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ExportIntentsRequest build()
Returns
TypeDescription
ExportIntentsRequest

buildPartial()

public ExportIntentsRequest buildPartial()
Returns
TypeDescription
ExportIntentsRequest

clear()

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

clearDataFormat()

public ExportIntentsRequest.Builder clearDataFormat()

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

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

Returns
TypeDescription
ExportIntentsRequest.Builder

This builder for chaining.

clearDestination()

public ExportIntentsRequest.Builder clearDestination()
Returns
TypeDescription
ExportIntentsRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearIntents()

public ExportIntentsRequest.Builder clearIntents()

Required. The name of the intents to export. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/intents/<Intent ID>.

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

Returns
TypeDescription
ExportIntentsRequest.Builder

This builder for chaining.

clearIntentsContentInline()

public ExportIntentsRequest.Builder clearIntentsContentInline()

Optional. The option to return the serialized intents inline.

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

Returns
TypeDescription
ExportIntentsRequest.Builder

This builder for chaining.

clearIntentsUri()

public ExportIntentsRequest.Builder clearIntentsUri()

Optional. The Google Cloud Storage URI to export the intents 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 intents_uri = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ExportIntentsRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ExportIntentsRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ExportIntentsRequest.Builder
Overrides

clearParent()

public ExportIntentsRequest.Builder clearParent()

Required. The name of the parent agent to export intents. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ExportIntentsRequest.Builder

This builder for chaining.

clone()

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

getDataFormat()

public ExportIntentsRequest.DataFormat getDataFormat()

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

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

Returns
TypeDescription
ExportIntentsRequest.DataFormat

The dataFormat.

getDataFormatValue()

public int getDataFormatValue()

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

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

Returns
TypeDescription
int

The enum numeric value on the wire for dataFormat.

getDefaultInstanceForType()

public ExportIntentsRequest getDefaultInstanceForType()
Returns
TypeDescription
ExportIntentsRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDestinationCase()

public ExportIntentsRequest.DestinationCase getDestinationCase()
Returns
TypeDescription
ExportIntentsRequest.DestinationCase

getIntents(int index)

public String getIntents(int index)

Required. The name of the intents to export. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/intents/<Intent ID>.

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

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The intents at the given index.

getIntentsBytes(int index)

public ByteString getIntentsBytes(int index)

Required. The name of the intents to export. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/intents/<Intent ID>.

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

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the intents at the given index.

getIntentsContentInline()

public boolean getIntentsContentInline()

Optional. The option to return the serialized intents inline.

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

Returns
TypeDescription
boolean

The intentsContentInline.

getIntentsCount()

public int getIntentsCount()

Required. The name of the intents to export. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/intents/<Intent ID>.

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

Returns
TypeDescription
int

The count of intents.

getIntentsList()

public ProtocolStringList getIntentsList()

Required. The name of the intents to export. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/intents/<Intent ID>.

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

Returns
TypeDescription
ProtocolStringList

A list containing the intents.

getIntentsUri()

public String getIntentsUri()

Optional. The Google Cloud Storage URI to export the intents 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 intents_uri = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The intentsUri.

getIntentsUriBytes()

public ByteString getIntentsUriBytes()

Optional. The Google Cloud Storage URI to export the intents 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 intents_uri = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for intentsUri.

getParent()

public String getParent()

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

hasIntentsContentInline()

public boolean hasIntentsContentInline()

Optional. The option to return the serialized intents inline.

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

Returns
TypeDescription
boolean

Whether the intentsContentInline field is set.

hasIntentsUri()

public boolean hasIntentsUri()

Optional. The Google Cloud Storage URI to export the intents 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 intents_uri = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the intentsUri field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ExportIntentsRequest other)

public ExportIntentsRequest.Builder mergeFrom(ExportIntentsRequest other)
Parameter
NameDescription
otherExportIntentsRequest
Returns
TypeDescription
ExportIntentsRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDataFormat(ExportIntentsRequest.DataFormat value)

public ExportIntentsRequest.Builder setDataFormat(ExportIntentsRequest.DataFormat value)

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

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

Parameter
NameDescription
valueExportIntentsRequest.DataFormat

The dataFormat to set.

Returns
TypeDescription
ExportIntentsRequest.Builder

This builder for chaining.

setDataFormatValue(int value)

public ExportIntentsRequest.Builder setDataFormatValue(int value)

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

.google.cloud.dialogflow.cx.v3.ExportIntentsRequest.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
ExportIntentsRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setIntents(int index, String value)

public ExportIntentsRequest.Builder setIntents(int index, String value)

Required. The name of the intents to export. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/intents/<Intent ID>.

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

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The intents to set.

Returns
TypeDescription
ExportIntentsRequest.Builder

This builder for chaining.

setIntentsContentInline(boolean value)

public ExportIntentsRequest.Builder setIntentsContentInline(boolean value)

Optional. The option to return the serialized intents inline.

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

Parameter
NameDescription
valueboolean

The intentsContentInline to set.

Returns
TypeDescription
ExportIntentsRequest.Builder

This builder for chaining.

setIntentsUri(String value)

public ExportIntentsRequest.Builder setIntentsUri(String value)

Optional. The Google Cloud Storage URI to export the intents 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 intents_uri = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The intentsUri to set.

Returns
TypeDescription
ExportIntentsRequest.Builder

This builder for chaining.

setIntentsUriBytes(ByteString value)

public ExportIntentsRequest.Builder setIntentsUriBytes(ByteString value)

Optional. The Google Cloud Storage URI to export the intents 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 intents_uri = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for intentsUri to set.

Returns
TypeDescription
ExportIntentsRequest.Builder

This builder for chaining.

setParent(String value)

public ExportIntentsRequest.Builder setParent(String value)

Required. The name of the parent agent to export intents. 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
ExportIntentsRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public ExportIntentsRequest.Builder setParentBytes(ByteString value)

Required. The name of the parent agent to export intents. 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
ExportIntentsRequest.Builder

This builder for chaining.

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

public ExportIntentsRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ExportIntentsRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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