Class ImportIntentsRequest.Builder (0.48.0)

public static final class ImportIntentsRequest.Builder extends GeneratedMessageV3.Builder<ImportIntentsRequest.Builder> implements ImportIntentsRequestOrBuilder

The request message for Intents.ImportIntents.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ImportIntentsRequest build()
Returns
Type Description
ImportIntentsRequest

buildPartial()

public ImportIntentsRequest buildPartial()
Returns
Type Description
ImportIntentsRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearIntents()

public ImportIntentsRequest.Builder clearIntents()
Returns
Type Description
ImportIntentsRequest.Builder

clearIntentsContent()

public ImportIntentsRequest.Builder clearIntentsContent()

Uncompressed byte content of intents.

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

Returns
Type Description
ImportIntentsRequest.Builder

clearIntentsUri()

public ImportIntentsRequest.Builder clearIntentsUri()

The Google Cloud Storage URI to import intents 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 intents_uri = 2;

Returns
Type Description
ImportIntentsRequest.Builder

This builder for chaining.

clearMergeOption()

public ImportIntentsRequest.Builder clearMergeOption()

Merge option for importing intents. If not specified, REJECT is assumed.

.google.cloud.dialogflow.cx.v3.ImportIntentsRequest.MergeOption merge_option = 4;

Returns
Type Description
ImportIntentsRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public ImportIntentsRequest.Builder clearParent()

Required. The agent to import the intents 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
ImportIntentsRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ImportIntentsRequest getDefaultInstanceForType()
Returns
Type Description
ImportIntentsRequest

getDescriptorForType()

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

getIntentsCase()

public ImportIntentsRequest.IntentsCase getIntentsCase()
Returns
Type Description
ImportIntentsRequest.IntentsCase

getIntentsContent()

public InlineSource getIntentsContent()

Uncompressed byte content of intents.

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

Returns
Type Description
InlineSource

The intentsContent.

getIntentsContentBuilder()

public InlineSource.Builder getIntentsContentBuilder()

Uncompressed byte content of intents.

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

Returns
Type Description
InlineSource.Builder

getIntentsContentOrBuilder()

public InlineSourceOrBuilder getIntentsContentOrBuilder()

Uncompressed byte content of intents.

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

Returns
Type Description
InlineSourceOrBuilder

getIntentsUri()

public String getIntentsUri()

The Google Cloud Storage URI to import intents 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 intents_uri = 2;

Returns
Type Description
String

The intentsUri.

getIntentsUriBytes()

public ByteString getIntentsUriBytes()

The Google Cloud Storage URI to import intents 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 intents_uri = 2;

Returns
Type Description
ByteString

The bytes for intentsUri.

getMergeOption()

public ImportIntentsRequest.MergeOption getMergeOption()

Merge option for importing intents. If not specified, REJECT is assumed.

.google.cloud.dialogflow.cx.v3.ImportIntentsRequest.MergeOption merge_option = 4;

Returns
Type Description
ImportIntentsRequest.MergeOption

The mergeOption.

getMergeOptionValue()

public int getMergeOptionValue()

Merge option for importing intents. If not specified, REJECT is assumed.

.google.cloud.dialogflow.cx.v3.ImportIntentsRequest.MergeOption merge_option = 4;

Returns
Type Description
int

The enum numeric value on the wire for mergeOption.

getParent()

public String getParent()

Required. The agent to import the intents 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 intents 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.

hasIntentsContent()

public boolean hasIntentsContent()

Uncompressed byte content of intents.

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

Returns
Type Description
boolean

Whether the intentsContent field is set.

hasIntentsUri()

public boolean hasIntentsUri()

The Google Cloud Storage URI to import intents 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 intents_uri = 2;

Returns
Type Description
boolean

Whether the intentsUri field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ImportIntentsRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeIntentsContent(InlineSource value)

public ImportIntentsRequest.Builder mergeIntentsContent(InlineSource value)

Uncompressed byte content of intents.

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

Parameter
Name Description
value InlineSource
Returns
Type Description
ImportIntentsRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setIntentsContent(InlineSource value)

public ImportIntentsRequest.Builder setIntentsContent(InlineSource value)

Uncompressed byte content of intents.

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

Parameter
Name Description
value InlineSource
Returns
Type Description
ImportIntentsRequest.Builder

setIntentsContent(InlineSource.Builder builderForValue)

public ImportIntentsRequest.Builder setIntentsContent(InlineSource.Builder builderForValue)

Uncompressed byte content of intents.

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

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

setIntentsUri(String value)

public ImportIntentsRequest.Builder setIntentsUri(String value)

The Google Cloud Storage URI to import intents 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 intents_uri = 2;

Parameter
Name Description
value String

The intentsUri to set.

Returns
Type Description
ImportIntentsRequest.Builder

This builder for chaining.

setIntentsUriBytes(ByteString value)

public ImportIntentsRequest.Builder setIntentsUriBytes(ByteString value)

The Google Cloud Storage URI to import intents 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 intents_uri = 2;

Parameter
Name Description
value ByteString

The bytes for intentsUri to set.

Returns
Type Description
ImportIntentsRequest.Builder

This builder for chaining.

setMergeOption(ImportIntentsRequest.MergeOption value)

public ImportIntentsRequest.Builder setMergeOption(ImportIntentsRequest.MergeOption value)

Merge option for importing intents. If not specified, REJECT is assumed.

.google.cloud.dialogflow.cx.v3.ImportIntentsRequest.MergeOption merge_option = 4;

Parameter
Name Description
value ImportIntentsRequest.MergeOption

The mergeOption to set.

Returns
Type Description
ImportIntentsRequest.Builder

This builder for chaining.

setMergeOptionValue(int value)

public ImportIntentsRequest.Builder setMergeOptionValue(int value)

Merge option for importing intents. If not specified, REJECT is assumed.

.google.cloud.dialogflow.cx.v3.ImportIntentsRequest.MergeOption merge_option = 4;

Parameter
Name Description
value int

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

Returns
Type Description
ImportIntentsRequest.Builder

This builder for chaining.

setParent(String value)

public ImportIntentsRequest.Builder setParent(String value)

Required. The agent to import the intents 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
ImportIntentsRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public ImportIntentsRequest.Builder setParentBytes(ByteString value)

Required. The agent to import the intents 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
ImportIntentsRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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