Class ImportIntentsResponse.Builder (0.45.0)

public static final class ImportIntentsResponse.Builder extends GeneratedMessageV3.Builder<ImportIntentsResponse.Builder> implements ImportIntentsResponseOrBuilder

The response message for Intents.ImportIntents.

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

Static Methods

getDescriptor()

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

Methods

addAllIntents(Iterable<String> values)

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

The unique identifier of the imported intents. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/intents/<Intent ID>.

repeated string intents = 1 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
values Iterable<String>

The intents to add.

Returns
Type Description
ImportIntentsResponse.Builder

This builder for chaining.

addIntents(String value)

public ImportIntentsResponse.Builder addIntents(String value)

The unique identifier of the imported intents. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/intents/<Intent ID>.

repeated string intents = 1 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The intents to add.

Returns
Type Description
ImportIntentsResponse.Builder

This builder for chaining.

addIntentsBytes(ByteString value)

public ImportIntentsResponse.Builder addIntentsBytes(ByteString value)

The unique identifier of the imported intents. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/intents/<Intent ID>.

repeated string intents = 1 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes of the intents to add.

Returns
Type Description
ImportIntentsResponse.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ImportIntentsResponse build()
Returns
Type Description
ImportIntentsResponse

buildPartial()

public ImportIntentsResponse buildPartial()
Returns
Type Description
ImportIntentsResponse

clear()

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

clearConflictingResources()

public ImportIntentsResponse.Builder clearConflictingResources()

Info which resources have conflicts when REPORT_CONFLICT merge_option is set in ImportIntentsRequest.

.google.cloud.dialogflow.cx.v3.ImportIntentsResponse.ConflictingResources conflicting_resources = 2;

Returns
Type Description
ImportIntentsResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearIntents()

public ImportIntentsResponse.Builder clearIntents()

The unique identifier of the imported intents. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/intents/<Intent ID>.

repeated string intents = 1 [(.google.api.resource_reference) = { ... }

Returns
Type Description
ImportIntentsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getConflictingResources()

public ImportIntentsResponse.ConflictingResources getConflictingResources()

Info which resources have conflicts when REPORT_CONFLICT merge_option is set in ImportIntentsRequest.

.google.cloud.dialogflow.cx.v3.ImportIntentsResponse.ConflictingResources conflicting_resources = 2;

Returns
Type Description
ImportIntentsResponse.ConflictingResources

The conflictingResources.

getConflictingResourcesBuilder()

public ImportIntentsResponse.ConflictingResources.Builder getConflictingResourcesBuilder()

Info which resources have conflicts when REPORT_CONFLICT merge_option is set in ImportIntentsRequest.

.google.cloud.dialogflow.cx.v3.ImportIntentsResponse.ConflictingResources conflicting_resources = 2;

Returns
Type Description
ImportIntentsResponse.ConflictingResources.Builder

getConflictingResourcesOrBuilder()

public ImportIntentsResponse.ConflictingResourcesOrBuilder getConflictingResourcesOrBuilder()

Info which resources have conflicts when REPORT_CONFLICT merge_option is set in ImportIntentsRequest.

.google.cloud.dialogflow.cx.v3.ImportIntentsResponse.ConflictingResources conflicting_resources = 2;

Returns
Type Description
ImportIntentsResponse.ConflictingResourcesOrBuilder

getDefaultInstanceForType()

public ImportIntentsResponse getDefaultInstanceForType()
Returns
Type Description
ImportIntentsResponse

getDescriptorForType()

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

getIntents(int index)

public String getIntents(int index)

The unique identifier of the imported intents. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/intents/<Intent ID>.

repeated string intents = 1 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The intents at the given index.

getIntentsBytes(int index)

public ByteString getIntentsBytes(int index)

The unique identifier of the imported intents. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/intents/<Intent ID>.

repeated string intents = 1 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the intents at the given index.

getIntentsCount()

public int getIntentsCount()

The unique identifier of the imported intents. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/intents/<Intent ID>.

repeated string intents = 1 [(.google.api.resource_reference) = { ... }

Returns
Type Description
int

The count of intents.

getIntentsList()

public ProtocolStringList getIntentsList()

The unique identifier of the imported intents. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/intents/<Intent ID>.

repeated string intents = 1 [(.google.api.resource_reference) = { ... }

Returns
Type Description
ProtocolStringList

A list containing the intents.

hasConflictingResources()

public boolean hasConflictingResources()

Info which resources have conflicts when REPORT_CONFLICT merge_option is set in ImportIntentsRequest.

.google.cloud.dialogflow.cx.v3.ImportIntentsResponse.ConflictingResources conflicting_resources = 2;

Returns
Type Description
boolean

Whether the conflictingResources field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeConflictingResources(ImportIntentsResponse.ConflictingResources value)

public ImportIntentsResponse.Builder mergeConflictingResources(ImportIntentsResponse.ConflictingResources value)

Info which resources have conflicts when REPORT_CONFLICT merge_option is set in ImportIntentsRequest.

.google.cloud.dialogflow.cx.v3.ImportIntentsResponse.ConflictingResources conflicting_resources = 2;

Parameter
Name Description
value ImportIntentsResponse.ConflictingResources
Returns
Type Description
ImportIntentsResponse.Builder

mergeFrom(ImportIntentsResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setConflictingResources(ImportIntentsResponse.ConflictingResources value)

public ImportIntentsResponse.Builder setConflictingResources(ImportIntentsResponse.ConflictingResources value)

Info which resources have conflicts when REPORT_CONFLICT merge_option is set in ImportIntentsRequest.

.google.cloud.dialogflow.cx.v3.ImportIntentsResponse.ConflictingResources conflicting_resources = 2;

Parameter
Name Description
value ImportIntentsResponse.ConflictingResources
Returns
Type Description
ImportIntentsResponse.Builder

setConflictingResources(ImportIntentsResponse.ConflictingResources.Builder builderForValue)

public ImportIntentsResponse.Builder setConflictingResources(ImportIntentsResponse.ConflictingResources.Builder builderForValue)

Info which resources have conflicts when REPORT_CONFLICT merge_option is set in ImportIntentsRequest.

.google.cloud.dialogflow.cx.v3.ImportIntentsResponse.ConflictingResources conflicting_resources = 2;

Parameter
Name Description
builderForValue ImportIntentsResponse.ConflictingResources.Builder
Returns
Type Description
ImportIntentsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setIntents(int index, String value)

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

The unique identifier of the imported intents. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/intents/<Intent ID>.

repeated string intents = 1 [(.google.api.resource_reference) = { ... }

Parameters
Name Description
index int

The index to set the value at.

value String

The intents to set.

Returns
Type Description
ImportIntentsResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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