Class ImportIntentsRequest.Builder (0.45.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.v3beta1.ImportIntentsRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ImportIntentsRequest build()
Returns
TypeDescription
ImportIntentsRequest

buildPartial()

public ImportIntentsRequest buildPartial()
Returns
TypeDescription
ImportIntentsRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearIntents()

public ImportIntentsRequest.Builder clearIntents()
Returns
TypeDescription
ImportIntentsRequest.Builder

clearIntentsContent()

public ImportIntentsRequest.Builder clearIntentsContent()

Uncompressed byte content of intents.

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

Returns
TypeDescription
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
TypeDescription
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.v3beta1.ImportIntentsRequest.MergeOption merge_option = 4;

Returns
TypeDescription
ImportIntentsRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ImportIntentsRequest getDefaultInstanceForType()
Returns
TypeDescription
ImportIntentsRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getIntentsCase()

public ImportIntentsRequest.IntentsCase getIntentsCase()
Returns
TypeDescription
ImportIntentsRequest.IntentsCase

getIntentsContent()

public InlineSource getIntentsContent()

Uncompressed byte content of intents.

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

Returns
TypeDescription
InlineSource

The intentsContent.

getIntentsContentBuilder()

public InlineSource.Builder getIntentsContentBuilder()

Uncompressed byte content of intents.

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

Returns
TypeDescription
InlineSource.Builder

getIntentsContentOrBuilder()

public InlineSourceOrBuilder getIntentsContentOrBuilder()

Uncompressed byte content of intents.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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.v3beta1.ImportIntentsRequest.MergeOption merge_option = 4;

Returns
TypeDescription
ImportIntentsRequest.MergeOption

The mergeOption.

getMergeOptionValue()

public int getMergeOptionValue()

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

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

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

The bytes for parent.

hasIntentsContent()

public boolean hasIntentsContent()

Uncompressed byte content of intents.

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

Returns
TypeDescription
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
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(ImportIntentsRequest other)

public ImportIntentsRequest.Builder mergeFrom(ImportIntentsRequest other)
Parameter
NameDescription
otherImportIntentsRequest
Returns
TypeDescription
ImportIntentsRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeIntentsContent(InlineSource value)

public ImportIntentsRequest.Builder mergeIntentsContent(InlineSource value)

Uncompressed byte content of intents.

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

Parameter
NameDescription
valueInlineSource
Returns
TypeDescription
ImportIntentsRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setIntentsContent(InlineSource value)

public ImportIntentsRequest.Builder setIntentsContent(InlineSource value)

Uncompressed byte content of intents.

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

Parameter
NameDescription
valueInlineSource
Returns
TypeDescription
ImportIntentsRequest.Builder

setIntentsContent(InlineSource.Builder builderForValue)

public ImportIntentsRequest.Builder setIntentsContent(InlineSource.Builder builderForValue)

Uncompressed byte content of intents.

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

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

The intentsUri to set.

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

The bytes for intentsUri to set.

Returns
TypeDescription
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.v3beta1.ImportIntentsRequest.MergeOption merge_option = 4;

Parameter
NameDescription
valueImportIntentsRequest.MergeOption

The mergeOption to set.

Returns
TypeDescription
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.v3beta1.ImportIntentsRequest.MergeOption merge_option = 4;

Parameter
NameDescription
valueint

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

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

The parent to set.

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

The bytes for parent to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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